Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

SQL Server Query Performance Tuning

Authors: Sajal Dam, Grant Fritchey

4th Edition

1430267429, 9781430267423

More Books

Students also viewed these Databases questions

Question

Explain in detail the term form validation.

Answered: 1 week ago