Author Topic: Noob need help  (Read 1728 times)

0 Members and 1 Guest are viewing this topic.

Offline nasrul22Topic starter

  • Newbie
  • Posts: 1
Noob need help
« on: June 05, 2013, 09:25:52 am »
Hi sifus...I need to design a simple jig that when a button is pressed 3 times, a LED will switch ON. The jig has 2 buttons, so each button needs to be pressed 3 times and there will be an LED for each button. I am completely new in this field, therefore I need your advice on what I can use and apply (eg. microcontroller,etc.). I want to make the jig as simple and small as possible, so I'm ruling out PLCs and other similar methods that require more space.
 

Offline Rerouter

  • Super Contributor
  • ***
  • Posts: 4700
  • Country: au
  • Question Everything... Except This Statement
Re: Noob need help
« Reply #1 on: June 05, 2013, 09:33:03 am »
something like an ATtiny micro would probably suit, otherwise use 2 shift registers, tie the serial in high and connect the debounced buttons to the clock pins and on the 3rd output connect your led, so you clock it 3 times, and bam led on,

for reseting it, almost every shift register out there has a clear / reset pin,
 

Offline david77

  • Frequent Contributor
  • **
  • Posts: 934
  • Country: de
Re: Noob need help
« Reply #2 on: June 05, 2013, 09:42:58 am »
Use a CD4017 decade counter. Debounced button on the input, LED on output Q2. The counter has a reset input, connect that to Q3 and the counter resets with another push of the button. Easy.
 

Offline hlavac

  • Frequent Contributor
  • **
  • Posts: 536
  • Country: cz
Re: Noob need help
« Reply #3 on: June 05, 2013, 09:45:58 am »
Do you have power supply available?
Is your output just LEDs?
Buttons switch to ground or something else?
Do you have means to program ATtiny or Pic?
How about turning the LEDs off?

The small form factor and ease of doing a mildly complicated button stuff lend themselves to a small microcontroller.
« Last Edit: June 05, 2013, 09:54:47 am by hlavac »
Good enough is the enemy of the best.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf