View Full Version : Neon effect
  
andrej
- 15th July 2007, 23:12
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
Jerson
- 16th July 2007, 05:51
Yes, are you willing to pay for this?
andrej
- 16th July 2007, 11:37
...are you willing to pay for this?
No, no
I didnt mean to commercialize yours idea.
Im just hobiest in model railroading with some knowledge of PIC programming, and I want to illuminate my layout.
I did not mean a complete code, maybe a snippet for effect of one LED. 
Thanks, anyway !
Andrej
Jerson
- 16th July 2007, 11:41
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
andrej
- 17th July 2007, 00:24
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
Jerson
- 17th July 2007, 08:05
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
andrej
- 27th October 2008, 14:48
Thanks,
finally found time to complete this
:)
RussMartin
- 27th October 2008, 17:00
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.
 
Powered by vBulletin® Version 4.1.7 Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.