Hello again, I continue advancing in my project and with each step I take a new problem appears.
On this occasion the analog reading of two pins.
The example program is this:
attached log
El esquema electrido de las entradas analogicas es dividir entre 10 la tension, os adjunto esquema
and the connection to the ESP32
As always, thank you very much for your help and I will continue looking for the solution.
thank you so much
On this occasion the analog reading of two pins.
The example program is this:
In the output log there is always a ZERO value in both channels and the ESP32 stops working at random times, every hour or every 10 minutes it stops and the values stop appearing in the log.Private Sub AppStart
Serial1.Initialize(9600)
Log("AppStart")
' Configura Entradas Analogicas
ADC1.Initialize(36,ADC1.MODE_INPUT)
ADC2.Initialize(39,ADC2.MODE_INPUT)
' Lanza Tarea
T_C.Initialize("T_C_Tick",500)
T_C.Enabled = True
End Sub
Private Sub T_C_Tick
Dim Dl1 As UInt
Dim DL2 As UInt
' Lee Entradas
Dl1 = ADC1.AnalogRead
DL2 = ADC1.AnalogRead
' Presenta Resultados
Log("Dl1= ", NumberFormat(Dl1,4,0)," ... Dl2= ", NumberFormat(DL2,4,0))
End Sub
attached log
El esquema electrido de las entradas analogicas es dividir entre 10 la tension, os adjunto esquema
and the connection to the ESP32
As always, thank you very much for your help and I will continue looking for the solution.
thank you so much