mirror of
https://github.com/EFeru/hoverboard-firmware-hack-FOC.git
synced 2025-08-04 18:14:28 +02:00
Created Variant USART (markdown)
18
Variant-USART.md
Normal file
18
Variant-USART.md
Normal file
@@ -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.<br />
|
||||||
|
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
|
Reference in New Issue
Block a user