OpenMarine
Reading data from Tinypilot Uart - 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: Reading data from Tinypilot Uart (/showthread.php?tid=3286)



Reading data from Tinypilot Uart - Dusty_Dave - 2021-02-19

I am not able to see any readable data from the Uart on the Tinypilot. I have run through all the normal baud rates but only see strings of unreadable characters. i was hoping to see the data in readable form so I can parse the strings and use the values to enable my digital input to my hydraulic steering ( it uses 2 data lines either high or low to control the hydraulic cylinder) Currently I use a joystick to control the cylinder. Any information on this would be greatly appreciated.


RE: Reading data from Tinypilot Uart - ironman - 2021-02-20

Indeed it's a binary format, and you will find it hard to interface at this level. Although they are two pieces of hardware that can be physically apart, it's best to see pypilot and the arduino with its motor.ino sketch as one logical unit. See https://forum.openmarine.net/showthread.php?tid=2457&pid=13363. If you are simply curious you can study the code of motor.ino.


RE: Reading data from Tinypilot Uart - seandepagnier - 2021-02-21

it is a binary format at 38400

The reason for binary is that the latency is much lower and the data checking better (avoid invalid data) while providing much telemetry at low baud rates while still working at fast rates and enabling long wires. If I had used a text format similar to nmea I would sacrifice something.

I am not completely sure what you are trying to do. Make your own motor controller? You can easily flash motor.ino to a arduino nano, and it will communicate with tinypilot and then you can set this up to do what you like.


RE: Reading data from Tinypilot Uart - Dusty_Dave - 2021-02-22

Thanks for your Replies, I have ordered a couple of Arduino Nano's and will set one up as suggested and go from there. As far as what I am trying to do, I have an existing hydraulic system that uses a digital high on either of 2 pins to control the hydraulic motor (forward/backward). It currently uses an old Atari joystick and works wonderfully but is not an autopilot. Just looking for a simple way to interface Tinypilot to this existing system.