This is my first project, using Arduino Mega and oDrive 3.6 56v to power two bosch BLDC hub-motors in a self-balance platform.
All the other projects I’ve seen use an RC module to ‘steer’ directly connected to the oDrive board. I want to use Segway’s hall-sensor steering, which outputs an analogue voltage, ranging from 1.96 to 3.1 volts, it uses 2.5v as ‘centre/straight-ahead’, lower voltages steer Left, higher voltage steer Right.
Can I connect that hall-output to the Mega’s Analog pins, to convert it to a digital output for sending to the oDrive board? And can this operate while the Mega is also handling forward/back lean-angle data from an MPU6050 which sends data to the oDrive to control how much forward/reverse acceleration is required. Will I need to run two Arduinos, one for each task?