Skip to main content
Halra.1
Associate II
February 29, 2020
Solved

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 .

  • February 29, 2020
  • 1 reply
  • 2182 views

 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

This topic has been closed for replies.
Best answer by YAY.1

hadc1.Init.Resolution = ADC_RESOLUTION_8B;

Can you change with 6B ?

AND

sConfig.SamplingTime = ADC_SAMPLETIME_15CYCLES;

Can you delete this code ?

1 reply

waclawek.jan
Super User
February 29, 2020

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

What problem, exactly?

JW

Halra.1
Halra.1Author
Associate II
March 1, 2020

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) .

YAY.1
Senior
March 1, 2020

Have you try to connect multimeter to pwm signal ?

Is there voltage fall down or grow up ?