# Light bulb on/off with PIR sensor

# Introduction

In this project, using KiMu's Automate Advanced Kit, we are going to build a system that uses a relay switch and a PIR sensor to automatically turn on/off the light bulb based on the motion detection.

# Key skills/Learnings

  1. Problem Solving
  2. Logical Thinking
  3. Working of relay switch & PIR sensor

# List of Items

Light_bulb_on_off_with_PIR_sensor_list_of_items

# Assemble the System

Light_bulb_on_off_with_PIR_sensor

Note: All activities which involve main voltages (voltage greater than 50V) should be performed under adult supervision.

Step 1: Connect the light bulb to the power plug with a wire(black).
Step 2: Connect one end of the relay to the light bulb with wire(red) and the otherend to the power plug.
Step 3: Connect PIR sensor to U2 connector of the sensor board.
Step 4: For the connection of Relay, Sensor board and power refer to below image.
control_unit_connections

# Programming with Automate App

# Configuring the app - Remote controls setup

The light can be switched ON/OFF based on a motion in the room using a PIR sensor.

lightwithpirsensor_RemotePage

STEP 1- OFF
STEP 2 - ON


Note: Automate can be controlled using a cable by selecting the cable option instead of Wi-Fi under the remote option.

lightwithpirsensor_appstep_1 lightwithpirsensor_appstep_1

* To find voltage to be set in the automate app & to know more on PIR sensor, see Working and Calibration of PIR Sensor


To upload the program, see How to upload the program to the Control Unit with Automate App?

The light bulb can be switched on/off based on the motion, after uploading this program.

# More Information

For more details, see FAQs on Automate Kit.