EasyManuals Logo

LEGO MINDSTORMS Robots User Manual

LEGO MINDSTORMS Robots
226 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #129 background imageLoading...
Page #129 background image
Page 139
DECIMAL
42 CONSTANT TURNAROUND_TIME
10 CONSTANT NUMBER_OF_SAMPLES
VARIABLE threshold
VARIABLE returnTime
: sensorValue
BEGIN DUP SENSOR_READ 0= UNTIL
SENSOR_VALUE
;
: calibrate
0
NUMBER_OF_SAMPLES 0 DO
2 sensorValue +
1 sleep
LOOP
NUMBER_OF_SAMPLES /
threshold !
threshold @ showValue
;
: forward 7 1 2 MOTOR_SET ;
: spin 7 2 2 MOTOR_SET ;
: stop 7 3 2 MOTOR_SET ;
: armGrab 7 1 0 MOTOR_SET ;
: armRelease 7 2 0 MOTOR_SET ;
: armStop 7 3 0 MOTOR_SET ;
: grab
armGrab
BEGIN 2 sensorValue 100 = UNTIL
armRelease
BEGIN 2 sensorValue 100 < UNTIL
armStop
;
: release
armRelease
BEGIN 2 sensorValue 100 = UNTIL
armGrab
BEGIN 2 sensorValue 100 < UNTIL
armStop
;
: turnAround
spin
TURNAROUND_TIME sleep
stop
;

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the LEGO MINDSTORMS Robots and is the answer not in the manual?

LEGO MINDSTORMS Robots Specifications

General IconGeneral
Product LineLEGO MINDSTORMS
CategoryToy
Age Range10+
Batteries RequiredYes
Memory64 MB RAM, 16 MB Flash
ConnectivityBluetooth, USB
SensorsTouch, Color, Gyro
Battery TypeAA
Interactive FeaturesProgrammable, Remote Control
App CompatibilityiOS, Android
ProcessorARM9
Pieces Count601
Battery Count6
App NameLEGO MINDSTORMS EV3 Programmer App

Related product manuals