Modular Robotics cubelets robot blocks Getting Started Manual Download Page 5

© Modular Robotics, 2016 www.modrobotics.com

Page 5

6. How Numbers Flow

The arrow shows the flow of a number from 
the Brightness Sense block to the Flashlight 
Action block. 

Each black Sense block senses some property 
of its surroundings and turns it into a number. 
Each Sense block tells its number to all its 
neighbors. You can see them “talking” as 
the green lights on each block flicker. (The 
Bluetooth flashes different colors.)

For example, the Knob Sense block senses 
how much you rotate its knob. When you 
turn the knob all the way counterclockwise 
(left), the Knob Sense block produces a small 
number. Turn it clockwise, to the right, to 
produce a big number.

The Brightness Sense block senses how light 
the room is. In a dark place, the Brightness 
Sense block produces a small number. In 
a light place, the Brightness Sense block 
produces a big number.

Each Action block takes numbers from its 
neighbors and turns the numbers into an 
action.

The Flashlight Action block takes a number 
and lights its lamp. A big number makes 
the lamp bright. A small number makes the 

lamp dim. Think of the number as hopping or 
flowing from one block to the next. Numbers 
are flowing through the blocks of the robot 
from Sense blocks to Action blocks all the 
time. That’s what makes the robot behave 
the way it does.

Numbers don’t flow through Sense blocks. 
Each Sense block produces its own number, 
so it doesn’t pass numbers from its 
neighbors.

Summary of Contents for cubelets robot blocks

Page 1: ...1860 38th St Boulder CO 80301 www modrobotics com Getting Started Guide...

Page 2: ...hat Cubelet Others have six connection faces and their function is indicated by their color Every Cubelet has a small LED light in one corner When the Cubelet is part of a robot and the robot s Batter...

Page 3: ...the Dimbot s Distance Sense block Put a Brightness Sense block in its place You still have a flashlight robot but now its brightness depends on the light around it Test it Cover the Brightness Sense b...

Page 4: ...k Now your robot has a Brightness Sense and a Drive block and of course a Battery block This robot moves when it senses light In a bright room it s a fast robot In a dark room it s a Slowbot Try more...

Page 5: ...lockwise to the right to produce a big number The Brightness Sense block senses how light the room is In a dark place the Brightness Sense block produces a small number In a light place the Brightness...

Page 6: ...e blocks If there s a lot of light the Bar Graph Action block will show a full bar and the Drive Action block will move fast If there s not much light the Bar Graph Action block won t light much You d...

Page 7: ...bot s behavior 9 Stability Some robots are more stable than others These robots all have a Distance Sense block and a Drive Action block but the differences in their assembly produce different behavio...

Page 8: ...at the bottom next to the Drive Action block Any block will do but try one of the green blocks either a Passive block or a Blocker block Notice that you can build this Gobot in different ways If the D...

Page 9: ...block and the brightness of the Flashlight Action block Build a simple Gobot with a Brightness Sense block and a Drive Action block It goes when it senses light Add a Speaker Action block Now it goes...

Page 10: ...red Inverse Think block 12 The Inverse Think Block To make a Nightbot light up when it s in a dark place you need a Red Inverse block Ooops This robot as pictured is wrong Can you figure out why Let...

Page 11: ...er and a small number into a big number When we put the Inverse Think block into the robot numbers pass through it from Sense block to Action block When the Brightness Sense block senses a lot of ligh...

Page 12: ...go fast In bright light the Brightness Sense block produces a big number which the Inverse Think block inverts to a small number so the Drive Action block moves slowly or not at all 13 Differential Dr...

Page 13: ...neither Distance Sense block senses an object Put one hand in front of each Distance Sense block They will both produce a high number The Bar Graph Action block shows a high number Now put your hand...

Page 14: ...an test this using the Bar Graph block Build a robot with the two Distance Sense blocks on either end and two Passive blocks between them Add a Bar Graph Action block to one of the Passive blocks Now...

Page 15: ...ve Gobot just has two blocks a Brightness Sense block and a Drive Action block plus a Battery block The number from the Brightness Sense block tells the Drive Action block how fast to go A brighter li...

Page 16: ...se block With the Minimum Think block the Knob Sense block acts like an on off switch 17 Use the Blocker Block to Separate Two Parts of a Robot The dark green Blocker Think block passes power but does...

Page 17: ...ion block and a Flashlight Action block The Flashlight Action block spins when you turn up the Knob Sense block When light from the spinning Flashlight Action block strikes the Brightness Sense block...

Page 18: ...old Cubelet doesn t seem to have any effect That s because we ve set the Threshold value at a low number so any number above the Threshold value 0 will pass on from block to block If you turn the Thre...

Page 19: ...s the IF THEN block Or Which block is the CPU We understand the questions but that s not how Cubelets work Building robots with Cubelets is different from the procedural programming in C Java or BASIC...

Reviews: