KD0030 kidsbits Blocks Coding 18B20 Temperature Sensor (Black and Eco-friendly)

1. Description

kidsbits blocks coding DS18B20 temperature 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 DS18B20 temperature sensor is exactly what it sounds like – a sensor used to measure ambient temperature.
The usable temperature ranges from -55℃to +125℃, with measurement error of 1℃.
The DS18B20 temperature sensor is the best choice in applications which require high accuracy and high reliability.

For electronic enthusiasts and hobbyists, the DS18B20 is a good start for learning and developing temperature-dependent prototypes.

2. Technical Parameters

  • Interface: EASY plug
  • Operating voltage: DC 5V
  • Measured temperature range: -55℃~+125℃
  • Measured temperature error: 1℃

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

Open the code folder we provided, or you are able to directly drag the code to Mixly window.

You can click the Code to check the C language.

6. Code Explanation

Write the Code:

Restart the Mixly software, follow the method mentioned above, find the module. Shown below.

  • 0: the control pin the module should connected. In the test code, we set to digital pin 6.
  • ℃: the unit of temperature value read. The default is Celsius (℃) and Fahrenheit (℉).

7. Test Result

Hook it up and upload the code success, open the monitor and set the baud rate to 9600. It will display the current temperature value, with unit of Celsius (℃) and Fahrenheit (℉).

8. Resources Download