Noise on ADC1 When Streaming Data Over UDP
Posted: Fri Dec 09, 2022 5:42 pm
Our lab has been working on a device to wirelessly measure electromyographic signals (EMG) from the body and stream them wirelessly to a computer. The circuitry is based on the backyard brain spike shield, but we've implemented it using an ESP32 to allow for wireless interfacing.
The single EMG channel was read on GPIO 35 (ADC1) since ADC2 is used in wireless communications. We're able to stream the data, but we're getting a lot of noise if we sample the data using ADC1 while the WiFi is running. I tested the device under three conditions (shown below in the graphs)
1) Data sampled on ADC1 and streamed over UDP to a computer (Noisy, shown in blue)
2) Data sampled on ADC1 while WiFi is active but sent over serial to the computer (Noisy, shown in orange)
3) Data sampled on ADC1 while WiFi is INACTIVE, with data sent over serial to the computer (Clean, shown in green)
These tests indicate that the problem isn't part of the data stream itself since it happens on wireless and serial streams but is inherent to ADC1 when the WiFi functionality is enabled. Does anyone have any idea why I'm getting these noisy signals?
The single EMG channel was read on GPIO 35 (ADC1) since ADC2 is used in wireless communications. We're able to stream the data, but we're getting a lot of noise if we sample the data using ADC1 while the WiFi is running. I tested the device under three conditions (shown below in the graphs)
1) Data sampled on ADC1 and streamed over UDP to a computer (Noisy, shown in blue)
2) Data sampled on ADC1 while WiFi is active but sent over serial to the computer (Noisy, shown in orange)
3) Data sampled on ADC1 while WiFi is INACTIVE, with data sent over serial to the computer (Clean, shown in green)
These tests indicate that the problem isn't part of the data stream itself since it happens on wireless and serial streams but is inherent to ADC1 when the WiFi functionality is enabled. Does anyone have any idea why I'm getting these noisy signals?