# Energy Consumption raspberry pi 4

**URL:** https://discourse.nodered.org/t/energy-consumption-raspberry-pi-4/24365
**Category:** Dashboard
**Created:** [7 April 2020 03:43 UTC](https://discourse.nodered.org/t/energy-consumption-raspberry-pi-4/24365 "2020-04-07T03:43:08Z")
**Posts on this page:** 15
**Page:** 1

<div class="post-metadata">

### Author: ![ezequiel\_barros](https://avatars.discourse-cdn.com/v4/letter/e/f475e1/32.png) [@ezequiel\_barros](https://discourse.nodered.org/u/ezequiel_barros)
#### Post date: [7 April 2020 03:43 UTC](https://discourse.nodered.org/t/energy-consumption-raspberry-pi-4/24365/1 "2020-04-07T03:43:08Z")

</div>

Good night people

Good night people  
I wonder if there is some way to monitor the power consumption of the raspberry pi 4, and it is possible to place this information on my dash board  
thanks

---

<div class="post-metadata">

### Author: ![Bobo](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bobo/32/8401_2.png) [@Bobo](https://discourse.nodered.org/u/Bobo)
#### Post date: [7 April 2020 03:48 UTC](https://discourse.nodered.org/t/energy-consumption-raspberry-pi-4/24365/2 "2020-04-07T03:48:57Z")

</div>

Just google your query, there is a lot of info out there.

But the easiest way would be to purchase a mains smart plug that monitors power. You can then use it to switch on/off your rpi as well as monitor its power consumption. And yes, you can use NR to do this.

---

<div class="post-metadata">

### Author: ![ezequiel\_barros](https://avatars.discourse-cdn.com/v4/letter/e/f475e1/32.png) [@ezequiel\_barros](https://discourse.nodered.org/u/ezequiel_barros)
#### Post date: [7 April 2020 03:52 UTC](https://discourse.nodered.org/t/energy-consumption-raspberry-pi-4/24365/3 "2020-04-07T03:52:11Z")

</div>

OK thank you

---

<div class="post-metadata">

### Author: ![Bobo](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bobo/32/8401_2.png) [@Bobo](https://discourse.nodered.org/u/Bobo)
#### Post date: [7 April 2020 03:56 UTC](https://discourse.nodered.org/t/energy-consumption-raspberry-pi-4/24365/4 "2020-04-07T03:56:27Z")

</div>

A 10sec search brought up this node ... [https://flows.nodered.org/node/node-red-contrib-smartplug](https://flows.nodered.org/node/node-red-contrib-smartplug)

It controls the Edimax plugs. Not sure if this particular one also monitors power, but there are ones that do.

---

<div class="post-metadata">

### Author: ![ezequiel\_barros](https://avatars.discourse-cdn.com/v4/letter/e/f475e1/32.png) [@ezequiel\_barros](https://discourse.nodered.org/u/ezequiel_barros)
#### Post date: [7 April 2020 04:02 UTC](https://discourse.nodered.org/t/energy-consumption-raspberry-pi-4/24365/5 "2020-04-07T04:02:05Z")

</div>

thank you very much for your attention .. i will study this resource  
I'm happy for your dedication to helping

---

<div class="post-metadata">

### Author: ![dynamicdave](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dynamicdave/32/96_2.png) [@dynamicdave](https://discourse.nodered.org/u/dynamicdave)
#### Post date: [7 April 2020 05:46 UTC](https://discourse.nodered.org/t/energy-consumption-raspberry-pi-4/24365/6 "2020-04-07T05:46:26Z")

</div>

Here's another idea - the INA219 current sensor module.  
It will measure up to 3.2A and has an I2C interface so it's easy to interface to a Wemos or RPi.  
I've used it in a weather station to measure the solar panel voltage and battery charging current.  
The measurement is taken across a 0.1 ohm resistor so shouldn't affect your circuit.

**The only problem is you would have to break into the 5V supply lead to the RPi.**

> **[US $1.12 10% OFF|INA219 GY 219 GY219 Current Power Supply Breakout Board...](https://www.aliexpress.com/item/32757398205.html?spm=a2g0o.productlist.0.0.5a2e1dc57IOajG&algo_pvid=76810861-de8d-4216-a01a-389cb6faef3a&algo_expid=76810861-de8d-4216-a01a-389cb6faef3a-16&btsid=0b0a3f8115862379367607628e1746&ws_ab_test=searchweb0_0,searchweb201602_,searchweb201603_)**
>
> Smarter Shopping, Better Living! Aliexpress.com

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [7 April 2020 06:08 UTC](https://discourse.nodered.org/t/energy-consumption-raspberry-pi-4/24365/7 "2020-04-07T06:08:57Z")

</div>

If you want to measure the total power you will have to do it in the mains side of the power plug, otherwise you will not include the losses in the power supply. Measuring the 5V current would not do that.

---

<div class="post-metadata">

### Author: ![ghayne](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ghayne/32/39_2.png) [@ghayne](https://discourse.nodered.org/u/ghayne)
#### Post date: [7 April 2020 09:00 UTC](https://discourse.nodered.org/t/energy-consumption-raspberry-pi-4/24365/8 "2020-04-07T09:00:51Z")

</div>

> [@dynamicdave](#):
>
> The only problem is you would have to break into the 5V supply lead to the RPi.

Or use an USB Breakout board:

[https://www.google.com/search?q=usb+breakout+board&oq=usb+breakout+board&aqs=chrome..69i57.7732j0j7&sourceid=chrome&ie=UTF-8](https://www.google.com/search?q=usb+breakout+board&oq=usb+breakout+board&aqs=chrome..69i57.7732j0j7&sourceid=chrome&ie=UTF-8)

---

<div class="post-metadata">

### Author: ![afelix](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/afelix/32/9743_2.png) [@afelix](https://discourse.nodered.org/u/afelix)
#### Post date: [7 April 2020 09:27 UTC](https://discourse.nodered.org/t/energy-consumption-raspberry-pi-4/24365/9 "2020-04-07T09:27:00Z")

</div>

> [@Bobo](#):
>
> It controls the Edimax plugs. Not sure if this particular one also monitors power, but there are ones that do.

In the case you already were to have a Zigbee based setup, I got pleasantly surprised when the rather cheap INNR smart plug series turned out to monitor power usage too, even though there’s nothing on the manufacturer’s site or even packaging that suggests they do. And with a maximum of 2300W they’re pretty good for stronger devices too. I got a set of two as standby killers for my TV, and plan to utilise a couple in the kitchen too. I’m using the SP 120 in my setup.

---

<div class="post-metadata">

### Author: ![Bobo](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bobo/32/8401_2.png) [@Bobo](https://discourse.nodered.org/u/Bobo)
#### Post date: [7 April 2020 09:47 UTC](https://discourse.nodered.org/t/energy-consumption-raspberry-pi-4/24365/10 "2020-04-07T09:47:58Z")

</div>

> [@afelix](#):
>
> cheap INNR smart plug series turned out to monitor power usage too, even though there’s nothing on the manufacturer’s site or even packaging that suggests they do

Strange days 🙂

I just remembered I have a rebranded Tuya (somewhere) which I think does the same. Not tried it yet though using its own firmware. Others have hacked it as it is only an esp8266.

---

<div class="post-metadata">

### Author: ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)
#### Post date: [7 April 2020 11:20 UTC](https://discourse.nodered.org/t/energy-consumption-raspberry-pi-4/24365/11 "2020-04-07T11:20:16Z")

</div>

> [@Bobo](#):
>
> You can then use it to switch on/off your rpi as well

Well only turn off :-).... once the Pi is off it won't come back on....

---

<div class="post-metadata">

### Author: ![dynamicdave](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dynamicdave/32/96_2.png) [@dynamicdave](https://discourse.nodered.org/u/dynamicdave)
#### Post date: [7 April 2020 12:12 UTC](https://discourse.nodered.org/t/energy-consumption-raspberry-pi-4/24365/12 "2020-04-07T12:12:40Z")

</div>

Hi Garry,  
That's a neat little board - I'll have to get some as I have a couple of uses for them on my projects.

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [7 April 2020 12:27 UTC](https://discourse.nodered.org/t/energy-consumption-raspberry-pi-4/24365/13 "2020-04-07T12:27:12Z")

</div>

Assuming you have another node red (or similar) running somewhere else then you can switch it back on from there.  
That is exactly what I do with my 3D printer, which is controlled by a Pi. I have a Sonoff Basic switch in the mains lead for both and if the printer is not used for 15 minutes then node red running in another server tells the Pi to power down and then once it is down it switches it and the printer off. Then when I want to print again it powers it all up.

---

<div class="post-metadata">

### Author: ![Bobo](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bobo/32/8401_2.png) [@Bobo](https://discourse.nodered.org/u/Bobo)
#### Post date: [7 April 2020 15:17 UTC](https://discourse.nodered.org/t/energy-consumption-raspberry-pi-4/24365/14 "2020-04-07T15:17:38Z")

</div>

> [@dceejay](#):
>
> Well only turn off :-).... once the Pi is off it won't come back on

Mmmm, a single use RPi. Interesting marketing concept. 😝

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [7 May 2020 15:17 UTC](https://discourse.nodered.org/t/energy-consumption-raspberry-pi-4/24365/15 "2020-05-07T15:17:39Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
