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 18 people
... ago
5.0(1)
note Note
studied byStudied by 42 people
... ago
5.0(1)
note Note
studied byStudied by 3 people
... ago
5.0(1)
note Note
studied byStudied by 7 people
... ago
5.0(1)
note Note
studied byStudied by 10 people
... ago
5.0(1)
note Note
studied byStudied by 4 people
... ago
5.0(1)
note Note
studied byStudied by 38 people
... ago
5.0(2)
note Note
studied byStudied by 16 people
... ago
5.0(1)

Explore top flashcards

flashcards Flashcard (44)
studied byStudied by 4 people
... ago
5.0(1)
flashcards Flashcard (41)
studied byStudied by 2 people
... ago
5.0(1)
flashcards Flashcard (92)
studied byStudied by 3 people
... ago
5.0(1)
flashcards Flashcard (20)
studied byStudied by 275 people
... ago
5.0(10)
flashcards Flashcard (48)
studied byStudied by 6 people
... ago
5.0(1)
flashcards Flashcard (85)
studied byStudied by 2 people
... ago
5.0(1)
flashcards Flashcard (44)
studied byStudied by 4 people
... ago
5.0(1)
flashcards Flashcard (30)
studied byStudied by 34 people
... ago
5.0(1)
robot