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

Arduino UNO-Based Motion Detection System with Bluetooth Connectivity

View and Edit Project In Cirkit DesignerImage of Arduino UNO-Based Motion Detection System with Bluetooth Connectivity

Circuit Documentation

Summary

The circuit in question consists of an Arduino UNO microcontroller, a PIR (Passive Infrared) sensor, and a Bluetooth module. The Arduino UNO serves as the central processing unit, interfacing with the PIR sensor to detect motion and communicating with external devices via the Bluetooth module. The PIR sensor is used to detect the presence of humans or animals through infrared signals, and the Bluetooth module enables wireless communication.

Component List

Arduino UNO

PIR Sensor

Bluetooth Module

Wiring Details

Arduino UNO

PIR Sensor

Bluetooth Module

Documented Code

Arduino UNO Code - sketch.ino

int pir = 7;

void setup() {
    Serial.begin(9600);
    pinMode(pir, INPUT);
}

void loop() {
    if (digitalRead(pir) == 1) {
        Serial.println("23");
        delay(3000);
    }
}

Description: This code initializes the Arduino UNO's serial communication at a baud rate of 9600 and sets the pin connected to the PIR sensor (D7) as an input. In the main loop, the Arduino checks for a high signal from the PIR sensor indicating motion detection. Upon detection, it sends the string "23" over the serial connection, which could be received by the connected Bluetooth module and transmitted wirelessly. There is a delay of 3 seconds after each detection to prevent continuous transmission.