Cirkit Designer LogoCirkit DesignerYour all-in-one circuit design IDE Launch Cirkit Designer App

How to Use Human Presence Sensor: Examples, Pinouts, and Specs

Image of Human Presence SensorDesign with Human Presence Sensor in Cirkit Designer

Introduction

The Grove - Human Presence Sensor (AK9753) is a sophisticated device designed to detect the presence of a human in a specific area. Utilizing advanced infrared technology, it senses body heat or motion, making it ideal for a variety of applications. This sensor is commonly used in security systems, smart home automation, energy-saving systems, and interactive installations.

Explore Projects Built with Human Presence Sensor

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Image of Arduino-Controlled Automatic Room Light with IR Sensors: A project utilizing Human Presence Sensor in a practical application
Arduino-Controlled Automatic Room Light with IR Sensors

This circuit is designed to automatically control a light bulb in a washroom based on occupancy, detected by two IR sensors. An Arduino UNO reads the state of the IR sensors and toggles a relay to power the light bulb when at least one person is detected inside. The code for the Arduino manages the count of people entering and exiting to determine the occupancy and control the light accordingly.

Open Project in Cirkit Designer
Image of ESP8266 NodeMCU-Based Environmental Monitoring System with Wi-Fi Connectivity: A project utilizing Human Presence Sensor in a practical application
ESP8266 NodeMCU-Based Environmental Monitoring System with Wi-Fi Connectivity

This circuit is designed for environmental monitoring and personal health tracking. It uses an ESP8266 NodeMCU to connect various sensors, including a DHT11 for temperature and humidity, an MQ6 gas sensor for detecting LPG and smoke, a MAX30102 for heart rate and blood oxygen saturation (SpO2) monitoring, and a buzzer and vibration motor for alerts. The system interfaces with the Blynk platform for remote data visualization and can trigger alerts based on sensor readings, such as excessive temperature or gas levels.

Open Project in Cirkit Designer

Technical Specifications

Key Technical Details

Specification Value
Manufacturer Grove
Part ID AK9753
Operating Voltage 3.3V - 5V
Current Consumption 1.5mA (typical)
Detection Range Up to 5 meters
Interface I2C
Operating Temperature -10°C to 60°C
Dimensions 20mm x 40mm

Pin Configuration and Descriptions

Pin Number Pin Name Description
1 VCC Power supply (3.3V - 5V)
2 GND Ground
3 SDA I2C data line
4 SCL I2C clock line
5 INT Interrupt output (optional)

Usage Instructions

How to Use the Component in a Circuit

  1. Power Supply: Connect the VCC pin to a 3.3V or 5V power supply and the GND pin to the ground.
  2. I2C Communication: Connect the SDA and SCL pins to the corresponding I2C pins on your microcontroller (e.g., Arduino UNO).
  3. Interrupt (Optional): If you want to use the interrupt feature, connect the INT pin to a digital input pin on your microcontroller.

Important Considerations and Best Practices

Example Code for Arduino UNO

#include <Wire.h>

#define AK9753_I2C_ADDRESS 0x64

void setup() {
  Serial.begin(9600);
  Wire.begin(); // Initialize I2C communication
  // Configure the sensor (if needed)
  // For example, setting up the interrupt pin
  pinMode(2, INPUT); // Assuming INT pin is connected to digital pin 2
}

void loop() {
  Wire.beginTransmission(AK9753_I2C_ADDRESS);
  Wire.write(0x00); // Register address to read data
  Wire.endTransmission();
  Wire.requestFrom(AK9753_I2C_ADDRESS, 2); // Request 2 bytes of data

  if (Wire.available() == 2) {
    int data = Wire.read() << 8 | Wire.read();
    Serial.print("Presence detected: ");
    Serial.println(data);
  }

  delay(1000); // Wait for 1 second before next reading
}

Troubleshooting and FAQs

Common Issues Users Might Face

  1. No Detection: The sensor does not detect any presence.

    • Solution: Ensure the sensor is powered correctly and the connections are secure. Check for any obstructions in the sensor's line of sight.
  2. False Positives: The sensor detects presence when there is none.

    • Solution: Avoid placing the sensor near heat sources or in direct sunlight. Adjust the sensor's sensitivity if possible.
  3. I2C Communication Failure: The microcontroller cannot communicate with the sensor.

    • Solution: Verify the I2C connections (SDA and SCL). Ensure the I2C address (0x64) is correct and not conflicting with other devices.

Solutions and Tips for Troubleshooting

By following this documentation, users can effectively integrate the Grove - Human Presence Sensor (AK9753) into their projects, ensuring reliable and accurate human presence detection.