Updated Variant ADC (markdown)

Olamm
2023-03-06 18:48:48 +01:00
parent caa9e06198
commit d78b47e5d3

@@ -16,7 +16,8 @@ Please also check the [parameters](https://github.com/EFeru/hoverboard-firmware-
* Connect the output of the potentiometer/hall sensor to the blue wire (ADC1) for steering and green wire (ADC2) for speed on left sensor board cable * Connect the output of the potentiometer/hall sensor to the blue wire (ADC1) for steering and green wire (ADC2) for speed on left sensor board cable
* Connect the potentiometer/hall sensor to ground, ⚠️ On some boards, the black wire is 15v !!! Check with a multi-meter to make sure 15V and ground are not swapped * Connect the potentiometer/hall sensor to ground, ⚠️ On some boards, the black wire is 15v !!! Check with a multi-meter to make sure 15V and ground are not swapped
* 100k Pull down resistors connected to ground are recommended to prevent issues when inputs are floating (wire is cut or disconnected) triggering ADC protection * 100k Pull down resistors connected to ground are recommended to prevent issues when inputs are floating (wire is cut or disconnected) triggering ADC protection
* If you dont need steering, set input1_type to 0 in order to disable the input or go through the auto-calibration procedure * If you dont need steering, set input1_type to 0 in order to disable the input or go through the auto-calibration procedure :
`#define PRI_INPUT1 0, 0, 0, 4095, 0 // TYPE, MIN, MID, MAX, DEADBAND. See INPUT FORMAT section`
## :control_knobs: Calibration: ## :control_knobs: Calibration:
Proceed with [calibration](https://github.com/EmanuelFeru/hoverboard-firmware-hack-FOC/wiki/Input-Calibration) to select the right type of inputs, for better control and proper ADC protection. Proceed with [calibration](https://github.com/EmanuelFeru/hoverboard-firmware-hack-FOC/wiki/Input-Calibration) to select the right type of inputs, for better control and proper ADC protection.