Arduino PIR motion sensor Switch

Introducing Robotshapers: Revolutionizing Motion Sensor Switches Welcome to Robotshapers, the leading innovator in motion sensor switch technology. At Robotshapers.com, we are dedicated to creating cutting-edge solutions for a smarter, more efficient world.

Arduino PIR motion sensor Switch

Our Arduino PIR motion sensor switch is a game-changer. With its advanced components and seamless integration, it offers unparalleled convenience, energy efficiency, and enhanced safety.

Designed for both residential and commercial applications, our motion sensor switches are perfect for hands-free operation in spaces like homes, bathrooms, basements, and garages. They automatically control lighting and electrical devices based on occupancy, saving energy and increasing safety.

Powered by the highly acclaimed HC-SR504 PIR sensor, our switch module detects human or animal movement within a wide range, providing reliable performance. With its easy setup and digital output signal, it's a popular choice for security systems, automated lighting, and energy-saving projects.

Experience the future of motion sensor switches with Robotshapers. Visit Robotshapers.com today and transform your spaces into intelligent, energy-efficient environments.

A switch, also known as a switch or switch, is an electronic device that controls the operation of the circuit as it moves or moves. When a person comes to the discovery of the switch, they feel the movement and switch the hole to a connection such as a light, fan or equipment. When not used for a certain period of time, the switch cuts off the load to save energy.
The
Motion Operated Switch uses different sensing devices such as passive infrared (PIR), ultrasonic, and microwave sensors. PIR sensors detect changes in infrared radiation emitted by hot objects, while ultrasonic sensors use invisible sound waves.
Microwave sensors emit a microwave signal and measure its reflection to detect motion.

These switches are often used in areas where hands-free use is required, such as homes, bathrooms, basements and garages. It provides convenience by controlling lighting and electrical devices according to occupants, saves energy and increases safety, making it ideal for residential and commercial use.

Components required:

  1. Arduino Uno
  2. LCD (16X2)
  3. 10K variable resistor
  4. PIR HC SR-501 motion sensor
  5. 5V DC power supply
  6. Single Relay Channel
  7. Bulb
  8. 220 V AC supply

PIR sensor:
The HC-SR504 PIR (Passive Infrared) sensor is a widely used sensor popular with amateurs and DIYers. It is designed to detect human or animal movement within its range. The sensor works by detecting changes in infrared radiation emitted by objects in the field of view.

HC-SR504 sensor module consists of pyroelectric infrared sensor, Fresnel lens and signal processing circuit. It has a wide measurement of up to 7 meters and a viewing angle of 120 degrees.The sensor is easy to use as it operates at low voltage (usually 5V) and provides a digital output signal. When motion is detected, the sensor outputs a high signal (logic level 1); otherwise it gives a low signal (logic level 0). HC-SR504 PIR sensors are frequently used in many applications such as security systems, automatic lighting and energy saving products. It provides great results for motion detection, making it a popular choice for many electronic devices. 

Circuit diagaram:

Code:

#include 
LiquidCrystal lcd(2, 3, 4, 5, 6, 7);
const int S = 8;//  sensor pin 
const int R= 9;// relay pin  
int lightstate =0;// light state is "off" when eqaul to zero
void setup() 
{
  Serial.begin(9600);
  lcd.begin(16,2);
  pinMode(S, INPUT);// Define SENSOR_PIN as Input
  pinMode(R, OUTPUT);// Define RELAY_PIN as OUTPUT 
}

void loop() 
{
  if(lightstate==0 && digitalRead(S)==HIGH)//  motion is detected
  {
    digitalWrite(R,HIGH);// Turn the relay ON
    lightstate=1;
    delay(1500);
  }
  if(lightstate==1 && digitalRead(S)==HIGH)//  motion is detected
  {
    digitalWrite(R,HIGH);// Turn the relay OFF
    lightstate=0;
    delay(1500);
  } 
}

Applications:

Motion sensor switches have many applications in residential and commercial spaces because of their convenience, energy efficiency and enhanced security. Some applications for motion sensors are:

  1. Lighting Control: Motion sensors are often used to control lighting in areas such as hallways, stairwells, garages, and outdoors. 
  2. Security System: The switch plays an important role in security by detecting motion and triggering an alarm or activating the camera.
  3. Energy Management: Variables are used in energy management to control HVAC (heating, ventilation and air conditioning).
  4. Smart Home Automation: Motion sensor switches are integrated into smart home automation systems, allowing users to automate various tasks. 
  5. Public Spaces: Motion sensor switches are used to control lighting and reduce energy waste in public bathrooms, offices, and other common areas.

Best projects in Bhiliai, Chhattisgarh, India . Contact: 7067150002