logo elektroda
logo elektroda
X
logo elektroda

NodeMCU v3: Creating a thermometer with temperature-dependent LED control

Mister354 852 6
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 19753777
    Mister354
    Level 4  
    Hi, first of all I'd like to point out that I'm a beginner and I'd like to start my adventure with Arduino and programming. As my first project I'd like to make a thermometer which depending on the temperature would turn on a blue or red diode, for example at a temperature of 0-15 degrees the blue diode would be on and when the temperature exceeds 15 degrees, the blue diode would turn off and the red one would turn on. Is such a thing possible at all, if so I would ask for some hints, articles, tutorials, how to go about it and how to do it, I have a probe from the thermostat and a nodemcu v3 board
  • ADVERTISEMENT
  • ADVERTISEMENT
  • #4 19754048
    gps79
    Level 36  
    This probe looks like a very common 10kOhm NTC thermistor (for you to check what the resistance is at room temperature).
    You connect it like this:

    NodeMCU v3: Creating a thermometer with temperature-dependent LED control .

    then you read the value on the input of the ADC (10-bit) by software.
    The value read is inversely proportional to the temperature (higher the temperature, the lower the value read). At room temperature you should read a value of about 775 (from 0-1023).
  • ADVERTISEMENT
  • #5 19754438
    Mister354
    Level 4  
    gps79 wrote:
    This probe looks like a very common 10kOhm NTC thermistor (for you to check what the resistance is at room temperature).
    You connect it like this:

    NodeMCU v3: Creating a thermometer with temperature-dependent LED control .

    then you read the value on the input of the ADC (10-bit) by software.
    The value read is inversely proportional to the temperature (higher the temperature, the lower the value read). At room temperature you should read a value of about 775 (in the range 0-1023).
    .

    And if I used a temperature sensor lm 35 would it also work ? And how would I have to enter it into the program to read the temperature from it?
  • ADVERTISEMENT
  • #7 19755249
    khoam
    Level 42  
    @Mister354 Using the ADC in the ESP8266 to read temperature is not the best idea. The quality of this ADC is poor and it is not very robust to noise. I would rather suggest to use a temperature sensor with digital measurement.

Topic summary

The discussion revolves around creating a temperature-controlled LED system using a NodeMCU v3 board. The user, a beginner in Arduino programming, seeks guidance on building a thermometer that activates a blue LED for temperatures between 0-15 degrees Celsius and a red LED for temperatures above 15 degrees. Responses indicate that this project is feasible, with suggestions to use a 10kOhm NTC thermistor or an LM35 temperature sensor. The NTC thermistor's resistance is inversely proportional to temperature, and the LM35 can be integrated with various online tutorials available. However, it is advised to use a digital temperature sensor instead of the ESP8266's ADC due to its poor quality and susceptibility to noise.
Summary generated by the language model.
ADVERTISEMENT