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

Arduino UNO with PIR Sensor and Bluetooth Connectivity

View and Edit Project In Cirkit DesignerImage of Arduino UNO with PIR Sensor and Bluetooth Connectivity

Circuit Documentation

Summary

The circuit in question is designed to interface a PIR (Passive Infrared) sensor with an Arduino UNO microcontroller and a HC-05 Bluetooth module. The PIR sensor is used to detect motion, and upon detection, the Arduino UNO sends a signal via the HC-05 Bluetooth module. The Arduino UNO is also responsible for managing the power distribution to the PIR sensor and the HC-05 Bluetooth module.

Component List

Arduino UNO

PIR Sensor

HC-05 Bluetooth Module

Comments

Wiring Details

Arduino UNO

PIR Sensor

HC-05 Bluetooth Module

Documented Code

Arduino UNO Code (sketch.ino)

int pir = 7; // PIR sensor connected to pin D7

void setup() {
  Serial.begin(9600); // Initialize serial communication at 9600 baud rate
  pinMode(pir, INPUT); // Set the PIR sensor pin as an input
}

void loop() {
  if (digitalRead(pir) == 1) { // Check if the PIR sensor is triggered
    Serial.println("23"); // Send the value "23" over serial when motion is detected
    delay(3000); // Wait for 3 seconds before the next read
  }
}

Note: The code sets up the Arduino UNO to read the PIR sensor's output from pin D7. When motion is detected, it sends the value "23" over the serial connection, which can be transmitted wirelessly via the HC-05 Bluetooth module. The system then waits for 3 seconds before checking for motion again.