GRADE 7

ROBOTICS

CHAPTER 1 & 2

Page 1 of 2

Chapter 1: Arduino

1. What is Arduino?
2. How many types of Arduino do we have?
3. What language is a typical Arduino code based on?
4. What language is the Arduino IDE built on?
5. Arduino IDE consists of 2 functions. What are they?
6. Arduino Codes are referred to as ________ in the Arduino IDE.
7. What is the default bootloader of the Arduino UNO?
8. What does p refer to in ATmega328p?
9. What is the use of the Arduino.h header file?
10. What is the use of the Vin pin present on some Arduino Boards?
11. What is the correct execution process of an Arduino code?
12. What is the microcontroller used in Arduino UNO?
13. Which software is used to upload the Arduino Sketches to the board?
14. What is the operating voltage of Atmega328?
15. Is the Arduino code an Object-Oriented programming language or a Procedural programming language?
16. What is the difference between an IDE and a compiler?
17. How many times does the setup() function run on every startup of the Arduino System?
18. The code that you put inside void setup() will only run once; and that will be at the beginning of your program
19. In void loop(); your code will repeat over and over again.
20. Constants are like variables; but their value remains constant throughout the program's execution.
21. Pulse-Width Modulation (PWM) pins can provide digital as well as analog output ?
22. How many digital pins are available on the Arduino Uno Board ?
23. How many PWM pins are available on the Arduino Uno Board ?
24. How many Analog pins are available on the Arduino Uno Board ?
25. How many Ground pins are available on the Arduino Uno Board ?
26. Which 2 voltage pins are available on Arduino Board ?
27. What does GPIO stand for?
28. What does IDE stand for?
29. A program written with the IDE for Arduino is called ?
30. Will this program run without error ?

const int counter = 0;
int pin = 13;

void setup() {
Serial.begin(9600);
pinMode(pin; OUTPUT);
digitalWrite(pin; LOW);
}

void loop() {
counter = counter + 1;

digitalWrite(pin; HIGH);
Serial.print(“Blink #”);
Serial.println(counter);
delay(1000);
digitalWrite(pin; LOW);
delay(1000);
}
31. Will this program run without error ?

int counter = 0;
int pin = 13;

void setup() {
Serial.begin(9600);
pinMode(pin, OUTPUT);
digitalWrite(pin, LOW);
}

void loop() {
counter = counter + 1;

digitalWrite(pin, HIGH);
Serial.print(“Blink #”);
Serial.println(counter);
delay(1000);
digitalWrite(pin, LOW);
delay(1000);
}
32. Will this program run without error ?

int counter = 0;
int pin = 13

void setup() {
Serial.begin(9600);
pinMode(pin, OUTPUT);
digitalWrite(pin, LOW);
}

void loop() {
counter = counter + 1;

digitalWrite(pin, HIGH);
Serial.print(“Blink #”);
Serial.println(counter);
delay(1000);
digitalWrite(pin, LOW);
delay(1000);
}
33. Will this program run without error ?

int pin = 13

void setup() {
Serial.begin(9600);
pinMode(pin, OUTPUT);
digitalWrite(pin, LOW);
}

void loop() {
counter = counter + 1;

digitalWrite(pin, HIGH);
Serial.print(“Blink #”);
Serial.println(counter);
delay(1000);
digitalWrite(pin, LOW);
delay(1000);
}
34. what are the 2 braces { } in the funtion called ? For eg: setup () {}
35. It starts with a /* and continues until a */ What does this do?
36. Are the connections proper and will glow the LED ?

37. A Breadboard is simply a board for prototyping or building circuits on ?
38. Put the code in its order, such that "Welcome to" comes in first line and "Classes" in second line.
  • lcd.print("Welcome to");
  • lcd.setCursor(0, 1);
  • void loop() {
  • }
  • #include <LiquidCrystal.h>
  • lcd.print("Classes");
  • lcd.begin(16, 2);
  • void setup() {
  • }
  • LiquidCrystal lcd(2, 3, 4, 5, 6, 7);
  • lcd.setCursor(0, 0);

 

Scroll to Top