Answered step by step
Verified Expert Solution
Question
1 Approved Answer
This is part of Arduino lab, but the first script does not need any lab equipment. Any help is appreciated. 1. Design a. Create an
This is part of Arduino lab, but the first script does not need any lab equipment. Any help is appreciated.
1. Design a. Create an algorithm (represent via pseudocode or flowchart) that takes x samples of data, each taken y seconds apart, and then calculates the average of those samples b. In the lab, we will implement this algorithm inside a function definition. List the parameters you think we will need to be passed into this function for it to behave correctly, yet be as "reusable as possible. You can assume it will only be used to monitor analog sensors. Also list the return value(s) you think this function shou return. 2. Test plan a. Describe how you can use print() or lcd_print() within your function definition and/or an analog input device you can control easily (ie. the rotary dial) to help determine if the algorithm is implemented correctly AND if the parameters passed in to the function are being used correctly. 1. Design a. Create an algorithm (represent via pseudocode or flowchart) that takes x samples of data, each taken y seconds apart, and then calculates the average of those samples b. In the lab, we will implement this algorithm inside a function definition. List the parameters you think we will need to be passed into this function for it to behave correctly, yet be as "reusable as possible. You can assume it will only be used to monitor analog sensors. Also list the return value(s) you think this function shou return. 2. Test plan a. Describe how you can use print() or lcd_print() within your function definition and/or an analog input device you can control easily (ie. the rotary dial) to help determine if the algorithm is implemented correctly AND if the parameters passed in to the function are being used correctlyStep 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