Project tutorial
House's Monitoring Consumption With Arduino UNO

House's Monitoring Consumption With Arduino UNO © GPL3+

I decided to make one. I want use Arduino UNO with Ethernets shield, and STC-013 sensor. The data are visible on MQTT Dashboard by Cayenne.

  • 2,603 views
  • 2 comments
  • 6 respects

Components and supplies

Apps and online services

About this project

I want a monitor of consumption for my house, and after catch it online, I decided to make one. I want use Arduino UNO with Ethernetsshield, and Cayenne.

Arduino UNO is a famous microcontroller. Do you want one? Do you want know all about this? Follow the link (arduino.cc).

Cayenne is a great service that give a platform to everybody that want make an IoT project. Cayenne is a service for IoT and also MQTT protocol with a great community, and a lot of tools. You can use Arduino UNO, Arduino YUN, Raspberry Pi, and more, for create your personal project. Sign Up now for free, and begin to experiment the many possibility.

For the project you must have:

Step 1: The SCT-013 current sensor

The SCT-013 sensor is a non invasive sensor that measure the Amps of one circuits. You can use the sensor for measure the current of your house. You can put the sensor on wire that outs by the main switch of house.

See the circuits for preparing the sensor before connect to the Arduino UNO.

Sensor specs

  • Mesure: 30A / 100A max

Components

  • 10 kOhm Resistor
  • 10 uF Electrolitics Capacitors

Library

You can download the EmonLib library by https://github.com/openenergymonitor/EmonLib

You can install the library by using Arduino IDE or you can install the library following http://arduino.cc/en/Guide/Libraries

Step 2: Connect to your Cayenne Dashboard

You can open your account on Cayenne. Follow the link: Sign Up, and after add a device to your Dashboard. Click on Add new... Device/Widget. After you can click on Bring Your Own Device. Sign your credentials and after put this values on your Arduino Sketch code.

Step 3: The Arduino Code

Now it's time to put the code on your Arduino UNO.

See the code on https://github.com/masteruan/Cayenne_Watt_monitor/... and download the Sketch. Put the code on your Arduino IDE or use create.arduino.cc, and upload the code.

You must change the MQTT credentials values, and the values of your WiFi connection.

Open the Serial monitor, and see the board connecting to internet and putting the data to Cayenne Dashboard.

Open your Cayenne Dashboard, and see the value. You can See this value by using your computer, your Smartphone, or your tablet. The Dashboard is in the cloud. Yes, you can see the data wherever in the world.

Step 4: Test your project

Now you can test your project. The Arduino UNO board reads the value of Watt, and puts this online through the MQTT protocol. This data is stored on Cayenne server that show the value on Dashboard. You can see the dashboard, and read the value of Watts directly, everywhere, every time and it's completely free! You can read the value in your browser, like if you are in your house.

You can see my dashboard. If I switch on my oven, I can see changing the value of Watts on my dashboard. The value goes up until 2400 Watts. I can trigger this value. When this changes, and begin to goes up, Cayenne can send a mail to me, that inform me about the consumption.

This is an information for make me aware of the power consumption of my house. It's is good for the planet, and for my wallet!

Code

Github
https://github.com/openenergymonitor/EmonLib
Github
https://github.com/masteruan/Cayenne_Watt_monitor/blob/master/emon_cayenne.ino

Schematics

Sensor mounting
STC013 sensor on Arduino UNO mounting
11 clusvi2wzn

Comments

Similar projects you might like

Arduino UNO MQTT Meteo Station

Project tutorial by Giovanni Gentile

  • 5,008 views
  • 0 comments
  • 4 respects

Tito - Arduino UNO 3D-printed robot

Project tutorial by Camilo Parra Palacio

  • 10,632 views
  • 10 comments
  • 39 respects

Multicolor Knight Rider with RGB PL9823 LED + Arduino UNO

Project tutorial by Giovanni Gentile

  • 3,925 views
  • 0 comments
  • 10 respects

Arduino + Cayenne = Light Quality Monitoring

Project in progress by Giovanni Gentile

  • 3,263 views
  • 0 comments
  • 10 respects

Communication Between Arduino UNO

by Giovanni Gentile

  • 2,527 views
  • 1 comment
  • 4 respects

Cayenne and SparkFun IoT 433 Mhz Sockets

Project tutorial by Giovanni Gentile

  • 1,966 views
  • 0 comments
  • 10 respects
Add projectSign up / Login