Switch Relay using pic-microcontroller

INTRODUCTION:

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

SUMMARY OF IMPACT:

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

TECHNICAL DESCRIPTION:

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

About The Author

Ibrar Ayyub

I am an experienced technical writer with a Master's degree in computer science from BZU Multan University. I have written for various industries, mainly home automation, and engineering. I have a clear and simple writing style and am skilled in using infographics and diagrams. I am a great researcher and is able to present information in a well-organized and logical manner.