The main goal is to build an Arduino device, which is going to collect data from different sensors. It has simple logic behind which helps to indicate if any working conditions are violated by changing the colour of a box #keepTheBoxGreen. For example when a person is sitting in front of the laptop for more than 45 min, the light of the box will change its colour to red and LCD display will print an appropriate advice, in case if any sensors metrics will be out of the optimal numbers, LCD display will show that by changing color of the displayed data.
This repo consists of code for Arduino MKR1010 board.
API implementation repo: link to api repo
WEB implementation repo: link to web repo
Prototypes:
The board uses Azure cloud provider for publishing and storing data.
- Create a header file within Main folder
touch arduino_secrets.h
- Add information about wifi:
#define SECRET_SSID "here is network name"
#define SECRET_PASS "here is the password of wifi"
#define SECRET_BROKER ""
#define SECRET_DEVICE_ID ""
-
You need to have following libraries installed:
- Wifi:
- WiFiNINA library
- MQTT connection:
- ArduinoMqttClient
- ArduinoBearSSL
- ArduinoECCX08
- ArduinoJson
- TFT Display
- Adafruit BusIO
- Adafruit_GFX
- Adafruit_ST7735 & ST7798
- DHT22
- Adafruit DHT sensor library
- LED
- FastLED
- Dust Sensor
- Nova Fitness SDS dust sensors library
- Wifi:
-
Connecting to wifi - link
-
Explanation of necessary drivers for the Arduino MKR1000 series of boards - link
-
Helper to make json https://arduinojson.org/v6/assistant/
- Use fritzing to open the file in assets folder
- Need to sign up if you don't want to pay for it..
- Arduino MKR 1010 Board
- DHT22 Sensor
- HC-SR0 4Ultrasonic Sensor
- Generic LED Strip
- Generic 1.8" TFT Display
- Nova PM SDS011 PM 2.5 sensor