Skip to content

Project work which implement Esp32 development board to send data to Iot platform

Notifications You must be signed in to change notification settings

lalitghimire/Esp32_Iot_project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is project work during the highway to code course from Kajaani Amattikorkeakoulu. The project was to program an Esp32 development board to send data to Iot platform(asksensors.com). The sensor module used were BMP280 which measures temperature and pressure, DHT11 which measures temperature and humidity and a PIR sensor which detects a motion.

The program sends the measured data to the Iot platform for visualization. All other data are send periodically while the motion detected data is sent whenever the motion sensor detects a motion and resets after some delay. The program also gets weather data from openweather API (https://openweathermap.org/) parse it and sends to the Asksensors platform for visualization.

The files: BME280.py file is used to read the BME sensor as micropython itself doesn’t have a library to read BME sensors. urequests.py provides HTTP Library with a similar interface to python-requests. Particularly well suited for usage with MicroPython to send http requests,boot.py is a file which initializes the esp32 board and connect it to the internet via wifi, main.py is the main implementation file.

To run the code

Use any micropython IDE to load the code in ESP32 board which has been flashed with micropython. To flash use steps here: https://docs.micropython.org/en/latest/esp32/tutorial/intro.html#deploying-the-firmware. Then provide wifi credentials in the boot.py file. To visualize signup for account in asksensors.com(further https://asksensors.com/index.html)

About

Project work which implement Esp32 development board to send data to Iot platform

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages