Hi,
pls, can anyone help me to achive a "neon effect" with 6 or 8 SMD led-s and 12F629 or 16F84 in PBP.
Example is in attach.
For sequence of lighting individual LED can be used numbers stored in EEPROM instead of random generated.
Thanks,
Andrej
Hi,
pls, can anyone help me to achive a "neon effect" with 6 or 8 SMD led-s and 12F629 or 16F84 in PBP.
Example is in attach.
For sequence of lighting individual LED can be used numbers stored in EEPROM instead of random generated.
Thanks,
Andrej
You could use 8 outputs to drive the smd leds. Have a table of bytes to write as the 'effect' you want. Then, sit in a loop doing this
counter = 0
loop:
counter = counter+1
if counter > tablesize then counter = 0
read byte from table[counter]
write byte to the port
pause for as long as you want
goto loop
This should get you started.
Jerson
Thanks,
I will try some, but how can I randomize a sequence of lighting according a numbers stored in EEPROM and finally light up all LED-s ?
Andrej
your table could contain the lighting sequence which you want to produce
example
00011001 - light 3 leds
00100101 - light another 3 leds
11100011 - another pattern
Do this and fill your table with whatever you want.
Jerson
His projects don't use a PIC, but you might take a look at:
http://www.hometown.aol.com/tractionfan/projects.htm
You can make a PIC emulate the twisted ring counter he uses, or do it with random number generation, all without EEPROM tables. If you want some code examples of both approaches, I can send them to you.
Russ
N0EVC, xWB6ONT, xWN6ONT
"Easy to use" is easy to say.
Bookmarks