Skip to content

MicheleBellitti/AusCare-IoT

Repository files navigation

AusCare-IoT-UniMoRe

alt text

Link to Google Slides presentation

Wiring connection of the display (ST7735S Display)

SCREEN PIN	RASPBERRY PI PIN
GND	Ground (pins 6, 9, 14, 20, 25, 30, 34 or 39)
VCC	5v Power (pins 2 or 4)
SCL	GPIO 11 (pin 23)
SDA	GPIO 10 (pin 19)
RES	GPIO 25 (pin 22)
DC	GPIO 24 (pin 18)
CS	GPIO 8 (pin 24)
BL	Not connected

$ pip3 install st7735
$ pinout

Install the required packages for the flask application

$ pip install -r requirements.txt

Run the application on localhost

$ python run.py

Install ngrok and add auth token

$ snap install ngrok # Linux Systems
$ brew install ngrok/ngrok/ngrok # Mac

$ ngrok config add-authtoken <token>

Run the application using ngrok

$ python run-ngrok.py

to test the emotion recognition script

$ python experiments/emotion-detector-deployed/emotion_detect.py