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

How to Use keystudio motion sensor: Examples, Pinouts, and Specs

Image of keystudio motion sensor
Cirkit Designer LogoDesign with keystudio motion sensor in Cirkit Designer

Introduction

The Keyestudio Motion Sensor is an electronic device that detects motion within its vicinity. It is commonly used in security systems, lighting control, and automation projects. The sensor is often employed in hobbyist projects, particularly those involving Arduino microcontrollers, due to its ease of use and integration capabilities.

Explore Projects Built with keystudio motion 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!
ESP32 CAM PIR Sensor Security Camera with Battery Management
Image of intruder alert system: A project utilizing keystudio motion sensor in a practical application
This is a motion-activated camera system powered by a 7.4V battery with a charging module. It uses a PIR sensor to detect motion and an ESP32 CAM microcontroller to process the signal and activate a yellow LED through an NPN transistor. A voltage booster and capacitor are included for power management, and a momentary switch allows for manual power control.
Cirkit Designer LogoOpen Project in Cirkit Designer
Arduino Nano-Controlled Lighting System with Gesture and Sound Interaction
Image of 4 load controll using hand gesture and sound controll: A project utilizing keystudio motion sensor in a practical application
This circuit features an Arduino Nano microcontroller interfaced with an APDS-9960 RGB and Gesture Sensor for color and gesture detection, and a KY-038 microphone module for sound detection. The Arduino controls a 4-channel relay module, which in turn switches four AC bulbs on and off. The 12V power supply is used to power the relay module, and the bulbs are connected to the normally open (N.O.) contacts of the relays, allowing the Arduino to control the lighting based on sensor inputs.
Cirkit Designer LogoOpen Project in Cirkit Designer
ESP32-Based Intruder Alert System with Piezo and PIR Sensors, Wi-Fi Enabled
Image of Mohith ESP32: A project utilizing keystudio motion sensor in a practical application
This circuit is a security system that uses multiple piezo sensors and a PIR sensor to detect motion or vibrations. When any sensor is triggered, the ESP32 Devkit V1 microcontroller activates a buzzer and uses the ESP32-CAM module to capture a photo, which is then sent to the owner via WiFi.
Cirkit Designer LogoOpen Project in Cirkit Designer
PIR Motion-Activated LED Light
Image of 0: A project utilizing keystudio motion sensor in a practical application
This circuit is a simple motion-activated LED light system. The HC-SR505 Mini PIR Motion Sensing Module is powered by a 9V battery and detects motion, upon which it sends an output signal to turn on the red LED. The LED and the PIR sensor share a common ground with the battery, completing the circuit.
Cirkit Designer LogoOpen Project in Cirkit Designer

Explore Projects Built with keystudio motion 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 intruder alert system: A project utilizing keystudio motion sensor in a practical application
ESP32 CAM PIR Sensor Security Camera with Battery Management
This is a motion-activated camera system powered by a 7.4V battery with a charging module. It uses a PIR sensor to detect motion and an ESP32 CAM microcontroller to process the signal and activate a yellow LED through an NPN transistor. A voltage booster and capacitor are included for power management, and a momentary switch allows for manual power control.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of 4 load controll using hand gesture and sound controll: A project utilizing keystudio motion sensor in a practical application
Arduino Nano-Controlled Lighting System with Gesture and Sound Interaction
This circuit features an Arduino Nano microcontroller interfaced with an APDS-9960 RGB and Gesture Sensor for color and gesture detection, and a KY-038 microphone module for sound detection. The Arduino controls a 4-channel relay module, which in turn switches four AC bulbs on and off. The 12V power supply is used to power the relay module, and the bulbs are connected to the normally open (N.O.) contacts of the relays, allowing the Arduino to control the lighting based on sensor inputs.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of Mohith ESP32: A project utilizing keystudio motion sensor in a practical application
ESP32-Based Intruder Alert System with Piezo and PIR Sensors, Wi-Fi Enabled
This circuit is a security system that uses multiple piezo sensors and a PIR sensor to detect motion or vibrations. When any sensor is triggered, the ESP32 Devkit V1 microcontroller activates a buzzer and uses the ESP32-CAM module to capture a photo, which is then sent to the owner via WiFi.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of 0: A project utilizing keystudio motion sensor in a practical application
PIR Motion-Activated LED Light
This circuit is a simple motion-activated LED light system. The HC-SR505 Mini PIR Motion Sensing Module is powered by a 9V battery and detects motion, upon which it sends an output signal to turn on the red LED. The LED and the PIR sensor share a common ground with the battery, completing the circuit.
Cirkit Designer LogoOpen Project in Cirkit Designer

Technical Specifications

Key Technical Details

  • Operating Voltage: 4.5V to 20V
  • Current Draw: <50uA (idle), 15mA (during detection)
  • Detection Range: Up to 7 meters (adjustable)
  • Detection Angle: <140 degrees
  • Output Type: Digital (High/Low signal)
  • Delay Time: Adjustable (0.3 seconds to 5 minutes)
  • Operating Temperature: -20°C to +80°C

Pin Configuration and Descriptions

Pin Number Name Description
1 VCC Power supply input (4.5V to 20V)
2 OUT Digital output signal (High/Low)
3 GND Ground connection

Usage Instructions

Integration with a Circuit

  1. Power Supply: Connect the VCC pin to a power supply within the 4.5V to 20V range.
  2. Output Signal: Connect the OUT pin to a digital input pin on your microcontroller.
  3. Grounding: Connect the GND pin to the ground of your power supply and microcontroller.

Important Considerations and Best Practices

  • Ensure that the power supply voltage does not exceed the maximum rating of 20V.
  • Avoid placing the sensor in an environment with rapid temperature changes to prevent false triggers.
  • Adjust the delay time and sensitivity knobs on the sensor to fine-tune its performance for your specific application.
  • Use pull-up or pull-down resistors on the output pin if necessary, depending on your microcontroller's input configuration.

Example Code for Arduino UNO

// Define the motion sensor pin
const int motionSensorPin = 2; // Connect the OUT pin of the sensor to digital pin 2

// Variable to hold the motion sensor status
int motionStatus = 0;

void setup() {
  // Set the motion sensor pin as an input
  pinMode(motionSensorPin, INPUT);
  
  // Begin serial communication at a baud rate of 9600
  Serial.begin(9600);
}

void loop() {
  // Read the status of the motion sensor
  motionStatus = digitalRead(motionSensorPin);
  
  // Check if motion was detected
  if (motionStatus == HIGH) {
    // Motion detected
    Serial.println("Motion detected!");
    // Add your code here to handle the motion detection event
  } else {
    // No motion detected
    Serial.println("No motion detected.");
  }
  
  // Delay for a short period to avoid spamming the serial output
  delay(100);
}

Troubleshooting and FAQs

Common Issues

  • Sensor not detecting motion: Ensure that the sensor is properly powered and that the sensitivity is correctly adjusted.
  • False triggers: Adjust the delay time to avoid false detections and ensure the sensor is not facing a heat source or window.
  • No output signal: Check the wiring and connections, and ensure that the microcontroller's input pin is configured correctly.

Solutions and Tips for Troubleshooting

  • Double-check all connections and ensure that the sensor is not subjected to electrical noise.
  • If using long wires, consider using shielded cables to minimize interference.
  • Test the sensor with a simple LED circuit to confirm its operation before integrating it with a microcontroller.

FAQs

Q: Can the sensor be used outdoors? A: The sensor can be used outdoors but should be protected from direct sunlight and water.

Q: How can I adjust the range and delay of the sensor? A: The sensor typically has two potentiometers to adjust the sensitivity (range) and the time delay.

Q: What is the output voltage of the OUT pin when motion is detected? A: The output voltage is typically equal to the VCC supply voltage when motion is detected.

Remember to always follow safety guidelines when working with electronic components and consult the sensor's datasheet for more detailed information.