Robotics Practical

studied byStudied by 5 people
0.0(0)
Get a hint
Hint

A0

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

Explore top notes

note Note
studied byStudied by 19 people
... ago
4.5(2)
note Note
studied byStudied by 24 people
... ago
5.0(2)
note Note
studied byStudied by 6491 people
... ago
4.8(23)
note Note
studied byStudied by 5 people
... ago
5.0(1)
note Note
studied byStudied by 43 people
... ago
5.0(1)
note Note
studied byStudied by 7 people
... ago
5.0(1)
note Note
studied byStudied by 8 people
... ago
5.0(1)
note Note
studied byStudied by 2 people
... ago
5.0(1)

Explore top flashcards

flashcards Flashcard (46)
studied byStudied by 62 people
... ago
5.0(1)
flashcards Flashcard (36)
studied byStudied by 63 people
... ago
5.0(2)
flashcards Flashcard (66)
studied byStudied by 9 people
... ago
5.0(1)
flashcards Flashcard (54)
studied byStudied by 72 people
... ago
5.0(2)
flashcards Flashcard (116)
studied byStudied by 193 people
... ago
5.0(3)
flashcards Flashcard (47)
studied byStudied by 15 people
... ago
5.0(2)
flashcards Flashcard (22)
studied byStudied by 6 people
... ago
5.0(1)
flashcards Flashcard (66)
studied byStudied by 4 people
... ago
5.0(1)
robot