2017-08-08 05:52 AM
I'm using STM32F103CB to convert the analog outputs from three polar hall sensors arranged circularly, a magnetic actuator rotates in the center, but I get the voltage value with strange breakpoints, and these happened with a interesting phenomenon which happens with a phase at voltage value of 2048 and I can't explain why, maybe someone had faced this problem, please help and tell me how to solve this.
Problem phenomenon: the value from ADC channel will have a breakpoint when it or other ADC channels in ADC channel group at voltage 2048, here are the screenprint with brief:
� space?
Tow phases with 120
� space?
Three phases with 60
� space:
What I tried to solve this:
but nothing changed
:(
If you have some suggestions, please let me know
Thanks,
Zheng
#adc-reads #adc-config #hall-sensors #f103-adc-dmaSolved! Go to Solution.
2017-08-08 07:25 AM
Hi Zheng,
do you have long enough sampling time for ADC inputs, according to source impedance? Further please avoid capacitors at ADC inputs.2017-08-08 06:17 AM
Hello!
Did you check the real values to confirm the breakpoints?
There is some posibility, theese breakpoints caused by your logic analyser.
Post some code you use to take the values.
2017-08-08 07:25 AM
Hi Zheng,
do you have long enough sampling time for ADC inputs, according to source impedance? Further please avoid capacitors at ADC inputs.2017-08-08 11:39 AM
HiVangelis,
Thanks for your reply, these data were not shownin logic analyser, it's the real values flow transfered from MCU by serial port and 485 to computer, and visualized by python, I think the problem is like
dresler.tomas
said, wrong impedance with sampling time.2017-08-08 11:51 AM
Hi Edison,
Thank you, I checked my configuration after read your reply, the impedance of the source was higher than the calculated max impedance base on my sampling time setting, longer the sampling time solves the problem temporarily, I will reduce the impedance of source in next step.
I don't get why avoid capacitors at ADC inputs? I have placed 2nF capacitors near each the ADC pin for low-pass filter
2017-08-09 02:11 AM
Because internal sampling capacitor is part of the ADC structure and gets charged to Vref+/2. During sampling phase, the charge may influence your low-pass capacitor voltage, and if it is not restored by low impedance source during conversion time, the voltage may travel.