குறியீட்டை தேடு

MAX6675 K-வகை தெர்மோகப்பிளை ரிலே மற்றும் காட்சியுடன் பயன்படுத்துதல்

MAX6675 K-வகை தெர்மோகப்பிளை ரிலே மற்றும் காட்சியுடன் பயன்படுத்துதல்

இந்த திட்டம் MAX6675 K-வகை தெர்மோகப்பிளை Arduino உடன் இணைப்பது எப்படி என்பதை நிரூபிக்கிறது, இதில் கட்டுப்பாட்டுக்கான ரிலே மற்றும் வெப்பநிலை அளவீடுகளுக்கான காட்சி ஆகியவை அடங்கும். துல்லியமான வெப்பநிலை கண்காணிப்பு மற்றும் தானியங்கி பதில்கள் தேவைப்படும் பல்வேறு பயன்பாடுகளுக்கு இந்த அமைப்பு விலைமதிப்பற்றது. இங்கே சில திட்ட யோசனைகள்:

MAX6675 Thermocoupler module
  • உணர்திறன் மிக்க மின்னணு சாதனங்களுக்கான அதிக வெப்ப பாதுகாப்பு
  • உயிரியல் சோதனைகளுக்கான வெப்பநிலை கட்டுப்படுத்தப்பட்ட அடைகாக்கும் கருவி
  • காபி அல்லது பீருக்கான தானியங்கி காய்ச்சும் அமைப்பு
  • தொழில்துறை செயல்முறை கண்காணிப்பு மற்றும் கட்டுப்பாடு
  • பசுமை இல்லம் அல்லது பிற கட்டுப்படுத்தப்பட்ட சூழலில் சுற்றுச்சூழல் கண்காணிப்பு

வன்பொருள்/கூறுகள்

இந்த திட்டத்தை உருவாக்க, உங்களுக்கு பின்வரும் கூறுகள் தேவைப்படும்:

  • Arduino Uno (அல்லது இணக்கமான போர்டு)
  • MAX6675 K-வகை தெர்மோகப்பிள் தொகுதி (வீடியோவில் 00:58 இல்)
  • ரிலே தொகுதி
  • TM1637 4-இலக்க LED காட்சி தொகுதி
  • ஜம்பர் கம்பிகள்
  • இணைப்பு கம்பிகள்

வயரிங் வழிகாட்டி

வயரிங் வீடியோவில் விளக்கப்பட்டுள்ளது (வீடியோவில் 05:36 இல்). குறிப்பிட்ட இணைப்புகள் நீங்கள் மேற்பரப்பு பொருத்தப்பட்ட சிப் அல்லது PCB தொகுதியைப் பயன்படுத்துகிறீர்களா என்பதைப் பொறுத்தது. விரிவான வயரிங் வரைபடத்திற்கு வீடியோவைப் பார்க்கவும்.

Arduino wiring for MAX6675 Thermocoupler module
Arduino wiring for MAX6675 Thermocoupler module

குறியீடு விளக்கம்

Arduino குறியீடு தெர்மோகப்பிளிலிருந்து வெப்பநிலை மதிப்புகளைப் படிக்க MAX6675 நூலகத்தைப் பயன்படுத்துகிறது. குறியீட்டின் முக்கிய உள்ளமைக்கக்கூடிய பகுதிகள்:

  • தெர்மோகப்பிள் பின் வரையறைகள்: thermoDO, thermoCS, மற்றும் thermoCLK (வீடியோவில் [03:53] இல்). இந்த பின்கள் உங்கள் வயரிங் திட்டத்தின் படி சரிசெய்யப்பட வேண்டும்.
  • ரிலே கட்டுப்பாட்டு பின்: பின் 10 ரிலேவைக் கட்டுப்படுத்தப் பயன்படுகிறது (வீடியோவில் [05:36] இல்). தேவைப்பட்டால் இதை மாற்றவும்.
  • காட்சி உள்ளமைவு (பயன்படுத்தினால்): குறியீடு TM1637 காட்சியை உள்ளமைப்பதற்கான பகுதிகளை உள்ளடக்கியது. தேவைப்பட்டால் CLK மற்றும் DIO பின்களை சரிசெய்யவும் (வீடியோவில் [03:53] இல்).

குறியீடு செல்சியஸ் மற்றும் பாரன்ஹீட்டில் வெப்பநிலையைப் படிக்க செயல்பாடுகளை உள்ளடக்கியது. குறியீட்டின் முக்கியமான பகுதி, வெப்பநிலை ஒரு வரம்பை (இந்த எடுத்துக்காட்டில் 80.0°C) மீறுகிறதா என்பதை சரிபார்க்கும் நிபந்தனை அறிக்கை ஆகும். அப்படியானால், ரிலே செயல்படுத்தப்படுகிறது (பின் 10 LOW க்கு செல்கிறது).


// வெப்பநிலை 80.0C க்கு மேல் சென்றால், ரிலேவை ON செய்யவும்
if(thermocouple.readCelsius() > 80.00){
  digitalWrite(10, LOW);// பின் 10 ஐ LOW ஆக அமைக்கவும்
} else {
  digitalWrite(10, HIGH);// பின் 10 ஐ HIGH ஆக அமைக்கவும்
}

நேரடி திட்டம்/செயல்விளக்கம்

வீடியோ திட்டத்தை செயலில் நிரூபிக்கிறது (வீடியோவில் 06:59 இல்). சென்சார் சுற்றுப்புற வெப்பநிலையை துல்லியமாக படிக்கிறது மற்றும் சூடாக்கும்போது அதிகரிக்கிறது. ரிலே செயல்பாடும் காட்டப்படுகிறது.

அத்தியாயங்கள்

  • [00:00] அறிமுகம்
  • [00:39] சென்சார் கண்ணோட்டம்
  • [01:40] பின் இணைப்புகள்
  • [02:22] நூலக நிறுவல்
  • [03:53] குறியீடு விளக்கம் (அமைப்பு)
  • [04:06] குறியீடு விளக்கம் (லூப்)
  • [05:36] வயரிங்
  • [06:59] நேரடி செயல்விளக்கம்

படங்கள்

MAX6675 Thermocoupler module
MAX6675 Thermocoupler module
K-Type Thermocoupler module with wire
K-Type Thermocoupler module with wire
K-Type thermocoupler connector
K-Type thermocoupler connector
Arduino wiring for MAX6675 Thermocoupler module
Arduino wiring for MAX6675 Thermocoupler module
MAX6675 Thermocoupler module
MAX6675 Thermocoupler module
24-Arduino code for a MAX6675 K-type thermocouple (without relay and display)
மொழி: C++
/*
 * This is the Arduino code for MAX6675 Thermocouple K-Type with Relay and Display.
 * This code has been explained in our video at https://youtu.be/cD5oOu4N_AE.

 * 
 * Written by Ahmad Shamshiri for Robojax Video
 * Date: December 9, 2017, in Ajax, Ontario, Canada
 * Permission granted to share this code given that this
 * note is kept with the code.
 * Disclaimer: This code is "AS IS" and for educational purposes only.
 * 
 */

 // This example is public domain. Enjoy!
// www.ladyada.net/learn/sensors/thermocouple

#include "max6675.h"


int thermoDO = 4;
int thermoCS = 5;
int thermoCLK = 6;


MAX6675 thermocouple(thermoCLK, thermoCS, thermoDO);
int vccPin = 3;
int gndPin = 2;
  
void setup() {
  Serial.begin(9600);
  // Use Arduino pins 
  pinMode(vccPin, OUTPUT); digitalWrite(vccPin, HIGH);
  pinMode(gndPin, OUTPUT); digitalWrite(gndPin, LOW);
  
  Serial.println("Robojax: MAX6675 test");
  // Wait for MAX chip to stabilize
  delay(500);
}

void loop() {
  // Basic readout test, just print the current temperature


   Serial.print("C = "); 
   Serial.println(thermocouple.readCelsius());
   Serial.print("F = ");
   Serial.println(thermocouple.readFahrenheit());

   // If temperature goes above 80.0C, turn the relay ON
   if(thermocouple.readCelsius() > 80.00){
    digitalWrite(10, LOW);// Set pin 10 LOW
   }else{
    digitalWrite(10, HIGH);// Set pin 10 HIGH
   }
    
 
   delay(1000);
}
25-Arduino code for a MAX6675 K-type thermocouple with relay (no display)
மொழி: C++
/*
 * This is the Arduino code for MAX6675 Thermocouple K-Type with Relay and Display
 * The output pin 10 is connected to the relay.
 * When the temperature reaches the desired value, pin 10 turns the 
 * relay ON.

 * This code has been explained in our video at https://youtu.be/cD5oOu4N_AE

 * 
 * Written by Ahmad Nejrabi for Robojax Video
 * Date: December 9, 2017, in Ajax, Ontario, Canada
 * Permission granted to share this code given that this
 * note is kept with the code.
 * Disclaimer: This code is "AS IS" and for educational purposes only.
 * 
 */

 // This example is public domain. Enjoy!
// www.ladyada.net/learn/sensors/thermocouple

#include "max6675.h"


int thermoDO = 4;
int thermoCS = 5;
int thermoCLK = 6;


MAX6675 thermocouple(thermoCLK, thermoCS, thermoDO);
int vccPin = 3;
int gndPin = 2;
  
void setup() {
  Serial.begin(9600);
  // Use Arduino pins 
  pinMode(vccPin, OUTPUT); digitalWrite(vccPin, HIGH);
  pinMode(gndPin, OUTPUT); digitalWrite(gndPin, LOW);
    pinMode(10, OUTPUT);// set pin 10 as output
	
  Serial.println("Robojax: MAX6675 test");
  // wait for MAX chip to stabilize
  delay(500);
}

void loop() {
  // basic readout test, just print the current temp


   Serial.print("C = "); 
   Serial.println(thermocouple.readCelsius());
   Serial.print("F = ");
   Serial.println(thermocouple.readFahrenheit());

   // If temperature goes above 80.0C, turn the relay ON
   if(thermocouple.readCelsius() > 80.00){
    digitalWrite(10, LOW);// set pin 10 LOW
   }else{
    digitalWrite(10, HIGH);// set pin 10 HIGH
   }
    
 
   delay(1000);
}
26-Arduino code for a MAX6675 K-type thermocouple with relay and display
மொழி: C++
/*
 * This is the Arduino code for MAX6675 Thermocouple K-Type with Relay and Display
 * The output pin 10 is connected to the relay.
 * When the temperature reaches the desired value, pin 10 turns the 
 * relay ON.
 * The temperature is also displayed on the display.
 * You must include the TM1637 library to make the display work. 
 * You can download the TM1637 from http://robojax.com/learn/library
 * This code has been explained in our video at https://youtu.be/cD5oOu4N_AE

 * 
 * Written by Ahmad Nejrabi for Robojax Video
 * Date: December 9, 2017, in Ajax, Ontario, Canada
 * Permission granted to share this code given that this
 * note is kept with the code.
 * Disclaimer: This code is "AS IS" and for educational purposes only.
 * 
 */

 // This example is public domain. Enjoy!
// www.ladyada.net/learn/sensors/thermocouple

#include "max6675.h"
#include <Arduino.h>
#include <TM1637Display.h>

int thermoDO = 4;
int thermoCS = 5;
int thermoCLK = 6;

// Code for display 
#define CLK 2
#define DIO 3
#define TEST_DELAY   2000
TM1637Display display(CLK, DIO);
// Code for display end

MAX6675 thermocouple(thermoCLK, thermoCS, thermoDO);
int vccPin = 3;
int gndPin = 2;
  
void setup() {
  Serial.begin(9600);
  // Use Arduino pins 
  pinMode(vccPin, OUTPUT); digitalWrite(vccPin, HIGH);
  pinMode(gndPin, OUTPUT); digitalWrite(gndPin, LOW);
  pinMode(10, OUTPUT);// set pin 10 as output
	
  Serial.println("Robojax: MAX6675 test");
  // wait for MAX chip to stabilize
  delay(500);
}

void loop() {
  // Basic readout test, just print the current temp

	// Code for display
  display.setBrightness(0x0f);
    // All segments on
  uint8_t data[] = { 0x0, 0x0, 0x0, 0x0 };
  display.setSegments(data);
  delay(1);
  int temp = (int) thermocouple.readCelsius();
  display.showNumberDec(temp, true, 3, 0);
  // Code for display end
   Serial.print("C = "); 
   Serial.println(thermocouple.readCelsius());
   Serial.print("F = ");
   Serial.println(thermocouple.readFahrenheit());

   // If temperature goes above 80.0C, turn the relay ON
   if(thermocouple.readCelsius() > 80.00){
    digitalWrite(10, LOW);// set pin 10 LOW
   }else{
    digitalWrite(10, HIGH);// set pin 10 HIGH
   }
    
 
   delay(1000);
}
27-Arduino code for two MAX6675 K-type thermocouples with relay (no display)
மொழி: C++
/*
 * This is the Arduino code for MAX6675 Thermocouple K-Type with Relay and Display
 * The output pin 10 is connected to the relay.
 * When the temperature reaches the desired value, pin 10 turns the 
 * relay ON.

 * This code has been explained in our video at https://youtu.be/cD5oOu4N_AE

 * 
 * Written by Ahmad Shamshiri for Robojax Video
 * Date: June 02, 2018, in Ajax, Ontario, Canada
 * Permission granted to share this code given that this
 * note is kept with the code.
 * Disclaimer: This code is "AS IS" and for educational purposes only.
 * 
 */

 // This example is public domain. Enjoy!
// www.ladyada.net/learn/sensors/thermocouple

#include "max6675.h"


int thermoDO1 = 4;
int thermoCS1 = 5;
int thermoCLK1 = 6;

int thermoDO2 = 7;
int thermoCS2 = 8;
int thermoCLK3 = 9;


MAX6675 thermocouple1(thermoCLK1, thermoCS1, thermoDO1);// first thermocouple
MAX6675 thermocouple2(thermoCLK2, thermoCS2, thermoDO2);// 2nd thermocouple
int vccPin1 = 3;
int gndPin1 = 2;
int relayPin1 =10;

int vccPin2 = 11;
int gndPin2 = 12;
int relayPin2 =13;
  
void setup() {
  Serial.begin(9600);
  // use Arduino pins 
  pinMode(vccPin1, OUTPUT); digitalWrite(vccPin, HIGH);
  pinMode(gndPin1, OUTPUT); digitalWrite(gndPin, LOW);
    pinMode(relayPin1, OUTPUT);// set pin 10 as output for thermocouple1
	
  pinMode(vccPin2, OUTPUT); digitalWrite(vccPin, HIGH);
  pinMode(gndPin2, OUTPUT); digitalWrite(gndPin, LOW);
    pinMode(relayPin2, OUTPUT);// // set pin 13 as output for thermocouple2
	
  Serial.println("Robojax: MAX6675 test");
  // wait for MAX chip to stabilize
  delay(500);
}

void loop() {
  // basic readout test, just print the current temp

// for thermocouple 1
   Serial.print("C = "); 
   Serial.println(thermocouple.readCelsius());
   Serial.print("F = ");
   Serial.println(thermocouple.readFahrenheit());

   // if temperature goes above 80.0C, turn the relay ON
   if(thermocouple1.readCelsius() > 80.00){
    digitalWrite(relayPin1, LOW);// set pin relayPin1 LOW
   }else{
    digitalWrite(relayPin1, HIGH);// set pin relayPin1 HIGH
   }
// thermocouple1 end

// for thermocouple 2
   Serial.print("C2 = "); 
   Serial.println(thermocouple2.readCelsius());
   Serial.print("F2 = ");
   Serial.println(thermocouple2.readFahrenheit());

   // if temperature goes above 80.0C, turn the relay ON
   if(thermocouple2.readCelsius() > 80.00){
    digitalWrite(relayPin2, LOW);// set pin relayPin2 LOW
   }else{
    digitalWrite(relayPin2, HIGH);// set pin relayPin2 HIGH
   }   
// thermocouple2 end
 
   delay(1000);
}

வளங்கள் மற்றும் மேற்கோள்கள்

கோப்புகள்📁

மற்ற கோப்புகள்