Hi everyone, I’m having trouble with my Arducam IMX477 12MP PTZ Camera (model B0167B12) on a Raspberry Pi 4B 8GB. The camera feed shows up fine in VNC viewer, but the arrow keys don’t do anything — the PTZ motors never move. The video is also really choppy and laggy.
When I press an arrow key, I get this I2C error:
File "/home/pi/PTZ-Camera-Controller/B016712MP/FocuserExample.py", line 203, in draw_menu
parseKey(k,focuser,auto_focus,camera)
File "/home/pi/PTZ-Camera-Controller/B016712MP/FocuserExample.py", line 132, in parseKey
focuser.set(Focuser.OPT_MOTOR_Y,focuser.get(Focuser.OPT_MOTOR_Y) - motor_step)
File "/home/pi/PTZ-Camera-Controller/B016712MP/Focuser.py", line 209, in set
self.write(self.CHIP_I2C_ADDR,info["REG_ADDR"],value)
File "/home/pi/PTZ-Camera-Controller/B016712MP/Focuser.py", line 89, in write
return self.bus.write_word_data(chip_addr,reg_addr,value)
File "/usr/lib/python3/dist-packages/smbus2/smbus2.py", line 496, in write_word_data
ioctl(self.fd, I2C_SMBUS, msg)
OSError: [Errno 121] Remote I/O error
I also see these Qt timer warnings:
QObject::killTimer: Timers cannot be stopped from another thread
QObject::~QObject: Timers cannot be stopped from another thread
I already tried disconnecting the servo VCC and GND from the Pi to see if it was a power issue, but the arrow keys still don’t work. Is it safe to connect servo VCC directly to the Pi on this model? The scripts I’m using are FocuserExample.py and Focuser.py from the PTZ-Camera-Controller repo, using smbus2 for I2C.




