Quick Start Guide

© Modular Robotics, 2016 www.modrobotics.comPage 18
Construct a Testbot with a Battery, Bar Graph,
and Distance Sensor. The closer an object
is to the Distance Sensor, the higher the
value displayed on the Bar Graph Cubelet.
Now, place the Threshold Cubelet between
the Distance Sensor and Bar Graph. Set the
Threshold value to the lowest setting. You’ll
notice that the Threshold 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 Threshold Knob up to about 50
percent, you’ll notice that numbers below the
halfway mark don’t appear on the Bar Graph
display. Once numbers from the Distance
Sensor exceed the Threshold value, you’ll
notice that the Bar Graph display will show
values normally.
You can adjust the Threshold Cubelet settings
to create robots that respond suddenly or to
build binary behaviors.