

The AM312 is a passive infrared (PIR) motion sensor designed to detect motion by sensing changes in infrared radiation emitted by objects, such as humans or animals, within its detection range. This compact and energy-efficient sensor is widely used in security systems, home automation, lighting control, and other motion-detection applications. Its small size and low power consumption make it ideal for battery-powered devices and embedded systems.








The AM312 PIR motion sensor is designed for simplicity and reliability. Below are its key technical details:
| Parameter | Value |
|---|---|
| Operating Voltage | 2.7V to 12V DC |
| Quiescent Current | < 50 µA |
| Detection Range | Up to 3-5 meters |
| Detection Angle | Approximately 100° |
| Output Signal | High (3.3V) when motion detected, Low (0V) otherwise |
| Trigger Mode | Non-retriggerable (default) |
| Operating Temperature | -20°C to +70°C |
| Dimensions | 10mm x 12mm x 8mm |
The AM312 PIR motion sensor has three pins for easy integration into circuits. Below is the pinout description:
| Pin | Name | Description |
|---|---|---|
| 1 | VCC | Power supply input (2.7V to 12V DC) |
| 2 | OUT | Digital output signal (High when motion is detected) |
| 3 | GND | Ground connection |
Below is an example of how to connect and use the AM312 PIR motion sensor with an Arduino UNO:
// AM312 PIR Motion Sensor Example with Arduino UNO
// This code reads the sensor's output and turns on an LED when motion is detected.
const int pirPin = 2; // Pin connected to the OUT pin of the AM312
const int ledPin = 13; // Built-in LED on Arduino UNO
void setup() {
pinMode(pirPin, INPUT); // Set the PIR sensor pin as input
pinMode(ledPin, OUTPUT); // Set the LED pin as output
Serial.begin(9600); // Initialize serial communication for debugging
}
void loop() {
int motionDetected = digitalRead(pirPin); // Read the PIR sensor output
if (motionDetected == HIGH) { // If motion is detected
digitalWrite(ledPin, HIGH); // Turn on the LED
Serial.println("Motion detected!"); // Print message to serial monitor
} else {
digitalWrite(ledPin, LOW); // Turn off the LED
}
delay(100); // Small delay to stabilize readings
}
Sensor Not Detecting Motion
False Triggers
Output Signal Not Working
Q: Can the AM312 detect motion through glass or walls?
A: No, the AM312 cannot detect motion through glass, walls, or other solid objects. It requires a clear line of sight to detect infrared radiation.
Q: Can I adjust the detection range or duration?
A: The AM312 has a fixed detection range and duration. For adjustable settings, consider using a different PIR sensor model with configurable parameters.
Q: Is the AM312 suitable for outdoor use?
A: The AM312 is not weatherproof. If used outdoors, it must be enclosed in a protective, weather-resistant housing.
By following this documentation, you can effectively integrate the AM312 PIR motion sensor into your projects for reliable motion detection.