1. Description

kidsbits blocks coding ultrasonic 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.

The distance sensor are really common in robotics projects, very useful for automation, interactive art and motion sensing.
This kidsbits Ultrasonic sensor integrates ultrasonic transmitter, receiver and corresponding control circuit. It is mainly used to measure the distance between obstacles. The sensor has the features of high precision, super close blind zone (2cm) and stable performance.

You will learn how to use the sensor with Mixly blocks coding, easy to use and play! Get started right now.

2. Technical Parameters

  • Interface: EASY plug
  • Operating voltage: DC 5V
  • Operating current: 15mA
  • Operating frequency: 40khz
  • Measured distance: 2-200cm
  • Sensing angle: less than 15 degrees
  • High precision: up to 3mm

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. Test Code

Click the Code to check the C language:

6. Test Result

Wire it up and upload the code successfully, click to open the monitor and set the baud rate to 9600, you should see the measured distance between ultrasonic sensor and front obstacles. 

7. Resources

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