yvo Posted November 19, 2023 at 01:04 PM Posted November 19, 2023 at 01:04 PM Dear List I have to use the 5V power-supply of the HAT Brick additionally to the 5-28V DC-input. But for constructive reasons (no available space), I cannot use an USB-connectors. Question: Is there a possibility / location to sold a cable directly onto the HAT Brick? With soldering directly a cable, I could use the additional power-supply (which I have to use for several reasons additionally to the 5-28V DC-input, see https://www.tinkerunity.org/topic/11345-hat-brick-und-strompi-3-mögliche-konflikte-bei-serieller-kommunikation-respektive-problem-bei-konfiguration-von-strompi-3/ ) even within the very small space available where the RPi and HAT are installed. Looking forward to any ideas and suggestions. Cheers, Yvo Quote
batti Posted November 20, 2023 at 10:50 AM Posted November 20, 2023 at 10:50 AM Hi Yvo, there is a resistor beneath the USB-C jack. Please see the above screenshot. In that screenshot you look through the PCB. You want to connect your cable somewhere to the USB-5V-IN signal. One possibility is that resistor. Quote
yvo Posted November 21, 2023 at 10:50 AM Author Posted November 21, 2023 at 10:50 AM Dear batti Thank you very much for the advice and pointing out the precise location. I had a look at the HAT itself, puhh, this is all pretty small. I guess, this will exceed my skills of soldering đ I re-checked the available space between the USB-socket and the case were the RPI and the HAT are located: There are 15mm available. Using an USB-cable with a 90-degrees rotated plug, it should fit. See attached images. Probably, buying such cables, cutting and just using the two power-wires will be easier than soldering an additional cable onto the board of the HAT. Hope you agree. Cheers, Yvo Quote
Backdraft007 Posted November 21, 2023 at 12:52 PM Posted November 21, 2023 at 12:52 PM Hello Yvo, maybe you can use something like this? https://www.amazon.de/dp/B0BC3DNFZL Quote
yvo Posted November 21, 2023 at 01:12 PM Author Posted November 21, 2023 at 01:12 PM Hi Backdraft007 Thank you very much for the link. Looks promising and worth a trial. A downside will be, that I will introduce an open connection more. Currently, I prefer to cut cables to avoid an addition, for humidity and vibrations, delicate connection. Cheers, Yvo Quote
yvo Posted November 22, 2023 at 07:11 AM Author Posted November 22, 2023 at 07:11 AM Backdraft007 In the meantime, I found a hopefully suitable cable: https://www.audiophonics.fr/en/power-supply-accessories/male-90-angled-usb-c-to-bare-wires-power-cable-22awg-25cm-p-13575.html I will see, how it works. Cheers, Yvo 1 Quote
Backdraft007 Posted November 22, 2023 at 07:48 AM Posted November 22, 2023 at 07:48 AM Hey, good luck. :) Quote
Superp Posted November 24, 2023 at 12:17 PM Posted November 24, 2023 at 12:17 PM Good find. Let us know how it goes. I have used this cable so far, but it takes up too much space in my machines. Quote
yvo Posted November 24, 2023 at 12:52 PM Author Posted November 24, 2023 at 12:52 PM Am 24.11.2023 um 13:17 schrieb Superp: Good find. Let us know how it goes. I have used this cable so far, but it takes up too much space in my machines. I will do. The cable is not on stock right now. But should be delivered by mid-December. Let's see. Quote
yvo Posted July 19, 2024 at 07:46 AM Author Posted July 19, 2024 at 07:46 AM Dear all Time is running. But I am currently implementing the proposed solution: Main power-supply of HAT and RPi through the HAT 28V power-connection using 20V to 25V battery-power. Additional power-supply of HAT and RPi through the HAT USB-C 5V power-connection. The main power-supply is connected to a hardware-switch. And the USB-C supply is connected through a IndustrialDualRelais. At startup using the main-switch, a service defined at the RPi starts a PowerWatcher Python-application. The application immediately turns the 5V power-supply on. During the runtime of the RPi, the PowerWatcher checks every second the power-input of the main power-supply of the HAT. If the current drops below the power provided by the battery (main-switch turn off by human), the PowerWatcher starts the shutdown-procedure. The shutdown-procedure delays the cut of the 5V power-supply by a configured time. If the main-switch is turned on again by human, the shutdown-procedure stops. As soon as the configured delay-time is reached, the PowerWatcher turns off the entire setup using hat.set_sleep_mode(0, 2**32-1, True, True, False) With turning off the bricklets as well, the 5V power-supply gets cut as well and the entire unit is without power-supply. So far, it works. A still open question is, how to use the function set_sleep_mode-function and a proper shutdown-command in combination. But I will ask this in a separat thread. Cheers, Yvo Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.