Undervolts on Pi
-
@Danal said in Undervolts on Pi:
Switched the Pi to its "wall wart" for the moment (note Pi4 went to USB C micro for power connection). Pulled 5V > Pi jumper.
This is very temporary.
Seems to have eliminated messages.
Yeh, this is exactly what we found on the system I have at work. I had planned to try this on my test printer at home, but the Duet & Pi are kinda buried in the base of the printer at the moment and I'd rather not have the downtime at the moment.
@Luke-sLaboratory said in Undervolts on Pi:
@Danal I've consistently had random undervolt errors when not using "proper" power supplies on all of my pi's. I'm unsure what the max power delivery is from the duet 3, but in other applications (mostly octoprint setups) I'll consistently get random undervolt errors w/out a beefy directly wired in supply.
Doesn't seem to effect performance, but definitely happened more when i had webcams plugged in via the usb ports directly (not thru a hub)
haven't tried a 4, but i'd assume that it has higher power draw that anything i have here.
Currently, this issue doesn't seem to affect anything in terms of printing or reliability. However, it's not true to say that it doesn't affect available performance - when the Pi detect an under-voltage situation it will throttle the CPU. So if people start making fancy scripts and interacting with DSF, it could cause issues.
@chas2706 said in Undervolts on Pi:
From the day I upgraded to duet3 and sbc I always intended to supply an external 5v to the pi.
I went overboard and purchased a 5v 10amp meanwell psu.
I went down this route because the sbc boots up from an ssd (very fast) and is fed from external 5v and my printer camera also runs off a separate raspberry pi running motioneyeos.
Fortunately I have never experienced under voltage issues.
I'd be interested to know how you ended up wiring this up since I'm going to be needing to do this in the near future. Assuming you didn't hack the ribbon cable to the D3, did yo solder to the underside of the Pi onto the GPIO header or hack up a USB-C cable?
-
The onboard 5V regulator is rated at 4A IIRC. I wouldn't trust it to run the Pi except under minimal load.
Powering the Duet from the SBC has been working fine for me. I have a hefty 5V 8A Meanwell powering the SBC (Jetson Nano) because it has a USB3/nvme SSD, plus camera and touchscreen connected. Plenty of current left over for the Duet. I actually have a relay between the SBC and Duet so I can power cycle the Duet if I have to.
-
@gtj0 said in Undervolts on Pi:
The onboard 5V regulator is rated at 4A IIRC
i think you do recall correctly, and i think dc42 said we could load the 5v_ext rail that goes to the pi and io_n headers with 3a leaving 1a for the duet3 but there aren't any fuses or other mechanisms except a diode that will drop some of the 5v right off the bat.
-
@ChrisP said in Undervolts on Pi:
'd be interested to know how you ended up wiring this up since I'm going to be needing to do this in the near future. Assuming you didn't hack the ribbon cable to the D3, did yo solder to the underside of the Pi onto the GPIO header or hack up a USB-C cable?
If you connect the pi externally via its external 5v input pin then this bypasses the internal protection so for both of my pi's I hacked usb cables so that they retain onboard circuit protection.
@arhi said
Looks like a lot of these cables are very thin aluminium wire with copper coating. Some are even magnetic! So using "beafier PSU" does not help if you use same cables.Forgive me if I am wrong but my 50 years working in the electrical field tells me that the voltage drop on a 100mm long cable will be negligible. If the cable is not beefy enough to supply the amps that is being pulled then you would soon know about it because it would start a fire!
-
@gtj0 said in Undervolts on Pi:
The onboard 5V regulator is rated at 4A IIRC. I wouldn't trust it to run the Pi except under minimal load.
Powering the Duet from the SBC has been working fine for me. I have a hefty 5V 8A Meanwell powering the SBC (Jetson Nano) because it has a USB3/nvme SSD, plus camera and touchscreen connected. Plenty of current left over for the Duet. I actually have a relay between the SBC and Duet so I can power cycle the Duet if I have to.Looks like we done similar.
My set up works flawlessly too.
-
@bearer said in Undervolts on Pi:
@gtj0 said in Undervolts on Pi:
The onboard 5V regulator is rated at 4A IIRC
i think you do recall correctly, and i think dc42 said we could load the 5v_ext rail that goes to the pi and io_n headers with 3a leaving 1a for the duet3 but there aren't any fuses or other mechanisms except a diode that will drop some of the 5v right off the bat.
Interesting. Didn't know there was a diode... do we know that the Vf is for that? Even a low Vf schottky diode is around 0.3v. The Pi apparently starts throwing warnings and throttling then the supervisor notices the 5v rail at or below 4.65v (a 0.35v drop) .
The Pi4 apparently idles at ~650mA but with gui, chrome, DSF, apache, a touchscreen, keyboard, and pi cam I can easily believe we'd be looking at over a couple of amps. While I'm never a fan of using ribbon cable for handling current like that, I think they should be fine here (even assuming 26AWG aluminium conductors at 150mm)... providing there's a full 5v coming from the D3. If not, the current being drawn down that cable could cause just enough of a drop to tip over the limit.
-
@ChrisP said in Undervolts on Pi:
do we know that the Vf is for that
its D30 which is a CDBA540-HF digikey said Voltage - Forward (Vf) (Max) @ If 550mV @ 5A which seems high for a schottky
-
As far as I can tell, the "Duet powers Pi via ribbon" is not at all sensitive to current. Adding or subtracting 100 or 200mA makes no difference. (I'm sure there is some upper limit, where adding 5 full amps would cause a problem, or whatever. Pundits, hold your tongues regarding edge cases).
This lack of current sensitivity argues strongly against simple resistance based voltage drop. The Zener sounds much more likely.
-
If its not current sensitive then it has to be something else? Its not a constant; and given the sort duration and high frequency i doubt temperature is the issue (unless indirectly caused by load fluctuations).
It could well be its not dependent on the load of the PI though.
-
The 5V regulator on the Duet 3 has both internal and external 5V outputs, both through didoes.. On version 0.6 and 1.0 boards, the feedback to the regulator takes an average of those two voltages. So the 5V external output (which is the one fed to the Pi) will see about half the difference in the two diode drops, not all of it. This is likely to mean that at low loads you get 5V and at 2.5A load you get 4.9V. There will be additional voltage drop in the ribbon cable and connectors.
-
There's been warnings from Octoprint about running Raspberry Pi's with lower rated supplies than the official supplies. I've got everything ready to go now, and was planning on using an external feed for the Pi and screen as the ratings from the duet seem to cut it very fine. My choice, and I know others get away with it.
I wonder it this has anything todo with the short raspberry pi lifespans one of our fellow users ( @spllg ) is seeing?
-
Scrub my last question, that specific user has external power to the PI I think.
-
-
@chas2706 said in Undervolts on Pi:
If the cable is not beefy enough to supply the amps that is being pulled then you would soon know about it because it would start a fire!
Not sure how a .2-.6W will cause a fire, the cable will (and usually does) get slightly worm and that's about it. Again, I'm talking about USB cable, not the flat cable on the duet. Replacing cable with a proper one in all cases solved the problem. Looks like here the 2 diodes dc mentioned are the issue. I doubt there's any issue in the flat cable (have not seen those made out of crap, like USB cables I was talking about) but any drop after 5V reg. like a diode can be enough to trigger the voltage warning on the pi.
-
Looking at the schematic and @dc42's comment, I don't think it is the diodes since the regulator feedback is taken after these.
I've just tried starting my system up from cold with nothing attached to the Pi (other than the D3, clearly) and I didn't get power warnings at all (can be observed by either the Pi's red power LED staying lit or looking at the journal logs). As soon as I plugged the LCD in, I begin getting occasional under-voltage warnings that tend to last for ~6 seconds before the voltage shows as normalised again. If I then open a chrome tab on the Pi with DWC then the it's under-voltage warning is on pretty much permanently with only the occasional flick off - not long enough to register as normalised in the journal logs.
Having looked at the schematic, I'm now wondering if the bottleneck is that all the power to the SBC (via J48) seems to go through just one jumper - JP4. While I don't know the exact spec of the part used, the internet seems to suggest that these are typically rated at 2A.
-
@T3P3Tony said in Undervolts on Pi:
@Danal said in Undervolts on Pi:
I don't have a D3 schematic
2x 5V pins
5x GND pinsTHANKS!!
-
@ChrisP said in Undervolts on Pi:
Looking at the schematic and @dc42's comment, I don't think it is the diodes since the regulator feedback is taken after these.
I've just tried starting my system up from cold with nothing attached to the Pi (other than the D3, clearly) and I didn't get power warnings at all (can be observed by either the Pi's red power LED staying lit or looking at the journal logs).
It may be right on the edge... I do get warnings in the above config. Pi 4B+ 4Gig.
As soon as I plugged the LCD in, I begin getting occasional under-voltage warnings that tend to last for ~6 seconds before the voltage shows as normalised again.
I probably should look at the logs more carefully. Eyeball doesn't see any change when I plug in my 7" LCD... but the Mark 1 eye has its limits. I'll do some math, and see if there is more influence than I think.
If I then open a chrome tab on the Pi with DWC then the it's under-voltage warning is on pretty much permanently with only the occasional flick off - not long enough to register as normalised in the journal logs.
Interesting. I'm letting the Chrome/DWC autostart. So my "nothing attached" baseline has this running. Hmmm....