●
mBlock programming
The Me Temperature Sensor-Waterproof module supports the mBlock programming
environment and its instructions are introduced as follows:
This is an example on how to use mBlock to control the Me Temperature Sensor module.
It will make the panda speaking out the value of temperature captured by the Me Temperature
Sensor, and the running result is as follows:
Principle analysis
With the main component DS18B20, the Me Temperature Sensor module features
miniaturization, low power consumption, high performance, strong anti-interference ability, and
matching with microprocessor easily. Adopting unique single bus port mode, DS18B20 is in
connection with a microprocessor by only a bus to implement two-way communication
between the microprocessor and DS18B20. The module supports the function of multi-
point networking, so several DS18B20 can be connected in parallel on the only three-line to
implement multi-point temperature measurement, and the measurement results are
transmitted in 9~12 bits serial digital mode. When communicated with a single chip computer,
you can set the resolution by configuring the register.