This video shows how a PIR sensor can be used with a Micro:bit. The PIR sensor can detect changes in the infrared light from the surroundings and it can therefore be used in a burglar alarm, for automatic switching on / off of lights, for opening doors and for controlling a camera.
If you want to do the experiments, in addition to the board, brass nails and cardboard box, use solder and soldering iron, as well as a number of Micro:bits with batteries, a PIR sensor, a servomotor, test cables and a power supply of 4.5 V or 6 V.
Links to programs:
Theft Alarm: makecode.microbit.org/_JaDcPf...
Turning on lights: makecode.microbit.org/_f41XbA...
Moving message 1: makecode.microbit.org/_Me0fky...
Moving message 2: makecode.microbit.org/_fcwRX2...
Moving message 3: makecode.microbit.org/_bp4Ak2...
Door opener: makecode.microbit.org/_Rx3YqP...
Photo trap: makecode.microbit.org/_PqrUcP...
Time lapse photos: makecode.microbit.org/_d69E1g...
En dansk udgave kan findes her: • PIR-sensor og Micro:bit
Playlist with my Micro:bit videos: • Micro:bit English
12 июл 2024