idc_temperature

IDC Temperature sensor

The temperature sensor is a smart solution for projects that work with measuring ambient temperature. It allows for easy connection via IDC connector and instant reading of temperature values using micro:bit in MakeCode environment. Try out temperature alarm, monitoring changes during the day or measuring in different conditions while learning the basics of programming, electronics and working with sensors in a fun way.

Description

The temperature sensor is a simple input module that allows for accurate measurement of ambient temperature over a wide range. It is ideal for weather experiments, measuring environmental changes, or demonstrating physical phenomena. Thanks to the IDC connector, it can be easily connected to the micro:bit via a universal fixture.

Specifications

  • Converter manufacturer: OMG Robotics
  • Probe type: DS18B20
  • Working voltage: 3V - 5,5V
  • Measuring range: -55°C to +125°C
  • Measurement accuracy: ± 0,5°C
  • Connection: IDC cable

Connection

Example of temperature sensor connection

The temperature sensor can be easily connected to the universal jig for micro:bit using an IDC cable. The operating instructions for the universal jig can be found at the following link.

Thermometer – Module Connection

  • Yellow cable: signal wire – connect to terminal Y (yellow)
  • Red cable: power wire – connect to terminal R (ed.)
  • Black cable: ground wire – connect to the terminal B (black)

Connection Module – Universal fixture (micro:bit)

Use a six-wire ribbon cable terminated with an IDC connector. First plug the IDC connector into the universal fixture at position 1 (pin 2) and then plug the other end into the temperature sensor module. The IDC connector has a groove that allows it to be plugged in only in the correct direction.

temperature_sensor_connection

Program

Basic program

When starting the program, we first initialize the display using the “connect LCD at I2C” block with address 39, which is fixed for the LCD1602 display. We then print text on the display, such as “OMG Robotics” or the name of your school, and after a short pause, we clear the screen. Then we set the text on the first line, which remains unchanged during the program – ideally the name of the quantity and its unit. We also set the position and alignment of the text.

In the “forever” loop, we continuously display the measured value on the second line of the display. We read the data from position 1 of the universal fixture, where the temperature sensor is connected. We round the measured value to one decimal place and then display it as a numerical output on the display.

Tasks

Task 1: Measuring the temperature in different parts of the room

Connect the temperature sensor according to the diagram and observe the measured values on the display. Place the sensor in different parts of the room - for example, by the door, by the window, in the shade or near the heater. Record the temperatures and compare where it is warmer and where it is colder. What differences did you measure?

Task 2: Recording temperature change over time

Place the sensor in a quiet place and record the temperature every 10 minutes for an hour. Watch how the temperature changes over time.

  • Have there been any changes? If so, what could have caused them?
  • How quickly does the environment heat up or cool down?
  • Try to graphically represent the course of temperature changes.

Task 3: Comparing the temperature of different objects

Use the sensor to measure the surface temperature of various materials – e.g. a metal spoon, a plastic cup, a wooden cutting board or your hand.

  • Which material is the warmest and which is the coldest?
  • Measure items after warming in the sun or cooling in the refrigerator.
  • How long does it take for an object to warm back to room temperature?