Cheap pushbutton replaces rotary switch


Posted on May 8, 2012

The problem of setting any one of four modes of a µC-operated process has a straightforward solution: Have the µC check the states of some 4 bits of a µC register or an input port and then execute one of the four predetermined subroutines according to the result. The next question is how the operator sets these 4 bits or, specifically, selects a desirable mode of operation.



One approach is to use a rotary switch (Figure 1a). This circuit does the job but is rather expensive for consumer applications. You can also reject DIP switches because even a qualified person can choose a wrong setting when using this solution. Slide sw




Leave Comment

characters left:

New Circuits

.

 


Popular Circuits

LED or bulb flickers
Ponyprog for AVR & PIC16F84
Crossfeed Headphone Amplifier
How to connect LED's directly to MAINS
CM8870 CMOS Integrated DTMF Receiver
mixer circuits
120W power amplifier circuit



Top