Robotics Practical

studied byStudied by 5 people
0.0(0)
learn
LearnA personalized and smart learning plan
exam
Practice TestTake a test on your terms and definitions
spaced repetition
Spaced RepetitionScientifically backed study method
heart puzzle
Matching GameHow quick can you match all your cards?
flashcards
FlashcardsStudy terms and definitions

1 / 19

flashcard set

Earn XP

Description and Tags

Engineering

20 Terms

1

A0

For challenge 1: flame sensor, Analog Output (A0) pin connect to this.

New cards
2

GND

For challenge 1: flame sensor, Ground (GND) pin connect to this.

New cards
3

5V

For challenge 1: flame sensor, VCC (Voltage) pin connect to this.

New cards
4

A0

Challenge 2: int flameSensorPin = (?) // Pin where the flame sensor is connected (analog pin)

New cards
5

200

Challenge 2: int flameThreshold = (?) // Threshold value for flame detection

New cards
6

13

Challenge 2: int servoPin = (?);       // Pin where the servo motor is connected (LOOK AT IMAGE CAREFULLY)

<p><span style="font-family: UICTFontTextStyleBody">Challenge 2: int servoPin = (?); &nbsp; &nbsp; &nbsp; // Pin where the servo motor is connected (LOOK AT IMAGE CAREFULLY)</span></p>
New cards
7

servoPin

Challenge 2: myServo.attach(?); // Attach the servo motor to digital pin

New cards
8

0

Challenge 2: myServo.write(?);         // Initialize the servo to 0 degrees

New cards
9

INPUT

Challenge 2: pinMode(flameSensorPin, ?); // Set the flame sensor pin as i***t

New cards
10

9600

Challenge 2: Serial.begin(?);       // Begin serial communication for debugging

New cards
11

analogRead

Challenge 2: sensorValue = ??(flameSensorPin); // Read the value from the flame sensor

New cards
12

sensorValue

Challenge 2: ?? = analogRead(flameSensorPin); // Read the value from the flame sensor

New cards
13

flameSensorPin

Challenge 2: sensorValue = analogRead(??); // Read the value from the flame sensor

New cards
14

sensorValue

Challenge 2: Serial.println(??);              // Print the value for debugging

New cards
15

<

Challenge 2: if (sensorValue (?) flameThreshold) {       // If a flame is detected (value is below threshold)

New cards
16

sensorValue

Challenge 2: if (?? < flameThreshold) {       // If a flame is detected (value is below threshold)

New cards
17

flameThreshold

Challenge 2: if (sensorValue < ??) {       // If a flame is detected (value is below threshold)

New cards
18

90

Challenge 2: myServo.write(?);                      // Rotate the servo motor to 90 degrees

New cards
19

1000

Challenge 2: delay(?);                            // Wait for 1 second

New cards
20

0

myServo.write(?);                       // Return the servo motor to 0 degrees

New cards
robot