Answered step by step
Verified Expert Solution
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 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started