2019-11-14, 07:48 PM
(2019-11-14, 05:04 PM)seandepagnier Wrote: Try booting the tinypilot, and let us see /var/log/pypilot/current. Don't run pypilot manually since it automatically is started at boot.
If the servo is not detected on /dev/ttyAMA0 (make sure motor controller is powered) then try disconnecting power to the motor controller and try with a usb cable. If this works, then you know the controller works but communication is bad. Otherwise likely the controller has a problem.
My log file looks
Quote:2019-06-11_20:01:17.91984 servo lost connection
2019-06-11_20:01:17.91987 no pyudev module! will scan usb devices every probe! No module named six
2019-06-11_20:01:17.91995 device /dev/ttyAMA0
2019-06-11_20:01:17.91998 failed to open servo on: (u'/dev/ttyAMA0', 38400) [Errno 16] could not open port /dev/ttyAMA0: [Errno 16] Device or resource busy: '/dev/ttyA$
and with USB connection :
Quote:2019-06-11_20:14:54.24032 arduino servo found on [u'/dev/ttyAMA0', 38400]
2019-06-11_20:14:54.24038 serialprobe success: /home/tc/.pypilot/servodevice [u'/dev/ttyAMA0', 38400]
2019-06-11_20:14:54.24046 device /dev/serial/by-id/usb-1a86_USB2.0-Serial-if00-port0
2019-06-11_20:14:54.24052 nmea serial probe timeout ('/dev/serial/by-id/usb-1a86_USB2.0-Serial-if00-port0', 38400)
2019-06-11_20:14:54.24063 nmea serial probe timeout ('/dev/serial/by-id/usb-1a86_USB2.0-Serial-if00-port0', 4800)
File remastered in attachment...
I just have RPi and motor controler, no NMEA device connected