no motor controller connected - Printable Version +- OpenMarine (https://forum.openmarine.net) +-- Forum: Pypilot (https://forum.openmarine.net/forumdisplay.php?fid=17) +--- Forum: General discussion (https://forum.openmarine.net/forumdisplay.php?fid=18) +--- Thread: no motor controller connected (/showthread.php?tid=5102) Pages:
1
2
|
no motor controller connected - Captain_t - 2024-01-17 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: im running BBN as my operating system on my raspberry pi 4 8gb. RE: no motor controller connected - seandepagnier - 2024-01-17 It seems perhaps something is wrong with the motor controller hardware? RE: no motor controller connected - Captain_t - 2024-01-17 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 RE: no motor controller connected - mgrouch - 2024-01-17 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? RE: no motor controller connected - Captain_t - 2024-01-17 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 RE: no motor controller connected - mgrouch - 2024-01-17 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. RE: no motor controller connected - Captain_t - 2024-01-17 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 RE: no motor controller connected - mgrouch - 2024-01-17 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. RE: no motor controller connected - Captain_t - 2024-01-17 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 RE: no motor controller connected - mgrouch - 2024-01-17 sudo nano /home/pypilot/.pypilot/blacklist_serial_ports |