I've made a drumkit for rockband2, and I've installed RGB leds and a series of white leds in each pad. Each pad connects to my arduino-based board, Ardweeny, via Cat6 cable. Each output on the ardweeny turns on a mosfet, which turns on the LED string. There are 5 leds per color, and 25 white LEDs right now. Each pad has a seperate piezo for the light circuit.
The script programmed into the arduino is simple, reads the analog input, checks it against a threshold value, turns on the associated LED chain. After so many cycles of any LED being on, it turns on the white leds for about half a second. It all worked fine on the test bench when testing one pad at a time, but now with everything hooked up the white is not turning on as often as it should be, and after a few seconds of hitting the piezos, all the LEDs come on. The LEDs don't come on full tho, the yellow LED still shows up yellow, not full red and green. And there is a flicker on the white leds. It all works again for a little bit after hitting the reset button, then goes on full again. I did a bit of testing, and then it seemed to work. I did a bit more work on the kit, not associated to the electronics, and it started doing it again.
I tried asking for help in an electronics IRC channel, the only thing I could get as a suggestion before they decided to leave was to move the 1M resistor from inside the pad closer to the analog inputs, and to disconnect all but one piezo to "see if the tap is just propogating along the object they're all attached to" and "leave the analogs floating". He also mentioned something about weak pull-down resistors?
After I disconnected all but one piezo, and moved a resistor down near the inputs, tapping the red pad was activating the other pads as well, tho nothing was very bright. I then took another look at the wiring and saw that my white leds had been disconnected from the output (they're just temporarily hooked up right now until I figure out a solution of how to get them all hooked up properly). I reconnected the white leds, and after a single tap, all the leds would come on and the whites were pulsing on/off quickly.
I don't really know much about electronics, and I am at my wits end with this. I dont even know what else to try other than changing how the grounds are wired on the control board. I'm very close to giving up on this and scrapping the LEDs entirely, and I have no desire to spend any more money on this. Anything you can suggest to try or check would be extremely helpful.
Here is all the info that I could get together, if you need more, let me know.
Script programmed into the arduino: http://pastebin.ca/1893150
Connections inside the pad: http://img713.imageshack.us/img713/8051/p1010054b.jpg
Control board and connections: http://img15.imageshack.us/img15/1914/p1010055k.jpg
Detail of control board including soldering job: http://img231.imageshack.us/img231/5876/p1010015board.jpg
Schematic of control board: http://img249.imageshack.us/img249/1456/leds4c.jpg
The script programmed into the arduino is simple, reads the analog input, checks it against a threshold value, turns on the associated LED chain. After so many cycles of any LED being on, it turns on the white leds for about half a second. It all worked fine on the test bench when testing one pad at a time, but now with everything hooked up the white is not turning on as often as it should be, and after a few seconds of hitting the piezos, all the LEDs come on. The LEDs don't come on full tho, the yellow LED still shows up yellow, not full red and green. And there is a flicker on the white leds. It all works again for a little bit after hitting the reset button, then goes on full again. I did a bit of testing, and then it seemed to work. I did a bit more work on the kit, not associated to the electronics, and it started doing it again.
I tried asking for help in an electronics IRC channel, the only thing I could get as a suggestion before they decided to leave was to move the 1M resistor from inside the pad closer to the analog inputs, and to disconnect all but one piezo to "see if the tap is just propogating along the object they're all attached to" and "leave the analogs floating". He also mentioned something about weak pull-down resistors?
After I disconnected all but one piezo, and moved a resistor down near the inputs, tapping the red pad was activating the other pads as well, tho nothing was very bright. I then took another look at the wiring and saw that my white leds had been disconnected from the output (they're just temporarily hooked up right now until I figure out a solution of how to get them all hooked up properly). I reconnected the white leds, and after a single tap, all the leds would come on and the whites were pulsing on/off quickly.
I don't really know much about electronics, and I am at my wits end with this. I dont even know what else to try other than changing how the grounds are wired on the control board. I'm very close to giving up on this and scrapping the LEDs entirely, and I have no desire to spend any more money on this. Anything you can suggest to try or check would be extremely helpful.
Here is all the info that I could get together, if you need more, let me know.
Script programmed into the arduino: http://pastebin.ca/1893150
Connections inside the pad: http://img713.imageshack.us/img713/8051/p1010054b.jpg
Control board and connections: http://img15.imageshack.us/img15/1914/p1010055k.jpg
Detail of control board including soldering job: http://img231.imageshack.us/img231/5876/p1010015board.jpg
Schematic of control board: http://img249.imageshack.us/img249/1456/leds4c.jpg