ESP32 ADC - Read Analog Values with Arduino IDE

Поділитися
Вставка
  • Опубліковано 30 тра 2019
  • 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
  • Наука та технологія

КОМЕНТАРІ • 31

  • @RuiSantosdotme
    @RuiSantosdotme  5 років тому +5

    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 10 місяців тому

    Thanks Man. Life would have been so difficult without you !!

  • @ebcradioshow
    @ebcradioshow 3 роки тому

    Rui Great Work this really help me out. :)

  • @abumoslemtamer7331
    @abumoslemtamer7331 Місяць тому

    شكرا جزيلا !

  • @quaternion-pi
    @quaternion-pi 5 років тому +5

    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 7 місяців тому

      There is probably no video about that as there are not interrupts supported by the ESP32 HAL for Arduino.

  • @dpintassilgo
    @dpintassilgo 3 роки тому

    Boas! Muita bom Rui! Olha... onde é que compras os teus ESP32 ?

  • @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?

  • @ghanemturki
    @ghanemturki 2 роки тому

    Thanks

  • @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.

  • @hayalci_33
    @hayalci_33 5 років тому

    esp32 & st7781 tft lcd display pin connection help
    What is LCD_RST, LCD_CS, LCD_RS, LCD_WR, LCD_RD esp32 pin equivalent

  • @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...:)

  • @sreeram607
    @sreeram607 5 років тому +1

    Can I use 5v pin

  • @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.

  • @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

  • @MrBMWerner
    @MrBMWerner 3 роки тому

    How much ohm should the potentiometer can have?
    Sorry for bad english

  • @rizvian24
    @rizvian24 2 роки тому

    How many analog inputs can ESP32 handle?

  • @maysaraabdula
    @maysaraabdula 5 років тому +2

    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 !

  • @nguyenvansi9764
    @nguyenvansi9764 11 місяців тому +1

    esp32 adc non linear

  • @leemarc7069
    @leemarc7069 Рік тому

    does not work for esp32 s3R8 lilygo t-display

  • @0124akash
    @0124akash 5 місяців тому

    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.

  • @hansdegroot652
    @hansdegroot652 2 місяці тому

    My analogread only returns 0

  • @rawyin
    @rawyin 5 років тому

    My kingdom for a video discussing measuring frequencies off an analog input. Ugh. The search continues.

    • @andrewdollins2321
      @andrewdollins2321 5 років тому

      J. Bly look up FFT that is the best way to get the frequency content from an analog signal.

    • @rawyin
      @rawyin 5 років тому

      @@andrewdollins2321 FFT FTW? On it, thanks for the pointer.

    • @DeepBlueMbedded
      @DeepBlueMbedded 5 років тому

      @@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.

  • @OkOtChA
    @OkOtChA 2 роки тому

    Boas rui estou a tentar fazer este projecto ua-cam.com/video/G0F31zrWHU8/v-deo.html No entanto a minha dificuldade está que PINS usar no ESP32.