Skip to main content
Arduino

Timeline for 8X8 LED not lightning up according to matrix assignment on a Arduino Nano

Current License: CC BY-SA 3.0

8 events
when toggle format what by license comment
Apr 13, 2017 at 12:33 history edited Community Bot
replaced http://electronics.stackexchange.com/ with https://electronics.stackexchange.com/
Sep 11, 2014 at 18:37 comment added James Waldby - jwpat7 Also, instead of having column lines sitting LOW when off and row lines sitting HIGH, I would tri-state lines not being used (ie would say digitalWrite(pin#,LOW); pinMode(pin#,INPUT); when done with a pin). See eg forum.arduino.cc Reply #2 re "Tri-state logic on IO pins?".
Sep 11, 2014 at 18:23 comment added Gerben You definitely need to add resistors. Since you need to power 8 leds with one pin you need to limit the current to each led to 5mA (40/8), or add a transistor to each row/column (depending on the type of matrix (common cathode/common anode))
Sep 10, 2014 at 20:04 history edited James Waldby - jwpat7 CC BY-SA 3.0
added 84 characters in body
Sep 10, 2014 at 20:01 comment added James Waldby - jwpat7 Erebus, the intent was to have 1 light on at a time, but I noticed I didn't initialize the pins. I've added two digitalWrite() statements in setup(). (All the pins would have been initialized anyway after the first pass thru loop() so it might not make any difference.)
Sep 10, 2014 at 19:58 history edited James Waldby - jwpat7 CC BY-SA 3.0
added 84 characters in body
Sep 10, 2014 at 16:06 comment added Erebus Thanks for the inputs jwpat7. I really appreciate it. The image [][] array was set to 0s just to show how I set it up. However, I would have put 1's in the array if I wanted to run the LED board. So sorry for not showing those other arrays. I think you might be right in that the problem I'm having might be because of wiring on the board. I copied and ran your example code, however there's always two LEDs ON as it goes through the array. It should have just shown one LED at a time according to your code right? Otherwise, it must be the wiring.
Sep 10, 2014 at 6:04 history answered James Waldby - jwpat7 CC BY-SA 3.0

AltStyle によって変換されたページ (->オリジナル) /