From 3fbdff4bcf1191b1da3cc76f67cde31010aa4523 Mon Sep 17 00:00:00 2001 From: Candas1 Date: Thu, 21 Apr 2022 09:47:26 +0200 Subject: [PATCH] Updated Variant ADC (markdown) --- Variant-ADC.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Variant-ADC.md b/Variant-ADC.md index 8f5dc0f..339d4b4 100644 --- a/Variant-ADC.md +++ b/Variant-ADC.md @@ -1,20 +1,20 @@ This variant can be used with analog inputs like potentiometers, joysticks or throttle/brake handles, even if using hall sensors. [Here](https://www.youtube.com/watch?v=q451WdEPkjo) is a video walking you through how to setup the firmare to use it with a joystick. -## Configuration/Parameters +## :gear: Configuration/Parameters * ADC_ALTERNATE_CONNECT : to swap the inputs, in case you cannot do it physically * ADC_PROTECT_THRESH : to adjust the threshold below/above the MIN/MAX ADC values that will trigger ADC protection * ADC_PROTECT_TIMEOUT : number of wrong / missing input commands before safety state is taken -## Wiring: +## :electric_plug: Wiring: * Connect the potentiometer/hall sensor VCC to 3.3v from programming port or from a voltage regulator, ⚠️ Red wire from sensor cable delivers 15v !!! * 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 -## Calibration: +## :control_knobs: Calibration: Proceed with [calibration](https://github.com/EmanuelFeru/hoverboard-firmware-hack-FOC/wiki/Input-Calibration) for better control and proper ADC protection. -## Troubleshooting: +## :toolbox: Troubleshooting: If wheels are not spinning or the board is [beeping](https://github.com/EmanuelFeru/hoverboard-firmware-hack-FOC/wiki/Diagnostics), make sure you have done proper calibration.