Hi, I cant get the AutomationHat to work with Raspberry Pi 5. Even simple scripts, looks like its reading the ADC values but then its followed by a lot of GPIO error messages, maybe because the Pi 5 has different GPIO setup, but im not sure.
Here is the simple script:
import automationhat
value = automationhat.analog[0].read()
print(value)
Here is the value it reads out: 0.027
(that seems ok nothing connected to the ADC)
Now here are all the horror messages:
Exception in thread Thread-1:
Traceback (most recent call last):
File “/usr/local/lib/python3.11/threading.py”, line 1038, in _bootstrap_inner
self.run()
File “/home/lt/Documents/gna_c/.venv/lib/python3.11/site-packages/automationhat/pins.py”, line 37, in run
if self.todo() is False:
^^^^^^^^^^^
File “/home/lt/Documents/gna_c/.venv/lib/python3.11/site-packages/automationhat/init.py”, line 307, in _update_lights
input.read()
File “/home/lt/Documents/gna_c/.venv/lib/python3.11/site-packages/automationhat/pins.py”, line 95, in handler
return self._do(name, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/home/lt/Documents/gna_c/.venv/lib/python3.11/site-packages/automationhat/pins.py”, line 114, in _do
_results[node] = handler(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^
File “/home/lt/Documents/gna_c/.venv/lib/python3.11/site-packages/automationhat/init.py”, line 204, in read
value = Pin.read(self)
^^^^^^^^^^^^^^
File “/home/lt/Documents/gna_c/.venv/lib/python3.11/site-packages/automationhat/init.py”, line 157, in read
self.setup()
File “/home/lt/Documents/gna_c/.venv/lib/python3.11/site-packages/automationhat/init.py”, line 195, in setup
GPIO.setup(self.pin, GPIO.IN)
RuntimeError: Cannot determine SOC peripheral base address
Here are the wealth of error messages, but