Components and supplies
Resistor 220 ohm
USB-A to B Cable
Solderless Breadboard Half Size
Buzzer
LED (generic)
Arduino UNO
PIR Motion Sensor (generic)
Jumper wires (generic)
Apps and platforms
Arduino IDE
Project description
Code
PIR_sensor_code.ino
c_cpp
Downloadable files
PIR, Buzzer, LED and Arduino
PIR, Buzzer, LED and Arduino
PIR, Buzzer, LED and Arduino
PIR, Buzzer, LED and Arduino
Comments
Only logged in users can leave comments
Anonymous user
2 years ago
There's an error in the initiation of the buzzer, I think. The line digitalWrite(Buzz, HIGH) should be replaced with the following three lines: tone(Buzz, 1000); // Send 1KHz sound signal... delay(1000); // ...for 1 sec noTone(Buzz); // Stop sound... After this adjustment, the buzzer works fine. This is a nice project for newbies. Thank you!
Anonymous user
3 years ago
i got it working but without buzzer or led to go off so well i didnt get it working fully
Anonymous user
2 years ago
There's an error in the initiation of the buzzer, I think. The line digitalWrite(Buzz, HIGH) should be replaced with the following three lines: tone(Buzz, 1000); // Send 1KHz sound signal... delay(1000); // ...for 1 sec noTone(Buzz); // Stop sound... After this adjustment, the buzzer works fine. This is a nice project for newbies. Thank you!