HomeEngineering Projects For YouA 2-Button Selector For 16 Appliances

A 2-Button Selector For 16 Appliances

efy test

Need to control multiple appliances but avoid having a switch for each? Here’s a ‘low’ complexity circuit which will take about ‘6 hours’ to build and cost you less than ₹1100. You will end up with a 2-push button controller for managing up to 16 appliances!

How do you choose one appliance out of many without a separate switch for each? This project does it with just two push buttons: one to step up through the channels and another to step down. A CD4029 up/down counter keeps track of the selected channel, and a 74LS154 4-to-16 line decoder turns the count into one active output, with four light-emitting diodes (LEDs) showing the selected channel in binary. A CD4093 quad NAND Schmitt-trigger IC gives clean button pulses, while BC557 transistors drive 16 individual 5V relays, so the chosen 230V appliance switches on with the low-voltage electronics safely isolated from the mains. It uses only common logic ICs and no microcontroller, which makes it a compact, low-cost introduction to counters, decoders, and relay switching. Fig. 2 shows the author’s breadboard prototype.

Fig. 1: AI-generated picture of the enclosure
Fig. 2: Author’s breadboard prototype

What will you learn?

  • How to build a multi-channel digital control circuit using logic ICs, push buttons, counters, decoders, transistors, and relays.
  • How a Schmitt-trigger NAND gate removes switch bounce and gives one clean pulse per button press.
  • How a 4-bit binary count is converted into 16 individual outputs by a decoder.
  • How active-low outputs drive positive-negative-positive (PNP) transistors to energise relays.
  • How a 5V electronic circuit can safely switch 230V AC appliances through relay isolation.

How it works

The circuit has two main units: the control unit and the relay/appliance switching unit. The circuit diagram is shown in Fig. 3.

Fig. 3: Circuit diagram

EFY Note. Fig. 3 shows only two appliance channels (APPL1 and APPL16). The remaining channels, APPL2 to APPL15, with their relays (RL2-RL15) and transistors (T2-T15), are identical and are not shown.

Control unit

This part is built around IC1 (CD4093), IC2 (CD4029) and IC3 (74LS154). Switches S1 (increment) and S2 (decrement) are used to select the required appliance. Resistors R2 and R3 set the required logic levels at the inputs. When either push-to-on switch is pressed, its signal goes to the Schmitt-trigger NAND gates IC1A and IC1B.

The Schmitt-trigger gates remove the unwanted transitions caused by mechanical contact bounce, so each press produces one clean logic pulse instead of several false ones. The remaining gates, IC1C and IC1D, together with C1 and R4, provide a continuous pulse and make sure the counter triggers reliably.

The clean pulses go to IC2 (CD4029), which is configured as an up/down counter. Pressing S1 increases the count by one, and pressing S2 decreases it by one. The four counter outputs are the selected channel in binary form. Four bits represent 16 states (S0 to S15), so up to 16 channels can be selected.

The 4-bit count is fed to the address inputs (A0 to A3) of IC3, the 74LS154 decoder. The decoder converts the count into one of 16 individual outputs, AP1 to AP16, which are active-low. As the counter changes, the decoder selects AP1, AP2, AP3, and so on up to AP16. For example, the count 0011 selects AP4, and pin 4 of IC3 goes low. LED2 to LED5 show the binary count so you can see which channel is selected (see the table).

Bill of materials
ReferenceComponentValue/TypeQuantityCost (₹)
IC1 (IC1A-IC1D)Quad 2-input NAND Schmitt triggerCD4093133
IC2Presettable up/down counterCD4029143
IC34-line-to-16-line decoder/demultiplexer74LS1541120
T1-T16PNP transistorBC5571629
RL1-RL16Relay5V SPDT16640
LED1-LED5LED5mm5








Miscellaneous (~235)
D1-D16Rectifier diode1N400716
R1-R3, R9-R24Resistor1kΩ, ¼W, 5%19
R4Resistor330kΩ, ¼W, 5%1
R5-R8Resistor2.2kΩ, ¼W, 5%4
C1Electrolytic capacitor1µF, 16V1
C2, C3Ceramic disc capacitor0.33µF2
S1, S2SwitchPush-to-on2
S3, S4SwitchOn/off2
J1Connector2-pin1
CON1-CON17Connector2-pin17
–Jumper wires–As needed
APPL1-APPL16Appliance230V AC, with 2-pin connector16Not included
–Power supply5V adaptor1Not included
Estimated total1100
Table A
Output status of decoder LEDs
ApplianceDecoder Output
(A3 A2 A1 A0)
ConnectTransistor/RelayAppliance on
AP10000AP1 to AP1′T1 ON, RL1 energisedAPPL1
AP20001AP2 to AP2′T2 ON, RL2 energisedAPPL2
AP30010AP3 to AP3′T3 ON, RL3 energisedAPPL3
AP40011AP4 to AP4′T4 ON, RL4 energisedAPPL4
AP50100AP5 to AP5′T5 ON, RL5 energisedAPPL5
AP60101AP6 to AP6′T6 ON, RL6 energisedAPPL6
AP70110AP7 to AP7′T7 ON, RL7 energisedAPPL7
AP80111AP8 to AP8′T8 ON, RL8 energisedAPPL8
AP91000AP9 to AP9′T9 ON, RL9 energisedAPPL9
AP101001AP10 to AP10′T10 ON, RL10 energisedAPPL10
AP111010AP11 to AP11′T11 ON, RL11 energisedAPPL11
AP121011AP12 to AP12′T12 ON, RL12 energisedAPPL12
AP131100AP13 to AP13′T13 ON, RL13 energisedAPPL13
AP141101AP14 to AP14′T14 ON, RL14 energisedAPPL14
AP151110AP15 to AP15′T15 ON, RL15 energisedAPPL15
AP161111AP16 to AP16′T16 ON, RL16 energisedAPPL16
Table B

Note: Always connect 5V to 5V′ and GND to GND′. Use switches S3 and S4 to turn the appliances on or off.

Relay and appliance switching unit

This part uses 16 BC557 transistors (T1-T16) as driver stages, 16 SPDT relays (RL1-RL16) and 16 flyback diodes (D1-D16). Each decoder output drives its own transistor, which energises its 5V relay. A 1N4007 diode across each relay coil protects the transistor from the voltage spike produced when the relay switches off. The relay contacts isolate the 5V control circuit from the 230V AC load, and each relay can switch its appliance within the relay’s rated capacity.

Using S1 and S2, you select one appliance at a time, and LED2 to LED5 indicate the selection. The table lists the corresponding output status.

Construction

Assemble the circuit on either a custom-designed PCB or a general-purpose PCB. Connect terminals AP1 through AP16 of the control unit to the corresponding AP1’ through AP16’ connections on the relay and appliance units. Ensure you also connect the common 5V and GND lines. Once assembly is complete, house the components in the recommended enclosure and power on the system for testing.

Testing

EFY note. Before connecting any 230V AC load, test the circuit with 5V DC only.

  1. Check that the 5V supply voltage is correct and that there is no short circuit.
  2. Power on the circuit and check that the control section works.
  3. Keep S3 and S4 off.
  4. Press S1 and S2 and check that the LEDs count up and down correctly.
  5. Check that LED2 to LED5 show the selected channel (refer to the table).

For example, to enable APPL16:

  1. Power the circuit with 5V DC.
  2. Press S1 (up) or S2 (down) until LED2 to LED5 all glow, indicating 1111.
  3. Connect AP16 to AP16′, 5V to 5V′ and GND to GND′, and connect APPL16 to CON16.
  4. Connect the 230V AC supply to CON17.
  5. Switch S3 and S4 on. This selects output S15 of IC3, which corresponds to APPL16.
  6. IC3 pulls its S15 output (pin 17) low, which turns T16 on and energises RL16.
  7. The relay contacts connect AP16 to AP16′ and switch APPL16 on.
  8. To switch APPL16 off, turn S3 or S4 off. S4 can be used to switch off any appliance at any time.

Safety note

The 230V AC section is hazardous. Use proper insulation, protection, rated components, a secure enclosure, and earthing. Mains wiring and testing must be done by a qualified person.

Troubleshooting

If a channel does not work, check the 5V supply, IC orientation, push-button connections, and the wiring around the counter and decoder. Also inspect the BC557 transistors, relay coils, flyback diodes, and indicator LEDs. Test each channel individually and check that the counter and decoder outputs change correctly.

Applications

This circuit can be adapted for lab equipment control, demonstration panels, and digital electronics teaching projects.


S.C. Dwivedi is an electronics enthusiast and circuit designer at EFY

Loading form…
Suresh Dwivedi
Suresh Dwivedi
I’m a Senior Testing Engineer with around 16 years of experience in both circuit testing and circuit designer as well as PCB designer. I have a Diploma in electronics from IERT and graduate from Kanpur University.

SHARE YOUR THOUGHTS & COMMENTS

Latest DIY Projects

Truly Innovative Electronics

Electronics News

Electronics Components

Electronics Jobs