Hi,
I have a DRV8301-LS31-KIT with an MDX570LS31CNCD Hercules™ ARM® Safety MCU controlCARD.
I tried to read the potentiometer voltage via the the ADC of the controlcard to control the speed of the motor.
I'm trying to extend the instaspin code with this function but I'm not able to read the potentiometer value.
The potentiometer is connected to the ad2in0 channel. Is there an example available in C-code how to do this?
Idem for the start and stop button to enable and disable the motor.
Regards,
Raphael