Counter to preset number for different output

Status
Not open for further replies.

AnteBante

New Member
I am building a very simple thing for a show where
I want every 29th push of a button to be one output
"NO WIN / RED LIGHT" but every 30th push should
be another output "WIN - SOUND - BLUE LIGHT".

As I normally do my stuff in 12V it would be perfect
if anyone could tell me where to start looking for the
counter that I can program to send out the current
one way on every x (30th in my example) current (push on
the pushbutton).

All helpful hints would be very appreciated.
 
I'd suggest using two simultaneously-clocked 5-or-more-bit counters: one which resets at 29 and the other at 30.
You could use standard CMOS 7-bit or 14-bit binary counters. Logic gates would be needed to detect those counts to cause reset, and (presumably) to prevent both lights coming on at multiples of 29*30.
I don't see how you can do this with a single modulo-30 counter, as that would result in the lights being actuated at counts 29,30,59,60,89,90.... rather than (as you require) counts 29,30,58,60,87,90....
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…