This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
no motor controller connected
#1
finally got around to building my motor controller but when i open pypilot i get no motor controller connected
so i run sudo pypilot_servo and this is what i get.
Code:
[sudo] password for user:
pypilot Servo
world magnetic model not available
nmea process 5014
nmea server on port 20220: bind failed.
gps process 5017
loading servo calibration /root/.pypilot/servocalibration
WARNING: using default servo calibration!!
gps filter process 5018
servo probe ('/dev/ttyAMA0', 38400) 1303.929747192
nmea probe ('/dev/ttyACM0', 38400)
pypilotServer process 5019
failed to monitor  /root/.pypilot/ Call failed (should not be -1): (-1) ERRNO=(0)
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'
pypilot_server: bind failed; already running a server?
signalk zeroconf service add avnav-server._http._tcp.local. _http._tcp.local.
signalk zeroconf service add lysmarine._http._tcp.local. _http._tcp.local.
signalk zeroconf service add Mopidy HTTP server on lysmarine._http._tcp.local. _http._tcp.local.
signalk zeroconf service add Family Room._http._tcp.local. _http._tcp.local.
signalk zeroconf service add Officejet Pro 8600 [BA47DF]._http._tcp.local. _http._tcp.local.
signalk zeroconf service add Master Bedroom._http._tcp.local. _http._tcp.local.
signalk zeroconf service add Family Room (2)._http._tcp.local. _http._tcp.local.
signalk zeroconf service add Man Cave._http._tcp.local. _http._tcp.local.
arduino servo found ['/dev/ttyAMA0', 38400]
serialprobe success: /root/.pypilot/servodevice ['/dev/ttyAMA0', 38400]
voltage: False current 0.0 ctrl temp False motor temp False rudder pos False flags SYNC
Arduino motor controller EEPROM SIGNATURE ok
voltage: False current 0.0 ctrl temp False motor temp False rudder pos False flags SYNC
voltage: False current 0.0 ctrl temp False motor temp False rudder pos False flags SYNC
voltage: False current 0.0 ctrl temp False motor temp False rudder pos False flags SYNC
voltage: False current 0.0 ctrl temp False motor temp False rudder pos False flags SYNC
serialprobe success: /root/.pypilot/nmea0device ('/dev/ttyACM0', 38400)
nmea serv
i am a compete noob with linux 
im running BBN as my operating system on my raspberry pi 4 8gb.
Reply
#2
It seems perhaps something is wrong with the motor controller hardware?
Reply
#3
From what i understand is when running that is it is taking back and forth because the rx and tx lights are blinking pretty fast and it does come back with the false voltage,temp,rudder values( have those disabled in the motor.ino . The only changes i made to the motor.ino was for the defines of those 3 disabled and define VNH2SP30 and changed the crystal to 16hmz because im using an nano. I know i have a working bt-2 because i tested it without the nano and it works
Reply
#4
Pypilot shipped on BBN version should have magnetic model.
It’s also installed in /home/pypilot not in /root.
How did you install and run this pypilot?
Download BBN Marine OS for raspberry pi 

https://bareboat-necessities.github.io/m...at-os.html

Video of actual installation:

https://www.youtube.com/watch?v=3zMjUs2X3qU


Reply
#5
Pypilot was pre installed on bbn ...( im not sure what magnetic model means) and the way i updated it was

cd
git clone https://github.com/pypilot/pypilot
git clone https://github.com/pypilot/pypilot_data
cp -rv pypilot_data/* pypilot
cd pypilot
python setup.py build
sudo python setup.py install
Reply
#6
So you effectively deleted preinstalled and preconfigured pypilot. And installed into different place.
Are you sure they are not running both in parallel?
You need world magnetic model for translating from true north to magnetic and vice versa.

I’d suggest to burn BBN OS again and follow
instructions in BBN OS documentation on pypilot.

There are about couple of lines in configs to be changed to make it work with motor controller
and almost nothing for IMU. IMU just needs calibration.

Your current installation is probably not worth time repairing.
Download BBN Marine OS for raspberry pi 

https://bareboat-necessities.github.io/m...at-os.html

Video of actual installation:

https://www.youtube.com/watch?v=3zMjUs2X3qU


Reply
#7
Ok, i only updated the pypilot when i wasn't able to get the original to work, the imu worked just fine without any modification. I will start fresh again and update this post on the progress

so reburned the last reslease of bbn os bulleyes ... changed the config file and added 

dtoverlay=disable-bt
enable_uart=1

checked ls -l /dev/serial0
and it does point to /dev/ttyAMA0

Code:
user@lysmarine:~ $ sudo pypilot_servo
[sudo] password for user:
pypilot Servo
world magnetic model not available
nmea process 3324
nmea server on port 20220: bind failed.
loading servo calibration /root/.pypilot/servocalibration
WARNING: using default servo calibration!!
gps filter process 3327
Traceback (most recent call last):
  File "/usr/local/bin/pypilot_servo", line 33, in <module>
    sys.exit(load_entry_point('pypilot==0.36', 'console_scripts', 'pypilot_servo')())
  File "/usr/local/lib/python3.9/dist-packages/pypilot/servo.py", line 813, in main
    servo.poll()
  File "/usr/local/lib/python3.9/dist-packages/pypilot/servo.py", line 582, in poll
    device_path = serialprobe.probe('servo', [38400], 5)
  File "/usr/local/lib/python3.9/dist-packages/pypilot/serialprobe.py", line 242, in probe
    if enumerate_devices():
gps process 3326
  File "/usr/local/lib/python3.9/dist-packages/pypilot/serialprobe.py", line 163, in enumerate_devices
    read_last_working_devices()
  File "/usr/local/lib/python3.9/dist-packages/pypilot/serialprobe.py", line 54, in read_last_working_devices
    for filename in os.listdir(pypilot_dir):
FileNotFoundError: [Errno 2] No such file or directory: '/root/.pypilot/'
Reply
#8
Do not run any processes yourself. Pypilot is running as a service.
You forgot to take out serial port from blacklist. It is mentioned in the BBN documentation.
save blacklist file and reboot. After that pypilot web ui should shot connected to motor controller its temperature etc. you should be able to activate autopilot from it.
Download BBN Marine OS for raspberry pi 

https://bareboat-necessities.github.io/m...at-os.html

Video of actual installation:

https://www.youtube.com/watch?v=3zMjUs2X3qU


Reply
#9
How do i gain access to that because when i open file manager the only file in /home/pypilot/ is RTIMULib.ini no other files or folders. Sorry if these questions are dumb its my first time using linux
Reply
#10
sudo nano /home/pypilot/.pypilot/blacklist_serial_ports
Download BBN Marine OS for raspberry pi 

https://bareboat-necessities.github.io/m...at-os.html

Video of actual installation:

https://www.youtube.com/watch?v=3zMjUs2X3qU


Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)