petr4ppc Well-Known Member Licensed User Longtime User Dec 29, 2019 #1 Dear friends, I have not found some information how to use ADC with ESP01. This is the reason why I want to please you for help. I am using ESP01, I have potentiometer connected to pin GPIO2 Declaration: d2.Initialize(2, d2.MODE_INPUT) then I am reading ADC value in timer: ADC reading: Dim adcvalue As UInt = d2.AnalogRead And I get in LOGS only two values: 1023 and 0 Please, how I can read ADC value with ESP01? Best regards, p4ppc
Dear friends, I have not found some information how to use ADC with ESP01. This is the reason why I want to please you for help. I am using ESP01, I have potentiometer connected to pin GPIO2 Declaration: d2.Initialize(2, d2.MODE_INPUT) then I am reading ADC value in timer: ADC reading: Dim adcvalue As UInt = d2.AnalogRead And I get in LOGS only two values: 1023 and 0 Please, how I can read ADC value with ESP01? Best regards, p4ppc
Erel B4X founder Staff member Licensed User Longtime User Dec 30, 2019 #2 See the answer here: I don't know whether it is correct or not but it does seem that the pin doesn't support analog reading. Upvote 0
See the answer here: I don't know whether it is correct or not but it does seem that the pin doesn't support analog reading.
petr4ppc Well-Known Member Licensed User Longtime User Dec 30, 2019 #3 Thank you very much Erel Upvote 0