Question: Assignment 1 . 1 . a Define an array with 5 int values. If the user presses button 1 , the program starts reading 5

Assignment 1.1.a
Define an array with 5 int values.
If the user presses button 1, the program starts reading 5 successive samples from the potentiometer
and stores the ADC-values in the array. The sample interval time is 0.5[s]. Use a for-loop for filling
the array and showing the values. If the user presses button 2, all sample values are shown on the
serial monitor. Test the program. Turn the knob of the potentiometer while sampling to get variation in
the measured results.
 Assignment 1.1.a Define an array with 5 int values. If the

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!