ESP32 MICROPYTHON ADC with Analog Sensors

แชร์
ฝัง
  • เผยแพร่เมื่อ 25 มี.ค. 2020
  • Implementation of ADC on ESP32 Micropython is expllained in this video using LDR sensor.
    only ADC1 pins are enabled for ADC in ESP32 Micropython.Pins 32-39 are capable of ADC.
    Default resolution of ADC is 12 bits.
    code download :
    www.alselectro.com/files/micro...
  • แนวปฏิบัติและการใช้ชีวิต

ความคิดเห็น • 11

  • @TOMTOM-nh3nl
    @TOMTOM-nh3nl ปีที่แล้ว

    Thank You

  • @RobertoAlfredo
    @RobertoAlfredo 3 ปีที่แล้ว +1

    Thanks

  • @iamamaker7096
    @iamamaker7096 3 ปีที่แล้ว

    Thanks Teacher

  • @arashhashemi7091
    @arashhashemi7091 4 ปีที่แล้ว

    Thanks 🌹

  • @ahlidap
    @ahlidap 3 ปีที่แล้ว +1

    Hello sir, could you please make a video to read voltage via voltage divider?
    I'm not getting it to work properly.
    I should read a range up to 30V. (to build something for renewable energy capable of working on both 12 and 24v systems)
    I've used R1 as 100k and R2 as 2.2K (resistors I have here), to drop a max of 46V down to 1v (default max input voltage without changing attenuation).
    problem is, I try to calibrate and test with 4 li-ion cells (around 16V), I remove 1 cell and instead reading around 12V, it reads 9 and bellow.. :(
    and values are not stable from the ADC reading.
    I would be really grateful if you can came out with a little tutorial on this :)
    Thanks in advance.
    Keep safe

  • @josephbarnadc1479
    @josephbarnadc1479 4 ปีที่แล้ว +1

    Sir Can you do eps32 infrared temperature calculation using micro python

  • @anokhautomation4453
    @anokhautomation4453 3 ปีที่แล้ว +1

    Dear sir. Please make tutorial for control robodyne light dimmer with micropython.

  • @gabrielflores9708
    @gabrielflores9708 2 ปีที่แล้ว

    I have a question, how can i use the sensor sct013 with esp32? i tried to use this sensor and i have this error: Traceback (most recent call last):
    File "", line 8
    SyntaxError: invalid syntax
    here the program:
    from machine import Pin
    import time
    from machine import Pin, I2C
    from esp8266_i2c_lcd import I2cLcd
    from machine import ADC
    sc = machine.ADC(32)
    SyntaxError: invalid syntax CONVERSION_FACTOR = 1.1 / (0.001220)v
    while True:
    voltage = sc.read_u26()* CONVERSION_FACTOR
    print(voltage)
    time.sleep(0.1)

  • @anilsangani8862
    @anilsangani8862 4 ปีที่แล้ว

    does any cheap 8 bit PIC microcontroller support micropython and can be programmed with thonny ?

    • @UReasonIt
      @UReasonIt 4 ปีที่แล้ว

      Micropython would be a bit much for a 8bit uC.

  • @PawanMeena-oq9vt
    @PawanMeena-oq9vt 3 ปีที่แล้ว

    Pin 36 is not valid for esp8266