I am currently a first time Arduino user. I decided to get one and start prototyping basic types of circuits.

I have built various basic circuits with the Arduino Uno prototype board and it worked completely fine. I am using the Arduino board to source power to my circuit (5V). However, after building the following circuit, everything stopped working:


simulate this circuit – Schematic created using CircuitLab

I don't get output from any of the Arduino pins and I cannot upload programs to the board. The yellow LED still blinks, and the green power LED remains green and active.

I cannot figure out how I managed to burn the board. The current is around 22.72mA, which is pretty far of the 40mA absolute rating.

closed as off-topic by Juraj, MichaelT, esoterik, VE7JRO Jul 3 at 17:32

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "This question does not appear to be about Arduino, within the scope defined in the help center." – Juraj, MichaelT, esoterik, VE7JRO
If this question can be reworded to fit the rules in the help center, please edit the question.

  • 5
    I don't see an Arduino in that circuit diagram. – Nick Gammon Jun 4 at 10:24
  • Hi, the Arduino board is powering the circuit above. The 5V is being sourced from the Arduino board. – The Coding Guy Jun 4 at 10:40
  • 1
    Did you measure or calculate the 22.72 mA? If not, measure it (maybe the resistor is working) 22.72 mA is just a bit above recommended (20 mA), but I doubt it should give a problem. – Michel Keijzers Jun 4 at 10:56
  • 1
    Check out this tutorial for how to connect a 7 segment led to arduino. You will note that it says (about 1/3 of the way down): "Single digit seven segment displays typically have 10 pins. Two pins connect to ground, and the other 8 connect to each of the segments." – GMc Jun 4 at 22:56
  • 1
    I think the whole schematic would help. You are right that, as shown, even with a direct short through the LEDs, that would only draw 22 mA from the power rail which it should easily cope with. I don't see how the Arduino is being used here, and that undisclosed information might be germane to your problem. Are you using manual switches here? Why is the Arduino even involved in this design? – Nick Gammon Jun 5 at 11:11

You need to have a current limiting resistor for each of the segments. Sharing one resistor between them all is a very bad idea - see Why exactly can't a single resistor be used for many parallel LEDs?.

I would hazard a guess that you've drawn too much current, or in your case tried to sink too much.

Also, it would (probably) be better to use individual data pins, not PWM pins, to turn on each segment, rather than connecting all of the segments to just one pin. It just seems a bit odd to do it that way.


The schematic you have drawn is completely safe to connect to an Arduino PWM pin. It may not be an optimal choice (closing multiple switches will change the brightness of segments), but it's not dangerous. As you said yourself, the current is limited to a safe value even if there's a dead short in the 7-segment display.

Typically, you burn your board when you connect/disconnect stuff while your Arduino is powered (because intermediate circuits may be unsafe even if the final result is OK), or when you built a circuit which is different from what you think you have built.

Not the answer you're looking for? Browse other questions tagged or ask your own question.