Internosis - knowledge management,ecommerce and project consulting
*Home>>>Project Planning

How can I build a digital circuit with a row of LED lights that light in sequence?


I am planning to build a clock with a row of 60 green LEDs and another row of 12 blue LEDs. One of the green ones will light to show the minute and one of the blue ones will light to show the hour. On the final project they will be placed in a circle, but on a breadboard I will have to place them in rows. How can I build this without having a massive number of logic gates?

You need at least as many logic gates as LEDs.

The logic for the green LEDs can be as simple as a logical AND of the previous LED latched ouptut and a timer that counts off a minute. The first green LED is just a latched output of the minute timer. The green latches get reset a minute after the last green LED is lit. The first blue LED is latched at the same time. Etc, etc, etc.

Use Flip-Flops. D is easiest to use, R-S, J-K, and T flops are also not too bad. Make a state machine, Mealy or Moore, whichever you prefer. You can build a 4-bit counter, that counts how many times the 60th LED is lit (4 bits = 16 possible states, only 12 are used). Also, a 5-bit (5 bits = 64 possible states. You need only 60) counter that increments after x-number of clock pulses(In order to build your clock, you'll need a clock signal that is a set frequency. i.e. if you had a 10 Hz clock signal, your 5 bit counter would increment after 600 clock pulses.) Now that I think of it, doing this with logic gates kinda sucks. If I were you, I'd invest in a microcontroller that can store stuff in memory for you, and can do I/O. That'd be your best bet.

Here's a 72 LED clock circuit. (scroll down a ways).
http://ourworld.compuserve.com/homepages...

I would use a PIC nanoWatt 2-5V microcontroller. Their outputs can drive 25mA, enough for most reasonable diodes. Arrange the LED's in banks: for hours, 3 banks of 4, for 7 I/O's total. For minutes, 6 banks of 10, for 16 lines total. Pick one with an A/D converter to measure the input voltage, use it to shut down outputs when power lost. Use 3V lithium button cell on with a diode for backup. They have onboard oscillator (use 32kHz) and prescaller for real time clock, and with a 40 pin device for $5, you'll have enough extra inputs for switches to change minutes/hours/seconds.

Only problem, you need a programmer. The PicKit 2 for $50 would do nicely. You may be able to pick something used on ebay for less.

Browse link for more...

The microcontroller is a good idea. Also, how about a CPLD? You can get a kit from Xilinx for under 100 bucks. if you are lucky you might be able to dig up a free demo board from companys like xilinx, or possibly try ebay.

Tags
  Project Training   Project Team   Project Control   Project Risk   Project Tools   Project Software   Project Planning   Project Consulting   Project Manager   Project Management   Microsoft Project   Knowledge Solution
Related information
  • Will ice candies melt easily even if you put in styrofoam box?

    specifics are impossible, it depends on the temperature outside the box, how thick the box is, what the temperature was once you put them in the box and closed the lid you can't put those ...

  • How do I find out what home remodeling and building projects require a building permit in Savannah Georgia

    Any remodeling that requires the relocation of plumbing, electrical, structural, or HVAC has to have a permit. If you are just taking of some tile and replacing it or something similar then you don...

  • Myrtle Beach renourishment project?

    See this weeks addition of the Myrtle Beach Herald ...

  • How can ice (crystal meth) be taken?

    You can take it pretty much any way you like. It depends on how graphic you want this play to be! From least to most dramatic it goes: Eat/drink, snort, smoke, inject or for a real audience react...

  • Should I buy Breaking Dawn or not?

    If you like jacob, then don't read it make up your own ending its truly dreadful

    ...
  • What can I do to stop my little cousin from getting pregnant at 18 when she wants to? How do I get through to

    Unfortunately she is almost an adult and this is her choice. The only thing you can do is feel very sorry for that poor kid. I have a similar cousin who had her first child at 17 and has all sorts ...

  • I'm going to create a program for on line voting but i don't know how to start, what software should i suse

    Don't spend days to create one, you can have free polls on this site: ...

  • How do I make Algebra 2 more interesting?

    i didnt give them tests but more formative assessment pieces along the way games- loo cards for exponent work matchign bingo- but at the harder level matchign graphs with asymptotes spee...

  •  

    Categories--Copyright/IP Policy--Contact Webmaster