stm32f103_ds18b20_modbus
Data acquisition device for digital thermometers ds18b20 and modbus-tcp server. Project uses HAL library and STM32CubeMX
0
Components
Hardware componentsProject description
- Description.
This project implements a data acquisition device for the digital thermometer DS18B20 and a MODBUS-TCP server. Up to 77 BS18B20 thermometers can be set up, and they are read every 2 seconds. Provides thermometer information via the ModBus protocol. Various additional features can be optionally enabled/disabled. The project uses the HAL library and the initial code was generated with the STM32CubeMX.
- Use of WIZNET's chip in the project: The project employs the W5500 ethernet board connected to the SPI1 interface of the Blue Pill (stm32f103c8t6) for data communication.
- An overview of the project: The main objective is to read data from up to 77 ds18b20 thermometers every two seconds and make this data available through the ModBus protocol.
- Key aspects of the code: The code is built upon the HAL library and was initially generated with STM32CubeMX. Various features or modules can be enabled or disabled, such as WDT, RTC, NTP client, DNS client, LCD 16x02, ds18b20 thermometers, rotary encoder, BMP180 barometer, and ModBus server.
- Conclusion about the project: This project offers a robust solution for those looking to integrate ds18b20 thermometers with a modbus-tcp server, providing flexibility in terms of additional modules and features.
- Any important notes: The project is still a work in progress, and users are advised not to use the code for any critical systems.
- Potential future development and scalability of the project: The modular nature of the project allows for the addition of more features and compatibility with other hardware components. The use of standard protocols like ModBus ensures that the project can be integrated with various other systems.
- Any other meaningful information: The project provides a detailed guide on how to set up the hardware components, configure the software flags, and get started with the system. An external tool, mbpoll, is recommended for testing and debugging with the modbus-tcp protocol.
Documents
-
my_w5500.c
This file will likely contain the main code for controlling the W5500 Ethernet chip; it will implement the initial setup of the W5500, sending and receiving data, managing connections, etc.
-
main.c
It is possible that the initialization code specific to the W5500 is located here.


