Go Down

Topic: LED clock... charlieplexing (Read 764 times) previous topic - next topic

jlmao

I am attempting to make a clock out of 4 rows of LEDs each row representing one of the digits on a clock and each LED in the row representing a numeric value that indicates the time.
I am using Arduino Uno and am fairly certain that charlieplexing is the only way that I could make it work.

This is the base code that I am using.
https://create.arduino.cc/projecthub/LiLShReDdeR/charlieplexing-with-arduino-5b4ade


Is this the best charlieplexing code for my situation?
and what would be the easiest way to use the delay function for this?


This is another code that I found but haven't tested it because I am pretty new to this and have a limited knowledge of coding.
http://www.instructables.com/id/Controlling-20-Leds-from-5-Arduino-pins-using-Cha/
At this point any information would be helpful.

CrossRoads

So you have 16 LEDs that you want to control from an Uno? Uno has 20 digital IO, no complicated charlie-plexing code needed. Or do you have more than 16 LEDs?
Designing & building electrical circuits for over 25 years.  Screw Shield for Mega/Due/Uno,  Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at  my website.

CrossRoads

Get yourself a MAX7219, it can control up to 64 LEDs with just simple writes to its data registers. I even offer a simple breakout board so you can wire up each LED individually with simple wirewrap wire:
http://www.crossroadsfencing.com/BobuinoRev17/
Designing & building electrical circuits for over 25 years.  Screw Shield for Mega/Due/Uno,  Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at  my website.

Go Up