The LCD screen is considered to be an input or output?
Output
The remote control sensor is considered to be an input or output in the code?
Input
True or False. A Flag is a coding technique using variables.
True
The sensors are considered to be inputs or outputs?
Inputs
What is the follwing line in the code used for?
#include <LiquidCrystal.h>
Including and opening up the LCD Screen library
What is this?
IR Sensor
True or False. A Flag is used to determine the current and following state of the program.
True.
What sensors did we see during this partial?
Temperature, Photoresistor (Light), PIR (Movement), Sensor for the Remote Control
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.
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
How is the Flag used in the code?
As part of the condition and as a changing value inside the decision.
Movement and 3 pins.
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);
Whats the name of the Library we use for the remote control?
#include <_______>
#include <IRremote.h>
How many Flags can we use in a program?
As many as we need.
Which component can be use as a Light sensor?
The photoresistor.
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");
}
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;
Which is the component we need to use Flags?
None.
False. It has 3. Ground, voltage out (Arduino) and power (voltage).