Cirkit Designer Logo
Cirkit Designer
Your all-in-one circuit design IDE
Home / 
Component Documentation

How to Use Sensor Am312: Examples, Pinouts, and Specs

Image of Sensor Am312
Cirkit Designer LogoDesign with Sensor Am312 in Cirkit Designer

Introduction

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.

Explore Projects Built with Sensor Am312

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Wemos S2 Mini Controlled Smart Device with OLED Display, Thermal Printing, and RGB LED Strip
Image of DT NEA - Noah Patel: A project utilizing Sensor Am312 in a practical application
This circuit features a Wemos S2 Mini microcontroller that controls a WS2812 RGB LED strip and communicates with a 0.96" OLED display and a 58mm mini thermal printer. The ACS712 Current Sensor is interfaced with the microcontroller to monitor current, and power is managed by a CD42 BMS connected to two 18650 Li-ion batteries, with a USB-C PD Trigger Board for power delivery. The circuit is designed for visual output (LED strip, OLED display), printing capabilities, and current sensing, likely for a portable, battery-powered monitoring and display device.
Cirkit Designer LogoOpen Project in Cirkit Designer
ESP32-Based Environmental Monitoring and Control System with Gas Detection and Actuators
Image of CIRCUIT DIAGRAM RTES/FMSS: A project utilizing Sensor Am312 in a practical application
This is a sensor monitoring and actuation system featuring an ESP32 microcontroller interfaced with an accelerometer, gas sensor, LEDs, buzzers, a servo motor, and a relay. It includes I2C LCD displays for output, with the ESP32's code currently set as a template for further development.
Cirkit Designer LogoOpen Project in Cirkit Designer
Arduino Mega 2560-Based Sensor Data Logger with ESP32-CAM and LCD Interface
Image of DA_Schema: A project utilizing Sensor Am312 in a practical application
This is a multifunctional sensor system with visual feedback and control interfaces. It utilizes an Arduino Mega 2560 to process data from an accelerometer, ultrasonic sensor, and camera module, and displays information on an LCD screen. User inputs can be provided through toggle and DIP switches, while LEDs indicate system status.
Cirkit Designer LogoOpen Project in Cirkit Designer
Smart Weighing System with ESP8266 and HX711 - Battery Powered and Wi-Fi Enabled
Image of gggg: A project utilizing Sensor Am312 in a practical application
This circuit is a multi-sensor data acquisition system powered by a 18650 battery and managed by an ESP8266 microcontroller. It includes a load sensor interfaced with an HX711 module for weight measurement, an IR sensor, an ADXL345 accelerometer, a VL53L0X distance sensor, and a Neo 6M GPS module for location tracking. The system is designed for wireless data transmission and is supported by a TP4056 module for battery charging.
Cirkit Designer LogoOpen Project in Cirkit Designer

Explore Projects Built with Sensor Am312

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 DT NEA - Noah Patel: A project utilizing Sensor Am312 in a practical application
Wemos S2 Mini Controlled Smart Device with OLED Display, Thermal Printing, and RGB LED Strip
This circuit features a Wemos S2 Mini microcontroller that controls a WS2812 RGB LED strip and communicates with a 0.96" OLED display and a 58mm mini thermal printer. The ACS712 Current Sensor is interfaced with the microcontroller to monitor current, and power is managed by a CD42 BMS connected to two 18650 Li-ion batteries, with a USB-C PD Trigger Board for power delivery. The circuit is designed for visual output (LED strip, OLED display), printing capabilities, and current sensing, likely for a portable, battery-powered monitoring and display device.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of CIRCUIT DIAGRAM RTES/FMSS: A project utilizing Sensor Am312 in a practical application
ESP32-Based Environmental Monitoring and Control System with Gas Detection and Actuators
This is a sensor monitoring and actuation system featuring an ESP32 microcontroller interfaced with an accelerometer, gas sensor, LEDs, buzzers, a servo motor, and a relay. It includes I2C LCD displays for output, with the ESP32's code currently set as a template for further development.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of DA_Schema: A project utilizing Sensor Am312 in a practical application
Arduino Mega 2560-Based Sensor Data Logger with ESP32-CAM and LCD Interface
This is a multifunctional sensor system with visual feedback and control interfaces. It utilizes an Arduino Mega 2560 to process data from an accelerometer, ultrasonic sensor, and camera module, and displays information on an LCD screen. User inputs can be provided through toggle and DIP switches, while LEDs indicate system status.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of gggg: A project utilizing Sensor Am312 in a practical application
Smart Weighing System with ESP8266 and HX711 - Battery Powered and Wi-Fi Enabled
This circuit is a multi-sensor data acquisition system powered by a 18650 battery and managed by an ESP8266 microcontroller. It includes a load sensor interfaced with an HX711 module for weight measurement, an IR sensor, an ADXL345 accelerometer, a VL53L0X distance sensor, and a Neo 6M GPS module for location tracking. The system is designed for wireless data transmission and is supported by a TP4056 module for battery charging.
Cirkit Designer LogoOpen Project in Cirkit Designer

Common Applications

  • Security systems for detecting intruders
  • Automatic lighting systems
  • Smart home automation
  • Motion-activated alarms
  • Energy-saving devices

Technical Specifications

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

Pin Configuration

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

Usage Instructions

How to Use the AM312 in a Circuit

  1. Power the Sensor: Connect the VCC pin to a DC power source (2.7V to 12V) and the GND pin to the ground.
  2. Connect the Output: The OUT pin provides a digital signal. Connect it to a microcontroller input pin or directly to a device (e.g., an LED or buzzer) for motion detection.
  3. Place the Sensor: Position the sensor in an area where it can detect motion within its range and angle. Avoid obstructions and direct sunlight for optimal performance.

Important Considerations

  • Warm-Up Time: The sensor requires a warm-up time of approximately 30 seconds after powering on to stabilize.
  • Avoid Interference: Keep the sensor away from heat sources, reflective surfaces, and strong electromagnetic fields to prevent false triggers.
  • Trigger Mode: The AM312 operates in a non-retriggerable mode, meaning the output will remain high for a fixed duration (approximately 2 seconds) after detecting motion, regardless of continued motion.

Example: Connecting the AM312 to an Arduino UNO

Below is an example of how to connect and use the AM312 PIR motion sensor with an Arduino UNO:

Circuit Diagram

  • Connect the VCC pin of the AM312 to the 5V pin on the Arduino.
  • Connect the GND pin of the AM312 to the GND pin on the Arduino.
  • Connect the OUT pin of the AM312 to digital pin 2 on the Arduino.

Arduino Code

// 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
}

Troubleshooting and FAQs

Common Issues and Solutions

  1. Sensor Not Detecting Motion

    • Ensure the sensor is powered correctly (check VCC and GND connections).
    • Verify that the detection range and angle are not obstructed.
    • Allow the sensor to complete its warm-up time (approximately 30 seconds).
  2. False Triggers

    • Avoid placing the sensor near heat sources, such as radiators or direct sunlight.
    • Ensure the sensor is not exposed to strong electromagnetic interference.
  3. Output Signal Not Working

    • Check the wiring of the OUT pin to the microcontroller or device.
    • Verify that the connected device (e.g., LED or buzzer) is functioning properly.

FAQs

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.