mirror of
https://github.com/EFeru/hoverboard-firmware-hack-FOC.git
synced 2025-08-05 10:34:28 +02:00
Updated Variant ADC (markdown)
@@ -1,15 +1,20 @@
|
|||||||
This variant can be used with potentiometers or hall sensors.
|
This variant can be used with analog inputs like potentiometers, joysticks or throttle/brake handles, even if using hall sensors.
|
||||||
|
|
||||||
|
## 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:
|
## Wiring:
|
||||||
* Connect blue wire (ADC1) to steering and green wire (ADC2) to speed on left sensor board cable
|
* Connect blue wire (ADC1) to steering and green wire (ADC2) to speed on left sensor board cable
|
||||||
* 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
|
||||||
* 100k Pull down resistors connected to ground are recommended to prevent issues when inputs are floating (wire is cut or disconnected)
|
* 100k Pull down resistors connected to ground are recommended to prevent issues when inputs are floating (wire is cut or disconnected) triggering ADC protection
|
||||||
|
|
||||||
⚠ Red wire from sensor cable delivers 15v !!!
|
⚠ Red wire from sensor cable delivers 15v !!!
|
||||||
Use 3.3v from programming port or a voltage regulator.
|
Use 3.3v from programming port or a voltage regulator.
|
||||||
|
|
||||||
## Calibration:
|
## Calibration:
|
||||||
Proceed with [calibration](https://github.com/EmanuelFeru/hoverboard-firmware-hack-FOC/wiki/Input-Calibration) for better control.
|
Proceed with [calibration](https://github.com/EmanuelFeru/hoverboard-firmware-hack-FOC/wiki/Input-Calibration) for better control and proper ADC protection.
|
||||||
|
|
||||||
## Troubleshooting:
|
## 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.
|
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.
|
||||||
|
Reference in New Issue
Block a user