RollingGecko / VescUartControl

Arduino library to interface with the VESC bldc over UART.
Other
141 stars 75 forks source link

Getting "Failed to get data!" help? #22

Closed lukebelz closed 6 years ago

lukebelz commented 6 years ago

I can only imagine I must be wiring it wrong. I'm using a mega, with a 4.10 vesc running 2.16.

I have uart selected as the mode and baud rate is 115200 on the vesc.

I have vesc Rx -> Tx1 and vesc Tx -> Rx1. Serial 1 in the code also has a baud rate of 115200, to match the VESC's uart baud rate.

Just trying to run the example code. But I never get a connection. Just "Failed to get data!" over and over.

Do I need to wire anything else from the vesc uart? Can't understand why this won't work other wise.

lukebelz commented 6 years ago

Solution: Ground on the vesc uart must be connected to ground on the arduino. Some wiring info in the readme would be very helpful. something like:

Vesc Uart Rx -> arduino Tx1 Vesc Uart Tx -> arduino Rx1 Vesc Uart Ground -> arduino ground