Duet 3 6HC and Pi 4 Power Question
-
How about using a button to short the Reset pins on the Duet together, instead of cutting the power?
-
While I doubt it would happen with your awesome firmware, if the firmware was to hang, would shorting the reset pins still do the job?
@dc42 said in Duet 3 6HC and Pi 4 Power Question:
How about using a button to short the Reset pins on the Duet together, instead of cutting the power?
-
@blt3dp said in Duet 3 6HC and Pi 4 Power Question:
While I doubt it would happen with your awesome firmware, if the firmware was to hang, would shorting the reset pins still do the job?
Yes, it's a direct hardware reset to the microcontroller.
-
@blt3dp said in Duet 3 6HC and Pi 4 Power Question:
My concern is that of corrupting the SD card in the Pi and having to reload everything.
I have maybe 5 to 7 Pi in various pieces of equipment. I have not done a clean shutdown on any of them in the last couple of years. Just yanked power. Nary a corruption. Also, most of them are not on UPS. Same story.
It is impossible to prove a negative, and I may lose a card someday. But at the moment, I have my Pi powered from the Duet 6HC, and I have one "Mains" or "AC" power switch for the 24V supply, and I always just switch off.
Your preference certainly may vary... me personally, I prefer to back up /sys every so often, and if I ever corrupt a card, I will rebuild it from scratch and the backup of the /sys directory.
-
@blt3dp said in Duet 3 6HC and Pi 4 Power Question:
Say I have it all hooked up according to the instructions for using the Duet 3 with a SBC, and I need to do some form of emergency stop.
...
The only choice is to cut the power.My concern is that of corrupting the SD card in the Pi and having to reload everything. I'd rather leave it powered on and just kill the power to the Duet.
…
Suggestions?
My planned Duet 3 setup is to separate the two. The Pi will be always-on (for networking stability, instant-on appearance, and some background safety checks). There will be a button on the machine that the PI reads that will control power to the Duet 3. That way you're just cycling power to the Duet and the motors and everything don't stay on all the time. Should also work for a reset.
My only concern at this point is the Duet Server on the PI - I think it's counting on the Duet being 'alive' when it boots, and I'm not sure a timer check has been setup to keep trying. I'll find this one down the road a bit.
-
I am only one voice; furthermore, I wish to be respectful of others thoughts and methods.
At the same time:
Man, you guys really know how to complicate something simple...
-
Yeah, I’ve not had the best luck with the Raspberry Pi that I’ve had in the past. Maybe it was a cheap SD card, but I’ve always had corruption. I definitely want to separate the power for the 2. I’ve decided to go with a 5v Mean Well Power supply and wire it up separately. Then I kind of have all the options. I could do a separate reset to the Duet reset pins as well as wire up the 24v power supply to a switch so I could go either way. I did wonder about DSF though.
-
@dc42 said in Duet 3 6HC and Pi 4 Power Question:
@blt3dp said in Duet 3 6HC and Pi 4 Power Question:
While I doubt it would happen with your awesome firmware, if the firmware was to hang, would shorting the reset pins still do the job?
Yes, it's a direct hardware reset to the microcontroller.
DING! DING! DING! Reset pins for the win! My latching emergency stop button is tied directly to the reset header on the Duet3. As long as those pins are shorted, the MCU will do absolutely nothing.
-
@TLAS said in Duet 3 6HC and Pi 4 Power Question:
My only concern at this point is the Duet Server on the PI - I think it's counting on the Duet being 'alive' when it boots, and I'm not sure a timer check has been setup to keep trying. I'll find this one down the road a bit.
Both the Duet3 and the DSF on the pi are tolerant of the other not being there. The Duet3 could care less since it doesn't initiate anything and the DuetControlServer on the pi will keep trying to contact the Duet3 forever.
-
@bearer said in Duet 3 6HC and Pi 4 Power Question:
@Dougal1957 said in Duet 3 6HC and Pi 4 Power Question:
you also still have the barrel power connector on the Pi
Not sure if the Pi ever had a DC 'barrel' style conector, but version 3 and 4 does not.
@blt3dp on mine I've just used 5(or 6?) single wires between the Pi and the Duet for the SPI signals and common ground, then with the rest of the GPIO freed I can run power and GPIO for a relay to control the AC supply to the machine. I.e. you don't need all the wires in the ribbon cable, just the ones mentioned here https://duet3d.dozuki.com/Wiki/Duet_3_Mainboard_6HC_Wiring_Diagram
Yeah, I use a custom cable as well and power the Duet3 from the SBC with a relay in between. It's actually controlled by a GPIO pin on the SBC so I can power cycle the Duet3 remotely should the need arise.