Tell me more ×
Electrical Engineering Stack Exchange is a question and answer site for electronics and electrical engineering professionals, students, and enthusiasts. It's 100% free, no registration required.

so now I'm building

enter image description here

this is a follow on from my previous posts. If this is first time reading.

I am trying to do-

press switch for activation first light comes on pre programmed in 1.5secs then second led after 1.5 secs then 3rd after 1 sec etc, then at last led, 1st lap led stays on, then rotation again, 2nd lap led etc. ends when 3rd lap light comes on notified by piezo alarm In between rotations at random, a speed slower or faster of 1 second is chosen by microcontroller notified by the fast/slower led.

Please tell me now what components I will need (with model numbers) and draw them into the diagram so I can replicate on my breadboard. I was also told a 555 would be useful but don't know what type.

I will be using

  • 3v power cr2032
  • 16 leds SMD PLCC-6(5050) LED
  • 1 9.5mm piezo
  • 1 switch standard
  • 1 ATMEL AT89C2051-24PU (DIP-20) microcontroller

this is a reply from a previous post which seems most logical (:

You may do your work with just one microcontroller, but you need multiplexing technique for this, as your described cntroller has 15 I/Os and you are interfacing 17 LEDs, 1 push button switch and 1 buzzer.

For Buzzer one output is required. For Push button one input is required. For 3 rotation LEDs and 2 Speed LEDs you need 5 outputs For 12 LEDs you may connect all 12 LEDs in 4x3 format, 12 LEDs in 4 rows and 3 coloums, which consumed 7 outputs.

So, Total 14 I/Os are consumed, 1 is still free.

Make one module for Timer function and one for switch and buzzer funcion.

ONE Timer interrupt function, where you are driving all LEDs.

One main function is obviously required for running continously. In this MAIN function, you have to read switch function first than start timer by sending timer function a value. On every timer interrupt drive LEDs as you want. and than increment or decrement timer value for LED Visual change.

share|improve this question
Asking for us to go through a diagram and tell you exactly what chips you should have for doing a project is extremely narrow in whom it will help. How about instead you ask about each section of the project you get stuck on and we can help you learn. – Kortuk Aug 5 '12 at 21:46

closed as too localized by Kortuk Aug 5 '12 at 21:45

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, see the FAQ.

Browse other questions tagged or ask your own question.