I am trying to use a Sonoff SV flashed with ESPHome to control my drive gates. I am planning to locate the Sonoff SV next to my gates and power it via the accessory connector on the existing gate controller. The only problem I have is that the accessory connector outputs 24V AC whilst the Sonoff SV is powered by up to 24V DC. Can anyone advise what I might need to purchase to convert 24V AC to between 5V and 24V DC.
You need a bridge rectifier
Something like this might work, but be very careful of your grounds:
https://www.amazon.com/SMAKN®-Converter-Voltage-Supply-Waterproof/dp/B00RE6QN4U
I tried something like that but the fuse for the accessory connector kept blowing every time I connected it. I could not understand why the input did not have polarity marked.
Is a bridge rectifier something that can be purchased pre-assembled?
Kind off.
Its still a component.
So soldering is, well not needed but recommended.
You could use screw terminals to connect it.
Thanks for all the information, it was just the guidance I needed.
You should add a smoothing capacitor on the output also
If the input is AC, there is no polarity as it alternates.
Thanks,
Components have been ordered, just need to get my soldering iron dusted off.
OK, so I have had delivery of the components and built a circuit using the following bridge rectifier.
I also added a 1000uF .25V capacitor on the output as recommended. With a multimeter I have measured an input of 24VAC, however I seem to be getting around 35VDC output.
If I take out the capacitor I get 24VDC output but my Sonoff SV does not power up.
Not sure what I am doing wrong.
That was just an example showing the need for a smoothing capacitor and not necessarily the correct capacitor for your supply.
Thanks. Obviously I need to do a bit more research.
can be purchased pre-assembled?
A buck converter
https://www.amazon.com/Converter-2-5-35V-Regulator-Adjustable-Delinx/dp/B08B3T9DX4/ref=pd_di_sccai_1
Thanks, I will look into that.
This is expected. AC voltage is measured in RMS (root mean square). The actual peak voltages are roughly +34v and -34V. So when you rectify it you get a DC voltage of ~34v.
See also 24VAC tutorial and FAQ for irrigation, security, HVAC and control systems
Thanks for everyone’s help. Bought one of these and it works a treat.