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.
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 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) |
#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
}
No Detection: The sensor does not detect any presence.
False Positives: The sensor detects presence when there is none.
I2C Communication Failure: The microcontroller cannot communicate with the sensor.
By following this documentation, users can effectively integrate the Grove - Human Presence Sensor (AK9753) into their projects, ensuring reliable and accurate human presence detection.