cancel
Showing results for 
Search instead for 
Did you mean: 

hi everyone ! need some help with STM32F401RE i m gana read 6 analog input using ADC with DMA and timer then i wana call the values from the memory to use it in the same time i wana made PWM output for my servo motor .

Halra.1
Associate II

 I solved ADC and DMA part but i have problem whit calling the the values from memory and with PWM output that my servo motor cant work any way . plz help me:smiling_face_with_smiling_eyes: .

NOT: im new in stm32

1 ACCEPTED SOLUTION

Accepted Solutions

hadc1.Init.Resolution = ADC_RESOLUTION_8B;

Can you change with 6B ?

AND

sConfig.SamplingTime = ADC_SAMPLETIME_15CYCLES;

Can you delete this code ?

View solution in original post

12 REPLIES 12

> i have problem whit calling the the values from memory and with PWM output

What problem, exactly?

JW

the PWM output for servo motor doesnt work while the ADC working and i couldn't write the code for calling the values from memory.

im using two timer and 6 analog input (ADC) .

Have you try to connect multimeter to pwm signal ?

Is there voltage fall down or grow up ?

its between 0.05 - 0.18 V

I think there is problem in servo .

And if you have arduino , can you try servo with arduino ?

Could you change servo, if there is one more ?

its working just when i unplug the 6 analog input Cables . (if the ADC working , the servo motor cant run )

Can you give the code ?

 

hadc1.Init.Resolution = ADC_RESOLUTION_8B;

Can you change with 6B ?

AND

sConfig.SamplingTime = ADC_SAMPLETIME_15CYCLES;

Can you delete this code ?