LCD Screen
Remote Control
Flags
Sensors
Random
100

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

Output

100

The remote control is considered to be an input or output?

Input

100

True or False. A flag is a variable.

True

100

What sensors did we see during this partial?

Temperature, Light, Movement

100

What colors is Miss Lety´s presentation?

White and Light Blue

200

What is the # in the code used for?

Open up a library

200

What is this?


IR Sensor

200

Where does the flag appear in the code?

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

The sensors are considered to be inputs or outputs?

Inputs

200

What is the full name of our class?

Software Development

300

How many columns and rows are there in the LCD Screen?

16 columns and 2 rows

300

Which part of the code is used to identify the button pressed?

void loop() {

    if (irrecv.decode(&results)) {

    switch (results.value) {

    case 16582903:

         INSTRUCTIONS

       }   

    irrecv.resume(); 

  }

}

case 16582903:

300

Come up to the board and explain what a flag is.

Variables whose value changes and events depend on that value.

300

What sensor is used with this code?

void setup() {

    pinMode(A0, INPUT);

}

void loop() {

 int photoresistor = analogRead(A0);

}

Light Sensor

300

Name the activities we have done in this second partial.

Thermometer, Disco Lights, Sprinklers

400

What is the error in the following code?

#include <LiquidCrystal.h>

void setup() {

  lcd.begin(16, 2);

}

void loop() {

  lcd.setCursor(0, 0);

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

}

The line where the connections are is missing

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


400

What goes in the instructions part?

void loop() {

    if (irrecv.decode(&results)) {

    switch (results.value) {

    case 16582903:

         INSTRUCTIONS

       }   

    irrecv.resume(); 

  }

}

Whatever we want to happen when the button is clicked.

400

In the following code, what is the name of the flag?

void loop() {

  if (irrecv.decode(&results)) {

    switch (results.value) {

     case 16601263:

      if (light == 1){

      digitalWrite(3, LOW);

      digitalWrite(4, HIGH);

      light = 2;  

    }else if (light == 2) {

      digitalWrite(3, LOW);

      digitalWrite(4, HIGH);

      light = 1;

    }

    irrecv.resume(); 

  }

}

light

400

What sensor is used with this code?

void setup() {

  pinMode (6,INPUT);

}

void loop() {

 int pir = digitalRead(6);

}

Movement Sensor

400

You have 10 seconds to make your best version of the Tinkercad logo on the board.

Logo

500

Come up to the board and complete the code for the following LCD Screen. We want it to say "JEOPARDY".

#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("JEOPARDY");

}

500

Which part of the code is used to identify if a button is pressed?

void loop() {

    if (irrecv.decode(&results)) {

    switch (results.value) {

    case 16582903:

         INSTRUCTIONS

       }   

    irrecv.resume(); 

  }

}

The decision (if)

500

In the following code, what color will the RGB LED be if the button is pressed 5 times?

void loop() {

  if (irrecv.decode(&results)) {

    switch (results.value) {

     case 16601263:

      if (light == 1){

      purple();

      light = 2;  

    }else if (light == 2) {

      green();

      light = 1;

    }

    irrecv.resume(); 

  }

}

Purple

500

What sensor is used with this code?


void setup() {

  pinMode(A1,INPUT);

}

void loop() {

 float sensor = analogRead(A1) 

 float volts = (sensor*5) / 1024

 float celcius = (volts-0.5)*100

}

Temperature Sensor

500

You have 30 seconds to draw on the board all of the components seen in this second partial .

Drawing

M
e
n
u