Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Typical mechatronic knowledge quiz questions ldentify positive and negative side

ID: 2293927 • Letter: T

Question

Typical mechatronic knowledge quiz questions ldentify positive and negative side of a LED (see Exercise 2.2.1) Determine the resistor required to limit current and protect a LED (see Mechatronics Tutorial Booklet v5.4 Exercise 2.2.2 and end of Chapter 1. of Electronics Foundations: Fundamentals Lynda.com course) What does the following piece of code do? (see Exercise 2.2.2 to 2.2.5) int myLed = 12; What does the following piece of code do? (see Exercise 2.2.2 to 2.2.5) pinMode(LED_BUILTIN, OUTPUT) What does the following piece of code do? (see Exercise 2.2.2 to 2.2.5) digitalWrite (LED-BUILTIN, delay (100); digitalWrite (LED_BUILTIN, HIGH); LOW) what is the basic function of a potentiometer? (see Exercise 2.2.8) If we are printing to the Arduino IDE serial monitor the voltage of a component connected to an analog pin on the Arduino, what kind of numbers would we see? (see Exercise 3.2.1) If we want to see a chart of the output of from a component (e.g. line trace sensor) connected to an Arduino analog pin, what would we use to do that? (see Exercise 3.2.5) If we are monitoring the output signal from the line trace sensor used for the WPV Mechatronics Module and the Tutorial Kit, if the sensor detects something ('sees' a reflection) is the signal 'high' or low'? (see Exercise 3.2.5) I we wan to use the output from the linetracesenser to control same cther component le g tuma LED on or off), should we connect the output to a digital or analog input pin (see Exercise 3.2.6)

Explanation / Answer

To determine the positive and negative lead of the LED we have to see the led very carefully. The side of led is of flat shape another way to find the negative and positive lead is, the lead is negative which is small in size and another is positive. You did not attach the booklet. But in the general case 220 ohm or 150 ohm of resistors are used in series with LED if it is used with the arduino board at digital or analog pins. myLed is the variable data type of integer. 12 is the value which is stored in the myLed variable. pinMode(LED_BUILTIN, OUTPUT) ; by this line the pinmode of the arduino will set as output. By this the LED_BUILTIN pin will work as output pin. The LED_BUILTIN will high after executio of first line of code than next line is for wait for 100 mili seconds. And by the third line the LED_BUILTIN will be low. The potentiometer is a device by which we can change the resistance and the voltage as well. The three terminal device has one output pin and two for power supply one is connected to ground another to Vcc. At the output pin we will get the variable voltage if we rotate its rotatory part. 0 to 1024 will print at the serial monitor. Because there is 10 bit adc used in arduino so the 0-5 volts range is convert in to the these numbers. We can use Serial.print() function to print the status of that variable. Same as previous use Serial.print() function. We can use both digital pin or analog pin but there is need to set pin mode as input. In general we should use digital pin because the output of line tracer is digital ie. On and off.