This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Reading potentiometer and buttons of the DRV8301-LS31-KIT

Other Parts Discussed in Thread: HALCOGEN

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