Noise in I2C bus during ADC acquisition

Nicola Bizzotto
Posts: 2
Joined: Fri Sep 22, 2023 7:59 pm

Noise in I2C bus during ADC acquisition

Postby Nicola Bizzotto » Fri Sep 22, 2023 8:42 pm

Hi,

I've developed a custom board which integrate an ESP32-WROVER-IE. During the PCB testing I noticed a noise in the I2C bus. The noise seems to be correlated to ADC acquisitions. I would like to find out what's the cause of this phenomenon and possibly solve it.

For simplicity, I replicated the same behavior by using an ESP32-DevKitC-32UE and activating only I2C and ADC peripherals.
For this purpose I've used the following pins:

- IO25 --> SDA
- IO26 --> SCL
- IO34 --> ANALOG INPUT

Here below I'm adding some code screenshots.
code1.JPG
I2C setup
code1.JPG (83.87 KiB) Viewed 1408 times
code2.JPG
ADC setup and periodic task (ADC acquisition)
code2.JPG (103.93 KiB) Viewed 1408 times
The noise on the I2C bus seems to be synchronous to the periodic task.

Hardware-side, the only things I've added to the ESP32-DevKitC-32UE were two 10k pullup resistor between SDA/SCL and +3V3 supply.

The following images are some oscilloscope captures that highlight the noise present in the I2C bus. Specifically, the oscilloscope probe was placed between the SDA and GND lines:
ACQ.jpg
Oscilloscope acquisitions
ACQ.jpg (199.03 KiB) Viewed 1408 times
Have any of you encountered the phenomenon I described?
Last edited by Nicola Bizzotto on Mon Sep 25, 2023 7:19 am, edited 1 time in total.

MicroController
Posts: 1553
Joined: Mon Oct 17, 2022 7:38 pm
Location: Europe, Germany

Re: Noise in I2C bus during ADC acquisition

Postby MicroController » Sun Sep 24, 2023 10:19 pm

I'm adding some code screenshots
Seriously?

Also, I can't see/access any of the images in your post.

Nicola Bizzotto
Posts: 2
Joined: Fri Sep 22, 2023 7:59 pm

Re: Noise in I2C bus during ADC acquisition

Postby Nicola Bizzotto » Mon Oct 09, 2023 8:42 am

MicroController wrote:
Sun Sep 24, 2023 10:19 pm
I'm adding some code screenshots
Seriously?

Also, I can't see/access any of the images in your post.
Sorry. I've now edited my original post to make the images accessible.
Thank you for the feedback.


Last bumped by Nicola Bizzotto on Mon Oct 09, 2023 8:42 am.

Who is online

Users browsing this forum: Bing [Bot], s-ol.nu and 64 guests