Updated ADC Control (markdown)

Candas1
2020-11-19 22:24:11 +01:00
parent 70b50e561b
commit 8da31285be

@@ -9,15 +9,6 @@ This variant can be used with potentiometers or hall sensors.
Proceed with [calibration](https://github.com/EmanuelFeru/hoverboard-firmware-hack-FOC/wiki/Calibration) procedure. Proceed with [calibration](https://github.com/EmanuelFeru/hoverboard-firmware-hack-FOC/wiki/Calibration) procedure.
# Extra Features
## Setup current and speed limit:
* press the power button for more than 5 sec and immediately after the beep sound press one more time shortly
* move and hold the pots to a desired limit position for Current(ADC1) and Speed(ADC2), maximum being the values you have put in config.h
* press the power button to confirm or wait for the 10 sec timeout
⚠The settings will be stored in flash memory and will be erased only if you fully delete memory before flashing.<br />
An alternative to bypass those settings is to change **FLASH_WRITE_KEY** in config.h to a value different than 0x1234.
## Support of extra buttons: ## Support of extra buttons:
Uncomment #define **SUPPORT_BUTTONS_RIGHT** to use right sensor board cable for button inputs. Disable DEBUG_SERIAL_USART3! Uncomment #define **SUPPORT_BUTTONS_RIGHT** to use right sensor board cable for button inputs. Disable DEBUG_SERIAL_USART3!
Variables button1 and button2 can be later used to implement different behavior Variables button1 and button2 can be later used to implement different behavior