Updated Variant USART (markdown)

Candas1
2022-01-04 10:18:19 +01:00
parent 80811fb812
commit 9455dbf58e

@@ -5,9 +5,10 @@ You can also test this variant with following [Web Tool](https://github.com/Cand
This [Python code](https://github.com/kosni68/HoverSerial) inspired by the code shared in this [issue](https://github.com/EmanuelFeru/hoverboard-firmware-hack-FOC/issues/157) can also be used to control the firmware.
## Configuration/Parameters
Use CONTROL_SERIAL_USART3 and FEEDBACK_SERIAL_USART3 for the right sensor cable(default), or CONTROL_SERIAL_USART2 and FEEDBACK_SERIAL_USART2 for left sensor cable.<br>
SIDEBOARD_SERIAL_USART2 or SIDEBOARD_SERIAL_USART3 parameters enable a different [protocol](https://github.com/EFeru/hoverboard-firmware-hack-FOC/issues/143) implemented on the [sideboard firmware](https://github.com/EFeru/hoverboard-sideboard-hack-GD). It can also be used with the [Web tool](https://github.com/Candas1/Hoverboard-Web-Serial-Control#protocol---hovercar) for testing the different control modes/types.<br>
You can adjust USART2_BAUD and USART3_BAUD parameters if you need different baud speed.
Use CONTROL_SERIAL_USART3 and FEEDBACK_SERIAL_USART3 for the right sensor cable(default).<br>
Use CONTROL_SERIAL_USART2 and FEEDBACK_SERIAL_USART2 for left sensor cable.<br>
SIDEBOARD_SERIAL_USART2 or SIDEBOARD_SERIAL_USART3 parameters can be used instead CONTROL_SERIAL_USART2 or CONTROL_SERIAL_USART3 to enable a different [protocol](https://github.com/EFeru/hoverboard-firmware-hack-FOC/issues/143) implemented on the [sideboard firmware](https://github.com/EFeru/hoverboard-sideboard-hack-GD). It can also be used with the [Web tool](https://github.com/Candas1/Hoverboard-Web-Serial-Control#protocol---hovercar) for testing the different control modes/types.<br>
You can adjust USART2_BAUD or USART3_BAUD parameters if you need different baud speed.
## Wiring:
* Connect blue wire to RX, green wire to TX and black wire to GND of Arduino on right sensor cable(shorter)