Answered step by step
Verified Expert Solution
Question
1 Approved Answer
i have to make a program that follows these instructions in c that works with an arduino board. 1. Temperature Sensor a. The name of
i have to make a program that follows these instructions in c that works with an arduino board.
1. Temperature Sensor a. The name of this program will be lab4pl b. The EduShield comes with an LM34 temperature sensor. The input from the temperature sensor is on analog pin 0 c. You will use the function read voltage(pin) Recall that read voltage(pin) takes 10 readings of the specified analog pin, averages them (using real division), and convert to a range of 0V to 5V d. The LM34 is a linear temperature sensor that maps 0 V to 0 F and 3 V to 300 F By hand, convert 0.950 V to degrees F using the given mapping e. Write the proto-type for degF_to_degC) to convert degrees F to degrees C. f. Write a program, calling the two functions, to display formatted output on the serial monitor as shown below Voltage 0.7063 0.7062 Degrees F Xx. x Xx.x Degrees C yy-y yy-y g. Note the approximate temperatures when the sensor is untouched by your finger and when it is touched by your finger after 30 seconds F (ambient) F (with finger)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