Hello everyone,
I´m engineering student in electronic and I´m use the NodeMCU ESP8266 for a project. This embedded system is based on the ESP8266 microcontroller, and I know that I can programing it whit Arduino IDE, I download the libraries and I have already installed correctly it. So, It is already possible configured it, I have used this parameters:
- Device: NodeMCU 1.0 (ESP-12E Module)
- CPU Frequency: 80 MHz
- Flash size: 4M (3M SPIFFS)
- Upload speed: 115200 bps or 92600 bps
And obviously I select the port in my case is the COM4. Then already I can program the NodeMCU for example with the “Blink” program and this is loaded completely and works correctly. Until there all works correctly. But the problem is when I try to program the only analog input that has. I used the example that is in the Arduino IDE, and It is assumed that I should see what has read the analog input in form of bit and it is correct, but if I put 3.3V in the analog input I should see on the monitor serial 1023 (or 1024) because the analog port of the NodeMCU works 0V to 3.3V so if I put 0V in the analog input I should see 0 and now if I put 3.3V also in the analog input I should see 1023 but this doesn’t happen, I don’t kwon why happen this. The only that I see is 4 or 6 when I put 0V and I see 980 when I put 3.3V. I thought that the problem was in the level of voltage so I tried put 5.0V in the analog input but didn´t work, the reading gave me 0.
So guys, I don´t know why I have this problem, I think that the problem is on the analog port but I´m not sure because if I change the levels of voltage in the analog input you can see the different values that’s reading in the port. If any know how solved this problem please tell me.
Thanks…
I´m engineering student in electronic and I´m use the NodeMCU ESP8266 for a project. This embedded system is based on the ESP8266 microcontroller, and I know that I can programing it whit Arduino IDE, I download the libraries and I have already installed correctly it. So, It is already possible configured it, I have used this parameters:
- Device: NodeMCU 1.0 (ESP-12E Module)
- CPU Frequency: 80 MHz
- Flash size: 4M (3M SPIFFS)
- Upload speed: 115200 bps or 92600 bps
And obviously I select the port in my case is the COM4. Then already I can program the NodeMCU for example with the “Blink” program and this is loaded completely and works correctly. Until there all works correctly. But the problem is when I try to program the only analog input that has. I used the example that is in the Arduino IDE, and It is assumed that I should see what has read the analog input in form of bit and it is correct, but if I put 3.3V in the analog input I should see on the monitor serial 1023 (or 1024) because the analog port of the NodeMCU works 0V to 3.3V so if I put 0V in the analog input I should see 0 and now if I put 3.3V also in the analog input I should see 1023 but this doesn’t happen, I don’t kwon why happen this. The only that I see is 4 or 6 when I put 0V and I see 980 when I put 3.3V. I thought that the problem was in the level of voltage so I tried put 5.0V in the analog input but didn´t work, the reading gave me 0.
So guys, I don´t know why I have this problem, I think that the problem is on the analog port but I´m not sure because if I change the levels of voltage in the analog input you can see the different values that’s reading in the port. If any know how solved this problem please tell me.
Thanks…
