This circuit is designed to interface an Arduino UNO with a PIR sensor, a 5V relay, a piezo buzzer, and a 9V battery. The PIR sensor detects motion and sends a signal to the Arduino, which then activates the relay. The relay, in turn, controls the piezo buzzer, which is powered by the 9V battery.
Arduino UNO
PIR sensor
5V relay
Piezo Buzzer
9V battery
5V is connected to:
GND is connected to:
D8 is connected to:
D7 is connected to:
VDD is connected to:
SIG is connected to:
GND is connected to:
VCC is connected to:
GND is connected to:
In is connected to:
Normally Open is connected to:
Common terminal is connected to:
pin 1 is connected to:
pin 2 is connected to:
+ is connected to:
- is connected to:
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}