Skip to main content
Associate
October 9, 2024
Question

Assigning PWM value to ADC input expected as speed input || STEVAL SPIN 3202

  • October 9, 2024
  • 0 replies
  • 489 views

[VERSION]: MCSDK.6.3.0
[TOOL]: ST Motor Pilot V1.2.9
[DETAILS]: BLDC motor, 12V, single pole pair.

 

I want to control the motor via a PWM signal. I am able to send pwm signal through onboard uart pins available from J7 RX/TX pins, into a new variable called P1. Now how do I assign the scaled value acquired from PWM to give to the onboard ADC pin available through TP4 ( variable pin on the onboard potentiometer) . 

1.png