This guide will walk you through the process of connecting the Dash IoT Dashboard App to an ESP32 equipped with a one-wire temperature sensor, allowing you to read the temperature and create alarms:
- Demonstrates a TimeGraph control which is updated every 10 minutes on the Dash IoT app.
- The temperature is also shown on a TextBox control on the Dash IoT app.
- Compatible with Dallas one-wire temperature sensors.
- Communicates through a Dash MQTT connection.
- Requires the Dash MQTT server for continuous temperature storage.
Before you begin, make sure you have the following:
- An ESP32 dev board.
- Tempreature sensor attached to pin 13, but can be changed.
- Arduino IDE with the arduino-dashio library installed, available on GitHub.
- The Dash IoT app available here:
Apple | Android |
---|---|
-
Clone or Download the Code: You can clone the code provided in this repository or download it as a ZIP file.
-
Modify Arduino File: Edit the esp32-temp-sensor.ino file and enter your WiFi (yourWiFiSSID & yourWiFiPassword) and Dash account credentials (yourMQTTuserName, yourMQTTpassword) for the MQTT connection.
-
Install the Arduino File: Install and run the esp32-temp-sensor.ino file on your ESP32.
-
Access the DashIO Dashboard: Open the Dash IoT Dashboard App on your mobile device.
-
Log In to your DashIO account: If you don't have a DashIO server account and subscription, you can create one in the Dash IoT app.
-
View your IoT device: Under 'All Devices' -> 'Find New Device' -> 'My Devices on Dash', You should see a device named "Temperature" in your dashboard. Tap on it to access your IoT device.
-
Watch the temerature: You will see the current temperature and the temperature graph will be updated every 10 minutes. You can zoom in and out and scroll through the temperature graph.
-
Set Alarms: You can set the maximum and minimum temperature alarms. When the temperature falls outside the alarm setpoint you will receive a notification on your mobile device.
-
Uses the serial monitor to show what is going on (115200 baud).
-
A BLE connection could easily be added for provisioning and to locallly connect to your Iot device.
-
Feel free to explore and modify the code to add more features or integrate it with other sensors and controls.
Congratulations! You've successfully connected your ESP32 with a temperature sensor to the Dash IoT Dashboard App.
You dashboard should look like this: