mirror of
https://github.com/EFeru/hoverboard-firmware-hack-FOC.git
synced 2025-08-07 11:34:27 +02:00
Updated ADC Control (markdown)
@@ -1,7 +1,7 @@
|
||||
This variant can be used with potentiometers or hall sensors.
|
||||
|
||||
# Wiring:
|
||||
* Connect blue wire to steering and green wire to speed
|
||||
* Connect blue wire to steering and green wire to speed (left sensor board cable)
|
||||
* Use 3.3v from programming port or a voltage regulator
|
||||
* 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)
|
||||
@@ -13,7 +13,7 @@ This variant can be used with potentiometers or hall sensors.
|
||||
* If you use a joystick as input, enable **ADC1_MID_POT** and **ADC2_MID_POT** in config.h
|
||||
|
||||
# Manual Calibration:
|
||||
* Connect FTDI to right sensor cable to read USART DEBUG values
|
||||
* Connect FTDI to right sensor board cable to read USART DEBUG values
|
||||
* Turn the potis to minimum position, write value 1: to **ADC1_MIN** and value 2: to **ADC2_MIN** in config.h
|
||||
* Turn the potis to maximum position, write value 1: to **ADC1_MAX** and value 2: to **ADC2_MAX** in config.h
|
||||
* For middle resting potis, let the potis in the middle resting position, write value 1: to **ADC1_MID** and value 2: to **ADC2_MID**
|
||||
|
Reference in New Issue
Block a user