EveryCircuit
Contact
Reviews
Home
faceblast
modified 5 years ago

Connect LEDs to Arduino

5
1
290
03:38:35
For @ShortCircuit Example on how I'd wire up leds to the arduino. Blue goes to pin 2, green and orange to digital out pins. The logic gates in this circuit just represent your programme logic for illustration only. Make sure there is a resistor between the switch and the arduino to divert current away from the chip itself. Drive the LEDs using transistors, don't sink/source current through your arduino. 100mA Transistors are a few cents each, arduino is much more expensive to replace. Programming: http://arduino.cc/en/Tutorial/DigitalReadSerial http://arduino.cc/en/Tutorial/Blink
published 11 years ago
ShortCircuit
11 years ago
Thanks for the help, i skimmed through the examples and worked out i missed 1 "=" sign in the buttonState portion

EveryCircuit is an easy to use, highly interactive circuit simulator and schematic capture tool. Real-time circuit simulation, interactivity, and dynamic visualization make it a must have application for professionals and academia. EveryCircuit user community has collaboratively created the largest searchable library of circuit designs. EveryCircuit app runs online in popular browsers and on mobile phones and tablets, enabling you to capture design ideas and learn electronics on the go.

Copyright © 2025 by MuseMaze, Inc.     Terms of use     Privacy policy