I use a control transformer out of a furnace (I'm a hvac contractor), made a bridge rectifier with 4 diodes, a load resistor, a filter capacitor, and a zener diode. ;)
I was in electronics before hvac. I made that contraption because a drill charger got damaged but now modified it to 12v to...