ESP32 controlling 2 MW drivers and 2 AC infinity fans
Posted: Wed May 05, 2021 9:07 pm
Hey guys, just really getting into the whole esp stuff. Picked up a few 32s and have one up and running reporting temp and humidity into HA using a dht22 sensor. My electronics knowledge is rusty but buried in there so apologies if terminology is off.
In my tent I'm running 2 Mars hydro ts 3000 lights, each light has 2 meanwell xlg-240-h-ab drivers with each of their dimmer circuits connected, then feeds to the stock resistance pot adjuster. For air movement, I have 2 ac infinity 6" fans, one for each intake/exhaust. Tent is an 8x8 with 4x8 grow area currently.
The meanwells have 3 options for control, pwm 0-10v, resistance, or step voltage 0-10v. I'm not inherently opposed to connecting all 4 driver dim circuits together to control both lights as one if required, but would prefer not too and should have enough pins. Possibly thinking about using these digital pots for the lights depending on how many other parts I need for pwm to work.
https://www.dfrobot.com/product-1650.html
The ac infinity EC motor requires pwm 0-10v, there is a solid 10v dc power source coming from the motor that is usable.
Now, software wise in HA I think i understand how it all works. But the electronics side is still a bit fuzzy. For pwm dimming circuits, can you supply some voltage in the range of 0-10 and adjust the duty cycle as required? So can I use the gpio voltage to drive the dim/speed circuit?
I've also read it's a good idea to run the pwm output over an optocoupler, which if I'm understanding it correctly, only isolates the electronics from any mains noise. But signal in on one end is the same as the other end.
My googling seems to return some conflicting information on whether i would need to bump up the pwm voltage, some say I would need to, some make no reference and seem to just run it right from the pin.
Also, any downside from using the +10v DC power from the AC infinity fan to power the esp? I would assume AC infinity uses that 10v feed to power their own control units, as they don't have their own power source.
thx!
In my tent I'm running 2 Mars hydro ts 3000 lights, each light has 2 meanwell xlg-240-h-ab drivers with each of their dimmer circuits connected, then feeds to the stock resistance pot adjuster. For air movement, I have 2 ac infinity 6" fans, one for each intake/exhaust. Tent is an 8x8 with 4x8 grow area currently.
The meanwells have 3 options for control, pwm 0-10v, resistance, or step voltage 0-10v. I'm not inherently opposed to connecting all 4 driver dim circuits together to control both lights as one if required, but would prefer not too and should have enough pins. Possibly thinking about using these digital pots for the lights depending on how many other parts I need for pwm to work.
https://www.dfrobot.com/product-1650.html
The ac infinity EC motor requires pwm 0-10v, there is a solid 10v dc power source coming from the motor that is usable.
Now, software wise in HA I think i understand how it all works. But the electronics side is still a bit fuzzy. For pwm dimming circuits, can you supply some voltage in the range of 0-10 and adjust the duty cycle as required? So can I use the gpio voltage to drive the dim/speed circuit?
I've also read it's a good idea to run the pwm output over an optocoupler, which if I'm understanding it correctly, only isolates the electronics from any mains noise. But signal in on one end is the same as the other end.
My googling seems to return some conflicting information on whether i would need to bump up the pwm voltage, some say I would need to, some make no reference and seem to just run it right from the pin.
Also, any downside from using the +10v DC power from the AC infinity fan to power the esp? I would assume AC infinity uses that 10v feed to power their own control units, as they don't have their own power source.
thx!