Skip to content

some-otter-thing/keepTheBoxGreen-arduino

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

85 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Table of contents

Project Description

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:

lcd prototype

Data Flow

The board uses Azure cloud provider for publishing and storing data.

data-flow

Local Installation:

  1. Create a header file within Main folder
touch arduino_secrets.h
  1. 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 ""
  1. You need to have following libraries installed:

    1. Wifi:
      • WiFiNINA library
    2. MQTT connection:
      • ArduinoMqttClient
      • ArduinoBearSSL
      • ArduinoECCX08
      • ArduinoJson
    3. TFT Display
      • Adafruit BusIO
      • Adafruit_GFX
      • Adafruit_ST7735 & ST7798
    4. DHT22
      • Adafruit DHT sensor library
    5. LED
      • FastLED
    6. Dust Sensor
      • Nova Fitness SDS dust sensors library

Guides:

Schematics and blueprint

  • Use fritzing to open the file in assets folder
  • Need to sign up if you don't want to pay for it..

Hardware Components:

  1. Arduino MKR 1010 Board
  2. DHT22 Sensor
  3. HC-SR0 4Ultrasonic Sensor
  4. Generic LED Strip
  5. Generic 1.8" TFT Display
  6. Nova PM SDS011 PM 2.5 sensor

Fritzing breadboard hardware planning Fritzing schematics planning

Releases

No releases published

Packages

No packages published