Go Down

Topic: Controller for 140+ LEDs AND Arduino hardware/sofware simulators. (Read 1 time) previous topic - next topic

The_cerb

Dec 08, 2012, 09:49 pm Last Edit: Dec 08, 2012, 10:40 pm by The_cerb Reason: 1
Im new to Arduino and was wondering if it could control 100 - 200 different LEDs individually . Ive seen arduinos that can control 8 leds  but nothing as big as i was thinking.

Also are there any programs that will simulate the arduino software and/or hardware, where i can maybe draw out plans and programming to test without having the physical parts.



Thanks for all the help in advance.

Boffin1

Welcome
Yes you can control almost as many LEDs as you wish, you can use shift registers ( 595s ), run through the examples, and look at sites such as tronixstuff to learn the basics.
With my mobile phone I can call people and talk to them -  how smart can you get ?

The_cerb

thanks for the fast response and info i will read through tronixstuff and post if i have any other questions.





Thanks again

Nick Gammon

Example of controlling 32 LEDs:



http://www.gammon.com.au/forum/?id=11518

You could do more by adding more shift registers in sequence.
Please post technical questions on the forum, not by personal message. Thanks!

More info:
http://www.gammon.com.au/electronics

The_cerb

#4
Dec 09, 2012, 01:24 am Last Edit: Dec 09, 2012, 01:34 am by The_cerb Reason: 1

Example of controlling 32 LEDs:


http://www.gammon.com.au/forum/?id=11518

You could do more by adding more shift registers in sequence.



Could this be done with another shift register with more outputs while using the same amount of power?

also i saw that you have done this with your bare bones board with 3 AA batteries, and was wondering how long the battery life was with it flashing and constantly on.

thanks for the help.

Nick Gammon

The power you have to worry about is the LEDs, not the shift register. You can probably get ones with more outputs, but bear in mind that 40 pins is generally the max for non SMD devices.

Quote
also i saw that you have done this with your bare bones board with 3 AA batteries, and was wondering how long the battery life was with it flashing and constantly on.


Not long, I imagine. That was a demo. If I wanted to flash dozens of LEDs I would be running off mains power.
Please post technical questions on the forum, not by personal message. Thanks!

More info:
http://www.gammon.com.au/electronics

The_cerb

Would Arduino be the most cost efficient way to power 132 leds?


Boffin1

Quote
Would Arduino be the most cost efficient way to power 132 leds?


You can't power them from the Arduino ( unless they timeshare the 40mA available, which would make them dim )

You can power them via some sort of driver, a shift register or a multiples driver, which handles the current switching.
With my mobile phone I can call people and talk to them -  how smart can you get ?

CrossRoads

Could also use a couple of MAX7219s, each one controlling up to 64 LEDs. MAX7219 handles the multiplexing of the LEDs for you, you need only perform a write to one of 8 registers to control 8 LEDs in a column.
$1.25 each at taydaelectronics.com
http://datasheets.maximintegrated.com/en/ds/MAX7219-MAX7221.pdf
Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

The_cerb


Grumpy_Mike


* would arduino be the best way to control 132 leds?

It is as good as anything else, so not the best.

Boffin1

If you are not experienced at programming, then I would say definately Arduino.
With my mobile phone I can call people and talk to them -  how smart can you get ?

CrossRoads

Here is an older Arduino controlling 4x MAX7219 to control 256 LEDs.  So there are many ways to control large #s of LEDs.
Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

The_cerb

Thanks for all the help and will look into different  shift registers to use.

Does anyone know about an emulator or simulator like Virtual bread Board that can simulate arduino programing and a bread board at the same time?

Go Up