mirror of
https://github.com/EFeru/hoverboard-firmware-hack-FOC.git
synced 2025-08-08 12:04:27 +02:00
Updated ADC Control (markdown)
@@ -1,7 +1,7 @@
|
|||||||
# Wiring:
|
# Wiring:
|
||||||
* Use blue cable for steering and green cable for speed
|
* Connect blue wire to steering and green wire to speed
|
||||||
* Use 3.3v from programming port or a voltage regulator
|
* Use 3.3v from programming port or a voltage regulator
|
||||||
* If you don’t need steering, also connect blue cable to your input, and set **STEERING_COEFFICIENT** to 0 in config.h, you will be able to use auto calibration
|
* If you don’t need steering, also connect blue wire to your input, and set **STEERING_COEFFICIENT** to 0 in config.h, you will be able to use auto calibration
|
||||||
* 100k Pull down resistors connected to ground are recommended to prevent issues when inputs are floating (wire is cut or disconnected)
|
* 100k Pull down resistors connected to ground are recommended to prevent issues when inputs are floating (wire is cut or disconnected)
|
||||||
|
|
||||||
⚠ don’t use red wire it delivers 15v
|
⚠ don’t use red wire it delivers 15v
|
||||||
@@ -20,10 +20,10 @@ Config.h values will be ignored if you have already used the auto-calibration pr
|
|||||||
|
|
||||||
# Auto-calibration:
|
# Auto-calibration:
|
||||||
Auto-calibration finds the minimum, middle and maximum values for ADC inputs.
|
Auto-calibration finds the minimum, middle and maximum values for ADC inputs.
|
||||||
* press the power button for more than 5 sec and release after the beep sound
|
* Press the power button for more than 5 sec and release after the beep sound
|
||||||
* move the potentiometers freely to the min and max limits repeatedly
|
* Move the potentiometers freely to the min and max limits repeatedly
|
||||||
* release potentiometers to the resting position
|
* Release potentiometers to the resting position
|
||||||
* press the power button to confirm or wait for the 20 sec timeout
|
* Press the power button to confirm or wait for the 20 sec timeout
|
||||||
|
|
||||||
The limits will be stored in flash memory and will be erased only if you fully delete memory before flashing.<br />
|
The limits will be stored in flash memory and will be erased only if you fully delete memory before flashing.<br />
|
||||||
An alternative to bypass those limits is to change **FLASH_WRITE_KEY** in config.h to a value different than 0x1234.
|
An alternative to bypass those limits is to change **FLASH_WRITE_KEY** in config.h to a value different than 0x1234.
|
||||||
|
Reference in New Issue
Block a user