Accessing analog input on D1 mini through EspEasy
Posted: 21 Apr 2021, 21:15
Here is a newbie question.
I flashed a D1 mini using a ready-made config from the Esp_Easy community (ESP_Easy_mega_20200913_test_ESP8266_4M1M_VCC.bin) . I was then able to successfully implement a few different tasks (monitoring contact inputs, triggering relays).
I am currently trying to get acquainted with the analog input, in view of implementing a voltmeter of my own. I defined a new task in Esp_Easy based on the "Analog input - internal" device. When I enable that task using only the default values in the task definition, my understanding is that the task should be reporting values ranging from 0 to 1023 on pin A0 of the D1. However, the value reported by the task remains stubbornly fixed at 65535, regardless of whether I connect A0 with: 1) nothing; 2) the GND pin; or 3) the 3.3V pin.
Why I am getting that particular value and what is missing in order to read changing values?
Many thanks in advance.
I flashed a D1 mini using a ready-made config from the Esp_Easy community (ESP_Easy_mega_20200913_test_ESP8266_4M1M_VCC.bin) . I was then able to successfully implement a few different tasks (monitoring contact inputs, triggering relays).
I am currently trying to get acquainted with the analog input, in view of implementing a voltmeter of my own. I defined a new task in Esp_Easy based on the "Analog input - internal" device. When I enable that task using only the default values in the task definition, my understanding is that the task should be reporting values ranging from 0 to 1023 on pin A0 of the D1. However, the value reported by the task remains stubbornly fixed at 65535, regardless of whether I connect A0 with: 1) nothing; 2) the GND pin; or 3) the 3.3V pin.
Why I am getting that particular value and what is missing in order to read changing values?
Many thanks in advance.