From d78b47e5d3d4343cc4305397e9b2c953a14cd807 Mon Sep 17 00:00:00 2001 From: Olamm Date: Mon, 6 Mar 2023 18:48:48 +0100 Subject: [PATCH] Updated Variant ADC (markdown) --- Variant-ADC.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Variant-ADC.md b/Variant-ADC.md index 38ce6b1..593017a 100644 --- a/Variant-ADC.md +++ b/Variant-ADC.md @@ -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 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 -* If you don’t need steering, set input1_type to 0 in order to disable the input or go through the auto-calibration procedure +* If you don’t 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: 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.