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... - แนวปฏิบัติและการใช้ชีวิต
Thank You
Thanks
Thanks Teacher
Thanks 🌹
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
Sir Can you do eps32 infrared temperature calculation using micro python
Dear sir. Please make tutorial for control robodyne light dimmer with micropython.
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)
does any cheap 8 bit PIC microcontroller support micropython and can be programmed with thonny ?
Micropython would be a bit much for a 8bit uC.
Pin 36 is not valid for esp8266