We next add the difference or
"BDiff" to a variable called "BTotal."
This is an important step, as we
use BTotal to determine the total
movement of the motor.
Eventually, if the motor has moved
forward, say 60 degrees (this means
BTotal will be set to 60), we'll tell
Isotope to extend its actuator until
that 60 reaches a number less
than five, while subtracting three
from it every time the My Block is
run. In this case, it will take just
under two seconds for Isotope to
stop moving his actuator (1.9
seconds = 19 runs of the My Block;
19* 3 = 57; 60-57= 3 and three is less
than five, which is our threshold for
Hey all! Many of you know I run a small business called Techsplosion
bringing hands-on science (LEGO Robotics included!) to kids of all ages.
Well, business has been booming lately, and in a bittersweet discussion
with Robin, the fantastic Associate Publisher for SERVO and Nuts& Volts,
I've decided to switch to publishing The NXT Big Thing every other month,
so I have more time to dedicate both to Techsplosion and to The NXT Big
Thing (without freaking out and missing deadlines. Huzzah!) So, we'll still
be around, but we'll switch to an every other month publishing schedule.
In the meantime, if you're a Bay Area resident and want to get your LEGO
fix, check us out at Techsplosion.org Greg
SERVO 02.2012 73