2025-06-27, 10:33 PM
Hi All,
I am trying to setup Pypilot using a Raspberry Pi Zero W2. I have successfully installed tinypilot13-20240915.img and am able to access the controls via the browser interface. I have connected a MPU9250 that I purchased from Amazon (https://www.amazon.ca/dp/B0CRZF148H?ref=...asin_title) using a breadboard to the SCL and SDA GPIO pins. The problem is I cannot get a compass heading or acceleration data. I have confirmed the IMU has 3.3v power. Is this IMU compatible with the Zero W2? I have not gotten to the next step of connecting a motor controller yet.
Here is a sample from the Pypilot log at startup:
2024-09-12_12:00:07.85860 autopilot start 16.114824941
2024-09-12_12:00:12.64743 world magnetic model not available
2024-09-12_12:00:12.93182 imu process 2312
2024-09-12_12:00:12.94608 made imu process realtime
2024-09-12_12:00:12.94616 Using settings file RTIMULib.ini
2024-09-12_12:00:12.94620 Settings file RTIMULib.ini loaded
2024-09-12_12:00:12.94629 Failed to open settings file for saveUsing fusion algorithm Kalman STATE4
2024-09-12_12:00:13.05216 nmea process 2315
2024-09-12_12:00:13.05306 listening on port 20220 for nmea connections
2024-09-12_12:00:13.07122 gps process 2318
2024-09-12_12:00:13.08201 loading servo calibration /home/tc/.pypilot/servocalibration
2024-09-12_12:00:13.08231 WARNING: using default servo calibration!!
2024-09-12_12:00:13.09018 Available Pilots: ['absolute', 'basic']
2024-09-12_12:00:13.10139 pypilotServer process 2323
2024-09-12_12:00:13.10993 pypilotinit complete 21.708514522
2024-09-12_12:00:13.16912 servo probe ('/dev/ttyAMA0', 38400) 21.767782647
2024-09-12_12:00:13.20288 server/client is running too _slowly_ 0.09283411399999864
2024-09-12_12:00:13.64375 load file /home/tc/.pypilot/pypilot.conf
2024-09-12_12:00:13.64920 store_file /home/tc/.pypilot/pypilot.conf.bak 22.248 False
2024-09-12_12:00:13.65090 server setup has 6 pipes
2024-09-12_12:00:13.75365 imu rate set to rate 20
2024-09-12_12:00:13.76756 too long write pipe 0.08467674255371094 pypilotServer pipe0[1] 18
2024-09-12_12:00:13.90313 setting initial gyro bias [-0.5, -1.52, 0.42]
2024-09-12_12:00:13.95653 server add socket ('127.0.0.1', 54054)
2024-09-12_12:00:13.95855 imu rate set to rate 20
2024-09-12_12:00:14.58824 server add socket ('127.0.0.1', 54056)
2024-09-12_12:00:15.07492 gpsd failed to connect
2024-09-12_12:00:15.29225 zeroconf addresses ['127.0.0.1'] 1
2024-09-12_12:00:16.96262 Failed to open SPI bus 0, select 0
2024-09-12_12:00:17.03384 failed import calibration fit No module named 'numpy'
2024-09-12_12:00:17.30198 server/client is running too _slowly_ 0.08050005200000143
2024-09-12_12:00:18.66208 servo probe ('/dev/ttyAMA0', 38400) 27.260760249
2024-09-12_12:00:18.66395 server/client is running too _slowly_ 0.5420703640000006
2024-09-12_12:00:19.07145 signalk process 2317
2024-09-12_12:00:19.17373 signalkread token �������������������������������������������������������������������������������������������������������������������������������������������������������������������������
2024-09-12_12:00:22.71405 server/client is running too _slowly_ 0.08789192700000115
2024-09-12_12:00:22.83801 servo probe ('/dev/ttyAMA0', 38400) 31.436715039
2024-09-12_12:00:26.96179 server/client is running too _slowly_ 0.0789689590000009
2024-09-12_12:00:28.07884 servo probe ('/dev/ttyAMA0', 38400) 36.677518058
2024-09-12_12:00:33.18243 servo probe ('/dev/ttyAMA0', 38400) 41.781075139
2024-09-12_12:00:37.41395 servo probe ('/dev/ttyAMA0', 38400) 46.012668054
2024-09-12_12:00:42.58297 servo probe ('/dev/ttyAMA0', 38400) 51.181652115
2024-09-12_12:00:46.68170 server/client is running too _slowly_ 0.07726984399999992
2024-09-12_12:00:47.10094 failed import calibration fit No module named 'numpy'
2024-09-12_12:00:47.10529 gpsd connected
2024-09-12_12:00:47.17287 GPSD devices []
2024-09-12_12:00:47.66146 servo probe ('/dev/ttyAMA0', 38400) 56.260172426
2024-09-12_12:00:51.73170 server/client is running too _slowly_ 0.07537989600000117
Any help would be appreciated.
Thank you.
I am trying to setup Pypilot using a Raspberry Pi Zero W2. I have successfully installed tinypilot13-20240915.img and am able to access the controls via the browser interface. I have connected a MPU9250 that I purchased from Amazon (https://www.amazon.ca/dp/B0CRZF148H?ref=...asin_title) using a breadboard to the SCL and SDA GPIO pins. The problem is I cannot get a compass heading or acceleration data. I have confirmed the IMU has 3.3v power. Is this IMU compatible with the Zero W2? I have not gotten to the next step of connecting a motor controller yet.
Here is a sample from the Pypilot log at startup:
2024-09-12_12:00:07.85860 autopilot start 16.114824941
2024-09-12_12:00:12.64743 world magnetic model not available
2024-09-12_12:00:12.93182 imu process 2312
2024-09-12_12:00:12.94608 made imu process realtime
2024-09-12_12:00:12.94616 Using settings file RTIMULib.ini
2024-09-12_12:00:12.94620 Settings file RTIMULib.ini loaded
2024-09-12_12:00:12.94629 Failed to open settings file for saveUsing fusion algorithm Kalman STATE4
2024-09-12_12:00:13.05216 nmea process 2315
2024-09-12_12:00:13.05306 listening on port 20220 for nmea connections
2024-09-12_12:00:13.07122 gps process 2318
2024-09-12_12:00:13.08201 loading servo calibration /home/tc/.pypilot/servocalibration
2024-09-12_12:00:13.08231 WARNING: using default servo calibration!!
2024-09-12_12:00:13.09018 Available Pilots: ['absolute', 'basic']
2024-09-12_12:00:13.10139 pypilotServer process 2323
2024-09-12_12:00:13.10993 pypilotinit complete 21.708514522
2024-09-12_12:00:13.16912 servo probe ('/dev/ttyAMA0', 38400) 21.767782647
2024-09-12_12:00:13.20288 server/client is running too _slowly_ 0.09283411399999864
2024-09-12_12:00:13.64375 load file /home/tc/.pypilot/pypilot.conf
2024-09-12_12:00:13.64920 store_file /home/tc/.pypilot/pypilot.conf.bak 22.248 False
2024-09-12_12:00:13.65090 server setup has 6 pipes
2024-09-12_12:00:13.75365 imu rate set to rate 20
2024-09-12_12:00:13.76756 too long write pipe 0.08467674255371094 pypilotServer pipe0[1] 18
2024-09-12_12:00:13.90313 setting initial gyro bias [-0.5, -1.52, 0.42]
2024-09-12_12:00:13.95653 server add socket ('127.0.0.1', 54054)
2024-09-12_12:00:13.95855 imu rate set to rate 20
2024-09-12_12:00:14.58824 server add socket ('127.0.0.1', 54056)
2024-09-12_12:00:15.07492 gpsd failed to connect
2024-09-12_12:00:15.29225 zeroconf addresses ['127.0.0.1'] 1
2024-09-12_12:00:16.96262 Failed to open SPI bus 0, select 0
2024-09-12_12:00:17.03384 failed import calibration fit No module named 'numpy'
2024-09-12_12:00:17.30198 server/client is running too _slowly_ 0.08050005200000143
2024-09-12_12:00:18.66208 servo probe ('/dev/ttyAMA0', 38400) 27.260760249
2024-09-12_12:00:18.66395 server/client is running too _slowly_ 0.5420703640000006
2024-09-12_12:00:19.07145 signalk process 2317
2024-09-12_12:00:19.17373 signalkread token �������������������������������������������������������������������������������������������������������������������������������������������������������������������������
2024-09-12_12:00:22.71405 server/client is running too _slowly_ 0.08789192700000115
2024-09-12_12:00:22.83801 servo probe ('/dev/ttyAMA0', 38400) 31.436715039
2024-09-12_12:00:26.96179 server/client is running too _slowly_ 0.0789689590000009
2024-09-12_12:00:28.07884 servo probe ('/dev/ttyAMA0', 38400) 36.677518058
2024-09-12_12:00:33.18243 servo probe ('/dev/ttyAMA0', 38400) 41.781075139
2024-09-12_12:00:37.41395 servo probe ('/dev/ttyAMA0', 38400) 46.012668054
2024-09-12_12:00:42.58297 servo probe ('/dev/ttyAMA0', 38400) 51.181652115
2024-09-12_12:00:46.68170 server/client is running too _slowly_ 0.07726984399999992
2024-09-12_12:00:47.10094 failed import calibration fit No module named 'numpy'
2024-09-12_12:00:47.10529 gpsd connected
2024-09-12_12:00:47.17287 GPSD devices []
2024-09-12_12:00:47.66146 servo probe ('/dev/ttyAMA0', 38400) 56.260172426
2024-09-12_12:00:51.73170 server/client is running too _slowly_ 0.07537989600000117
Any help would be appreciated.
Thank you.