Basic motor controller hookup - 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: Basic motor controller hookup (/showthread.php?tid=3152) |
Basic motor controller hookup - Bwk9087 - 2020-12-20 Hi, I have just received my pypilot motor controller. I cannot find anywhere on how to hook it to my raspberry pi. I have searched, everybody talks about it. Are there any directions as to where all connections go? Thanks RE: Basic motor controller hookup - Max1947 - 2020-12-20 (2020-12-20, 03:32 PM)Bwk9087 Wrote: Hi, I have just received my pypilot motor controller. I cannot find anywhere on how to hook it to my raspberry pi. I have searched, everybody talks about it. Are there any directions as to where all connections go? Thanks Hi, try to follow this, maybe it's useful for you too: https://forum.openmarine.net/showthread.php?tid=3061 RE: Basic motor controller hookup - Bwk9087 - 2020-12-20 (2020-12-20, 07:09 PM)Max1947 Wrote:(2020-12-20, 03:32 PM)Bwk9087 Wrote: Hi, I have just received my pypilot motor controller. I cannot find anywhere on how to hook it to my raspberry pi. I have searched, everybody talks about it. Are there any directions as to where all connections go? Thanks RE: Basic motor controller hookup - Bwk9087 - 2020-12-21 (2020-12-20, 11:18 PM)rastam4n Wrote:(2020-12-20, 07:50 PM)Bwk9087 Wrote:(2020-12-20, 07:09 PM)Max1947 Wrote:(2020-12-20, 03:32 PM)Bwk9087 Wrote: Hi, I have just received my pypilot motor controller. I cannot find anywhere on how to hook it to my raspberry pi. I have searched, everybody talks about it. Are there any directions as to where all connections go? Thanks RE: Basic motor controller hookup - seandepagnier - 2020-12-21 sorry, the wind sensor plugs into the raspberry pi, not the motor controller please see: https://pypilot.org/schematics/hbridge_datasheet.htm The 4 wires of the controller go to the pins of the pi, 3v3, tx, rx and gnd. RE: Basic motor controller hookup - Bwk9087 - 2020-12-24 (2020-12-21, 04:57 AM)seandepagnier Wrote: sorry, the wind sensor plugs into the raspberry pi, not the motor controller Ok, I have more lights now, I have a yellow, and a red, I have found that red alone is correct and waiting. What is solid yellow, next to the red? RE: Basic motor controller hookup - seandepagnier - 2020-12-24 solid yellow probably means that the wiring is wrong, or the software is not correct. normally yellow and green are TX and RX and should only be flashing while communicating. RE: Basic motor controller hookup - Bwk9087 - 2020-12-24 (2020-12-24, 06:38 PM)seandepagnier Wrote: solid yellow probably means that the wiring is wrong, or the software is not correct. Ok, finally after many attempts, I think I got it partially. followed this finally. I could not get it to work as stated. when i got here, Start > openplotter > pypilot > add device. Uncheck "Show only Openplotter Serial". Drop down arrow, select /dev/ttyAMA0, OK. I had no device listed, had to add under serial connections first. now I have flashing green light with the red. In Pypilot, It shows Arduino engaged, and sync engaged, but driver timeout. I do not have motor hooked up, would this cause the driver timeout? the pypilot plugin in open cn shows disconnected. thanks For now I can provide some hints at least: Download OP2/NOOBS headless Installed OP onto formatted 32 GB SD card Insert card, power on. Wait about 20 minutes as the setup occurs. SSH connection to enable VNC in raspberry pi configuration. sudo apt update sudo apt upgrade Reboot Start > preferences > raspberry pi configuration > interfaces enable i2c Start > openplotter > settings > Add sources, update candidates, highlight Pypilot, click install. Start > openplotter > pypilot > add device. Uncheck "Show only Openplotter Serial". Drop down arrow, select /dev/ttyAMA0, OK. Change drop down "disabled" to "autopilot." Close. Open OpenCPN. Settings > Plugins > Update plugin catalog master > click pypilot, install. Find pypilot again, tick enable. Click apply, OK. Manual upgrade of pypilot from git. cd mkdir delete cd delete git clone https://github.com/pypilot/pypilot git clone https://github.com/pypilot/pypilot_data cp -rv pypilot_data/* pypilot cd pypilot python3 setup.py build sudo python3 setup.py install sudo nano /boot/config.txt dtoverlay=disable-bt sudo usermod -a G tty pi Start > preferences > raspberry pi configuration > interfaces disable serial console Install zeroconf and websocket client so pypilot can communicate with signalk pip3 install zeroconf or apt install python3-zeroconf pip3 install websocket-client |