Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Raspberry Pi - under voltage #106

Closed
krisasmith opened this issue Apr 27, 2018 · 17 comments
Closed

Raspberry Pi - under voltage #106

krisasmith opened this issue Apr 27, 2018 · 17 comments
Labels
RaspberryPI Pi setup

Comments

@krisasmith
Copy link

Anyone seeing under voltage on their pi when powering off the generator controller though the GPIO header? I just realized its a problem for me.

@madisdev
Copy link
Contributor

How is this issue coming up?

@krisasmith
Copy link
Author

krisasmith commented Apr 27, 2018

I was trying to rebuild my pi with raspbian stretch (a whole other topic) and had connected a monitor and saw the warnings. Also if you run the cmd: vcgencmd get_throttled it returns throttled=0x50000. I disconnected the power from the GPIO header (left the ground) and then powered off the microusb port and the warnings went away.

@madisdev
Copy link
Contributor

I have not heard of that command before. I ran it on my Pi Zero W and it returned 0x0

@jgyates jgyates added the RaspberryPI Pi setup label Apr 28, 2018
@jgyates
Copy link
Owner

jgyates commented Apr 28, 2018

Hi Kris,
I assume you are using the Pi3, which has a higher current draw than than the PiZero. I don't think we know the max current supplied by the evolution but it is a possibility we may be reaching it. Not sure if you are using Wifi or Ethernet but Wifi will significantly increase your current. I have not seen this before in past issues, but it could be a real problem. Where the warnings that alerted you to the problem just messages in the system log?

@krisasmith
Copy link
Author

I am on the pi 3 b+ with wifi disabled using the btoverlay. I could not find any log that showed the problem. I only came across it with a HDMI connection. It has a lighting bolt in the upper right corner and messages on the console about under voltage.

@krisasmith
Copy link
Author

I ordered this https://www.amazon.com/gp/product/B01MDLUSE7/ and paired it with a PoE switch. I no longer get under voltage alerts on the console and vcgencmd get_throttled returns throttled=0x0

@jonathanpisarczyk
Copy link

jonathanpisarczyk commented Apr 30, 2018

I'm running the power from the Evolution controller and appear to be getting under voltage as well. However everything is working fine still. I'm running wifi on the PI3 and using a USB wifi controller.

pi@genmon:~ $ vcgencmd get_throttled
throttled=0x50005

The bits represent:
0: under-voltage
1: arm frequency capped
2: currently throttled
16: under-voltage has occurred
17: arm frequency capped has occurred
18: throttling has occurred

I may switch to the usb battery option in the near future.

@krisasmith
Copy link
Author

I had considered powering directly off the battery also, it would have been more work. I have my pi remotely mounted in my garage next to the transfer switch / electric panel. I have been running powered off the controller for a while without any issues so I don't see it as a big rush to fix. I changed it only because of the way my brain works, I would loose sleep over it. Its a bit of a sickness ;)

@jgyates
Copy link
Owner

jgyates commented Apr 30, 2018

I added a note about this in the wiki and reference this thread.

NOTE: Some people have reported undervoltage errors on the Pi 3 (not the Pi Zero) when powering through the controller connector. While this has not been reported to prevent the application from running it may not be an ideal way to power the Pi. See this issue for more details.

@madisdev
Copy link
Contributor

It feels like the power req's for the PI3 with external Wifi is a bit more than the PI Zero with built in WiFi.

@krisasmith
Copy link
Author

Agreed, i have WiFi and Bluetooth disabled with a btolverlay and it still power hungry.

@madisdev
Copy link
Contributor

Take this for what you will. http://raspi.tv/2017/how-much-power-does-pi-zero-w-use

@lqallison
Copy link

Have had several problems with 3B and 3B+ while doing development work. Lighting bolt to the undervoltage message on command line to the point of shutdown altogether. Shut down occurred at 4.87 v measure at the 5v pin on the header. Moved to power supplies with 5.25v @ 2Amp. Voltage
at the header was then 5.1v. no other problems. For Genmon I run 12v from generator battery thru 30FT of 18 AGW 6 wire cable along with RS232 from the Nexus controller into change over switch and out to Raspberry PI thru a motorcycle 12v to USB 5V adapter. No problems here either. Have not measured the voltage at Pi header though.

@jgyates
Copy link
Owner

jgyates commented May 22, 2018

I have added a program in ./genmon/OtherApps/throttled_check.py. This program will display and monitor the status of throttling on the pi.

to use

 python throttled_check.py

To exit type Ctrl+c

@jgyates
Copy link
Owner

jgyates commented May 24, 2018

FYI, i started having and under voltage problem that I noticed a few weeks ago. I had moved the placement of my enclosure a while back and and I had to extend the USB cable. Today I replaced the cable with one of these:

https://smile.amazon.com/gp/product/B017VQ3AWU/ref=oh_aui_detailpage_o01_s00?ie=UTF8&psc=1

No under voltage. Of course you milage may vary, but cables do matter. I am powering the pi from the battery.

@jgyates
Copy link
Owner

jgyates commented May 26, 2018

FYI, if the throttled stats are not showing up on the Monitor page you will need to update your raspberry pi firmware. To do so first make sure you are running the latest software / kernel.

 sudo apt-get update
 sudo apt-get dist-upgrade
 sudo rpi-upgrade
 sudo reboot

The "sudo apt-get update" and " sudo apt-get dist-upgrade" update the system software.
The "sudo rpi-upgrade" will update the firmware in the raspberry pi
The "sudo reboot" will restart your pi so the updated software can be used.

@jgyates
Copy link
Owner

jgyates commented May 26, 2018

sorry, fixed error in my last post "sudo reboot" will restart your pi. "sudo restart" does nothing.

@jgyates jgyates closed this as completed Jun 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RaspberryPI Pi setup
Projects
None yet
Development

No branches or pull requests

5 participants