Showing posts with label touch. Show all posts
Showing posts with label touch. Show all posts

Sunday, December 22, 2013

Touch Free Timer Switch

This type of infrared proximity circuit is widely used as an electric switch where physical contact is not desired for hygiene purpose. For example, we commonly see use of infrared proximity sensors on public drinking fountains and in public washrooms. The simple circuit presented here can be operated by moving your hand in front of it. This is achieved by detecting the infrared light reflected by your hand onto a receiver device.

Fig. 1: Touch-Free Timer Switch Circuit diagram :

Touch-Free Timer Switch-Circuit diagram

Fig. 1 shows the circuit of the touch-free timer switch. It has two sections: transmitter and receiver. The IR transmitter is built around timer LMC555 (IC1), which is wired as an astable multivibrator. The multivibrator produces 38kHz pulses (at low duty cycle) that drive an infrared LED (LED1). This frequency can be tuned using a 10-kilo-ohm preset (VR1). A 220-ohm series resistor (R3) ensures that the current consumption of the IR transmitter is not out of arrangement.

The receiver section is built around IR receiver module TSOP1738 (IRX1), timer LMC555 (IC2) and a few discrete components. The TSOP1738 is an integrated miniaturised receiver for infrared remote control systems. Everything required for IR signal processing, including the PIN diode and preamplifier, are assembled on a lead frame and the epoxy package is designed as an IR filter.

When a short IR burst is received by IRX1 (as you wave your hand in front of the switch), the demodulated pulses are fed to the trigger input (pin 2) of the second LMC555 (IC2). This, in turn, triggers the monostable wired around IC2 and its output pin 3 goes high for a period determined by the 2.2-mega-ohm potentiometer and capacitor C5. This turns off the standby indicator (LED1) and transistor T1 conducts to drive the 5V relay (RL1). LED1 enables you to locate the switch in the dark. AC mains supply to the load to be switched-on is routed through the pole and normally-opened contacts of RL1 as shown in the diagram. The circuit works off regulated 5V DC.

Fig. 2: Pin configurations of TSOP1738, IR LED and BC547

Pin configurations of TSOP1738, IR LED and BC547

Fig. 2 shows the pin configurations of TSOP1738, IR LED1 and transistor BC547. Assemble the circuit on a general-purpose PCB and enclose in a small plastic cabinet. Fit IR LED1 with a reflecting hood at a recessed position on the front panel of the enclosure. The dome-shaped face of the TSOP1738 should stick out from the front panel. Fit the time-control potentiometer (VR2) in an appropriate position. Finally, fit the standby indicator LED1 inside a suitable LED holder such that it slightly protrudes from the front panel. To prevent unwanted reflection of the IR beam, the finished unit should be mounted such that it does not face a nearby wall.

 Fig. 3: Suggested enclosure


Suggested enclosure

Using high-precision linear potentiometer VR2 and capacitor C5 (100µF), the time length can be set from nearly 1 second to 120 seconds. Attach a small paper dial on the front panel of the enclosure and mark various positions of the control knob of VR2 as shown in Fig. 3. The accuracy of the timer depends mainly upon the quality (and value) of timing capacitor C5. In practice, most electrolytic capacitors are rated on the basis of minimum guaranteed value and the real value may be higher.

Source :  http://www.ecircuitslab.com/2012/08/touch-free-timer-switch-circuit.html
[Continue reading]

Tuesday, April 2, 2013

The Gentle Touch Circuit Diagram

Consumer appliances these days hardly ever have a proper mains switch. Instead, appliances are turned on and off at the touch of a button on the remote control, just like any other function. This circuit shows how a device (as long as it does not draw too high a current) can be switched on and off using a pushbutton. The approach requires that a microcontroller is already available in the circuit, and a spare input port pin and a spare output port pin are required, along with a little software. When power is applied T1 initially remains turned off. When the button is pressed the gate of T1 is taken to ground and the p-channel power MOSFET conducts. The microcontroller circuit is now supplied with power. Within a short period the microcontroller must take output PB1 high. This turns on n-channel MOSFET T1 which in turn keeps T1 turned on after the push-button is released.

Now the microcontroller must poll the state of the push-button on its input port (PB0) at regular intervals. Immediately after switch-on it will detect that the button is pressed (a low level on the input port pin), and it must wait for the button to be released. When the button is next pressed the device must switch itself of f: to do this the firmware running in the microcontroller must set the output port pin to a low level. When the button is subsequently released T1 will now turn off and the supply voltage will be removed from the circuit.

The circuit itself draws no current in the off state, and for (rechargeable) battery-powered appliances it is therefore best to put the switch before the voltage regulator. For mains-powered devices the switch can also be fitted before the voltage regulator (after the rectifier and smoothing capacitor). Since there is no mains switch there will still be a small standby current draw in this case due to the transformer. Be careful not to exceed the maximum gate-source voltage specification for T1: the IRFD9024 device suggested can withstand up to 20 V. At lower voltages R2 can be replaced by a wire link; otherwise suitable values for the voltage divider formed by R1 and R2 must be selected.

Circuit diagram:

the-gentle-touch-circuit-diagramw The Gentle Touch Circuit Diagram

The author has set up a small website for this project at http://reweb.fh-weingarten.de/elektor, which gives source code examples (which include dealing with pushbutton contact bounce) for AVR microcontrollers suitable for use with AVR Studio and GNU C. Downloads are also available at http://www.elektor.com.

Rainer Reusch - Elektor Electronics 2008

[Continue reading]