Multiple switches and lights
cefn
Posts: 2
If I want to handle multiple buttons, and use button pushes from these multiple buttons to control multiple lights ( > 100 of both)
How would I go about doing this with a Stamp or other microprocessor?
I'm comfortable with the Stamp programming concepts, but presumably need some kind of co-processor to handle so many connections.
Also perhaps interrupt capabilities are required to allow 100 switches to be monitored simultaneously. I don't know if this is supported on any Stamp platform.
If anyone has a pointer to an existing project, or can suggest the hardware i need to consider, this would be very helpful.
How would I go about doing this with a Stamp or other microprocessor?
I'm comfortable with the Stamp programming concepts, but presumably need some kind of co-processor to handle so many connections.
Also perhaps interrupt capabilities are required to allow 100 switches to be monitored simultaneously. I don't know if this is supported on any Stamp platform.
If anyone has a pointer to an existing project, or can suggest the hardware i need to consider, this would be very helpful.
Comments
One thing to keep in mind is that when you read switches or drive LEDs in a matrix configuration, only one switch can be read and only one LED can be lit at a time. There is also the issue of speed. It takes a finite perriod of time to read a matrix of keys. If the timing wasn't too critical it should be doable.
Use 74HC595's to light up your LEDS.....
And use 74hc597's (or74HC165's) to read the switch states.