A Motion Detecting Device

by pasan prabhasara in Circuits > Microcontrollers

131 Views, 0 Favorites, 0 Comments

A Motion Detecting Device

Opera Snapshot_2023-09-17_113251_www.tinkercad.com.png

if anything moved in front of the sensor the alarm rings.

Supplies

Mighty Densor.png

Microbit board, Buzzer(piezo), PIR sensor and few jumper wires.

Connect the Buzzer

_[PIR sensor]motion detector (1).png

now connect the buzzers positive pin to the pin-0 in the microbit.

connect the negative pin of the buzzer to the GND.(ground).

Connect the PIR Sensor

_[PIR sensor]motion detector.png

connect the signal pin of the PIR sensor to the Pin-1 in microbit board.

connect the power pin of the PIR sensor to the 3V in microbit.

connect the the Ground pin to the GND pin in microbit.

Coding

Opera Snapshot_2023-09-17_111504_www.tinkercad.com.png

Now make the code as shown in this picture.

Start Simulation

happy microbitting.