From 5993b08048dfaeee70d314d7dea735beb95fa8c7 Mon Sep 17 00:00:00 2001 From: Candas1 Date: Mon, 13 Feb 2023 09:43:28 +0100 Subject: [PATCH] Updated Variant USART (markdown) --- Variant-USART.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Variant-USART.md b/Variant-USART.md index af6e729..035f1b0 100644 --- a/Variant-USART.md +++ b/Variant-USART.md @@ -1,11 +1,11 @@ This variant can be used to control the board from another board(e.g. Arduino, ESP32, ESP8266,RASPBERRY PI) or a computer via a serial protocol.
The example [Arduino sketch](https://github.com/EmanuelFeru/hoverboard-firmware-hack-FOC/blob/master/Arduino/hoverserial/hoverserial.ino) will send commands and process the feedback.
-Voltage [Control Mode](https://github.com/EFeru/hoverboard-firmware-hack-FOC#foc-firmware) is used by default for this variant. You can also test this variant with following [Web Tool](https://github.com/Candas1/Hoverboard-Web-Serial-Control), it let's you control the board and trace feedback values.
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. ## :gear: Configuration/Parameters +Voltage [Control Mode](https://github.com/EFeru/hoverboard-firmware-hack-FOC#foc-firmware) is used by default.
Use CONTROL_SERIAL_USART2 and FEEDBACK_SERIAL_USART2 for left sensor cable(default).
CONTROL_SERIAL_USART3 and FEEDBACK_SERIAL_USART3 for the right sensor cable(5v tolerant).
SIDEBOARD_SERIAL_USART2 or SIDEBOARD_SERIAL_USART3 parameters can be used instead of 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.