I've got a new model motor controller, wired up to a Raspberry Pi 4, and it's not being detected by either Openplotter or Tinypilot.
When connected to 12v on my bench top power supply, and connected to Pi pins 8,9,10,17 [3.3v] (pin 1 is used for my i2c IMU) I only receive a red light on the motor controller, and an error "No motor controller!" on the web interface.
The IMU is connected via QWIIC and a QWIIC shim on pins 1-6.
This is true for both tinypilot (2021 pi 4 version) and open plotter.
Openplotter, when running pypilot_servo, after disabling the pypilot service returns the following:
I've got a Pi Zero W, a new memory card, and a multimeter (since my one on the boat is, well, on the boat) coming tomorrow to test with new Pi hardware, and Sean's original 2021 image.
Any thoughts on what's being done wrong? Is it possible the embedded Arduino on the controller is busted?
pypilot_servo (Pi4 / Openplotter) running in user space.
When connected to 12v on my bench top power supply, and connected to Pi pins 8,9,10,17 [3.3v] (pin 1 is used for my i2c IMU) I only receive a red light on the motor controller, and an error "No motor controller!" on the web interface.
The IMU is connected via QWIIC and a QWIIC shim on pins 1-6.
This is true for both tinypilot (2021 pi 4 version) and open plotter.
Openplotter, when running pypilot_servo, after disabling the pypilot service returns the following:
Code:
pi@pypilot:~ $ sudo systemctl stop pypilot
pi@pypilot:~ $ sudo pypilot_servo
pypilot Servo
world magnetic model not available
nmea process 2320
listening on port 20220 for nmea connections
gps process 2323
loading servo calibration /root/.pypilot/servocalibration
WARNING: using default servo calibration!!
read_last_working_devices failed [Errno 2] No such file or directory: '/root/.pypilot/'
pypilotServer process 2325
failed to monitor /root/.pypilot/ Call failed (should not be -1): (-1) ERRNO=(0)
creating config directory: /root/.pypilot/
load file /root/.pypilot/pypilot.conf
failed to load pypilot.conf [Errno 2] No such file or directory: '/root/.pypilot/pypilot.conf'
load file /root/.pypilot/pypilot.conf.bak
backup data failed as well [Errno 2] No such file or directory: '/root/.pypilot/pypilot.conf.bak'
server setup has 4 pipes
zeroconf addresses ['127.0.0.1', '192.168.1.150', '10.10.10.1'] 3
signalk zeroconf service add pypilot._http._tcp.local. _http._tcp.local.
server add socket ('127.0.0.1', 47870)
gps filter process 2324
gpsd connected
GPSD devices []
servo probe ('/dev/ttyAMA0', 38400) 146.705816042
signalk process 2322
signalk failed to read token /root/.pypilot/signalk-token
signalk server found 192.168.1.150:3000
signalk found ws://192.168.1.150:3000/signalk/v1/stream?subscribe=none
signalk zeroconf service add pypilot._http._tcp.local. _http._tcp.local.
signalk server found 192.168.1.150:3000
signalk zeroconf service add pypilot._http._tcp.local. _http._tcp.local.
servo probe ('/dev/ttyAMA0', 38400) 161.055823531
signalk server found 192.168.1.150:3000
signalk zeroconf service add pypilot._http._tcp.local. _http._tcp.local.
signalk server found 192.168.1.150:3000
servo probe ('/dev/ttyAMA0', 38400) 175.355870521
servo probe ('/dev/ttyAMA0', 38400) 189.655925455
....
servo probe repeats endlessly
I've got a Pi Zero W, a new memory card, and a multimeter (since my one on the boat is, well, on the boat) coming tomorrow to test with new Pi hardware, and Sean's original 2021 image.
Any thoughts on what's being done wrong? Is it possible the embedded Arduino on the controller is busted?
Code:
pi@pypilot:~ $ sudo systemctl stop pypilot
pi@pypilot:~ $ pypilot_servo
pypilot Servo
world magnetic model not available
nmea process 2364
listening on port 20220 for nmea connections
gps process 2367
loading servo calibration /home/pi/.pypilot/servocalibration
WARNING: using default servo calibration!!
pypilotServer process 2369
load file /home/pi/.pypilot/pypilot.conf
store_file /home/pi/.pypilot/pypilot.conf.bak 265.712
server setup has 4 pipes
server add socket ('127.0.0.1', 48884)
zeroconf addresses ['127.0.0.1', '192.168.1.150', '10.10.10.1'] 3
signalk zeroconf service add pypilot._http._tcp.local. _http._tcp.local.
gps filter process 2368
gpsd connected
GPSD devices []
servo probe ('/dev/ttyAMA0', 38400) 270.693644519
signalk process 2366
signalkread token eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJkZXZpY2UiOiJjZDcwYTA1ZC0xMjczLTQ4NmUtODhjMi0zNmU3OWQ1NWFhY2IiLCJpYXQiOjE3MDMxNjIxMDEsImV4cCI6MTczNDcxOTcwMX0.QW2dpq-rLh9NQg3k9FKExaVgTaQZrMi0PhjjPUQipjY
signalk server found 192.168.1.150:3000
signalk found ws://192.168.1.150:3000/signalk/v1/stream?subscribe=none
signalk connected to ws://192.168.1.150:3000/signalk/v1/stream?subscribe=none
servo probe ('/dev/ttyAMA0', 38400) 285.029541465
servo probe ('/dev/ttyAMA0', 38400) 299.329750909
servo probe ('/dev/ttyAMA0', 38400) 313.629689775
servo probe ('/dev/ttyAMA0', 38400) 328.029658993
signalk zeroconf service add pypilot._http._tcp.local. _http._tcp.local.
signalk zeroconf service add pypilot._http._tcp.local. _http._tcp.local.
signalk server found 192.168.1.150:3000
signalk zeroconf service add pypilot._http._tcp.local. _http._tcp.local.
signalk server found 192.168.1.150:3000
signalk zeroconf service add pypilot._http._tcp.local. _http._tcp.local.
signalk server found 192.168.1.150:3000
servo probe ('/dev/ttyAMA0', 38400) 342.329715159
servo probe ('/dev/ttyAMA0', 38400) 356.829700893
servo probe ('/dev/ttyAMA0', 38400) 371.229730628
servo probe ('/dev/ttyAMA0', 38400) 385.729660884
servo probe ('/dev/ttyAMA0', 38400) 400.129699012
servo probe ('/dev/ttyAMA0', 38400) 414.429737862
servo probe ('/dev/ttyAMA0', 38400) 428.729761602
servo probe ('/dev/ttyAMA0', 38400) 443.029720659
servo probe ('/dev/ttyAMA0', 38400) 457.429717566
servo probe ('/dev/ttyAMA0', 38400) 471.730237366
servo probe ('/dev/ttyAMA0', 38400) 486.029726002
servo probe ('/dev/ttyAMA0', 38400) 500.329699544
servo probe ('/dev/ttyAMA0', 38400) 514.729657327
servo probe ('/dev/ttyAMA0', 38400) 529.029720967
servo probe ('/dev/ttyAMA0', 38400) 543.429772656
servo probe ('/dev/ttyAMA0', 38400) 557.729740352
servo probe ('/dev/ttyAMA0', 38400) 572.129729648
servo probe ('/dev/ttyAMA0', 38400) 586.529700566
servo probe ('/dev/ttyAMA0', 38400) 601.029671852
servo probe ('/dev/ttyAMA0', 38400) 615.429662178
servo probe ('/dev/ttyAMA0', 38400) 629.729648955
servo probe ('/dev/ttyAMA0', 38400) 644.029784568
servo probe ('/dev/ttyAMA0', 38400) 658.329747923
servo probe ('/dev/ttyAMA0', 38400) 672.729683315
servo probe ('/dev/ttyAMA0', 38400) 687.129746595
servo probe ('/dev/ttyAMA0', 38400) 701.52969552
servo probe ('/dev/ttyAMA0', 38400) 715.929721083
servo probe ('/dev/ttyAMA0', 38400) 730.229718702
servo probe ('/dev/ttyAMA0', 38400) 744.629738173
servo probe ('/dev/ttyAMA0', 38400) 758.929722088