OpenMarine

Full Version: MacArthur hat and pypilot motor controller
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
How to connect pypilot motor controller to the MacArthur hat? On the motor controller has +3.3V, tx, rx and gnd lines, I try to connect NMEA 0183 data flow. Is this possible at all or need to connect directly to the Rasperry pi?

I can't find any basic instructions anywhere, looks like documentation is before than MacArthur hat entered on market.
You have to connect the pypilot motor controller to UART0 using the Raspberry pin header. 

If you use UART0 for pypilot you can not use a MAIANA transponder or a dAISy HAT. If you need UART0 for one of these devices you can also use UART2 in Raspberry 4 (GPIO 0 and GPIO 1) or UART1 in Raspberry 5 (GPIO 0 and GPIO 1) for your pypilot controller.
(2024-03-04, 05:52 PM)Sailoog Wrote: [ -> ]You have to connect the pypilot motor controller to UART0 using the Raspberry pin header. 

If you use UART0 for pypilot you can not use a MAIANA transponder or a dAISy HAT. If you need UART0 for one of these devices you can also use UART2 in Raspberry 4 (GPIO 0 and GPIO 1) or UART1 in Raspberry 5 (GPIO 0 and GPIO 1) for your pypilot controller.

Thanks! Now it works with UART0!  

Btw. Pi 5 serial0 -> /dev/ttyAMA10 by default, need to add "dtparam=uart0_console" to the config.txt.
I think you need dtparam=uart0_console only if you want to use the new three-pin JST-SH connector in RPi5. If you needed that for using UART0 in pypilot, it could be because the pypilot code is not yet updated to RPi5.
(2024-03-04, 05:52 PM)Sailoog Wrote: [ -> ]You have to connect the pypilot motor controller to UART0 using the Raspberry pin header. 

If you use UART0 for pypilot you can not use a MAIANA transponder or a dAISy HAT. If you need UART0 for one of these devices you can also use UART2 in Raspberry 4 (GPIO 0 and GPIO 1) or UART1 in Raspberry 5 (GPIO 0 and GPIO 1) for your pypilot controller.

I use a Pi 5 + MacArthur HAT + dAISy HAT and think about testing pypilot. How can I connect to GPIO 0 and GPIO 1 the best? My idea was to use a GPIO edge extension + GPIO cableGPIO screw terminal. Any other suggestions?
(2024-09-16, 06:20 PM)Sailoog Wrote: [ -> ]https://shop.openmarine.net/home/29-gpio...board.html

But I can't put this board on top of the daisy hat and I can't put anything on top of this board.
I'm struggling to clarify the UART connections also.  I can use pins 8(GPIO14) & 10(GPIO15) on the rpi5 header for TX and RX, and Pin 6 for GND.  But the controller also has a 3.3v requirement, will Pin 1 (which only has limited current supply ~50mA) be suitable?   Is it even necessary - does the controller have an onboard regulator to supply 3.3VCC?.  Seems strange that the MacArthur Hat doesnt have designated screw terminals for the PyPilot controller.  Thanks for the help and support!
it only needs a few milliamps to the controller. The power supplies to the optical isolators for the data connection.

So yes the controller has it's own power, but there is not an isolated power supply to supply power to the isolated input side of the data connection, that power is supplied by the raspberry.