Project for 420-531-VA (Internet of Things)
-
Raspberry Pi 4 (or equivalent compatible board)
-
ESP8266 or ESP32 microcontroller
-
The GPIO are setup as follows
Function | Pin (RPi) | Pin (ESP8266) |
---|---|---|
LED | 17 | |
DHT11 | 4 | |
Motor EN | 23 | |
Motor IN1 | 24 | |
Motor IN2 | 25 | |
Photoresistor | A0 | |
RFID Reader | Refer to this article |
Create a file .env
, containing the following
NOTIFICATION_EMAIL=<notification recipient>
EMAIL_ADDRESS=<email address>
EMAIL_PASSWORD=<email password>
Run the following commands to install the required libraries
pip install -r requirements.txt
npm install
Make sure that the mosquitto broker is running, then run the following terminals simultaneously (on different terminals)
- Bluetooth packet listener
sudo node bluetooth.js
- IoT Dashboard
python app