Good Morning Every Body. I am NEW HERE and i am working on a project concerning the increasing of temperature . i use:
-An Arduino MEGA Card 2570
-PLX-DAQ ; 2 thermocouples K; a librairy MAX6675, an a contact.
So the Arduino is supposed to send a mini voltage to the contact; and this contact increase the voltage which will increase the resistence and the temperature will finaly increase.
we have 2 thermocouples which will get temperature at 2 different points in the system.The thermocouple that we use the most for the experience is the thermocouple FOUR.
THAT IS THE CODE THAT I MADE. AND WOULD LIKE TO KNOW .WHICH MODIFICATION I CAN DO TO HAVE A RAMP TEMPERATUR PLEASE.
#include"max6675.h" // we call the thermocouple librairies
int i ;// variable used to change the temperature
// connection of the first thermocouple FOUR
int ktcSO=8;//pin which carry every bit
int ktcCS=9;//pin which inform the arduino card to send and recieve temperatur'information
int ktcCLK=10;//
//Same for the thermocouple CREUSET
int ktcaSO=11;
int ktcaCS=12;
int ktcaCLK=13;
Max6675 ktc(ktcSO,ktcCS,ktcCLK);
MAX6675 ktca(ktcacSO,ktcacCS,ktcaCLK);
void setup() {
Serial.begin(9600);
pinMode(7,OUTPUT);
delay(50);
Serial.println("CLEARSHEET");
Serial.println("LABEL,Temp Four, Temp creuset,Timer");//
}
void loop() {
exxcel();
four();
void excel(){
Serial.println((String)"DATA,"+thermo.readCelsius()+","+thermocreadCelsius()+","+"TIMER");
//We add on each column the result of the thermocouple
delay(2000);
void four (){
//if the temperatur of the four is <=i ; the temperatur increase
if(thermo.readCelsius()<=i){
digitalWrite(7,HIGH);
delay(10);
}
if(thermo.readCelsius()>=i+1){
digitalWrite(7,LOW);
i=i+05;
}
if(thermo.readCelsius()<=320){
digitalWrite(7,HIGH);
delay(10);
}
if(thermo.readCelsius()>=320){
digitalWrite(7,LOW);
delay(10);
}
ramp temperatur.pdf (165 KB)