Skip to content

juliastic/SmoothMove-Project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

SmoothMove

This README.md serves as an additional technical documentation of the project implemented in the course Design Thinking: Explorative Prototyping. The project revolved around displaying air quality data - measured with MQ Sensors - on a website.

Main communication workflow: Arduino->node.js server->Website

The data is received and parsed in JSON format: {"CO2":10,"CH4":100.2,"SMOKE":10,"TOLUENE":10,"NH4":10,"ACETONE":10,"CO":10,"H2":10,"FG":10}

Prerequisites

Setup Arduino

  • Connect Arduino Nano to computer with relevant sensors
  • Within Arduino IDE:
    • Install library MQUnifiedsensor to allow the arduino to read MQ Sensor references
    • Install library DHT sensor library if DHT11, DHT22, etc. sensors get used to measure Temperature & Humidity
    • Optional: Install according library for displays if one is used, depending on the display
  • cd AirQualitySensorProject
  • Uncomment calibration code (AirQualitySensorProject.ino lines 63-104) & calibrate sensors for 30min
  • Comment calibration code again

Setup Website

  • cd SmoothMoveWebsite
  • npm install
  • Change ip address based on your local ip address in js/measurementsHandler.js, server/server.py & server/app.js (see also comments)

Run Project

Please note that the Arduino needs to be started first, the server/app.js needs to be started within 15s of starting the Arduino in order for the initial data to arrive!

  • ARDUINO
    • Run code within IDE
  • Website
    • Execute:
      • node server/app.js
      • python3 server/server.py
    • Visit IP_ADDRESS:8000

Testing Project with Dummy Data

This does not require the Arduino setup!

To test the website with dummy data:

  • All the relevant parsing code should be commented in server/app.js
  • Optional: Variable lastData can be modified
  • Execute:
    • node server/app.js
    • python3 server/server.py

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published