2020-02-29 12:11 PM
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
Solved! Go to Solution.
2020-03-01 08:59 AM
hadc1.Init.Resolution = ADC_RESOLUTION_8B;
Can you change with 6B ?
AND
sConfig.SamplingTime = ADC_SAMPLETIME_15CYCLES;
Can you delete this code ?
2020-02-29 02:22 PM
> i have problem whit calling the the values from memory and with PWM output
What problem, exactly?
JW
2020-03-01 12:05 AM
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) .
2020-03-01 12:38 AM
Have you try to connect multimeter to pwm signal ?
Is there voltage fall down or grow up ?
2020-03-01 12:50 AM
its between 0.05 - 0.18 V
2020-03-01 01:16 AM
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 ?
2020-03-01 01:22 AM
its working just when i unplug the 6 analog input Cables . (if the ADC working , the servo motor cant run )
2020-03-01 01:30 AM
Can you give the code ?
2020-03-01 01:32 AM
2020-03-01 08:59 AM
hadc1.Init.Resolution = ADC_RESOLUTION_8B;
Can you change with 6B ?
AND
sConfig.SamplingTime = ADC_SAMPLETIME_15CYCLES;
Can you delete this code ?