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
Reading data from Tinypilot Uart
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.
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 If you are simply curious you can study the code of motor.ino.
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.
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.

Forum Jump:

Users browsing this thread: 1 Guest(s)