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
Basic motor controller hookup
#1
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
Reply
#2
(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

Wink
Reply
#3
(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

Hi, try to follow this, maybe it's useful for you too: 

https://forum.openmarine.net/showthread.php?tid=3061


Ok, I see how now how to hook up the 4 small wires, and the motor to the green terminals.  Where do the network wires go?


Wink
Reply
#4
(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

Hi, try to follow this, maybe it's useful for you too: 

https://forum.openmarine.net/showthread.php?tid=3061


Ok, I see how now how to hook up the 4 small wires, and the motor to the green terminals.  Where do the network wires go?


Wink

Ok, no I will not be using that.

thanks

Those are for the wind sensor module if you have one
Reply
#5
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.
Reply
#6
(2020-12-21, 04:57 AM)seandepagnier Wrote: 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.

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?
Reply
#7
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.
Reply
#8
(2020-12-24, 06:38 PM)seandepagnier Wrote: 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.

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
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)