Society of Robots - Robot Forum
Electronics => Electronics => Topic started by: icoms8 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
-
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.
-
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.
-
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.