Author Topic: button action  (Read 2636 times)

0 Members and 1 Guest are viewing this topic.

Offline icoms8Topic starter

  • Full Member
  • ***
  • Posts: 57
  • Helpful? 0
button action
« on: November 05, 2008, 09:23:07 PM »
how can i make a button with 2 pin send a singanl from the button to a 74LS241 20 Pin Dip IC MCU. I would like to find a program to make the MCU count like this (press the button 1 time and make a led display show 15)(press 2 times display 30) press 3 times display 40)(press 4 times display 1) repeat press  1-3) on the 6th press add one to the 5th press

Offline Razor Concepts

  • Supreme Robot
  • *****
  • Posts: 1,856
  • Helpful? 53
    • RazorConcepts
Re: button action
« Reply #1 on: November 05, 2008, 09:29:10 PM »
Try asking in an electornics circuits forum for this one.

http://www.aaroncake.net/circuits/counter.asp

If you want to do it in the way you described, it would probably be easier to use a programmable AVR or PIC chip.

Offline ArcMan

  • Supreme Robot
  • *****
  • Posts: 519
  • Helpful? 4
  • Mmmm... Plasma
Re: button action
« Reply #2 on: November 06, 2008, 10:03:13 PM »
So true.
It's really hard to justify NOT using a uC in a project any more.  It doesn't even make sense to use a 555 timer when an 8-pin uC can do it better and with a simpler circuit.

Offline Admin

  • Administrator
  • Supreme Robot
  • *****
  • Posts: 11,704
  • Helpful? 173
    • Society of Robots
Re: button action
« Reply #3 on: November 08, 2008, 02:38:01 AM »
Quote
how can i make a button with 2 pin send a singanl from the button to a 74LS241 20 Pin Dip IC MCU
Why that particular MCU?

You can source code for it already? Its fairly simple - set up a pin as a digital input. When the button is pushed, your code will add to a variable.

 

SMF spam blocked by CleanTalk