|
|
  |
STM32F4 ADC Excessive noise level, Noise level is over 5LSB |
|
|
|
Sep 24 2015, 11:10
|
Гуру
     
Группа: Свой
Сообщений: 2 360
Регистрация: 6-03-06
Из: Кишинев
Пользователь №: 15 025

|
Цитата(pitt @ Sep 23 2015, 18:06)  Noise level is over 5 LSB. Why? My options?
Using 480 cycles, INJ registers, ADC3, changing prescaler... Don't see improvement.
Let me clarify what I mean 5 LSB: it isn't +/- 5 clocks but 2^5. Thus, you mean 32 counts of ADC. No, it's not internal ADC noise. You should check schematic design and firmware errors. step-by-step: 0. Make a correct test (see below) and show a schema 1. show a sourcecode make a correct test: 1. to use a low-noise power supply (a battery with a linear regulator for the needed voltage). 2. to measure a low-noise signal (a battery, reference voltage source etc) 3. to save ALL samples without any filtering!. A duration of the saved log must be at least 20 ms.
|
|
|
|
|
Sep 24 2015, 15:55
|
Местный
  
Группа: Участник
Сообщений: 328
Регистрация: 1-06-06
Из: USA
Пользователь №: 17 672

|
Цитата(EmbedElektrik @ Sep 23 2015, 14:47)  Could you share your code? It seems that there are some mistakes in initialzation of GPIO, RCC or ADC. Check it again. All I can share is values of the ADC registers just let me know which do you need. They are fine with me. Problems with RCC and or GPIO is nonsense: one wouldn't be able to get any readings, but I do - my problem is noise. I suspect that something with the board(made in China) but don't have EE expertise to prove it right or wrong. The power and Vref are fine: checked with my scope. I'm talking about raw(unfiltered) readings. Regardless, the other chat over here is clearly off topic. I'm native Russian speaker but don't and never will have blind typing skills. Replies in Russian are not a problem at all except may be terminology. Thank you all for response.
--------------------
|
|
|
|
|
Sep 24 2015, 17:27
|
Местный
  
Группа: Участник
Сообщений: 328
Регистрация: 1-06-06
Из: USA
Пользователь №: 17 672

|
Цитата(Ruslan1 @ Sep 24 2015, 12:39)  1. Непонятно как Вы определили что у Вас такой шум. Сохраните в массив последовательно проведенные измерения - коды АЦП (хотя бы за 20 ms для начала) и покажите, чтобы доказать наличие шума и посмотреть его параметры. 2. И что именно Вы измеряете? 3. Ну и покажите часть схемы, критичнуя для АЦП: все питания, Vref, схема измеряемого аналогового входа. 1. I'm storing min,max, mean 2. digital potentiometer 3. Copy from reference design. As I mentioned before, traces and routing is under umbrella of suspicion
--------------------
|
|
|
|
|
Sep 24 2015, 18:19
|
Гуру
     
Группа: Свой
Сообщений: 2 360
Регистрация: 6-03-06
Из: Кишинев
Пользователь №: 15 025

|
Цитата(pitt @ Sep 24 2015, 20:27)  1. I'm storing min,max, mean 2. digital potentiometer 3. Copy from reference design. As I mentioned before, traces and routing is under umbrella of suspicion 1. Этого недостаточно. дайте массив значений АЦП- это, вероятно, даст информацию о природе шума 2. схему подключения потенциометра приведите. от чего он питается и что за напряжение делит? И там не сто килоом? Просто делитель на двух резисторах по паре килоом от Vref на вход АЦП подключите, это исключит кучу версий. 3. Схему приведите. " traces and routing is under umbrella of suspicion" - это, конечно красиво сказано, но неинформативно. С разводкой- очень маловероятно нагенерировать шума на 25 милливольт пик-пик (референс у Вас около 3.3 V ?).
|
|
|
|
|
Sep 24 2015, 19:22
|
Местный
  
Группа: Участник
Сообщений: 328
Регистрация: 1-06-06
Из: USA
Пользователь №: 17 672

|
Цитата(Ruslan1 @ Sep 24 2015, 14:19)  1. Этого недостаточно. дайте массив значений АЦП- это, вероятно, даст информацию о природе шума How come? What the difference does it make to see the graph in time or just its parameters? I have plotted it and it is noise("BORODA") Цитата(Ruslan1 @ Sep 24 2015, 14:19)  2. схему подключения потенциометра приведите. от чего он питается и что за напряжение делит? И там не сто килоом? Просто делитель на двух резисторах по паре килоом от Vref на вход АЦП подключите, это исключит кучу версий. Sorry, it is impossible. Scoped the output though - solid as a rock. Цитата(Ruslan1 @ Sep 24 2015, 14:19)  3. Схему приведите. " traces and routing is under umbrella of suspicion" - это, конечно красиво сказано, но неинформативно. С разводкой- очень маловероятно нагенерировать шума на 25 милливольт пик-пик (референс у Вас около 3.3 V ?). Nothing there...Copy and paste from STM32F4G-EVAL. One to one except more inputs are used i.e. more and different pins. Vref = 2.048V (LM4040D20IDBZR)
--------------------
|
|
|
|
|
Sep 24 2015, 19:47
|
Гуру
     
Группа: Свой
Сообщений: 2 360
Регистрация: 6-03-06
Из: Кишинев
Пользователь №: 15 025

|
Цитата(pitt @ Sep 24 2015, 22:22)  How come? What the difference does it make to see the graph in time or just its parameters? I have plotted it and it is noise("BORODA")
Sorry, it is impossible. Scoped the output though - solid as a rock.
Nothing there...Copy and paste from STM32F4G-EVAL. One to one except more inputs are used i.e. more and different pins. Vref = 2.048V (LM4040D20IDBZR) Я пас. Данных-нет. Схемы "что подается на вход"-нет. Схемы "как запитан МК и что с референсом"- нет. Ну ладно, сделал усилие и посмотрел кит. Ну что же, мне почему-то кажется, что ответ на вопрос "откуда 16 mV пик-пик шумы" не так уж и сложно найти.
|
|
|
|
|
  |
1 чел. читают эту тему (гостей: 1, скрытых пользователей: 0)
Пользователей: 0
|
|
|