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 degrees F hold it for seconds then raise to degrees F hold it for sec then drop back to 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 ;
int thermoCS ;
int thermoSCK ;
MAX thermocouplethermoSCK thermoCS, thermoDO;
void setup
Serial.begin; THMO
Serial.printlnMAX test"; THERMO
wait for MAX chip to stabilize
delay;Thermo
Init Serial USB
Initialize pin modes
void loop
basic readout test, just print the current temp
Serial.printC thankThansk ;
Serial.printlnthermocouplereadCelsius;
Serial.printF ;
Serial.printlnthermocouplereadFahrenheit;
For the MAX to update, you must delay AT LEAST ms between reads!
delay;
thanks!
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
