Engineering Arduino coding

Pataasin ang iyong marka sa homework at exams ngayon gamit ang Quizwiz!

brain

A microcontroller (like an Arduino Uno) serves as the robot's power supply structure programming environment brain

servo motor

A rotary actuator that allows for precise control of angular and linear position, velocity and acceleration

camera

A(n) _______________ allows the robot to detect objects from its environment. Camera Resistor Analog Output servomotor

Control System

Adds the Arduino Uno and the BOE Shield and connects the servos

behavior

Anything your robot does; turning on a motor, following a line, navigating a maze.

physical, integrated design environment

Arduino consists of both a ___ programmable circuit board (microcontroller) and a piece of software, or IDE meaning ___

header pins

BOE shields attach to the __ of the arduino

breadboards, 5V and 3.3V, 4 servo ports, on and off switch

BOE shields contain:

Write it into the program at the place you want it to run in the sequence

How do you get a program to run a second behavior? Write it into the program at the place you want it to run in the sequence Rewire the robot in a specific order Create a new program, then verify and run that program second

25 milliseconds

How long will the following command cause the robot to pause before running additional code in the Arduino programming software?delay(25); 25 seconds 25 microseconds 25 milliseconds 2.5 seconds

BOE shield (board of education)

Name of the blue looking arduino-like thing.

complex behavior

Robot performs a complex task Example: navigate maze

in sequence, as quickly as possible

Robots run programming commands: all at once, or instantaneously. in sequence, as quickly as possible. in sequence, one command per second. more quickly with the battery pack connected.

act

Servomotors allow a robotic system to _______________ within its environment sense plan act perceive

basic behavior

Single command to a robot Example: start a motor

Sends a message to the PC over the USB cable

The Serial.print() command in the program... Prints a message that is displayed on the Arduino board Sends a message to the PC over the USB cable Sends a message to the PC over Bluetooth Doesn't do anything

Mobility Subsystem

This Subsystem focuses on attaching the wheels and servos to the chassis.

Continuous Servo, regular servo

This can move repeatedly at 360 degrees, this one only moves in a narrow range

Power Subsystem

This subsystems adds the battery pack to power our robot.

true

True or false. Given the setup below, the robot moves forward or backward when both motors spin in the same relative direction.

Both of the above.

What benefit does the following microcontroller shield (e.g. BOEShield) have to the robotic system?BOEShield It allows multiple motors to be easily connected. It allows additional circuits to be integrated with the robot. Both of the above. None of the above.

metal Screws and Bolts

What component(s) are used to fasten the motors to the robot's chassis?

It immediately begins running again after the restart completes

What happens to your program when you reset the Arduino?

The black wire is on the wrong side

What is wrong with the following setup?

It is used to provide instructions for the robot to carry out. It is used to transfer code from a computer to a robot brain. Both of the above. None of the above.

What purpose does a programming environment have in a robotics system?

provides the structure for the robot brain, motors, and additional components.

What purpose does the chassis like the one pictured below serve in the robotics system?Chassis It allows the robot to slide with minimal friction. It provides the structure for the robot brain, motors, and additional components. It is used as part of the robotics testbed. It allows multiple robot brains to communicate with each other.

It allows the robot to move in its environment.

What purpose does the servo motor like the one pictured below serve in the robotics system? It allows the robot to move in its environment. It measures how much the robot chassis has rotated. It connects to the robot brain to keep it from overheating. It measures wind speed in from the robots environment.

All of the above

What will this line of code do? [Serial.print("Hey guys");] Send "Hey guys" as message text from the Arduino to the PC, using the USB connection Display "Hey guys" in the Serial Terminal window if it's open Nothing, if the USB cable is disconnected All of the above

Sets up a servo under the name "armMotor"

What would the following line of code do in the programming software? Servo armMotor; Sets up a servo to rotate a limited range of motion Sets up a servo under the name "armMotor" This code won't compile or download because there is no arm motor connected to the robot. Sets up a servo to be used with a special arm servo horn.

Code is written on the PC, uploaded to the Arduino, and run on the Arduino

Which of the following describes the way programs work on the Arduino? -Code is written, compiled, and run on the Arduino -Code is written and run on the Arduino, and a backup is uploaded to the PC in case the Arduino loses power -Code is written on the PC, uploaded to the Arduino, and run on the Arduino -Code is written on the PC, uploaded to the Arduino, and run on the PC

Motors turn the wheels, wheels push against the ground and make the robot move

Which of the following descriptions most accurately describes the way the robot will move? -Motors turn the wheels, wheels push against the ground and make the robot move -Ball points in a direction, motors turn and push the robot in that direction -Wheels turn the motors, causing the robot's body to push off them -Chassis spins the motors, which makes the wheels move because of the way the pin is attached

A LED

Which of the following is a Digital Output? A Breadboard A LED A Touch Sensor A 3.3V Battery

It displays the cost of the components included.

Which of the following is not typically part of the value of an inventory checklist? -It displays the cost of the components included. -It displays the quantity of the components included. -It may be used to display important procedures once components are accounted for. -It can be used to keep track of which technician completed certain tasks.

they allow technicians to test components and the connections between them.

Why are testbeds helpful to technicians? They allow technicians to easily verify the quantity of components. They allow technicians to test components and the connections between them. They allow technicians to write programs without compiler issues. Actually, they are generally not helpful to technicians.

breadboard

_______________ allow multiple electrical components to be connected in a circuit without soldering or or special connectors. Arduinos Breadboards Resistors None of the above

Signal or Status Lights

_______________ are often used in robotics systems to display what state the robot brain and other components are in. Resistors Breadboards Servomotors Signal or Status Lights

nulling

a calibration procedure for fine tuning a servo motor

C

arduino programs are written in ___ or ___++

the left motor is set up to pin 10, the left motor is stopped

leftmotor attach (10) means what? leftmotor WriteMicroseconds(1500)?

chasis

metal part of robot name

Servo Motor

motor name

simple behavior

simple tasks performed by a robot (move forward, track a line)

basic, simple, complex

three main types of behaviors

Servo.h library

to program the servi, we need to include ___ into the code

pin, frequency, duration

tone (4, 2000, 1000)

can be used to tell what part of the code the bot is on

what can tone be used for?

1000-2000

what's the servo range of values?

clockwise

x<1500, runs

counterclockwise, stopped

x> 1500 runs ___. at 1500?


Kaugnay na mga set ng pag-aaral

CH 13 - Abstract Classes and Interfaces

View Set

Chapter 07 - Cell Membranes FRQ and Notes

View Set

7 Antibacterial Drugs That Disrupt the Bacterial Cell Wall

View Set

Flashcards from HTML and CSS lesson

View Set

Dilations ( assignment&quiz ) 100% and 70%

View Set

Lifespan G&D Final Review Unit 4

View Set