Assistance Needed Troubleshooting 12v Robotic Drummer
Posted: Fri Aug 28, 2015 4:45 pm
Hello,
I need some assistance in troubleshooting or redesigning a robotic puppet drummer I have been working on. The project is using lightshowpi to control a 5v sainsmart relay which in turn is controlling 12v linear solenoids to move the drummer's arms.
If you are unfamiliar with lightshowpi (http://lightshowpi.org/), it takes the frequency spectrum of a mp3 file (in my case a drum track) and splits it in to 8 discrete frequency bands. Each frequency band then turns a gpio pin on or off once a threshold is reached in the music track (it can also do PWM). It is normally used to make music synchronized Christmas light shows. I am using it to trigger a 8 channel 5v Sainsmart relay to control linear solenoids.
Here is the relay board i am using
http://www.sainsmart.com/8-channel-dc-5 ... logic.html
Here is the solenoid I am using.
http://www.amazon.com/Force-Stroke-Fram ... EYX01V0MG0
I have the GPIO pins directly wired in to the input pins on the relay like in this video. https://www.youtube.com/watch?v=oaf_zQcrg7g with the exception that I am using a external 5v power brick to power the relay board.
Here is a video of my initial testing.
https://youtu.be/plamFxNUQA8
One relay is set to trigger around 50Hz to move to the kick drum beat. The other around 2000Hz to his the snare. The plan it to have one arm move to the beat of the snare and the other to the beat of the kick drum. I was really excited at this point thinking this simple setup was going to work so I started building the limbs.
https://youtu.be/WYtXE9av5Kg
Now enters my problem. The LEDs on the relay board flash on and off as expected but I am receiving random results from the relays. Only 4 out of the 8 relays turn on/off when the LEDs flash. 2 of the working relays switched very accurately but 2 would be hit or miss. Now after a few hours of testing it seems that all of the relays are hit or miss or stop working for extended periods of time. It seems the LEDs are receiving enough signal to flash, but not enough to trigger the relays. I put a multi-meter on the relay output and confirmed they are the culprit. Over time, they have stopped tripping as expected or fail all together.
Can someone help me troubleshoot or provide a better solution to my current design? I am no pro when it comes to the hardware side of things so I am just guessing here. I can provide a diagram on how I have everything wired later today.
Thank you.



I need some assistance in troubleshooting or redesigning a robotic puppet drummer I have been working on. The project is using lightshowpi to control a 5v sainsmart relay which in turn is controlling 12v linear solenoids to move the drummer's arms.
If you are unfamiliar with lightshowpi (http://lightshowpi.org/), it takes the frequency spectrum of a mp3 file (in my case a drum track) and splits it in to 8 discrete frequency bands. Each frequency band then turns a gpio pin on or off once a threshold is reached in the music track (it can also do PWM). It is normally used to make music synchronized Christmas light shows. I am using it to trigger a 8 channel 5v Sainsmart relay to control linear solenoids.
Here is the relay board i am using
http://www.sainsmart.com/8-channel-dc-5 ... logic.html
Here is the solenoid I am using.
http://www.amazon.com/Force-Stroke-Fram ... EYX01V0MG0
I have the GPIO pins directly wired in to the input pins on the relay like in this video. https://www.youtube.com/watch?v=oaf_zQcrg7g with the exception that I am using a external 5v power brick to power the relay board.
Here is a video of my initial testing.
https://youtu.be/plamFxNUQA8
One relay is set to trigger around 50Hz to move to the kick drum beat. The other around 2000Hz to his the snare. The plan it to have one arm move to the beat of the snare and the other to the beat of the kick drum. I was really excited at this point thinking this simple setup was going to work so I started building the limbs.
https://youtu.be/WYtXE9av5Kg
Now enters my problem. The LEDs on the relay board flash on and off as expected but I am receiving random results from the relays. Only 4 out of the 8 relays turn on/off when the LEDs flash. 2 of the working relays switched very accurately but 2 would be hit or miss. Now after a few hours of testing it seems that all of the relays are hit or miss or stop working for extended periods of time. It seems the LEDs are receiving enough signal to flash, but not enough to trigger the relays. I put a multi-meter on the relay output and confirmed they are the culprit. Over time, they have stopped tripping as expected or fail all together.
Can someone help me troubleshoot or provide a better solution to my current design? I am no pro when it comes to the hardware side of things so I am just guessing here. I can provide a diagram on how I have everything wired later today.
Thank you.


