Barobo
PortalSign In
HomeShopTutorialsFree CurriculumHour of Code
RoboBlockly for Learning Math and Coding

Piano
Linkbot Image Mindstorm Image
0x2418126y2418126
Grid:
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
Labels: x-axis y-axis Show Grid
Grid: 12x12 inches 24x24 inches 36x36 inches
72x72 inches 96x96 inches 192x192 inches
Quad: 4 Quadrants 1 Quadrant 1&4 Quadrants
Units: US Customary Metric
Background: Background Image

Robot 1

0
S
M
L
Initial Position:
( in, in)
Initial Angle:
deg
Current Position: (8 in, 1 in)
Current Angle: 90 deg
Wheel Radius:
Track Width:
in

Robot 2

0
S
M
L
Initial Position:
( in, in)
Initial Angle:
deg
Current Position: (18 in, 1 in)
Current Angle: 90 deg
Wheel Radius:
Track Width:
in

Robot 3

0
S
M
L
Initial Position:
( in, in)
Initial Angle:
deg
Current Position: (0 in, 12 in)
Current Angle: 0 deg
Wheel Radius:
Track Width:
in

Robot 4

0
S
M
L
Initial Position:
( in, in)
Initial Angle:
deg
Current Position: (0 in, 18 in)
Current Angle: 0 deg
Wheel Radius:
Track Width:
in
Comparing Numbers
/* Code generated by RoboBlockly v2.0 */
/* Problem Statement: 
    You are to use robots to move two crates of different
    weights. Mindstorm robot is bigger so it will be moving the
    heavier crate, while the Linkbot is smaller, so it will be
    moving the lighter one. Given the weight of each crate,
    modify the pre-place Text block to write in the correct
    inequality sign. Then, move the Linkbot and Mindstorm to
    the correct location (red dots) by modifying the x value of
    the driveToXY() command blocks. If the two weights are
    equal, move Mindstorm to the right dot and the Linkbot to
    the left dot. Refresh for more problem. */
#include <chplot.h>
#include <linkbot.h>
#include <mindstorms.h>
CPlot plot;
CLinkbotI robot1;
double radius1 = 1.75;
double trackwidth1 = 3.69;
CMindstorms robot2;
double radius2 = 1.1;
double trackwidth2 = 4.54;

// This is a sample solution
plot.strokeColor("#3366ff");
plot.fillColor("white");
plot.rectangle(7.5, 19.5, 3, 2);
plot.rectangle(14.5, 19.5, 3, 2);
plot.strokeWidth(3);
plot.text("32", PLOT_TEXT_LEFT, 7.5, 20);
plot.text("82", PLOT_TEXT_LEFT, 14.5, 20);
plot.strokeWidth(6);
plot.text("<", PLOT_TEXT_LEFT, 11.8, 19.5);
robot1.drivexyTo(8, 13, radius1, trackwidth1);
robot2.drivexyTo(18, 13, radius2, trackwidth2);

plot.label(PLOT_AXIS_XY, "");
plot.grid(PLOT_OFF);
plot.tics(PLOT_AXIS_XY, PLOT_OFF);
plot.axis(PLOT_AXIS_XY, PLOT_OFF);
plot.axisRange(PLOT_AXIS_XY, 0, 24);
plot.ticsRange(PLOT_AXIS_XY, 2);
plot.sizeRatio(1);
plot.plotting();
Load Blocks
Hardware
LArduino
Workspace Show Ch Save File
Problem Statement:

Two space cars are having trouble moving some boxes. Use the two robots to help out. One car might be heavier than the other. Linkbot (1) is smaller, so it will help the lighter car. Mindstorm (2) will help the heavier car. Given the weight of each car, modify the Text block to write in the correct inequality sign. Then, move the Linkbot and Mindstorm to the correct red dots by modifying the x value of the driveToXY() command blocks. If the two weights are equal, move Mindstorm to the right dot and the Linkbot to the left. Click New Problem for more problems.


		
Rubbish bin
Time