It's the main issue with PI, I use PI3 and 4 since 2 or 3 years in my mower and i have the same temp , >70 deg when using camera over opencv and tensorflow lite (not motion) .Schwer zu sagen, ob es an der Temperatur liegt. Mein Log sagt, der RPI hat 18:49 aufgehört zu arbeiten. Bei 64,5° CPU Temperatur. Das ist eigentlich im Rahmen.
Und nach dem Neustart 22:00 hatte die CPU sogar 65°, läuft aber.
Who knows? Habe auf Morgen ein Kühlblech bestellt. Schaun mer mal.

#!/usr/bin/env python
from __future__ import print_function
import serial, sys, time, os
from time import sleep
# CaSSAndRA stoppen
def stopService():
try:
#stop cassandra service
os.popen("sudo systemctl stop cassandra.service")
print("CaSSAndRA service terminated successfully...")
except OSError as ose:
print("Error while running the command", ose)
pass
stopService()
time.sleep(5)
# command-line argument is the port the Arduino is on
serialPort = sys.argv[1]
print("Resetting the Arduino Leonardo/Micro at {}... ".format(serialPort), end="")
# First we open and close the port at some normal baudrate.
ser = serial.Serial(port=serialPort, baudrate=9600)
ser.close()
# Now, we open the port at the magic 1200 baud.
ser.baudrate = 1200
ser.open()
# Tricky, completely undocumented bit: RTS must be HIGH and DTR LOW.
# Otherwise absolutely nothing happens!
# ...yeah, I know.
ser.setRTS(True)
ser.setDTR(False)
# Close the 1200 baud connection, triggering a reset of the Arduino.
# The bootloader will run for 8 seconds (14 blinks).
ser.close()
# yay!!!
print("done.")
# Addendum: If this is used right before uploading new code,
# we need to give the bootloader some time to start up.
time.sleep(5)
# Uebertragen der Daten an dem M4
os.system('bossac -i --port=/dev/ttyACM0 -U -i --offset=0x4000 -w ~/sunray.ino.grand_central_m4.bin -R')
time.sleep(5)
# CaSSAndRA starten
def startService():
try:
#start cassandra service
os.popen("sudo systemctl start cassandra.service")
print("CaSSAndRA service started successfully...")
except OSError as ose:
print("Error while running the command", ose)
pass
startService()
#!/usr/bin/env python
from __future__ import print_function
import serial, sys
from time import sleep
#
# Arduino Leonardo/Micro automatic software reset tool.
#
# Calvin Li, 2015-04-03
#
# command-line argument is the port the Arduino is on
serialPort = sys.argv[1]
print("Resetting the Arduino Leonardo/Micro at {}... ".format(serialPort), end="")
# First we open and close the port at some normal baudrate.
ser = serial.Serial(port=serialPort, baudrate=9600)
ser.close()
# Now, we open the port at the magic 1200 baud.
ser.baudrate = 1200
ser.open()
# Tricky, completely undocumented bit: RTS must be HIGH and DTR LOW.
# Otherwise absolutely nothing happens!
# ...yeah, I know.
ser.setRTS(True)
ser.setDTR(False)
# Close the 1200 baud connection, triggering a reset of the Arduino.
# The bootloader will run for 8 seconds (14 blinks).
ser.close()
# yay!!!
print("done.")
# Addendum: If this is used right before uploading new code,
# we need to give the bootloader some time to start up.
# time.sleep(2)
systemctl status ModemManager.service