1. Description

kidsbits blocks coding PIR motion sensor is fully compatible with kidsbits control board and Lego building blocks.

You can easily connect it to kidsbits control board for communication using an RJ11 cable without worrying about wrong connection and damage.

PIR stands for Pyroelectric Infrared (many times, they are also referred as Passive Infrared sensors). This is because their principle of operation is based on the detection of infrared energy emitted by a moving body.

The PIR sensor can detect infrared signals from a moving person or moving animal, outputting switching signals.

It is actually an automatic control product based on infrared technology. It has the characteristics of high sensitivity, high reliability, ultra-low power consumption, ultra-low voltage working mode, etc.

It can be applied to all kinds of automatic induction electrical equipment, especially the automatic control products of dry battery power supply.

2. Technical Parameters

  • Interface: EASY plug
  • Operating voltage: DC 5V
  • Output signal: digital signal

3. Wiring Diagram

4. Import kidsbits library

Begin with the Mixly blocks coding, you should first import the corresponding kidsbits library for those sensor modules.

Connect the control board to your computer using a USB cable.

Then open the Mixly blocks software 0.998, set the board to UNO R3, select your correct COM port. On the upper right corner you can switch the language.

After that, click Import, import the keyes-kidsbits library. Shown below.

If import custom library successfully, you should see the sensor module library shown below.

Click on the display screen block of keyes_kidsbits, you can directly use the corresponding module.

5. Upload Code

Click Open to open the existing code or directly drag the test code to Mixly  window:

Click Code to check the C language:

6. Test Result

Wire it up and upload the code successfully, powered on, the POW led on the sensor is normally on.

Click to open Monitor and set the baud rate to 9600.

When the sensor detects someone moving nearby, both SIG LED on the sensor and D13 indicator on the control box are turned on; monitor screen will show the character like “Somebody is in this area!”

If no detecting someone moving nearby, both leds are turned off and the monitor window will show the character like “No one!”

7. Resources Download

https://drive.google.com/open?id=1eyWeFpy65ulBI9zN6F5Nc1T6fBlvwvYd

Leave a Reply

Your email address will not be published. Required fields are marked *