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)
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
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)
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
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.
Thank You
Thanks Teacher
Thanks
Thanks 🌹
Pin 36 is not valid for esp8266