Project showcase
Human Body Infrared Sensor Experiment Based on Arduino

Human Body Infrared Sensor Experiment Based on Arduino

This experiment uses infrared sensors to detect if anyone is moving around the sensor. If so, the buzzer will sound an alarm.

  • 4,184 views
  • 0 comments
  • 1 respect

Components and supplies

About this project

This experiment uses infrared sensors to detect if anyone is moving around the sensor. If so, the buzzer will sound an alarm.

Material:

  • Arduino
  • breadboard
  • LED

Note: you can redeem it on PCBWay, please support me and register with this invitation PCBWay link.

Here is the connection diagram:

Here is the code:

int Sensor_pin = 3;
int ledpin = 11;
void setup()
{
pinMode(Sensor_pin, INPUT); // Set the human infraredinterface as the input state 
pinMode(ledpin, OUTPUT);
Serial.begin(9600);
Serial.flush();
Serial.println("Ready");
}
void loop()
{
int val = digitalRead(Sensor_pin); // Define parameters to storethe state read by the human infrared senso
if (val == 1) // Buzzer make alarm if someone is detected
{
Serial.println("There is sb moving");
digitalWrite(ledpin, HIGH);
}
else
{
Serial.println("There isn't sb moving");
digitalWrite(ledpin, LOW);
}
delay(100); // Delay 100 milliseconds }

Lastly, I recommend watching Anthony's project video.

Comments

Similar projects you might like

MQ-4 Natural Gas Sensor Experiment Based on Arduino

Project tutorial by Andrew85

  • 13,788 views
  • 3 comments
  • 12 respects

Arduino Based Digital Temperature Sensor

Project showcase by Abishek Bhalaaji

  • 39,343 views
  • 1 comment
  • 21 respects

Digital Oscilloscope Experiment Based on Arduino

Project tutorial by Andrew85

  • 12,505 views
  • 4 comments
  • 27 respects

Arduino Burglar

Project showcase by paolo_cravero

  • 6,434 views
  • 2 comments
  • 9 respects

Complete Digital Clock Including Alarm and Motion Sensor

Project showcase by LAGSILVA

  • 31,590 views
  • 37 comments
  • 97 respects

Door Alarm With Ultrasonic Sensor

Project showcase by MattG

  • 32,758 views
  • 11 comments
  • 32 respects
Add projectSign up / Login