Learning CS and Math with Robotics
Barobo

LArduino Ultrasonic 2b: Coding a "Too Close" Trigger with a Loop

Piano MinView
Linkbot Image Mindstorm Image
x-12-606121824y24181260-6-12
Grid Lines:
Tics Lines:
Width px
Hash Lines:
Width px
Labels:
Font px
Trace Lines:
Robot 1:
Width px
Robot 2:
Width px
Robot 3:
Width px
Robot 4:
Width px
Simple View: Grid Size: S M L
Coord: x-axis y-axis Grid Lines: x-axis y-axis
Grid: 12x12 inches 24x24 inches 36x36 inches
72x72 inches 96x96 inches 192x192 inches
1x1 inches 2x2 inches Fraction:
Quad: 1 Quadrant 4 Quadrants 1&4 Quadrants
Units: US Customary Metric Ruler:
Background Image

Robot 1

0
S
M
L
Initial Position (x, y):
( , ) in
Initial Angle:
degrees
Current Position (x,y) (0, 0) in
Current Angle: 90 degrees
Wheel Radius:

Robot 2

0
S
M
L
Initial Position (x, y):
( , ) in
Initial Angle:
degrees
Current Position (x,y) (0, 6) in
Current Angle: 0 degrees
Wheel Radius:

Robot 3

0
S
M
L
Initial Position (x, y):
( , ) in
Initial Angle:
degrees
Current Position (x,y) (0, 12) in
Current Angle: 0 degrees
Wheel Radius:

Robot 4

0
S
M
L
Initial Position (x, y):
( , ) in
Initial Angle:
degrees
Current Position (x,y) (0, 18) in
Current Angle: 0 degrees
Wheel Radius:
LArduino Ultrasonic 2b: Coding a "Too Close" Trigger with a Loop

Modify the pre-placed code so that the "too close" distance is 6 inches.

Load Blocks
Hardware
LArduino
Workspace Show Ch Save File Console

		
Rubbish bin
Time