09-24-2023, 11:27 PM
Hey Gecko, I have a Pi 4 4GB with the latest OpenAutoPro and your CarPiHatPro with the Waveshare 5.5" screen installed. Everything is working smoothly except I cannot get the Pi, or rather the PiHat to initiate the safe shutdown once the 12v ACC signal drops to 0V. The Pi remains running as if nothing happened.
When I reconnect that 12V ACC line, the Pi shuts down instantly without warning.
I have the Python script copied exactly how it is written on the Github Quick Start page. I have even tried changing "ignLowCounter = 0" to "ignLowCounter = 1" without any affect.
I know the script is working to an extent because before I added it once I removed the 12V ACC supply the Pi would shutdown instantly. Since that script has been added the Pi remains powered up when removing the 12V ACC trigger. I copied and pasted the script via Windows PC and pasted it into a txt file AND ALSO used the Pi's cmd + Nano to paste and save the script into the /home/pi/carPiHat.py directory. I tried using Python IDE but it did not like the tab and spacing.
When I reconnect that 12V ACC line, the Pi shuts down instantly without warning.
I have the Python script copied exactly how it is written on the Github Quick Start page. I have even tried changing "ignLowCounter = 0" to "ignLowCounter = 1" without any affect.
I know the script is working to an extent because before I added it once I removed the 12V ACC supply the Pi would shutdown instantly. Since that script has been added the Pi remains powered up when removing the 12V ACC trigger. I copied and pasted the script via Windows PC and pasted it into a txt file AND ALSO used the Pi's cmd + Nano to paste and save the script into the /home/pi/carPiHat.py directory. I tried using Python IDE but it did not like the tab and spacing.