![]() I'm not sure if this is related?Ĭan anyone see a problem / possible see whether I have a mistake in my code above. Now, when I measured the with a potentiometer, I found the voltage at which the ADC pin gives a reading of 1024 is at about 3.5V. Here is my code for getting the temperature: float getTemperature() I'm getting temperatures about 5 degrees higher than I would expect. You can check this Getting Started Tutorial for NodeMCU. All you need is the Arduino IDE, a USB cable and the NodeMCU board itself. For five years I have been working on different projects. Hello thereI am an electrical engineer having good expertise over Arduino, ESP 32 and ESP8266. Programming NodeMCU with the Arduino IDE will hardly take 5-10 minutes. For only 5, Amjadalikorai will do arduino,node mcu,multisim,tinkercard,proteus projects. The NodeMCU Development Board can be easily programmed with Arduino IDE since it is easy to use. So, given that I've scaled the voltage, I'd have to scale the 10 mV/C to 10 * 100/320 mV/C, right? And the temperature reading should be V_adc * 1000 / (10 * 100 / 320) Programming NodeMCU ESP8266 with Arduino IDE. ![]() ![]() The LM35 datasheet says that the temperature changes by 1 deg C for each 10 mV. So, if we have a V_out = 0.2V, the V_adc = 0.0625. I realise now that the voltage out (V_out) from the lm35 is not that arriving at the ADC pin on the esp, but rather V_adc = V_out * 100/320 (given the voltage divider). I'm trying to get an lm35 (temperature sensor) to work with the analog pin on the nodemcu 1.0. ![]() I'll continue in this thread with my follow up question:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |