Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. Analog Inputs - Thermistor 1. 2. 23 3. Build the circuit of thermistor as shown in the previous section. Connect the junction between

image text in transcribed

1. Analog Inputs - Thermistor 1. 2. 23 3. Build the circuit of thermistor as shown in the previous section. Connect the junction between the thermistor and the 10 k resistor to A0. Use +5 V as the power input to ensure that the readout will not be saturated. Create a new program and add Serial.begin(9600) to setup (). Write a subroutine that can be used to convert the voltage reading into temperature by the equation used in the previous section. Starter code is provided here and may need some modification to work with your specific sensor: #include double Thermistor (int RawADC) { double Temp; Temp = log (10000.0* ((1024.0/RawADC-1))); // Temp = 1/ )) Temp); Temp = =log (10000.0/(1024.0/RawADC-1)) // for pull-up configuration (0.001129148 + (0.000234125 + (0.0000000876741 Temp * Temp - 273.15; // Convert Kelvin to Celcius 9.0) / 5.0 + 32.0; // Convert Celcius to Fahrenheit 4. Temp = Temp (Temp return Temp; In this subroutine, the input value RawADC is the reading of the analog input port, and the output is the temperature measured using thermistor. Finish the code for loop () so that it can continuously reading the temperature every 1 sec. Send the reading back to PC using serial communication. 5. Turn in your code and explain your design process.

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

Step: 3

blur-text-image

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

Engineering Mechanics Statics

Authors: Russell C. Hibbeler

11 Edition

9780132215091, 132215004, 132215098, 978-0132215008

More Books

Students also viewed these Mechanical Engineering questions

Question

List one of the facultys publications in APA style.

Answered: 1 week ago

Question

How many types of bankruptcy and these types explained in Chapters?

Answered: 1 week ago