Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Code to be written in Arduino programming language NovaLynx (www.novalynx.com) is a manufacturer of weather sensors that have analog voltage outputs. Your Arduino is interfaced

Code to be written in Arduino programming language

image text in transcribed

image text in transcribed

image text in transcribed

NovaLynx (www.novalynx.com) is a manufacturer of weather sensors that have analog voltage outputs. Your Arduino is interfaced to 4 NovaLynx sensors through 4 analog inputs Analog Input 0 Analog Input 1 Analog Input 2 Analog Input 3 Wind Speed in miles per hour (MPH) Wind Direction in degrees (0 to 360) Temperature in degrees Fahrenheit (0 to 128 F) Barometric Pressure in millibars (950 mb to 1050 mb) Note: 1 atmosphere pressure (sea level) 1 bar 1000 mb Each of these sensors has an output that ranges from 0.000 to 5.000V. The relationship between each sensor's voltage output and its particular physical value is shown in the look-up table on page 2. Write a program to read each of these sensors and display their values to the serial monitor every second. The display message should take the form: Wind Speed-XXXXXX MPH', ..Wind Direction-XXX.XX degrees" "Temperature-XXX.X degrees F" "Barometric PressureXXXX mb" Notes on display: 1. There should be a blank row between each block of values in your display 2. You don't need leading zeros in your numerical value 3. You don't need fractional values for the barometric pressure 4. You can spell out the word "degrees" or use the ASCII code for You must use the provided look-up table (page 2) in your program to translate voltages to physical values Notes on program 1. Re-read Lecture notes on programming to review arrays and 2-D arrays 2. No need for interpolation, just give the closest value in the table 3. Verify your program to catch the syntax errors. 4. Provide an overall description of your program in a comment block at the top of your program. 5. Explain specific aspects of your program with comments throughout the code. 50 points for correct creation and use of the look-up table 50 points for the rest of the program

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

Data Management Databases And Organizations

Authors: Richard T. Watson

3rd Edition

0471418455, 978-0471418450

More Books

Students also viewed these Databases questions

Question

=+Is the writing clear? If not, how can it be improved?

Answered: 1 week ago

Question

=+2 How does the preparation and support for each type of IE vary?

Answered: 1 week ago

Question

=+What is the extent of the use of each type of IE?

Answered: 1 week ago