love some advice on microprocessors

Need help with a project? Trying to find a component? Post any general technical questions here.
piratepaul
Posts: 432
Joined: Mon May 20, 2013 2:45 pm

Re: love some advice on microprocessors

Post by piratepaul » Thu Sep 10, 2015 4:07 pm

All you need is 156 switches, 156 resistors and a power supply.
If you want them to switch automatically, flash and chase etc it gets more complicated.
You can set up a counter to count to 156 and switch with transistors for chasing and paturns, how complex do you want switching to be?

Tar&stuff.

piratepaul
Posts: 432
Joined: Mon May 20, 2013 2:45 pm

Re: love some advice on microprocessors

Post by piratepaul » Fri Sep 11, 2015 9:10 am

You could count to 4096 and have 4096 combinations of lights in a sequence on 12 wires.
I don't spose that helps unless you read the book.

Tar&stuff.

piratepaul
Posts: 432
Joined: Mon May 20, 2013 2:45 pm

Re: love some advice on microprocessors

Post by piratepaul » Fri Sep 11, 2015 1:25 pm

You could count to say just 4.

00
01
10
11
That's 0 to 3, there are 4 logic states, each could switch any combination of LEDs, that's a 2 wire system, 3 wires gives 2^3 (2 to the power of 3) 12 wire input gives 2^12 =4096 combinations. The combination for any number in a count can be encoded and decoded to switch any number of LEDs, just as it can be made to light any number on 7 set displays.
How complex do you want, do you want it to change or just switch on?
If you look up 7 segment display and learn to light the segments, what you are trying to do is similar except you need to switch transistors because the LEDs draw 700mA.

Tar&stuff.

piratepaul
Posts: 432
Joined: Mon May 20, 2013 2:45 pm

Re: love some advice on microprocessors

Post by piratepaul » Sun Sep 13, 2015 10:28 am

You could perhaps... give each LED a resistor, a transistor, a flipflop or latch, and a combinational logic circuit so ....

When the LED is on it stays on until it is switched off, each combinational circuit is an address which could be accessed via a simple control circuit.

You could add sound to light by pulsing the flipflop clocks via transistors base being fed from the speaker.

Tar&stuff.

piratepaul
Posts: 432
Joined: Mon May 20, 2013 2:45 pm

Re: love some advice on microprocessors

Post by piratepaul » Sun Sep 13, 2015 10:48 am

It would be easier if you had 128 or 256 LEDs.

Tar&stuff.

Post Reply