ESP32 ADC - Read Analog Values with Arduino IDE

  Переглядів 93,896

Rui Santos

Rui Santos

4 роки тому

For complete project details (schematics + source code), visit ► RandomNerdTutorials.com/esp32...
Enroll in "Learn ESP32 with Arduino IDE" Course ► RandomNerdTutorials.com/learn...
This video shows how to read analog inputs with the ESP32 using Arduino IDE. Analog reading is useful to read values from variable resistors like potentiometers, or analog sensors.
Like my page on Facebook:
/ randomnerdtutorials
Follow me on twitter:
/ ruisantosdotme
Subscribe for more projects like this!
bit.ly/subscribeRNT

КОМЕНТАРІ: 29
@RuiSantosdotme
@RuiSantosdotme 4 роки тому
You can find the complete project details (schematics + source code) on my blog ► RandomNerdTutorials.com/esp32-adc-analog-read-arduino-ide/ Enroll in "Learn ESP32 with Arduino IDE" Course ► RandomNerdTutorials.com/learn-esp32-with-arduino-ide/
@samarthagarwal6929
@samarthagarwal6929 7 місяців тому
Thanks Man. Life would have been so difficult without you !!
@ebcradioshow
@ebcradioshow 3 роки тому
Rui Great Work this really help me out. :)
@dpintassilgo
@dpintassilgo 3 роки тому
Boas! Muita bom Rui! Olha... onde é que compras os teus ESP32 ?
@quaternion-pi
@quaternion-pi 4 роки тому
Great explanation. Using an interrupt instead of delay(1000) would be nice for integration with other functionality. Have you done a video on interrupts with the esp32? Thanks for sharing your expertise.
@Marcink126
@Marcink126 4 місяці тому
There is probably no video about that as there are not interrupts supported by the ESP32 HAL for Arduino.
@marks47
@marks47 3 роки тому
So with both power and ground connected, is it doing pull-up and pull-down on this simultaneously, or is that only for digital switches?
@slaviormanliev4494
@slaviormanliev4494 2 роки тому
Great tutorial. Can help me with some project? I use ESP32 Devkit V1 and i connected digital led WS2812B, 4 channels relay module , DS18B20 sensor, and capacitive soil moisture sensor.I supplied all of them with Vin. The capacitive soil moisture sensor shows different value when i turn on digtal led or relay module, what's maybe i wrong with connection or i need to write code for adc. Capacitive soil moisture sensor connect on GPIO34 , digital led is in GPIO23, DS18B20 sensor in GPIO4 and for relay module i use GPIO 2, 26, 27, 33.
@happysingh-gk2dj
@happysingh-gk2dj Рік тому
Hello sir , I am also using potentiometer but adc value fluctuate a lot also noise glitches visible .. plz guide me what I can use it will be really helpful thankyou
@qzorn4440
@qzorn4440 2 роки тому
now for a scaled 0 to 10 vdc input signal with zero and span adjustments then oled display output value with tenths resolution 00.0... thanks a lot...:)
@sivakumarc3853
@sivakumarc3853 3 роки тому
hiii .....i can't found port option in Arduino ide.......since it is grey colored.....what have to do to enable the port option for selecting the corresponding port.
@ghanemturki
@ghanemturki 2 роки тому
Thanks
@sreeram607
@sreeram607 4 роки тому
Can I use 5v pin
@hayalci_33
@hayalci_33 4 роки тому
esp32 & st7781 tft lcd display pin connection help What is LCD_RST, LCD_CS, LCD_RS, LCD_WR, LCD_RD esp32 pin equivalent
@maysaraabdula
@maysaraabdula 4 роки тому
Thank you for the fast tutorial, please help me in getting the real linear value on any of ESP32 ADC channels , lets say we want to make a simple voltMeter using ESP32: Actually when volt is 0 ADC value is 0 , when volts 3.3 ADC value it 4096 but any values in between is NOT related to to the linear equation: 3.3v ----> 4096 ???v ----> ADC value so: voltage =ADC*3.3/4096 , is a wrong way to measure voltage using ESP32 from my side i tried but i got wrong results. could you make a video that explains this issue ? then provide a solution if possible !
@MrBMWerner
@MrBMWerner 3 роки тому
How much ohm should the potentiometer can have? Sorry for bad english
@nguyenvansi9764
@nguyenvansi9764 9 місяців тому
esp32 adc non linear
@rizvian24
@rizvian24 Рік тому
How many analog inputs can ESP32 handle?
@0124akash
@0124akash 2 місяці тому
But this is not accurately reading. How to resolve this ?
@jorgeneiva6671
@jorgeneiva6671 3 роки тому
have try the code, the value readed is not the value it should be. when convert 4095 to voltage should be 3.3V but says its 3V
@oswaldolopez4446
@oswaldolopez4446 2 роки тому
ADC is not linear!
@jorgeneiva6671
@jorgeneiva6671 2 роки тому
What can do to fix it?
@oswaldolopez4446
@oswaldolopez4446 2 роки тому
Check his blog, there he has a link to a discussion about this non linear ADC. In addition, check your data type, if you have an integer, it is not going to show decimal values, you may want to use a float type.
@leemarc7069
@leemarc7069 11 місяців тому
does not work for esp32 s3R8 lilygo t-display
@OkOtChA
@OkOtChA 2 роки тому
Boas rui estou a tentar fazer este projecto ukposts.info/have/v-deo/f2B3Z2exqY15tmw.html No entanto a minha dificuldade está que PINS usar no ESP32.
@rawyin
@rawyin 4 роки тому
My kingdom for a video discussing measuring frequencies off an analog input. Ugh. The search continues.
@andrewdollins2321
@andrewdollins2321 4 роки тому
J. Bly look up FFT that is the best way to get the frequency content from an analog signal.
@rawyin
@rawyin 4 роки тому
@@andrewdollins2321 FFT FTW? On it, thanks for the pointer.
@DeepBlueMbedded
@DeepBlueMbedded 4 роки тому
@@rawyin Maybe "zero-crossing detection" is much, computationally, easier for you to do. That depends on your particular application. Hint: the Zero-Crossing point can be adjusted to meet your needs, so it doesn't have to be "real zero" volt point.
Using Analog input of ESP32 read Potentiometer DC voltage
13:48
Robojax
Переглядів 28 тис.
Эффект Карбонаро и стеклянные пузыри 
01:01
История одного вокалиста
Переглядів 4,4 млн
ESP32 Capacitive Touch Sensor Pins with Arduino IDE
4:48
Rui Santos
Переглядів 76 тис.
ESP32 Guide 2024 | Choosing and Using an ESP32 Board
41:06
DroneBot Workshop
Переглядів 193 тис.
Back when the internet was fun. (1999 Apple iBook)
22:46
DankPods
Переглядів 320 тис.
CNC Machining Will Never Be The Same: This is Next Level
8:26
TITANS of CNC MACHINING
Переглядів 32 тис.
ESP32 Audio Input Using I2S and Internal ADC
10:43
atomic14
Переглядів 116 тис.
Arduino To ESP32: How to Get Started!
9:26
Robonyx
Переглядів 118 тис.
Arduino Multiplexor - MUX INPUTS & OUTPUTS - ANALOG and PWM
13:21
Electronoobs
Переглядів 93 тис.
Sensors - which one to use
17:06
Electronoobs
Переглядів 1,3 млн
Какой MacBook выбрать в 2024 - М1, М2 или М3?
24:56
If you do wire soldering with paste, soldering can be done very easily
0:26
Tech Electronics BD
Переглядів 2,2 млн
The PA042 SAMSUNG S24 Ultra phone cage turns your phone into a pro camera!
0:24