IT F
Set the device in pin 12 as input.
The following line of code, means ________ pinMode(12, OUTPUT); Make the device in pin 13 set to ON state. Make the device in pin 12 set to Off state. Set the device in pin 12 as input.
Loop & Set up
The two required functions on your program.
1
What is printed when you run the following code? Serial.print(5>3); 0 1
setup();
Which function runs only one time?
setup(), loop()
Write the bare minimum code for the Arduino IDE
Arduino
it is a small microcontroller board with a universal serial bus (USB) plug to connect to your computer
T
(True or False) Arduino code contains two functions by default
FALSE
(True or False) Does the Arduino Board only have Analog pins
FALSE
(True or False) It is not important to select the Board Type when running your program on the Arduino IDE
T
(True or False) The sensors and actuators can be either digital or analog.
T
(True or False) To use Serial monitor you have to write the following code Serial.begin(9600);
FALSE
(True or False) You can upload the sketch immediately to the Arduino board.
Set up your Arduino Connect to your computer Open Arduino IDE software (Download if needed) Connect a USB to your Arduino Check the Arduino IDE if the microcontroller is connected Write your program Compile and upload the program
How do you set up and run your Arduino Microcontroller?
6
How many analog pins are on the Arduino board?
Sensor
It is a converter that measures a physical size and converts Sensor Actuators Potentiometer
Actuators
It is a kind of motor that moves or controls a mechanism or system Switch Potentiometer Actuators
Sparko
The Westinghouse dog uses both mechanical and electrical components
Arduino
Which is not a single-board device? Mbed Arduino Raspberry Pi (
pinMode(13, OUTPUT);
How to define a Led connected to pin 13 in Arduino?
ASIMO 2000
This is a personal robotic vacuum cleaner
False
True or False) Single Board devices are not microcomputers.
Orange, Orange, Orange, Orange, Gold
What is the color code of 333kΩ,± 5% five-band resistor? Orange, Orange, Red, Orange, Gold Orange, Orange, Orange, Orange, silver Orange, Orange, Orange, Red, Gold Orange, Orange, Orange, Orange, Gold
1M
What is the multiplier value for the color blue in the multiplier band? 10K 10M 100K 1M
11
What is the output for the following code? int x=5; int y=3; x+=y; Serial.print(x+y); 8 10 11
1
What is the result of the following line Code is______ print(7%3);
56K ± 5%
What is the value of a 4-band resistor that has the first band - Green, the second band - Blue, the third band- orange, and the fourth band - Gold? 56K ± 10% 56K ± 5% 5.6K ± 5% 56K ± 2%
20KΩ
What is the value of a resistor which has the first three color bands Red, black, and Orange? 2KΩ 20KΩ 203Ω 200KΩ
1898
When was the first radio-controlled submersible boat invented by Nikola Tesla
Piezo
Which components are switch driven by a small signal? Piezo Relay Transistor
Push Button
Which components close or open circuits? Relay Soft Trimpot Push Button
Trim
Which is not an Arduino board? Yun Trim Uno
Ambient Sensor
Which is not an Output component? Piezo Buzzer Ambient Sensor Servo Motor
Led
Which of the following considerations as output devices? Button Led Humidity
LED
Which of the following is not considered an input sensor?
delay(500);
Which one is the fastest Led blinking? delay(500); delay(1500); delay(5000);
calculate();
Which one of the following is a user-defined function?
William Grey Walter
Who built the two of the earliest autonomous robots with the appearance of turtles
Maillardet
Who created a doll that wrote in either French or English and could draw landscapes
14
How many digital pins are on the Arduino board?
2
How many pin in a LED ?
ROBOT
ELECTROMECHANICAL DEVICE THAT IS REPROGRAMMABLE
Microcontroller
It is a little computer on a chip.
Input
It is a signal/information going into the board
void setup() { pinMode(5, OUTPUT); pinMode(7, OUTPUT); pinMode(6, OUTPUT); } void loop() { digitalWrite(5, HIGH); delay(1000); digitalWrite(5, LOW); delay(1000); digitalWrite(7, HIGH); delay(1000); // digitalWrite(7, LOW); delay(1000); // digitalWrite(6, HIGH); delay(1000); // digitalWrite(16, LOW); delay(1000); // }
code for traffic light
