diff --git a/Variant-USART.md b/Variant-USART.md new file mode 100644 index 0000000..ce96bdd --- /dev/null +++ b/Variant-USART.md @@ -0,0 +1,18 @@ +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/tree/master/Arduino/hoverserial) will send commands and process the feedback. + +## Wiring: +* Connect blue wire to RX, blue wire to TX and black wire to GND of Arduino on right sensor cable(shorter) + +⚠ Red wire from sensor cable delivers 15v !!! +Use 3.3v from programming port, 5v from hall sensor cable, or a voltage regulator. + +## Calibration: +Proceed with [calibration](https://github.com/EmanuelFeru/hoverboard-firmware-hack-FOC/wiki/Calibration) for better control if you use input devices(e.g. Joystick or Throttle handle) on the Arduino. + +## Troubleshooting: + +If the board is beeping +* Make sure the baud rate is 38400 +* Make sure you are using the sensor cable(left=USART2 or right=USART3) selected in config.h +* On some boards the wire colors might differ, try switching blue and green wires \ No newline at end of file