Led light bar

Discussion in 'Electronic Projects' started by Aphayes1, Aug 12, 2017.

  1. Aphayes1

    Aphayes1

    Joined:
    Aug 12, 2017
    Messages:
    3
    Likes Received:
    0
    Hello this is my first post but i will be posting more due to upcoming projects.
    I was wondering if anyone can tell me an easy circuit for a light bar, what i want it to do is light up one bar at a time with the press of one button then go down with the press of another, the project is a startrek phaser.
    i will also be wiring in a laser module and another led but that will be the easy part ''i hope''
    I just have no idea on how to do this part of it.

    Any help would be greatly appreciated, thank you.

    This is the type.
    https://www.sparkfun.com/products/9938
     
    Aphayes1, Aug 12, 2017
    #1
    1. Advertisements

  2. Aphayes1

    dorke

    Joined:
    Jun 20, 2015
    Messages:
    2,334
    Likes Received:
    653
    A universal shift register should do the job for you.
    If you had used only 8 LEDs the 74HC299 would be a perfect choice.

    One side input is permanently shifting in "1"s ,
    the other is permanently shifting in "0".
    You will control the direction of the shift with S0,S1 lines(via switches).
    And clock the device with a low speed clock.
     
    dorke, Aug 12, 2017
    #2
    1. Advertisements

  3. Aphayes1

    Aphayes1

    Joined:
    Aug 12, 2017
    Messages:
    3
    Likes Received:
    0
    but im usding a bar as its the perfect fit and others have used these to gfive the ull effect.
     
    Aphayes1, Aug 12, 2017
    #3
  4. Aphayes1

    dorke

    Joined:
    Jun 20, 2015
    Messages:
    2,334
    Likes Received:
    653
    You can add another IC to get 10 bits
    ,not a problem.
    Would a "volume knob" instead of the switches be o.k?
     
    dorke, Aug 12, 2017
    #4
  5. Aphayes1

    Aphayes1

    Joined:
    Aug 12, 2017
    Messages:
    3
    Likes Received:
    0
    Aphayes1, Aug 12, 2017
    #5
  6. Aphayes1

    dorke

    Joined:
    Jun 20, 2015
    Messages:
    2,334
    Likes Received:
    653
    So,
    You need to cascade two 74HC299 to get 10 bits.

    That would be a nice little project for you.
    Try it and you can get some help here as well.

    If you knew some VHDL you could program a small PLA to do the all thing.
    It can be done with a uC as well,some software knowledge is needed for that.
     
    dorke, Aug 12, 2017
    #6
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.