Professional Documents
Culture Documents
IoT Group Project - Instruction Sheet
IoT Group Project - Instruction Sheet
Remote Monitoring of Coke Cans in a Fridge using ESP32 and MQTT Protocol,
with Real-time Updates on Smartphones
Upload the finalized group details to the excel sheet given in LMS before April 7th 2023.
Overview:
In this project, you will build a system that monitors the temperature of Coke cans in a fridge and sends
real-time updates to a smartphone using MQTT protocol. The system will also notify if Coke is available
and its temperature is below a specified threshold.
Materials Required:
● Jumper wires
● Breadboard
● USB cable
● Micropython
● C++
Step-by-Step Instructions:
1. Connect the temperature sensor and the Ultrasonic or IR sensor to the ESP32 board.
5. Implement the MQTT protocol in ESP32 that publishes the temperature readings on the
“esp/temperature" topic every 5 seconds.
6. Add to the above code in ESP32 a code to publish a text message on the “esp/notification”
topic every 30 mins considering the following conditions.
i. Coke is available.
ii. Temperature in the fridge is below a threshold (e.g. 8 °C).
The text output should be “Coke is Available”, if both the following conditions are met. Otherwise
it should be “Coke is Not Available”
10. Use the mobile app to view temperature readings as a graph of temperature vs time.
11. Receive text message notifications in the App regarding the status of Coke bottles in the fridge.
At the completion of the project,submit a report and a video presentation in a zip folder to the LMS before
the deadline specified. The report should include the following sections:
● Introduction:
● Literature Survey:
● Provide a brief overview of the sensors, hardware boards, and MQTT protocol
used in the project.
● Methodology:
● Hardware Implementation:
● Include specifications for the hardware and software used in the design.
● Explain the method used in connecting ESP 32 and the smart phone to the
MQTT broker
● Present two plots that show the variation of temperature against time and availability of
Coke against time.
● Video Presentation:
● Create a 3-minute video presentation in MP4 format that covers the main points of the
project, including the problem statement, methodology, results, and discussion.
Reference links
1. https://www.youtube.com/watch?v=P8DnANWusrM
2. https://www.youtube.com/watch?v=hyJhKWhxAxA
3. https://microcontrollerslab.com/esp32-micropython-mqtt-publish-subscribe
4. https://randomnerdtutorials.com/micropython-mqtt-esp32-esp8266