Key facts
- Brand
- STMicroelectronics
- Model
- MiniSTM32
- Category
- Other Electronics
- Documents
- 2
- Languages
- ZH
- Last added
- 2012-02-06
Start here

ALIENTEK MiniSTM32 DS18B20 Experiment Guide
This guide explains how to add a DS18B20 one‑wire temperature sensor to the ALIENTEK MiniSTM32 development board and read temperature values. It includes an introduction to the DS18B20, hardware connection details, software implementation, and steps for downloading and testing the code.
The document provides the required circuit connections, source code files (ds18b20.c/h), and a sample main program that initializes the sensor, reads temperature every 200 ms, and displays the result on the LCD and LED indicators. This manual is written in Chinese.
STMicroelectronics MiniSTM32 specifications
| Temperature range | -55~+125 °C |
|---|---|
| Operating voltage | 3 V–5.5 V |
| Resolution | 9–12 bits |
| Microcontroller used | STM32F103RBT6 |
| Data line connection | PA0 via jumper |
All STMicroelectronics MiniSTM32 documents by type
Day-to-day operation, settings and troubleshooting. Start here if the product is already set up.
Questions answered in these manuals
How do I connect the DS18B20 sensor to the MiniSTM32 board?
Connect the DS18B20 data pin to the PA0 pin of the board using a jumper, power the sensor with 3‑5.5 V, and ensure the PA0 line is not left floating.
What function reads the temperature from the DS18B20?
Call the function DS18B20_Get_Temp(), which returns the temperature in 0.1 °C units as a signed short.
What voltage does the DS18B20 operate at?
The DS18B20 works in the 3 V to 5.5 V voltage range.
From: STMicroelectronics MiniSTM32 User Manual – DS18B20 Temperature Sensor
What format does the temperature value use in the code?
DS18B20_Get_Temp returns a signed short where the value is ten times the temperature (‑550 to 1250).
From: STMicroelectronics MiniSTM32 User Manual – DS18B20 Temperature Sensor
