Current version of the OpenAuto Pro is 13
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Raspberry Pi Automatic ON/OFF V2.1
#1
Have just purchased one of these from PicoTouchStore on tindie:
https://www.tindie.com/products/picotouc...w-version/

Seems to do everything I need in a very nice package. Maybe this will be of interest to someone else.
Reply
#2
Nice. I might have to pick one of these up?
Looks nice and simple.
Reply
#3
I got mine today. And works like charm. Perfect solution for my build. It powers up my pi,display and the usb hub.
Reply
#4
I'm also using this device and it seems to work great. However, my PI Is sometimes shutting down while I am driving. Sometime it last 2 hours without any problem, sometimes the PI shut downs after 10 minutes.

I am not (yet) sure what the cause of the problem is. Possible problems:

1. The PI is getting too hot (RPI4)
2. For some reason the shutdown script is called when it is not needed.

I still need to investigate what the exact cause is (and I hope it is not because of this device).
Reply
#5
(04-10-2021, 04:32 PM)Matthias Wrote: I'm also using this device and it seems to work great. However, my PI Is sometimes shutting down while I am driving. Sometime it last 2 hours without any problem, sometimes the PI shut downs after 10 minutes.

I am not (yet) sure what the cause of the problem is. Possible problems:

1. The PI is getting too hot (RPI4)
2. For some reason the shutdown script is called when it is not needed.

I still need to investigate what the exact cause is (and I hope it is not because of this device).

Looks like you need to add some debouncing. Is your shutdown script doing that?
Reply
#6
The shutdown scripts was provided with the "Raspberry Pi Automatic ON/OFF V2.1".



This is what it looks like:


#!/usr/bin/env python3

from gpiozero import Button
from signal import pause
import os, sys

offGPIO = 21
holdTime = 2

# the function called to shut down the RPI
def shutdown():
    os.system("sudo poweroff")

btn = Button(offGPIO, hold_time=holdTime)
btn.when_held = shutdown
pause()    # handle the button presses in the background

I think I will add something like:

date >> some_file

When the PI shuts down, I can then see if it was due to this script or not.
Reply
#7
According to docs of used library to handle GPIO, bounce time is not set in your script (https://gpiozero.readthedocs.io/en/stabl...ero.Button). Try to modify the script by setting the bounce time and check if that fixes the issue.

#!/usr/bin/env python3

from gpiozero import Button
from signal import pause
import os, sys

offGPIO = 21
holdTime = 2
bounceTime = 1

# the function called to shut down the RPI
def shutdown():
    os.system("sudo poweroff")

btn = Button(offGPIO, bounce_time=bounceTime, hold_time=holdTime)
btn.when_held = shutdown
pause()    # handle the button presses in the background
Reply
#8
Hi thank you.

I will try to debug the issue this weekend (together with the sound issue I still have)

Still not convinced the issue is due to the power controll system. I noticed that wifi and bluetooth stays visible for other phones when my pi randomly "shuts down".
Reply
#9
What are the differences between this and Mausberry for cars? It just looked so much larger than the Mausberry is.
Reply
#10
The product mentioned here was out of stock, so I am picking this up instead. Seems it should handle it similarly -- and could even remove the battery if that was a concern.

LiFePO4wered/Pi+ from Silicognition LLC on Tindie

Has anyone tried it?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)