The Godfather talking
Share your stuff or I will make you regret it.
Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
November 14, 2018, 03:30:15 03:30


Login with username, password and session length


Pages: [1]
Print
Author Topic: ESP32 Adc not linear and noisy  (Read 707 times)
0 Members and 1 Guest are viewing this topic.
fritsthecat
Inactive

 Muted
Offline Offline

Posts: 1

Thank You
-Given: 2
-Receive: 0


« on: September 11, 2018, 06:51:13 06:51 »

Hi Everyone,

I'm experimenting with the ESP32 and I observe that the ADC is not terribly linear and pretty noisy. I need to filter it to have a decent and repeatable reading.

I don't know if someone else is experimenting that.

Thanks
Logged
gan_canny
Junior Member
**
Offline Offline

Posts: 87

Thank You
-Given: 98
-Receive: 26


« Reply #1 on: September 11, 2018, 10:59:29 10:59 »

The esp32 has varying power demands due to transmission of WiFi. The power supply has to be beefy and as smooth as can be.
Most buy the dev boards with the 5v micro usb supply and the usb to serial controller on board.The ADC is relative to the supply voltage and any fluctuation will make the results variable. These dev boards work well but not so much for precision ADC.
The esp32 has dual MCU's ( one devoted to WiFi) and avoids the issue that earlier esp8266 would commandeer CPU cycles and interfere with predictable timing as well as also have the power fluctuations
Logged
Sideshow Bob
Cracking Team
Hero Member
****
Offline Offline

Posts: 601

Thank You
-Given: 196
-Receive: 627



« Reply #2 on: September 12, 2018, 04:38:23 04:38 »

Have you read this
https://docs.espressif.com/projects/esp-idf/en/latest/api-reference/peripherals/adc.html
Logged

I have come here to chew bubblegum and kick ass... and I'm all out of bubblegum
Pages: [1]
Print
Jump to:  


DISCLAIMER
WE DONT HOST ANY ILLEGAL FILES ON THE SERVER
USE CONTACT US TO REPORT ILLEGAL FILES
ADMINISTRATORS CANNOT BE HELD RESPONSIBLE FOR USERS POSTS AND LINKS

... Copyright 2003-2999 Sonsivri.to ...
Powered by SMF 1.1.18 | SMF © 2006-2009, Simple Machines LLC | HarzeM Dilber MC