Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please answer this short test on C # sharp arduino and follow the instructions amd hints the main ojective of the question is to create

please answer this short test on C # sharp arduino and follow the instructions amd hints image text in transcribed
image text in transcribed
image text in transcribed
the main ojective of the question is to create code using C# that uses a switch input to change between 3 signals that are displayed in the bar graph of the arduino(Sawtooth, count up amd count down) . the switch inputust be read a t every input t and move to the next signal immediatly. Should be set between 10 ms and 1000ms.
for extra 10 marks please explain why the switch input is unrelaiable at slow speeds
image text in transcribed
For all code sections, marks will be deducted for bod readability (e.g. missing or mismatching comments, poor variable names, bad indentation, unrecognised coding style, etc.), inappropriate use of global variables, unnecessary code repetition, incorrect behaviour, or foilure to follow requirements of the lab question. General marks are also lost if the submission document instructions are not followed. Marks will be awarded for good design decisions and using the oppropriate features of C to ochieve the programme goals. Tuning visual feedback The basic objective of this assignment is to use Switch input to change between 3 types of signal that are displayed on the Bar Graph (Sawtooth, Count-up and Count-down). The switch input must be read at every point t and move to the next signal immediately. The time between t1 and t2, etc should be set by the value of the Potentiometer and should vary between 10ms and Hints: - Use separate functions for the different signals and other tasks. - Use variables at the Loop() level to record the state and pass the relevant state to the functions as parameters. Do not use global variables. - Do use global constants and arrays of constants to iterate between states, signals and along the elements of the bar graph. - The map() function will be useful for the Potentiometer Tuning visual feedback The basic objective of this assieninent is to use 5 witch input to change between 3 trpes of sieral that are dioglayed on the Bar Graph (Sawtooth, Count-up and Count-down). The switch input must be read at every point t and move to the next sienal immedately. The time between t1 and n. etc should be set by the value of the Potentiometer and should vary between 10 rns and 1000ms. for an addicional 10 marks explain why the switch input can become unreliable at slow

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Students also viewed these Databases questions