mirror of
https://github.com/EFeru/hoverboard-firmware-hack-FOC.git
synced 2025-08-04 18:14:28 +02:00
Created Debug Serial (markdown)
26
Debug-Serial.md
Normal file
26
Debug-Serial.md
Normal file
@@ -0,0 +1,26 @@
|
||||
Debug Serial will allow you to get information from the board as Human readable ASCII output.
|
||||
It can be used to:
|
||||
* Calibrate the battery voltage reading
|
||||
* Calibrate the temperature reading
|
||||
* Debug
|
||||
* Plot
|
||||
|
||||
## Wiring:
|
||||
* Connect GND and RX of a 3.3v uart-usb/FTDI adapter to the left (USART2) or right sensor board cable (USART3) depending on config.h settings
|
||||
|
||||
⚠ Red wire from sensor cable delivers 15v !!!
|
||||
|
||||
## Output
|
||||
DEBUG_SERIAL_ASCII output is:
|
||||
`1:345 2:1337 3:0 4:0 5:0 6:0 7:0 8:0\r\n`
|
||||
|
||||
|Position|Ouput|
|
||||
|---|---|
|
||||
|1|Input1|
|
||||
|2|Input2|
|
||||
|3|Right Wheel Speed Command (not the measure speed)|
|
||||
|4|Left Wheel Speed Command (not the measure speed)|
|
||||
|5|Battery adc-value measured by mainboard|
|
||||
|6|Battery calibrated voltage multiplied by 100 for verifying battery voltage calibration|
|
||||
|7|For board temperature calibration|
|
||||
|8|Temperature in celcius for verifying board temperature calibration|
|
Reference in New Issue
Block a user