Question
in Arduino program
A program that performs the temperature control of a furnace. The sensupermocupla operates from OC to 100C delivering through
0 0
Add a comment Improve this question Transcribed image text
Answer #1

#define sensor A1

float temperature = 0;
float Temperature = 0;
float voltage = 0;
int i=0;
void setup()
{
// put your setup code here, to run once:
pinMode(sensor, INPUT);
}

void loop()
{
// put your main code here, to run repeatedly:
//Sensor give values from (0-5)V for (0-100)C
temperature = analogRead(sensor) / 1024 * 5; //Converting ADC value to (0-5) V
//taking 10 Samples
voltage += temperature;
i++;
if (i == 10)
{
voltage = voltage / 10;
Temperature = voltage * 100 / 5;
Serial.print("Sensor value is ");
Serial.println(voltage);
Serial.print("Temperature value is ");
Serial.println(Temperature);
i = 0;
}
}

Add a comment
Know the answer?
Add Answer to:
in Arduino program A program that performs the temperature control of a furnace. The sensupermocupla operates...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Using Arduino create a program that performs the temperature control of an oven. The thermocouple sensor...

    Using Arduino create a program that performs the temperature control of an oven. The thermocouple sensor it works 0 oC at 100 oC delivering a voltage of 0V through a transducer to 5V. It is necessary to average the voltage of 10 sensor samples to have better accuracy in the measurement. If the average temperature is higher than 50 degrees then the cold water recirculation pump is turned on for 30 seconds. Simulate the sensor with a voltage divider using...

  • summatize the following info and break them into differeng key points. write them in yojr own...

    summatize the following info and break them into differeng key points. write them in yojr own words   apartus 6.1 Introduction—The design of a successful hot box appa- ratus is influenced by many factors. Before beginning the design of an apparatus meeting this standard, the designer shall review the discussion on the limitations and accuracy, Section 13, discussions of the energy flows in a hot box, Annex A2, the metering box wall loss flow, Annex A3, and flanking loss, Annex...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT