Neon effect


Closed Thread
Results 1 to 8 of 8

Thread: Neon effect

  1. #1
    Join Date
    Jul 2007
    Posts
    5

    Default Neon effect

    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
    Attached Files Attached Files

  2. #2
    Join Date
    Nov 2005
    Location
    Bombay, India
    Posts
    947


    Did you find this post helpful? Yes | No

    Default

    Yes, are you willing to pay for this?

  3. #3
    Join Date
    Jul 2007
    Posts
    5


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Jerson View Post
    ...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

  4. #4
    Join Date
    Nov 2005
    Location
    Bombay, India
    Posts
    947


    Did you find this post helpful? Yes | No

    Default

    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

  5. #5
    Join Date
    Jul 2007
    Posts
    5


    Did you find this post helpful? Yes | No

    Default

    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

  6. #6
    Join Date
    Nov 2005
    Location
    Bombay, India
    Posts
    947


    Did you find this post helpful? Yes | No

    Default

    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

  7. #7
    Join Date
    Jul 2007
    Posts
    5


    Did you find this post helpful? Yes | No

    Default

    Thanks,

    finally found time to complete this


  8. #8
    Join Date
    Aug 2006
    Location
    Omaha, Nebraska USA
    Posts
    263


    Did you find this post helpful? Yes | No

    Default

    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.

Similar Threads

  1. Hall Effect flow meter with 16F876
    By revelator in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 10th March 2010, 20:42
  2. PWM and fade effect
    By ruijc in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 10th July 2009, 10:58
  3. Hall effect reading
    By ewandeur in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 26th November 2008, 15:49
  4. Cricket Sound Effect
    By koossa in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 15th January 2008, 09:10
  5. hall effect
    By dragons_fire in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 10th April 2007, 15:49

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts