Question: Please only do number 5! thanks! Due: At the end of class Programming Exercises: 1. Write an Arduino program that measures temperature using the LM35

Please only do number 5! thanks!

Please only do number 5! thanks! Due: At the end of class

Due: At the end of class Programming Exercises: 1. Write an Arduino program that measures temperature using the LM35 sensor Must include a function that reads the sensor and converts the reading to a temperature in Celsius Write a separate function that converts Celsius to Fahrenheit. Output the temperature in both Celsius and Fahrenheit out the serial port in 0.5 second intervals a. b. c. 2. Write an Arduino program that measures the distance to an object using the UltraSonic Ranger Sensor Must include a function that when called returns the distance in centimeters Include a timeout feature to ensure that your program does not get stuck when there is no echo (nothing detected) Output the distance on the serial port in 0.5second intervals a. b. c. 3. Write an Arduino program that measures the distance to an object using the Sharp IR sensor a. Must include a function that when called returns the distance in centimeters i. You will need to linearize the reading of the sensor. The following equation approximates the voltage (V) to the distance (R) for the sharp sensor and is valid for distances greater than10cm. More information about how it was obtained can be found at https://acroname.com/articles/linearizing-sharp-ranger-data 6787 (V -3) b. Output the distance on the serial port in 0.5second intervals 4. Write an Arduino program that detects a reflective surface using the digital tracker sensor Must include a function that when called returns a 1(detected) or 0(not detected) Output the result to the serial port in 0.5second intervals a. b. 5. Write an Arduino program that combines questions 1-4 Output the results of all measurements to the serial port in a clear format in 1second intervals a. Due: At the end of class Programming Exercises: 1. Write an Arduino program that measures temperature using the LM35 sensor Must include a function that reads the sensor and converts the reading to a temperature in Celsius Write a separate function that converts Celsius to Fahrenheit. Output the temperature in both Celsius and Fahrenheit out the serial port in 0.5 second intervals a. b. c. 2. Write an Arduino program that measures the distance to an object using the UltraSonic Ranger Sensor Must include a function that when called returns the distance in centimeters Include a timeout feature to ensure that your program does not get stuck when there is no echo (nothing detected) Output the distance on the serial port in 0.5second intervals a. b. c. 3. Write an Arduino program that measures the distance to an object using the Sharp IR sensor a. Must include a function that when called returns the distance in centimeters i. You will need to linearize the reading of the sensor. The following equation approximates the voltage (V) to the distance (R) for the sharp sensor and is valid for distances greater than10cm. More information about how it was obtained can be found at https://acroname.com/articles/linearizing-sharp-ranger-data 6787 (V -3) b. Output the distance on the serial port in 0.5second intervals 4. Write an Arduino program that detects a reflective surface using the digital tracker sensor Must include a function that when called returns a 1(detected) or 0(not detected) Output the result to the serial port in 0.5second intervals a. b. 5. Write an Arduino program that combines questions 1-4 Output the results of all measurements to the serial port in a clear format in 1second intervals a

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!