No video

PIR-sensor and Micro:bit

  Рет қаралды 6,136

Gunnar Lund

Gunnar Lund

Күн бұрын

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.micro...
Turning on lights: makecode.micro...
Moving message 1: makecode.micro...
Moving message 2: makecode.micro...
Moving message 3: makecode.micro...
Door opener: makecode.micro...
Photo trap: makecode.micro...
Time lapse photos: makecode.micro...
En dansk udgave kan findes her: • PIR-sensor og Micro:bit
Playlist with my Micro:bit videos: • Micro:bit English

Пікірлер: 18
@zaramorrison6057
@zaramorrison6057 3 жыл бұрын
Thankyou Gunnar for sharing this ! Has helped me significantly with my university assessment coming up. I feel alot more comfortable with my PIR sensor now :) !!!
@gunnarlund6633
@gunnarlund6633 3 жыл бұрын
Thank you - it is lovely to get feed back of that kind ;-)
@dalienNation
@dalienNation 3 жыл бұрын
Hello Gunnar! Thanks for sharing all these great ideas of projects using the Micro:bit! They help me out a great deal in helping my pupils to decide upon their projects. I was wondering of you could make a video on something like a heat seeking device? Like a servo attached to a camera that follows your motion whenever you enter a room? I’m really looking forward to see your next video! I can hardly wait!
@gunnarlund6633
@gunnarlund6633 3 жыл бұрын
Thank you very much for your comment - it made me happy. And thanks for the new idea, which probably will be quite difficult to make. Right now I am working on an expansion kit (Wappsto:bit), which can make the Micro:bit go online, so you - among other things - can log your data.
@dalienNation
@dalienNation 3 жыл бұрын
@@gunnarlund6633 This looks like a great extension board with both the WiFi and the GPS features. No wonder you’ve been busy! Wappsto:bit seems much easier to use than attaching an ESP8266 WiFi module to a separate edge connector. I’m looking forward to try one out when it is released!
@sallysumola9847
@sallysumola9847 2 жыл бұрын
hi thank you for sharing this do you know how to create a counter using a motion censor
@gunnarlund6633
@gunnarlund6633 2 жыл бұрын
Hi Sally. Maybe you can get an idea from this video: kzfaq.info/get/bejne/nM5prLuBupO1dmw.html You don't need to use the Wappsto:bit
@zaramorrison6057
@zaramorrison6057 3 жыл бұрын
Hi! Is there any chance you could do a microbit / PIR tutorial on: if i wanted to make my Microbit count the amount of people walking past the sensor (eg. People walking in through a venue & counting the amount of attendees the facility has) I am doing an assessment where I have to make a Covid19 device which alerts staff when the facility has reached maximum capacity (eg. 20 people). I am not too sure how to code this... Your help would be greatly appreciated! Thankyou
@gunnarlund6633
@gunnarlund6633 3 жыл бұрын
I'm working on another project so I can't promise to make the desired video. But I would suggest the following: you assume that the store has a separate entrance and exit and that a PIR sensor is set up at both the entrance and the exit. Customers arrive at a slow pace (they enter one at a time in and out through a revolving door). At the exit, the Micro:bit counts how many people leave the store. It must be equipped with the radio function and sends a message to the Micro:bit at the entrance. The micro:bit here is a kind of master where the store can check the number of customers. It must also use the radio function and it counts 1 up for each customer that comes in, and when it receives a radio pulse from the output, it counts 1 down. It can give an alarm, when a certain number of customers is reached - or It could lock the entrance.
@zaramorrison6057
@zaramorrison6057 3 жыл бұрын
@@gunnarlund6633 No worries at all! Your description has been plenty of help in itself. Thankyou ! I'll take that on board :) !
@gunnarlund6633
@gunnarlund6633 3 жыл бұрын
@@zaramorrison6057 Very good!
@sulantro3511
@sulantro3511 3 жыл бұрын
Hi Gunnar Lund my school has bought a load of these sensors but none of them seem to work.They either don't detect any motion or detect motion every second. I was wondering if you would have a solution, thanks
@gunnarlund6633
@gunnarlund6633 3 жыл бұрын
Hi Sulantro. It takes some minutes until the PIR has warmed up! Do you use an external power supply? 3V from the Micro:bit is not enough. Do you connect as well the PIR as the Micro:bit to common GND? Have you studied my video where the adjustments are explained? Are the of the same type as shown on the video?
@sulantro3511
@sulantro3511 3 жыл бұрын
@@gunnarlund6633 thanks it works now the problem was that when it was warming up it was detecting movement and it stopped the calibration
@gunnarlund6633
@gunnarlund6633 3 жыл бұрын
@@sulantro3511 👍👌
@zaramorrison6057
@zaramorrison6057 3 жыл бұрын
Hi Gunnar it's me again! I was just wondering if you could assist me in my coding for my final MicroBit code for my university assignment... As previously mentioned, I am planning to create a COVID 19 venue capacity tracking system. The problem is, I only have one microbit to work with. I have purchased a SIR (Proximity sensor) as well as the additional alligator clips, etc. Though I am not too sure how I can code this on Microsoft Make code to count the amount of people who enter the venue. Ultimately I wish my code to process: - Patrons entering venue (maximum capacity being 20) - Microbit has a sound when capacity has reached the maximum amount of people (20 people) - a reset button (A or B) to deduct 1 patron. - another rest button (A or B) to reset the counted people. It would be amazing if you could make through a code & send it through (email, facebook, etc) So I am able to test it out before my assessment is due. Im so sorry for the long message. I am still quite confused with the entire microbit coding situation so your assistance would be super beneficial to me ! :)
@gunnarlund6633
@gunnarlund6633 3 жыл бұрын
Hi Zara. Thank you for your message. I do not think I can come up with more help for you. I do not know the SIR sensor and it will not be possible for me to make the desired code without being able to try it in real life. I hope you will find a solution. Gunnar
@zaramorrison6057
@zaramorrison6057 3 жыл бұрын
@@gunnarlund6633 No stress at all, thankyou kindly anyways :)
Sorting with Micro:bit
3:46
Gunnar Lund
Рет қаралды 2,9 М.
Harley Quinn's plan for revenge!!!#Harley Quinn #joker
00:49
Harley Quinn with the Joker
Рет қаралды 28 МЛН
Why Is He Unhappy…?
00:26
Alan Chikin Chow
Рет қаралды 99 МЛН
Control rotation and speed with Micro:bit
7:15
Gunnar Lund
Рет қаралды 7 М.
Micro:bit & Motion Detector (PIR / Proximity Sensor)
11:26
Pauric O'Donnell
Рет қаралды 23 М.
More on Pressure with Micro:bit
13:38
Gunnar Lund
Рет қаралды 313
PIR Sensor (Raspberry Pi)
8:12
PiddlerInTheRoot
Рет қаралды 45 М.
I made a Micro:Bit Powered Cardboard Pinball Machine with PinBox 3000 - "Planet Winter"
11:09
PID Balance+Ball | full explanation & tuning
13:13
Electronoobs
Рет қаралды 738 М.
Sensors - which one to use
17:06
Electronoobs
Рет қаралды 1,3 МЛН
DFPlayer and Micro:bit
9:09
Gunnar Lund
Рет қаралды 1,9 М.
Connecting Your BBC Micro:Bit to an Android device with Bluetooth
16:25
Infinity Makerspace
Рет қаралды 10 М.
Micro:bit as a pH Meter
6:02
Eddie Tsui
Рет қаралды 6 М.