Question: Write an arduino code for a light bulb and a fan both on seperate AC dimmers, to control the tempeture in a box. The light

Write an arduino code for a light bulb and a fan both on seperate AC dimmers, to control the tempeture in a box. The light should heat the box up the fan should cool it down. I need to raise the temp to 80 degrees F hold it for 3 seconds then raise to 100 degrees F hold it for 3 sec then drop back to 80 degrees. There is a thermometers in the system as well the code for it is below. Comment the code throughly so I can edit it and make it work for the project. #include
#include
//THERMO
int thermoDO =4;
int thermoCS =5;
int thermoSCK =6;
MAX6675 thermocouple(thermoSCK, thermoCS, thermoDO);
void setup(){
Serial.begin(9600); //THMO
Serial.println("MAX6675 test"); //THERMO
// wait for MAX chip to stabilize
delay(500);//Thermo
//Init Serial USB
// Initialize pin modes
}
void loop(){
// basic readout test, just print the current temp
Serial.print("C =thankThansk ");
Serial.println(thermocouple.readCelsius());
Serial.print("F =");
Serial.println(thermocouple.readFahrenheit());
// For the MAX6675 to update, you must delay AT LEAST 250ms between reads!
delay(1000);
} thanks!

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!