Site icon Circuit Ideas for You

Human Presence and Motion Sensor Circuit using Arduino

One important feature in the field of electronic and embedded technology that finds use in energy management, interactive environments, and security systems is the ability to identify and respond to human presence and movements.

Processing and interpreting the information with a mix of sensors and microcontrollers is one efficient approach to accomplish this.

The STHS34PF80 sensor, an Arduino, IC 7809 and a few other parts like resistors and capacitors are used in this tutorial to create a simple yet functional circuit.

The Arduino microcontroller will function as the circuits central processing unit, reading sensor data and applying the appropriate logic to it.

The STHS34PF80 is a capacitive proximity sensor that uses variations in capacitance to identify activity or the existence of objects close by.

This sensor is very helpful in situations that call for contactless sensing.

It is perfect for use in a range of motion sensing applications since it is sensitive to the presence of human bodies and can detect motion through fluctuations in capacitance.

Code with Explanation:

#include <Arduino.h>

const int sensorPin = A0;
const int threshold = 500; // Adjust threshold as needed

void setup() {
  Serial.begin(9600);
}

void loop() {
  int sensorValue = analogRead(sensorPin);

  if (sensorValue > threshold) {
    Serial.println("Human detected!");
  } else {
    Serial.println("No human detected");
  }

  delay(100); // Adjust delay as needed
}

Explanation:

Circuit Working:

Parts List:

ComponentQuantity
Arduino Uno Board1
IC 78091
STHS34PF80 Human Sensor1
Capacitor 100nF1
Resistors 2.2k, 1/4 watt2

In this article we have included the IC 7809 to provide a steady and controlled power supply for the Arduino and STHS34PF80 sensor.

The Arduino and sensor will operate dependably since the IC 7809 outputs a steady 9V.

It helps in the reduction of noise and voltage variations that might skew sensor data.

The circuit components can be shielded from harm by the IC 7809 from overvoltage or overcurrent.

The STHS34PF80 is a capacitive sensor that measures temperature and humidity.

Still, we mainly concentrate on its capacity to sense variations in the capacitive field around it in our application.

The capacitance of the surrounding environment varies as a human enters or travels within the sensors range.

Signal conditioning is required before the Arduino can process the raw analog signal that comes from the sensor.

The circuits resistors and capacitor work together as a low-pass filter to smooth out high-frequency noise and smooth down the raw data.

The sensors filtered analog signal is read by the Arduino.

A humans presence or mobility can be detected by the microcontroller by comparing the current reading to a threshold value.

A person is present if the reading is higher than the threshold.

How to Build:

To build a Human Presence and Motion Sensor Circuit using Arduino follow the below mentioned steps for connections:

Conclusion:

The STHS34PF80 sensor and Arduino are used in the Human Presence and Motion Sensor Circuit to give a basic and efficient method of detecting motion and human presence.

Through tweaking the threshold value and additional factors, the circuit may be tailored to fit certain uses.

Numerous projects, including interactive installations, security systems, and home automation, can make use of this circuit.

References:

Human presence detection – short distance

Exit mobile version