Switch Relay using pic-microcontroller


The Switch Relay was designed to give clients control over two different switch-activated devices using only one switch. Pressing and releasing the switch will directly control the first device. However, when the client presses the switch for a minimum duration of time, the device toggles its state so that the switch now controls a second device. A knob allows the client to adjust the minimum pressing duration to 0.5 to 8 secs, in 1 sec increments. Subsequent switch presses that are longer than the minimum duration will toggle control of the Switch Relay between the two devices. An LED readout shows which device is being controlled.

Switch Relay


Allowing operation of multiple devices with one switch increases the independence of the user. The use of only one switch to operate a pair of devices also minimizes confusion for the user.

Because of the adjustable “hold time,” devices with different activation times can be operated; therefore, almost any switch activated device can be controlled with the Switch Relay. The coordinator of the project states that “the device will enable people with limited physical ability to independently operate multiple devices.”

Switch Relay


The Switch Relay circuit is based on a PIC microcontroller (Microchip, Inc., Chandler AZ), which detects the activation of the user’s switch. The PIC can determine the amount of time the switch is held, and then either change devices or continue to operate the current device. Latching SPDT relay switches (Omron G6EK-134P) were used to electronically isolate the output devices from each other and the input switch. The use of latching switches allowed for reduced power consumption, because they require a pulse for activation rather than a continuously applied voltage. Transistors (2N222A) were used to apply sufficient current to the relays.


For more detail: Switch Relay

Current Project / Post can also be found using:

  • PIC chip relay control
  • using a switch to on multiple relay using pic16f877a
  • microcontrolar ralay swch progurms
  • pic program for relay control

Leave a Comment

= 5 + 3

Read previous post:
6 GHz frequency modulated radar

Introduction I've for some time now wanted to do more RF design. Although I have taken some RF design courses,...

Scroll to top