diff --git a/Calibration.md b/Calibration.md new file mode 100644 index 0000000..e2d3e87 --- /dev/null +++ b/Calibration.md @@ -0,0 +1,30 @@ +# Manual Calibration: + +Setting the type of input: +* If you don't need an input, disable it by setting INPUT1_TYPE or INPUT2_TYPE to 0, it will be ignored +* For normal potis, set INPUT1_TYPE or INPUT2_TYPE to 1 +* For middle resting potis, set INPUT1_TYPE or INPUT2_TYPE to 2 + +Setting Minimum, Middle and Maximum position: +* Connect FTDI RX to blue wire from right sensor board cable to read USART DEBUG values, baud rate should be 38400 +* Turn the potis to minimum position, write value 1: to **INPUT1_MIN** and value 2: to **INPUT2_MIN** in config.h +* Turn the potis to maximum position, write value 1: to **INPUT1_MAX** and value 2: to **INPUT2_MAX** in config.h +* For middle resting potis, let the potis in the middle resting position, write value 1: to **INPUT1_MID** and value 2: to **INPUT2_MID** + +Config.h values will be ignored if you have already used the auto-calibration procedure below. + +# Auto-calibration: +Auto-calibration finds the minimum, middle and maximum values for inputs. +It also identifies the type of input and checks if it can be protected (ADC only). + +* Press the power button for more than 5 sec and release after the beep sound +* Move the potis freely to the min and max limits repeatedly +* Release potis to the resting position +* Press the power button to confirm or wait for the 20 sec timeout + +If you haven't moved one of the inputs, it's floating or grounded, it will be identified as inactive and ignored. +If min and mid values are close, the inputs will be identified as normal potis. +Otherwise the inputs will be identified as middle resting potis. + +⚠The limits will be stored in flash memory and will be erased only if you fully delete memory before flashing.
+An alternative to bypass those limits is to change **FLASH_WRITE_KEY** in config.h to a value different than 0x1234. \ No newline at end of file