https://github.com/auralius/iot-temperature-control
IoT demo with a PID-controller thermal system
https://github.com/auralius/iot-temperature-control
arduino-uno esp8266 iot-application pid
Last synced: 23 days ago
JSON representation
IoT demo with a PID-controller thermal system
- Host: GitHub
- URL: https://github.com/auralius/iot-temperature-control
- Owner: auralius
- Created: 2024-12-29T02:43:03.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-01T21:43:32.000Z (over 1 year ago)
- Last Synced: 2025-01-16T02:56:04.608Z (over 1 year ago)
- Topics: arduino-uno, esp8266, iot-application, pid
- Language: C++
- Homepage:
- Size: 1.8 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# iot-temperature-control
The temperature control device that we use here is described [in this page](https://www.notion.so/Universitas-Pertamina-Temperature-Control-Device-02b5a889e17d4ee9ae5521881e55af0d). [This link](https://github.com/auralius/up_temperature_control_device) leads to the GitHub repository of the device. Details on the PID control can be found [here](https://github.com/auralius/arduino-pid-template/tree/thermal).
Since the temperature control device is built on top of an Arduino Uno, we add an ESP8266 to allow internet communications.
## The Scenario
* We only use one of the two available heaters.
* There are two exchanged variables in the overall system:
* ```PV```: process value, which is the current temperature of the heater.
* ```SV```: set value, which is the desired (reference) temperature of the heater.
* A PID control loop is running (1kHz, realtime) in the Arduino Uno.
* Arduino Uno sends ```PV``` to ESP8266. ESP8266 publishes ```PV```. MQTT server subscribes ```PV```.
* MQTT server publishes ```SV```. ESP8266 subscribes ```SV```. ESP8266 sends ```SV```to Arduino Uno.
* Communication loop between Arduino Uno and ESP8266 runs at a much lower rate (less than 1 Hz, not realtime).
## The System

## The Concept

## Arduno Uno - ESP8266 Serial Communication

The implementation of the serial communication follows [this link](https://forum.arduino.cc/t/serial-input-basics-updated/382007).