Controlling a Relay using Temperature (Temperature Controlled Relay with Thermocouple, Arduino, LCD)

Sdílet
Vložit
  • čas přidán 5. 08. 2024
  • Mish Mash Labs demonstrate how to control a high voltage (230V AC) Relay using a temperature value set-point. The temperature value is read from a K-Type Thermocouple, which is interfaced using a MAX31855 breakout board over SPI to an Arduino. The measured temperature values are displayed on an LCD.
    In our example, the temperature controlled relay is switched ON, by the Arduino , once the temperature reaches 40 degrees C, and OFF if its below. This value can be adjusted to suit you. The light bulb can be swapped with a heating element.
    Code on Mish Mash's Git:
    github.com/mishmashlabs/MAX31...
    How to display Thermocouple readings on the LCD can be found here:
    • Arduino Thermocouple a...
    The Arduino LCD Tutorial can be found here:
    www.youtube.com/watch?v=rj9S7...
    The MAX31855 board and K Type Thermocouple Arduino Tutorial can be found here:
    www.youtube.com/watch?v=CISms...
    And here is a playlist for the full project, a temperature controlled relay with LCD display:
    czcams.com/users/playlist?list...
    We used the Arduino Uno, but this will work with all Arduinos, even clones.
    #temperature #controlled #relay #tutorial #arduino #mishmash
    Instagram: mishmashlabs
    Twitter: mishmashlabs/
    Music Credits:
    Intro & Outro by audionautix.com

Komentáře • 38

  • @tenapier
    @tenapier Před 3 lety +3

    I hope you can keep making videos, your stuff is so excellent! You should have a million views and be teaching classes! Thank you!🙏

    • @MishMashLabs
      @MishMashLabs  Před 3 lety

      Thanks for your kind words. Please like and share with any frineds you think this would be useful for. The more subscibers we have the more videos we can make.

    • @jasolis8368
      @jasolis8368 Před 2 lety

      @@MishMashLabs Hi, I was wondering if you create an Arduino code for a project I have in mind. Just tell me how much it will cost me. Thanks

  • @marlonvelezrocha9128
    @marlonvelezrocha9128 Před rokem

    excellent video

  • @user-yp5yx1pt7r
    @user-yp5yx1pt7r Před 3 lety

    Thank you very much

  • @arthurmedina3097
    @arthurmedina3097 Před 3 lety

    Hello, thank you so much for your video! Do you have a page where I can look at the wiring schematic for the entire system? Thank you!

  • @emmanuelgeorge1750
    @emmanuelgeorge1750 Před 2 lety

    I have used relay in automatic plant watering system to pump water based on soil moisture sensor readings. My LCD is messing up after relay turns on. It just showing some weird things on the LCD. Do you have any idea on this

  • @shoppingoneclick2044
    @shoppingoneclick2044 Před 2 lety

    Does this code will work for PT100 ?
    If not , which is best ADC chip for PT100 temperature sensor?
    Any liberary function for PT100 temperature sensor?

  • @earhlemmanuelacedilla4346

    Hey there! Can i use a knob here and insert a value that will control the heating element. Using your code?

  • @akierum
    @akierum Před rokem

    What about head/cool thermostat with another relay that would turn on a FAN to cool down? Any help appreciated. !

  • @jyaniharshil5585
    @jyaniharshil5585 Před 2 lety

    Hey brother can you tell me the code for my project . ds18b20 temperature sensor , LCD 16×2 , arduino UNO & fan , all connected .
    As the temperature rises , fan goes fast or Start rotating and if temperature goes low , fan slows or stops down...

  • @rajartsandexperiments5092
    @rajartsandexperiments5092 Před 11 měsíci

    Hello sir what is the use of potential meter.
    And sir please can you and button to adjust the temperature

  • @simonevilucchi4758
    @simonevilucchi4758 Před rokem

    Hi! I have a Chinese x99 motherboard that have some temperature sensors that doesn't provide the motherboard temperature.
    I'm searching a solution to this problem and I think to add in my case a fan controller. The controller interact with the motherboard through the usb 2.0 connector, but if the motherboard doesn't provide its temperature, I think that this link between fan controller and motherboard will not be useful.
    If I will use one of this Arduino-based temperature sensor, how can I transmit the results to the fan controller?
    Is it possible doing something like that?
    Thanks if you respond!

  • @DanielWeiszdood
    @DanielWeiszdood Před měsícem

    is a low voltage relay an option? like if you wanted to send a 12v signal instead

  • @marlonvelezrocha9128
    @marlonvelezrocha9128 Před rokem

    You can make a video of something similar but that controls the speed of a fan, the idea is to control the temperature of a wood oven. Wearing:
    1. Arduino UNO R4 WiFi.
    2. Thermocouple K with its controller.
    3. 12Volt fan.
    4. Arduino Cloud.
    The K thermocouple will be in the smoke box, the fan will supply variable flow air, this air will pass through the heat box and take it to the smoke box, the cloud application will control everything, ignition, the desired temperature, By giving it a temperature of 250°F in the App, it varies the fan speed to maintain the temperature. In the leds of the Arduino you can see the temperature in real time.
    Greetings.

  • @jordanlowe2429
    @jordanlowe2429 Před 2 lety

    Can I use a SSR-40DA Solid State Relay Single Phase Semi-Conductor Relay in replacement of the 5VDC relay?

    • @MishMashLabs
      @MishMashLabs  Před 2 lety

      Hi, yes I believe so as its 3-32v. Refer to the datasheet and make suer the current required to activate the relay can be supplied by the device you are using

  • @shoppingoneclick2044
    @shoppingoneclick2044 Před 2 lety

    Can you modify the code too take input temperature value used for comparison? SV set value compared with PV (present value from thermocouple)
    Can SV through capastive keyboard?
    Or keypad ?

  • @FYI.96
    @FYI.96 Před 3 lety +1

    we can use the same code for turning on/off a water heater system instead of the lamp...right ?

    • @MishMashLabs
      @MishMashLabs  Před 3 lety

      Yes absolutely.

    • @bartverboom6612
      @bartverboom6612 Před 2 lety

      @@MishMashLabs Yes and I tried that one to, but I got constantly the reading; ̈ c" is not declared in this scope... and I don't get what I am doing wrong

  • @Vellz08
    @Vellz08 Před rokem

    sir why my lcd display is error when the relay got load?

  • @sarmientolorenzers.7887
    @sarmientolorenzers.7887 Před 2 lety +1

    Hi, is your power supply connected to the bulb is 220v?

    • @MishMashLabs
      @MishMashLabs  Před 2 lety +1

      In this case yes, but you can change the bulb to one rated for another build thefore changing the supply if it's an issue. For example 12v, 24v, 48v or 110v bulbs and suppy

    • @sarmientolorenzers.7887
      @sarmientolorenzers.7887 Před 2 lety

      @@MishMashLabs thanks a lot❤️

  • @dem3a538
    @dem3a538 Před 2 lety

    do you know how to control a heating element with certain set point with timer?

    • @francovillarreal7266
      @francovillarreal7266 Před 2 lety

      Just replace the light bulb with the heating element and code it to turn on whenever the temp on the sensor is lower than the set temperature

    • @earhlemmanuelacedilla4346
      @earhlemmanuelacedilla4346 Před rokem

      @@francovillarreal7266 Hey, can i integrate a Knob here and set a value to control the heating element?

  • @WouterGrimmie
    @WouterGrimmie Před 3 lety

    I'm probably an idiot, but if I apply similar "if/else statements" with a TMP36 the relay keeps switching on every second (because of the delay), even if it is already on...
    Guess some more endless googling is in order! :(

  • @iuvalclejan
    @iuvalclejan Před měsícem

    Isn't there a more simple way to do this with thermostats?

  • @techmagic7435
    @techmagic7435 Před 4 lety

    Bro......how to safe my access point of NodeMCU......it must secured.......plzzz...give a video about it

    • @MishMashLabs
      @MishMashLabs  Před 4 lety

      We are currently developing some NodeMCU applications on the ESP range. What exactly did you have in mind?

  • @caturhermawan2190
    @caturhermawan2190 Před 3 lety

    How much it cost to make like this?

    • @MishMashLabs
      @MishMashLabs  Před 3 lety

      Approximately 10 euro, all parts can be bought on Aliexpress

  • @narayananeshwaran1753
    @narayananeshwaran1753 Před 3 lety

    Can you share the code

    • @MishMashLabs
      @MishMashLabs  Před 3 lety

      Hi,
      The code is linked in the description, but you can also follow this link:
      github.com/mishmashlabs/MAX31855_LCD_Relay/tree/main/Thermocouple_with_LCD_and_Relay

  • @jyaniharshil5585
    @jyaniharshil5585 Před 2 lety

    Hey brother can you tell me the code for my project . ds18b20 temperature sensor , LCD 16×2 , arduino UNO & fan , all connected .
    As the temperature rises , fan goes fast or Start rotating and if temperature goes low , fan slows or stops down...