background image

 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. 

Summary of Contents for DS18B20

Page 1: ...ionor detectingg something far away The DS18B20 provides 9 to 12 bit configurable temperature readings over a 1 Wire interface so that only one wire and ground needs to be connected from a central mic...

Page 2: ...meter and roughly 50mm long Overall length including wire is 0 5 meter Specification Power supply 3 0V to 5 5V Wide temperature range 55 C to 125 C High accuracy 0 5 C 10 C to 85 C Overview The Me Tem...

Page 3: ...including line Short time delay in temperature conversion maximum 750ms Support multi point networking Perfect waterproof property Support mBlock GUI programming and applicable to users of all ages P...

Page 4: ...dule to the Arduino UNO Baseboard its SIG pin should be connected to digital port as follows Guide to programming Arduino programming If you use Arduino to write a program the library Makeblock Librar...

Page 5: ...g The code segment serves to read the readings of Me Temperature Sensor and output the result to the serial monitor in Arduino IDE with the cycle of 1s Upload the code segment to Makeblock Orion click...

Page 6: ...tures 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...

Page 7: ...The digital output of 125 is 07D0H For a positive temperature directly convert the hexadecimal number into a decimal number The digital output of 55 is FC90H For a negative temperature invert the hexa...

Reviews: