How to make at home Automated Washroom Light Using IR Sensors?
Creating an automated washroom light using an IR (infrared) sensor is a fun and practical DIY project. Below are the steps and components needed to make one at home.
Components Required
- IR Sensor Module (usually comes with a built-in IR emitter and receiver)
- Relay Module (to control the high-power light)
- Microcontroller (optional, like Arduino, for advanced features)
- Light Bulb (any type, but ensure compatibility with the relay)
- Power Supply (to power the sensor and relay)
- Connecting Wires
- Breadboard or Soldering Kit (for connections)
- Resistors (as required by the sensor and relay)
- Enclosure Box (to house the circuit for safety)
How It Works
The IR sensor detects motion or the presence of a person by sensing reflected IR light. When motion is detected:
- The IR sensor sends a signal to the relay.
- The relay, acting as a switch, turns the light ON.
- The light turns OFF after a set duration of no motion (based on sensor settings).
Steps to Make the Circuit
Step 1: Setup the IR Sensor
- Connect the VCC and GND pins of the IR sensor to the power supply (e.g., 5V).
- Connect the OUT pin of the IR sensor to the relay’s input (IN pin) or directly to a microcontroller input pin if used.
Step 2: Connect the Relay
- Connect the VCC and GND of the relay module to the power supply.
- Connect the IN pin of the relay module to the output pin of the IR sensor.
- Wire the relay’s common (COM) and normally open (NO) pins to the light and mains supply:
- COM: Connect to the live wire of the power source.
- NO: Connect to the live terminal of the light.
- Neutral goes directly to the light.
Step 3: Test the Circuit
- Ensure all connections are secure.
- Power the system. When the IR sensor detects motion, it should send a signal to the relay to turn the light ON.
Step 4: Adjust the IR Sensor
- Use the potentiometer on the IR sensor to adjust the sensitivity and delay time (if supported).
Step 5: Enclose the Circuit
- Place the circuit in an enclosure box to prevent exposure to moisture or physical damage.
Optional Features
- Microcontroller (e.g., Arduino)
- Add a microcontroller to fine-tune the light timing or integrate with a smart home system.
- Daylight Sensor
- Add a photoresistor to prevent the light from turning ON during the day.
- Indicator LED
- Include an LED to indicate when the sensor is active.
Safety Tips
- Always disconnect the power supply while making connections.
- Use insulated wires and proper enclosures to avoid electric shocks.
- Ensure the light and relay are compatible with your mains voltage (e.g., 110V or 220V).