Question: Please kindly help answer the questions urgently within 30 mins. Thank you so much for your help and have a good day. Thats all ive
(a) What is the difference between a sensor and an actuator? Then, with the aid of diagrams, describe how you use them in your MEC523's project. [CO1/P01/C2] (5 marks) (b) Below is an Arduino program that is taking values from a potentiometer as an input for the delay period of a blinking LED. Evaluate and fill in the blanks below with either program codes or comments, based on your understanding of the program. int potentiometer - _(1)_ ; // select the input pin for the potentiometer int led - _(2)_ ; 1 select the pin for the LED int val = 0; } variable to store the value coming from the sensor void _(3)_0 pinMode(led, _(4)_ ) I declare the led as an output void _(5)_0) Inn Loop val - _(6)_ potentiometer): read the value to the sensor _(7)_red, HIGH); 1 turn the led on delay tvain_(8)_ _(9)_11, Wurn the Fed FC deyival_
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
