Electronic Faucet Sensor and Controller
Created: Jul 07, 2016
No description available.
This reference design features the TSSP4056 IR sensor module designed for presence and fast proximity sensing applications. The TSSP4056 provides a LOW output when it detects a 56kHz infrared burst at 940nm. It can be easily interfaced with a microcontroller. The device can detect infrared bursts up to 2m for presence and proximity sensing applications. It can operate from a power supply ranging from 2.5V to 5.5V with a 5mA supply current.
In this design, the TSSP4056 is used to detect the presence of a hand to control the mechanism of an electronic faucet. The circuit is made up of an IR emitter, IR sensor, microcontroller, solenoid valve, optocoupler and a transistorized driver. The IR emitter is placed beside the TSSP4056 IR sensor with a few distances from each other. If a hand reflects the infrared bursts emitted by the IR emitter to the TSSP4056 IR sensor, the IR sensor output pulls the PB0 pin of the ATmega328P-PU microcontroller to ground. This makes the PD7 pin of the microcontroller output a HIGH signal and activates the solenoid valve to let the water flow from the faucet.
The IR emitter, IR sensor, and the microcontroller operate from a 5V power supply. The optocoupler, transistorized driver, and the solenoid valve require a 12V power supply. The 12V power supply should be able to supply enough current for the solenoid valve to open. This reference design is just a simple application in which the TSSP4056 IR sensor can be used. The TSSP4056 IR sensor can also be used in applications such as vending machine fall detection, security and pet gates, person or object vicinity activation, etc.