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

8 Channel software controlled for PC fan
Metal Locator Circuit
Field-programmable Operational Transresistance Amplifier using Floating-gate MOSFETs
tone generator circuit
4017 led pattern flasher
Transistor tester circuit
MC34017A Telephone Tone Ringer Bipolar Linear/I2L
Record audio with the MSP430 microcontroller
Phantom powered FET preamp cable with output buffer
Methods of frequency modulation
Single-phase double-winding motor driving
Watermelon raw and cooked discriminating circuit