ESP32 MICROPYTHON ADC with Analog Sensors

แชร์
ฝัง
  • เผยแพร่เมื่อ 7 พ.ย. 2024

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

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

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

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

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

    Thank You

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

    Thanks Teacher

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

    Thanks

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

    Thanks 🌹

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

    Pin 36 is not valid for esp8266