Poornima EshwaraMayur Dhikle
Published

Carbon Footprint Monitoring System

A project to calculate & monitor carbon footprint. It notifies the user and suggests ways to control and reduce their carbon footprint.

AdvancedWork in progress416
Carbon Footprint Monitoring System

Things used in this project

Story

Read more

Schematics

Connection of Various electrical appliances with the Intel Edison board.

To show the calculation of Carbon Footprint on household level, we have shown a small example of a device (Relay in this case) which is controlled by a switch. Grove Relay is connected to the the D6 pin of the shield, while button is connected to D3 button. The buzzer is connected to D4

Code

Monitoring activity of electrical appliance (Relay)

C/C++
In this we are trying to monitor the use of our appliance. If we are using the appliance for more than specified time, the buzzer goes off and this will be linked to AWS and a notification will be sent to the user on his/her android application.
// Edison Relay Basic
const int buttonPin = 3;     // the button is attached to digital pin 3
const int relayPin =  6;     // the relay is attached to digital pin 9
const int buzzerPin = 4;
int buttonState = 0;
int count = 0;
void setup() {
    Serial.begin(9600);
    pinMode(relayPin, OUTPUT);
    pinMode(buzzerPin, OUTPUT);
    pinMode(buttonPin, INPUT);
}

boolean released = false;
void loop() {
   // read the state of the button:
    buttonState = digitalRead(buttonPin);
    
    if (buttonState == 1)   
    {
      if(released == true) {
        digitalWrite(relayPin, HIGH);
        count = count + 1;
        Serial.print("Count = ");
        Serial.print(count);
        Serial.print("\n");
        released = false;
        
      }
    }
    else   
    {
      if(released == false) {
        digitalWrite(relayPin, LOW);
        released = true;
      }
    }
    if(count > 10)
        {
          
          digitalWrite(buzzerPin,HIGH);
          delay(10000);
          count = 0;
          
          }
          else
          digitalWrite(buzzerPin,LOW);

}

Credits

Poornima Eshwara

Poornima Eshwara

1 project • 0 followers
Mayur Dhikle

Mayur Dhikle

1 project • 1 follower
Hello

Comments