logo elektroda
logo elektroda
X
logo elektroda

Arduino Uno Thermostat - How to write a program and connect the display?

GoldRush124 4995 9
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 16290449
    GoldRush124
    Level 8  
    Hello. I'm new here so apologize in advance for mistakes. I recently purchased an Arduino Uno and am slowly learning programming but need a thermostat for research purposes. Unfortunately, I can not write such a program for a thermostat yet.

    Hence my question: Could someone write a program for such a thermostat and provide a connection diagram? I have the necessary temperature sensor for Arduino. The thermostat must have a lower temperature of 17 degrees and an upper temperature of 32 degrees. It is best if one LED lights up after the temperature drops below 17 degrees, the second one lights up in the range of 17-32 degrees, and after the temperature rises above 32 degrees, the third LED lights up.

    I was thinking that the display (no matter which segment or 16x2 - I have both) shows the temperature of the sensor, but I do not know how to connect it.

    Thank you in advance for your help.
    Do you have a problem with Arduino? Ask question. Visit our forum Arduino.
  • ADVERTISEMENT
  • ADVERTISEMENT
  • #3 16290967
    GoldRush124
    Level 8  
    Okay, but this is a program for the thermometer itself and I mean the thermostat, unfortunately these systems are not enough.
  • #4 16291977
    Anonymous
    Level 1  
  • #5 16292029
    domin122
    Level 16  
    Either I'm blind or stupid, there is no hysteresis in the program above?
  • #6 16292475
    Anonymous
    Level 1  
  • ADVERTISEMENT
  • #7 16294396
    domin122
    Level 16  
    I suggest you connect this 16x2 display to you, unless you have a segmented one, for example, on a 7219 or similar system, thus you will avoid playing in the program with the flickering of numbers and characters. You can find how to connect the display on the net. Write if you have a 16x2 driver, and if so, what. Do you have a segmented display or a driver? How so what. And what's your temperature sensor? To put it all together, you need to know the ingredients, because how can anyone write a program if they don't know a single ingredient.
  • ADVERTISEMENT
  • #8 16295584
    GoldRush124
    Level 8  
    But by any chance you don't need a driver? The display is without a driver. I have a DHT11 and DS18B20 module. Regarding that program, I do not really understand where I should connect the display and signaling LEDs
  • #9 16297003
    domin122
    Level 16  
    But you don't have a driver for an LCD or a 7-segment display? You do not need DHT if you want to measure only the temperature. First, collect the components, then it will connect and the program will be modified. If you don't have an LCD driver, you simply won't connect it, or you will use 7 segments, or you can buy an LCD driver. And this 7-segment display, how much digital, how big, anode or cathode do you have?
  • #10 16297310
    Anonymous
    Level 1  

Topic summary

The discussion revolves around creating a thermostat using an Arduino Uno, with specific temperature thresholds (17°C to 32°C) and LED indicators for different temperature ranges. Users provided links to existing projects for temperature measurement and display integration, but the original poster clarified the need for a thermostat program rather than a simple thermometer. Suggestions included using a 16x2 LCD display for temperature readout and connecting it properly, as well as utilizing temperature sensors like DHT11 and DS18B20. The importance of including hysteresis in the control algorithm was also highlighted, along with the need for a relay to control heating or cooling devices. Users emphasized the necessity of knowing the components involved to write an effective program.
Summary generated by the language model.
ADVERTISEMENT