Ks0422 keyestudio micro:bit PIR Motion Module: Difference between revisions

From Keyestudio Wiki
Jump to navigation Jump to search
No edit summary
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:


[[image:Ks0421-1.png|thumb|300px|right|keyestudio TEMT6000 Light Module For BBC micro:bit]]
[[image:Ks0422-1.png|thumb|300px|right|keyestudio PIR Motion Module For BBC micro:bit]]


<br>
<br>
==Description==
==Description==
This keyestudio TEMT6000 light module is fully compatible with micro:bit control board. <br>
This keyestudio PIR motion module is fully compatible with micro:bit control board.<br>
This module is mainly composed of a highly sensitive visible photocell (NPN type) triode, which can magnify the captured tiny light illumination changes by about 100 times, and is easily recognized by the microcontroller for AD conversion. <br>
It is mainly composed of a digital pyroelectric infrared sensor, which is a digital signal output device. <br>
Its response to visible light illumination is similar to that of the human eye, so that can detect the intensity of ambient light.<br>
This sensor has built-in filters, strong anti-interference, low voltage and micro power consumption. <br>
   
The detection distance of the module is 3-5 meters. <br>
There are total 6 rings on the module. Note that two G rings, two V rings and two S rings are connected. G for ground; V for 3V; S for signal pin(0 1 2).<br>
The detection angle in the horizontal direction is less than 80°; the detection angle in the vertical direction is less than 55° <br>
It is an analog signal output device.<br>
There are total 6 rings on the module. Note that two G rings, two V rings and two S rings are separately connected. G for ground; V for 3V; S for signal pin(0 1 2).<br>
When using, connect the module to micro:bit control board using Crocodile clip line.<br>
When using, connect the module to micro:bit control board using Crocodile clip line.<br>
You can use it to detect the ambient light intensity by reading the analog value of signal pin.
Once detecting someone moving nearby, the signal pin of micro:bit main board will input HIGH level; LED on the module lights.
<br>
<br>
<br>
<br>
== Technical Parameters ==
== Technical Parameters ==
* Working voltage: DC 3.0-3.3V  
* Working voltage: DC 3.0-3.3V
* Output Signal: Analog signal  
* Working current: 100mA
* Dimensions: 31mm*27mm*2.5mm
* Maximum power: 0.5W
* Weight: 1.7g
* Output signal: digital signal
* Environmental attributes: ROHS  
* Detection distance: 3-5 meters
* Detection angle: less than 80°in the horizontal direction and less than 55° in the vertical direction
* Operating temperature range: -30℃~ +80℃
* Dimensions: 31mm*27mm*6mm
* Weight: 2g
* Environmental attributes: ROHS


<br>[[File:Ks0421-2.png|450px|frameless|thumb]]<br>
<br>[[File:Ks0422-2.png|450px|frameless|thumb]]<br>


<br>
<br>
== Connection Diagram==
== Connection Diagram==
[[File:Ks0421-3.png|500px|frameless|thumb]]<br>
[[File:Ks0422-3.png|500px|frameless|thumb]]<br>


<br>
<br>
== Source Code ==
== Source Code ==
[[File:Ks0421-4.png|600px|frameless|thumb]]<br>
[[File:Ks0422-4.png|600px|frameless|thumb]]<br>


<br>
<br>
Line 35: Line 40:
== Example Result ==
== Example Result ==
Connect well the module, then send the source code to the micro:bit main board.<br>
Connect well the module, then send the source code to the micro:bit main board.<br>
You should see the LED matrix show the rolling dot. Or you can open the serial monitor of Arduino IDE to see the analog value of light intensity.<br>
When detecting someone moving nearby, the LED matrix on the micro:bit main board will show a heart shape icon, and led on the PIR module lights.
The stronger the ambient light intensity, the greater the analog value is.
Or else, it will show another image and led turns off.  
<br>[[File:Ks0421-5.png|600px|frameless|thumb]]<br>
<br>[[File:0422图片1.png|600px|frameless|thumb]]<br>


<br>
<br>


==Resources ==
==Resources ==
Download all relevant info. below: <br>
 
https://drive.google.com/open?id=1qIuNnApxBuOfQYOf4nx3hV_BnXVWC-_h
*'''Download relevant datasheet and code:
 
''' https://fs.keyestudio.com/KS0422'''
 
* [http://microbit.org/  BBC micro:bit website ] <br>
* [https://makecode.microbit.org/  Micro:bit MakeCode Block Editor ]<br>
* [http://microbit.org/guide/  Meet micro:bit starter programming] <br>
* [http://microbit.org/guide/features/    BBC micro:bit Features Guide ] <br>
* [http://microbit.org/guide/features/    BBC micro:bit Safety Warnings ] <br>
* [http://microbit.org/guide/quick/  BBC micro:bit Quick Start Guide ]  <br>
* [http://microbit.org/guide/hardware/pins/ BBC micro:bit Pins ]


<br>
<br>
==Get One Now==
*[https://www.aliexpress.com/store/product/keyestudio-PIR-Motion-Sensor-Module-For-BBC-micro-bit/1452162_32997053565.html?spm=2114.12010611.8148356.13.3f896c0eHzY5BG  Shop on aliexpress ]
*[https://www.keyestudio.com/keyestudio-pir-motion-sensor-module-for-bbc-microbit-p0537-p0537.html  Official website]
[[Category: Micro:bit]]

Latest revision as of 11:08, 1 March 2021

keyestudio PIR Motion Module For BBC micro:bit


Description

This keyestudio PIR motion module is fully compatible with micro:bit control board.
It is mainly composed of a digital pyroelectric infrared sensor, which is a digital signal output device.
This sensor has built-in filters, strong anti-interference, low voltage and micro power consumption.
The detection distance of the module is 3-5 meters.
The detection angle in the horizontal direction is less than 80°; the detection angle in the vertical direction is less than 55°
There are total 6 rings on the module. Note that two G rings, two V rings and two S rings are separately connected. G for ground; V for 3V; S for signal pin(0 1 2).
When using, connect the module to micro:bit control board using Crocodile clip line.
Once detecting someone moving nearby, the signal pin of micro:bit main board will input HIGH level; LED on the module lights.

Technical Parameters

  • Working voltage: DC 3.0-3.3V
  • Working current: 100mA
  • Maximum power: 0.5W
  • Output signal: digital signal
  • Detection distance: 3-5 meters
  • Detection angle: less than 80°in the horizontal direction and less than 55° in the vertical direction
  • Operating temperature range: -30℃~ +80℃
  • Dimensions: 31mm*27mm*6mm
  • Weight: 2g
  • Environmental attributes: ROHS


thumb


Connection Diagram

thumb


Source Code

thumb


Example Result

Connect well the module, then send the source code to the micro:bit main board.
When detecting someone moving nearby, the LED matrix on the micro:bit main board will show a heart shape icon, and led on the PIR module lights. Or else, it will show another image and led turns off.
thumb


Resources

  • Download relevant datasheet and code:

https://fs.keyestudio.com/KS0422


Get One Now