Hello all - thanks for taking a moment to have a read of this post - you might regret it
I've been trying to design a circuit using a 555 & CMOS logic, to perform a 2-state operation using 1 SPST switch.
A few had mentioned in the 'Projects Design/Ideas' sub-forum, that a PIC routine would be a very elegant solution.....
Try to picture a small box with 2 LED's marked A & B - it has a small push-button switch on the lid !
Here's what I want to happen and the logic behind each operation :
1/ First of all, each time the SPST switch is pressed, a 2 second monostable / timer starts running.
2/ At each switch press, LED A lights for 1 second and then extinguishes.
3/ However, if the switch is pressed TWICE within the 2 second monostable time period, LED B latches ON
4/ Subsequent slow switch presses light LED A for 1 second intervals, however LED B remains switched ON
5/ If the switch happens to be pressed again TWICE within 2 seconds, LED 2 toggles back OFF
6/ Back to 2/
My brain hurts.....
Required I/O states : Input (switch) and the outputs (A&B) are usually HIGH when inactive (all +5V)
So...... is this dooable with an 8-pin PIC12C508 etc ? - and who's up for a challenge
Thanks
I've been trying to design a circuit using a 555 & CMOS logic, to perform a 2-state operation using 1 SPST switch.
A few had mentioned in the 'Projects Design/Ideas' sub-forum, that a PIC routine would be a very elegant solution.....
Try to picture a small box with 2 LED's marked A & B - it has a small push-button switch on the lid !
Here's what I want to happen and the logic behind each operation :
1/ First of all, each time the SPST switch is pressed, a 2 second monostable / timer starts running.
2/ At each switch press, LED A lights for 1 second and then extinguishes.
3/ However, if the switch is pressed TWICE within the 2 second monostable time period, LED B latches ON
4/ Subsequent slow switch presses light LED A for 1 second intervals, however LED B remains switched ON
5/ If the switch happens to be pressed again TWICE within 2 seconds, LED 2 toggles back OFF
6/ Back to 2/
My brain hurts.....
Required I/O states : Input (switch) and the outputs (A&B) are usually HIGH when inactive (all +5V)
So...... is this dooable with an 8-pin PIC12C508 etc ? - and who's up for a challenge
Thanks