Commit d527403a by Indrek Guitor

Update README.txt

parent abfa8efb
Showing with 40 additions and 37 deletions
EMBEDDED SOFTWARE WORKSHOP PROJECT EMBEDDED SOFTWARE WORKSHOP PROJECT
AUTHORS: AUTHORS:
RIM PUKS 182558 IASM RIM PUKS 182558 IASM
INDREK GUITOR 182555 IASM INDREK GUITOR 182555 IASM
LINK TO VIDEO LINK TO VIDEO
https://drive.google.com/file/d/1WoQsEd66PgRu2aDheJ49QU8MXd5tRifi/view?usp=sharing https://drive.google.com/file/d/1WoQsEd66PgRu2aDheJ49QU8MXd5tRifi/view?usp=sharing
SCHEMATIC ILLUSTRATING THE PROJECT IS ADDED TO GIT SCHEMATIC ILLUSTRATING THE PROJECT IS ADDED TO GIT
SUMMARY SUMMARY
The main goal of this project was to test different ways to send data using MQTT. This project uses the public broker iot.eclipse.org.
The system logs, displays and uploads Hall sensor and temperature data. The main goal of this task is to demonstrate ESP and Raspberry communication with MQTT.
The project includes: ESP32, Raspberry Pi, integrated LED in ESP32, integrated hall sensor in ESP32, Wemos D1 Mini, temperature sensor,
Hall sensor node LCD, Eclipse public broker iot.eclipse.org, ThingSpeak cloud for visualization and system logs. The code for this project are written in C, Python and Arduino.
This is Sparkfun ESP32 Thing with internal Hall sensor. Since the previous lab task (Mario ESP32 task) was written with Eclipse in C, it was decided
that this task would be in different language, Arduino. Hall sensor node
ESP32 first connects to wifi and gets IP address, after which it connects to MQTT broker to publish and subscribe to the hall sensor topic. This is Sparkfun ESP32 Thing with internal Hall sensor. Since the previous lab task (Mario ESP32 task) was written with Eclipse in C, it was decided
Then the ESP32 reads the HALL sensor (reads magnitude of a magnetic field) every second and sends the data to this server. that this task would be in different language, Arduino.
It also reads the data published to this server and reacts to it. For example, if the hall sensor ESP32 first connects to wifi and gets IP address, after which it connects to MQTT broker to publish and subscribe to the hall sensor topic.
value is low (under 0), it turns on the blue LED, if the hall sensor value is high (over 0) it turns the LED off. Then the ESP32 reads the HALL sensor (reads magnitude of a magnetic field) every second and sends the data to this server.
It also reads the data published to this server and reacts to it. For example, if the hall sensor
Temperature sensor node value is low (under 0), it turns on the blue LED, if the hall sensor value is high (over 0) it turns the LED off.
This node composes of Wemos D1 Mini with attached AM2302 temperature sensor shield. It reads the sensor value using Adafruit Sensor library and
publishes the temperature sensor value to "embedded/temp" topic. Temperature sensor node
It is programmed using ITT IoT software framework. This node composes of Wemos D1 Mini with attached AM2302 temperature sensor shield. It reads the sensor value using Adafruit Sensor library and
publishes the temperature sensor value to "embedded/temp" topic.
Raspberry Pi It is programmed using ITT IoT software framework.
The Raspberry Pi has 3 Python scripts running concurrently. Each of them is its own MQTT node.
- Display node Raspberry Pi
Display node subscribes to "embedded/hall" and "embedded/temp" topics and displays their newest values on LCD screen. Communication with the screen uses I2C protocol. The Raspberry Pi has 3 Python scripts running concurrently. Each of them is its own MQTT node.
- Logger node - Display node
Logger node also subscribes to "embedded/hall" and "embedded/temp" topics. It then writes them to a corresponding file (temp.log and hall.log). Display node subscribes to "embedded/hall" and "embedded/temp" topics and displays their newest values on LCD screen. Communication with the screen uses I2C protocol.
It also adds a timestamp. - Logger node
- Thingspeak node Logger node also subscribes to "embedded/hall" and "embedded/temp" topics. It then writes them to a corresponding file (temp.log and hall.log).
This node also subscribes to the same topics as the previous nodes. Every 20 seconds, it uploads the temperature and Hall sensor values to the Thingspeak It also adds a timestamp.
- Thingspeak node
This node also subscribes to the same topics as the previous nodes. Every 20 seconds, it uploads the temperature and Hall sensor values to the Thingspeak
database. database.
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment