Trilobot - SN3218 - Pi5


I have bought the Trilobot Kit and a RasPi5 8GB. I am facing a the same SN3218 been reported earlier by others.

I have done some steps unique to Pi5 (making a Venv, downloading a few addnl packages etc) and the usual For trilobot incl activating I2C and re-verifying any bent pins.

My detailed note on steps taken are enumerated here:

Exact error being faced is as below:

(env) $ python
Trilobot Example: Flash Underlights

Traceback (most recent call last):
File “/home/user/Trilobot/trilobot-python/examples/”, line 20, in
tbot = Trilobot()
File “/home/user/Trilobot/env/lib/python3.11/site-packages/trilobot/”, line 81, in init
GPIO.setup(self.BUTTON_A_PIN, GPIO.IN, pull_up_down=GPIO.PUD_UP)
RuntimeError: No access to /dev/mem. Try running as root!
Exception ignored in: <function Trilobot.del at 0x7fff734d2d40>
Traceback (most recent call last):
File “/home/user/Trilobot/env/lib/python3.11/site-packages/trilobot/”, line 155, in del
AttributeError: ‘Trilobot’ object has no attribute ‘sn3218’

Have been at it for the past few weeks, now I am at a complete dead end. Look forward to any guidance and support.