The ESP32 WiFi OneWire MQTT project is a simple way to read the data from DS18B20 temperature sensors connected to an ESP32 microcontroller, and send the data to an MQTT broker over Wi-Fi.
Based on: https://github.com/espressif/esp-idf
1. Features
2. Monitor And Control Your Project
3. Getting Started
4. Contributing
5. License
- ESP-IDF v5.0.2
- Reading temperature data from a DS18B20 sensor using the OneWire protocol.
- Sending temperature data to an MQTT broker over Wi-Fi.
- Easy-to-use API for customizing the firmware to meet your specific needs.
- Used Wi-Fi, OneWire, DS18B20, MQTT technology.
- Written in C language.
- MIT License.
You have the ability to monitor and control your Internet of Things (IoT) projects with some app like IoT OnOff.
To get started with the ESP32 WiFi OneWire MQTT project, you'll need an ESP32 microcontroller, a DS18B20 temperature sensor, and access to an MQTT broker. You'll also need to install the ESP-IDF development framework.
git clone https://github.com/VPavlusha/ESP32_WiFi_OneWire_MQTT.git
- Edit the main/Kconfig.projbuild file with your Wi-Fi, DS18B20 and MQTT settings.
The ESP32 WiFi OneWire MQTT firmware is designed to be easily customizable. You can use the provided API to change the MQTT topic, adjust the temperature DS18B20 port connections, Wi-Fi settings and more.
cd ESP32_WiFi_OneWire_MQTT
idf.py build
idf.py -p PORT [-b BAUD] flash
Replace PORT with your ESP32 board’s serial port name.
You can also change the flasher baud rate by replacing BAUD with the baud rate you need. The default baud rate is 460800.
idf.py -p <PORT> monitor
Do not forget to replace PORT with your serial port name.
- Check the output on the serial monitor to verify that the ESP32 is connecting to your Wi-Fi network and MQTT broker.
- Check your MQTT broker to verify that temperature data is being sent.
More information how to build project: ESP-IDF Programming Guide.
Contributions to the ESP32 WiFi OneWire MQTT project are welcome. If you find a bug or have a feature request, please submit an issue on the project's GitHub page. If you'd like to contribute code, please submit a pull request.
The ESP32_WiFi_OneWire_MQTT project is licensed under the MIT License. See the MIT license file for more information.