Halloween Project Problems!
Macgruber
Posts: 20
Hi Everyone!
So I'm hoping someone can clue me in to what I am doing wrong here... Basically, I am use an SX to run a home brewed halloween electric chair project. I am trying to keep things simple so I have the SX mounted into the SX tech board (so I don't have to add my own PS electronics etc.) which then has leads that attach to the "meat" of the project which is mounted to a solderless breadboard (again for ease). All I am trying to do is run an output from the SX to a basic PNP transistor which is used to switch a radioshack 1A 5VDC relay and switches 120AC to a solenoid. Before anyone asks, yes I have a 1N4007 diode worked in to protect from the back EMF generated from the relay switching.
I wrote a simple program to cycle the relay on and off and I can see that I am generating the 120VAC on and off as expected. The problems begin once I actually attach the solenoid to the power leads (i.e. add the load). Once I do this, the program cycles one time and then it seems like the SX just stops functioning and I have to reset. Since I only run one AC line into my control box and then split the power to the solenoid and the AC adapter of the SX board I am wondering if the EMF generated by the solenoid is causing some kind of problem to my SX power supply?
Any thoughts? Below is the program code (this isn't the whole halloween project... just what I am using for testing):
So I'm hoping someone can clue me in to what I am doing wrong here... Basically, I am use an SX to run a home brewed halloween electric chair project. I am trying to keep things simple so I have the SX mounted into the SX tech board (so I don't have to add my own PS electronics etc.) which then has leads that attach to the "meat" of the project which is mounted to a solderless breadboard (again for ease). All I am trying to do is run an output from the SX to a basic PNP transistor which is used to switch a radioshack 1A 5VDC relay and switches 120AC to a solenoid. Before anyone asks, yes I have a 1N4007 diode worked in to protect from the back EMF generated from the relay switching.
I wrote a simple program to cycle the relay on and off and I can see that I am generating the 120VAC on and off as expected. The problems begin once I actually attach the solenoid to the power leads (i.e. add the load). Once I do this, the program cycles one time and then it seems like the SX just stops functioning and I have to reset. Since I only run one AC line into my control box and then split the power to the solenoid and the AC adapter of the SX board I am wondering if the EMF generated by the solenoid is causing some kind of problem to my SX power supply?
Any thoughts? Below is the program code (this isn't the whole halloween project... just what I am using for testing):
Start: isRampUp = 1 Main: DO ' Check the ramping direction IF isRampUp = 0 THEN 'HIGH SPEAKER HIGH EYELED1 HIGH EYELED2 LOW HEARTLED1 LOW HEARTLED2 'HIGH STROBE 'HIGH ELWIRE 'HIGH ELSOL HIGH CHAIRSOL ELSE 'LOW SPEAKER LOW EYELED1 LOW EYELED2 HIGH HEARTLED1 HIGH HEARTLED2 'LOW STROBE 'LOW ELWIRE 'LOW ELSOL LOW CHAIRSOL ENDIF ' Wait before repeating WAIT_MS 5000 TOGGLE isRampUp LOOP
Comments
You don't say how big the solenoid is, but they are big draws during the initial application of power. Probably to the point of overloading the 1A relay contacts. Also, if the iron core is partially out of the solenoid , the solenoid's current draw will be exceptionally high.
Assuming the solenoid's steady state current is 0.5 amp or lower, maybe all you'll need is a "snubber" either across the coil or across the relay contacts. The snubber will be a resistor and capacitor in series or a another device made for the job.
If you can really separate the 120vac used for the solenoid from the power supply used by the SX, you might improve things but my guess is the solenoid current is causing lots of arcing in the relay contacts.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tom Sisk
http://www.siskconsult.com
·
·· Their manuals contain lots of useful information and have helped me over the years.
·· This shows how to apply a snubber for an AC load.
·· In your case, the "triac output" is actually your relay contacts. The formula will give you a workable system.
·· Cheers,
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tom Sisk
http://www.siskconsult.com
The MOV probably had a rating a bit higher than the recommended value. Also, the MOV trigger point can vary quite a bit. The suggested value is about 203 volts based on the peak value of the 120VAC sinewave.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tom Sisk
http://www.siskconsult.com
·
So I finished the project... Even with the snubber I had some problems with the whole thing locking up. Maybe next year I'll have to do a better job isolating the power supplies (maybe wiring with earth ground will help?).
Anyway, here are some links to the video. (Note that I sourced a powerful solenoid which ended up breaking so the one in the video just ended up being of meager power so the whole thing didn't move much.)
www.veoh.com/browse/videos/category/horror/watch/v193211775mMrdsXB