Code Monkey home page Code Monkey logo

olimpiadas-teleco's Introduction

olimpiadas-teleco

This project uses two esp32 with LoRa for measuring and analyzing air quality data with PMS5003 and MiCS-6814 sensors. It stores its data in an SQLite3 database in an SD Card.

This project works as this diagram shows: Project connections diagram

Getting started

  1. You'll need to buy all of the following components:

    Sensor

    • Heltec Cubecell GPS-6502 (Esp32, LoRa and GPS)
    • MiCS-6814 (NO2, CO and NH3 sensor)
    • PMS5003 (PM2.5 and PM10 sensor)
    • DHT11 (Temperature and humidity sensor)

    Server

    ⚠️ As this project has been made specifically for this hardware, it may not work for even very similar devices!

  2. When you have the components bought, you will have to build the circuit as follows:

    Sensor sensor photo Server server photo

  3. Once you've built the circuits, you'll have to load the sensor code to the sensor using Arduino IDE 2.1.0 and the following libraries:

    • Time at version 1.6.1
    • DHT sensor library at version 1.4.4
    • PMS Library at version 1.1.0
    • Adafruit Unified Sensor at version 1.1.9

    You will have to install Heltec Cubecell Series Arduino Development Environment and upload your code selecting the board Cubecell-GPS (HTCC-AB02S)

    You will also have to load the server code to the server using the same version of Arduino IDE and the following libraries:

    • ESP8266 and ESP32 OLED driver for SSD1306 displays at version 4.4.0
    • LoRa at version 0.8.0
    • AsyncTCP at version 1.1.4
    • ESP Async WebServer at version 1.2.3
    • Time at version 1.6.1
    • Sqlite3Esp32 at version 2.3
    • ArduinoJson at version 6.21.2

    You will have to install the Arduino core for the ESP32, ESP32-S2, ESP32-S3 and ESP32-C3 and upload your code selecting the board ESP32 Dev Module.

    If your code doesn't compile because of errors try reading this Arduino Forum post.

    ⚠️ Make sure you have installed the SiLabs drivers on your machine!

  4. To get the server to work you will have to upload the contents of the web folder to your SD Card and create a .config file in it with the following schema:

    {
        "ssid" : "YOUR_WIFI_SSID",
        "password" : "YOUR_WIFI_PASSWORD"
    }
  5. Last, you will have to connect the SD to the server and connect both server and sensor to the electric current: In this project I've used a powerbank for the sensor, but batteries can be used.

  6. Once you have it working, you have to get a device connected to the same network as the server and search for the IP that the server displays in the browser. Example: Example of the website

Offline work

You can also use this repo to analyze the same data offline

Possible future upgrades

  • Connect it to the cloud
  • Connect it to The Things Network
  • Use AI to analyze data

olimpiadas-teleco's People

Contributors

dangarcar avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.