Failure with analog input for hoverboard motors


I am new to this forum. I am having trouble with getting an analog joystick to function with FW. I am using a 3.5 24V board. The motors run fine when manually controlled via Odrivetool. The odrv0.config command shows that gpio3 and gpio4 are enable for analog mapping (as well as pwm mapping).

However, issuing “odrv0.axis1.controller.vel_setpoint” always outputs 0 value for the vel setpoint irrespective of the joystick position.

THe hardware is connected properly and I tried a variation of firmware version 0.4.7 with success whereby the joystick can control both motors in either direction.

Any idea what I may not be doing properly? I am using the setup from the hoverboard motors document.



I think maybe it’s not a good idea to have the PWM mapping also running: then it could be overwriting the command inputs form the analouge inputs. Try to disable the pwm mapping.