Тёмный

PIR-sensor and Micro:bit 

Gunnar Lund
Подписаться 534
Просмотров 6 тыс.
50% 1

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

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 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: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-fh9yXPU-QF8.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
Просмотров 2,8 тыс.
Control rotation and speed with Micro:bit
7:15
Просмотров 7 тыс.
Alisha Lehmann joins Juventus Women 🤍🖤
00:16
Micro:bit & Motion Detector (PIR / Proximity Sensor)
11:26
DFPlayer and Micro:bit
9:09
Просмотров 1,8 тыс.
PIR Sensor (Raspberry Pi)
8:12
Просмотров 45 тыс.
Sensors - which one to use
17:06
Просмотров 1,3 млн
Acer Predator Тараканьи Бега!
1:00
Просмотров 426 тыс.
#engineering #diy #amazing #electronic #fyp
0:59
Просмотров 339 тыс.