CARBON EMISSION TRACKER

by SPLASH ELECTRONIC in Circuits > Arduino

29 Views, 0 Favorites, 0 Comments

CARBON EMISSION TRACKER

carbon_front.png
WhatsApp Image 2025-04-13 at 7.01.46 PM.jpeg
WhatsApp Image 2025-04-13 at 7.01.47 PM.jpeg

This is a simple carbon emission tracker build using esp8266 and some DIP switches, it collect data from the user regarding the type of vehicle , fuel and driving pattern of the user and then decides upon the carbon emission level and then updates to a centralized dashboard

Supplies

carbon.jpeg
  1. ESP8266 ( any other Arduino compatible micro controller with WiFi )
  2. 4 DIP SWITCHES

SETTING UP THE ARDUINO

FV2G5Z2M9FNNM5Q.jpg

connect one end of the DIP switches to the 5v of the esp8266 and the other end as mentioned below

  1. DIP SWITCH 1 -> D1
  2. DIP SWITCH 2 -> D2
  3. DIP SWITCH 3 -> D5
  4. DIP SWITCH 3 -> D6

Now flash the firmware for the Arduino using Arduino IDE , Arduino code can be fount in this GitHub repo or can be downloaded from below


Open the code in Arduino IDE and flash into the esp8266 and edit the section with the wifi ssid and password to your wifi and the ip of the remote server or the url of the cloud server should be added in the code before flashing


connect a laptop or a mobile phone and use some software to read serial data and get the question and use the DIP switches to get the output

Setting Up the Webpage

Screenshot from 2025-04-13 19-15-23.png
FU6XFIVM9FNNM5N.jpg
Screenshot from 2025-04-13 19-17-33.png

Clone the github repo - repo_link

install python3.12 - python_3.12

make a account in MongoDB and get connection string - mongo , tutorial

run this command to install all the modules - pip install -r requirements.txt


now start the server by - python app.py


detailed instructions can also be found on the GitHub repo


THE PROJECT IS COMPLETE

Due to the in-availability of all the sensors have made me use switches for the control of the input data. More features can be easily added to the project