2020-06-05, 11:39 AM
(This post was last modified: 2020-06-05, 11:43 AM by glowntiger.)
(2020-06-04, 06:18 PM)Sailoog Wrote:(2020-06-04, 01:35 PM)glowntiger Wrote: @Sailoog:
I have further upload the stand alone script. If you want you can add this directly to Openplotter. You can use instead of the MCS an optocopler on the GPIO of the Pi... ;-)
https://github.com/Thomas-GeDaD/Seatalk1-Raspi-reader
That is really amazing. Do you think this one could work?
https://www.aliexpress.com/item/32719957788.html
Hi Sailoog,
you can use it, but you must invert the Logic of pigpio.
On the MCS a physical high on the Stalk is a high on the GPIO => logical0
If you use this optocoppler a high on the stalk is a low on the GPIO. Then you must use a invert of the data:
http://abyz.me.uk/rpi/pigpio/python.html...ial_invert
(2020-06-04, 07:44 PM)niklun Wrote:(2020-06-03, 01:22 PM)glowntiger Wrote: Hi niklun,Yes, I have enabled the auto shutdown option. Now I don't trust. I turn off the RPI from software, not through MCS switch. But I'd like to turn it off at the switch. Is there any way to control the shutdown dynamics through the MCS switch? This to check if the times are correct.
do not know you exactly system setting....
Have you enable the autoshutdown mode in the MCS APP before you have use this mode as described in the Manual?
If you have not enable this widget, the pi stops hard... !!!
My system is composed of: RPI 4 - HAT Moitessier - MCS
Thanks
Yes,
if the shutdown enable is activ, shutdown via the 12V enable terminal. Then look if the Pi shuts down or not. The power of the pi shuts off after ca.:40s. Until then the pi have to shut down....