

While this tutorial will work irrespective of the raspberry pi OS used, I will be using the Raspberry Pi buster OS running on a Pi 3 (should also work on a Pi 4) and I will assume you are familiar with setting up the Raspberry Pi with the Raspbian Buster OS (pretty much the same process as the previous versions), and you know how to SSH into it using a terminal software like hyper.

Other Accessories for Raspberry Pi’s Use.Īsides the hardware components listed above, the project also requires some software dependencies and libraries that we will install as we go on.Raspberry Pi 3 or 4 (the process should be the same for the RPI2 with a WiFi Dongle).The following components are required to build this project Ensure you have experience working around AC before attempting this.

We have also built otherĭisclaimer: Before we begin, it is important to mention that this project involves connection to an AC supply which is dangerous, and could be fatal if not handled safely.

For the purpose of this tutorial, we will be using Adafruit.io as our Device Cloud. The ADC takes the analog signal and sends it over to the raspberry pi, which then calculates the exact amount of power that is being consumed and sends it to a designated device cloud. Processing Unit: The processing unit comprises the ADC and the Raspberry pi. The DIY voltage sensor involves the voltage divider stage where the high voltage is transformed to a value suitable for input to the ADC. Voltage Sensing Unit: While I was unable to lay my hands on a voltage sensor module, We will build a DIY a transformerless voltage sensor that measures voltage using the principle of voltage dividers. The sensor transforms the current passing through the wire on which it is clamped into a small current which is then fed into the ADC via a network of voltage dividers. Raspberry Pi Smart Energy Meter Block DiagramĪ block diagram showing how the system works is shown below.Ĭurrent Sensing Unit: The Current sensing unit is made up of the SCT -013 current sensor that can measure up to 100A, depending on the version you buy. You can also check out the Arduino based IoT Energy Meter and the Prepaid GSM Energy Meter that we have built earlier. As such, for today’s tutorial, we will build a Raspberry Pi Power Consumption monitor capable of obtaining energy consumption and uploading to Adafruit.io. While they are increasingly becoming available on the market, the maker in me still feels it will be a great idea to build a DIY version that could be tailored to meet specific personal requirements. Energy Monitors, whether covering the entire apartment or deployed to monitor just one appliance, provide a way for you to keep track of your consumption and make necessary adjustments.
