LCD Screen
Remote Control
Flags
Sensors
100

The LCD screen is considered to be an input or output?

Output

100

The remote control sensor is considered to be an input or output in the code?

Input

100

True or False. A Flag is a coding technique using variables.

True

100

The sensors are considered to be inputs or outputs?

Inputs

200

What is the follwing line in the code used for?

#include <LiquidCrystal.h>

Including and opening up the LCD Screen library

200

What is this?


IR Sensor

200

True or False. A Flag is used to determine the current and following state of the program.

True.

200

What sensors did we see during this partial?

Temperature, Photoresistor (Light), PIR (Movement), Sensor for the Remote Control

300

Which is the must common Size of LCD Screen on the market?

16 columns and 2 rows or 20×4, 20×2 and 40×2. 

300

Does the Control tells Arduino what to do when each button is press or do we tell Arduino what to do depending on the button press?

We tell Arduino what to do depending on the button press

300

How is the Flag used in the code?

As part of the condition and as a changing value inside the decision.

300
What does the PIR Sensor detects and how many pins it has?

Movement and 3 pins.

400

What is missing in the following code?

#include <LiquidCrystal.h>

void setup() {

  lcd.begin(16, 2);

}

void loop() {

  lcd.setCursor(0, 0);

  lcd.print("hello, world!");

}

LiquidCrystal lcd(12, 11, 5, 4, 3, 2);


400

Whats the name of the Library we use for the remote control?

#include <_______>      

#include <IRremote.h>      

400

How many Flags can we use in a program?

As many as we need.

400

Which component can be use as a Light sensor?

The photoresistor.

500

Come up to the board and complete the code for the following LCD Screen. So it can display: "Hello".

#include <LiquidCrystal.h>

LiquidCrystal lcd(12, 11, 5, 4, 3, 2);

void setup() {

  lcd.____(__, __);

}

void loop() {

  lcd.setCursor(0, 0);

  lcd._____(______);

}

#include <LiquidCrystal.h>

LiquidCrystal lcd(12, 11, 5, 4, 3, 2);

void setup() {

  lcd.begin(16, 2);

}

void loop() {

  lcd.setCursor(0, 0);

  lcd.print("Hello");

}

500

At least how many variables we need to use the remote control and what do they do?

Three:

// Create the receiver object, use a name of your choice, sets the attached pin

IRrecv controlR(receive_pin);  


// Declare variable to store if code was received - true or false-

bool receive;   


// Declare variable to store the received code 

uint32_t  code;   

500

Which is the component we need to use Flags?

None.

500
True or False. The Temperature sensor only has 2 pins.

False. It has 3. Ground, voltage out (Arduino) and power (voltage).