Hi there, I am trying to troubleshoot a board design for a touch sensitive toy I am developing based on Atmega8 with the internal osc configuration. It uses 10 super bright white LEDs which sink 20ma each, all of them connected with a respective 68r resistor and in series on pin 8. I have an 8ohm 0.3w speaker connected to a 100r resistor then to a BC337 (single transistor amp configuration, other leads go to +5v and GND) then to pin 9. The capacitive sensor is connected to pins 4 and 2 with a 10M ohm resistor inbetween the same as in the capsense library example. The code works fine, and I thought 1A usb adaptor would be fine for this, and it was for a little, but the project seems very unstable and I saw a spark on the power outlet.
Am I frying some electrons here?
Should I split the leds into several pins or this would not help me at all?
What should I look for, I mean, what kind of question should I ask to google so I can figure out what's heppening?
Thank's a bunch, keep hacking stuff.