List of all algorithms

Download the archive

Download the algorithms here → 72 ready-to-use algorithms with flowcharts


Algorithm list

No.NameRequired sensors and actuators
1Cautious pedestrianUltrasonic distance sensor (1); motors (2)
2ExplorerUltrasonic distance sensor (1); motors (2)
3Finding the way out of a mazeUltrasonic distance sensor (1); motors (2)
4Lost childUltrasonic distance sensor (1); motors (2)
5“Ultraphone” musical instrumentUltrasonic distance sensor (1); speaker/buzzer (1)
6“Ultraphone 2” musical instrumentUltrasonic distance sensor (1); button (1); speaker/buzzer (1)
7GuardUltrasonic distance sensor (1); speaker/buzzer (1)
8AlarmUltrasonic distance sensor (1); speaker/buzzer (1); button (1)
9Crane (lowering)Ultrasonic distance sensor (1); motor (1)
10SprinterIR sensor (1); motors (2)
11Superstitious robotMotors (2); IR sensor (1)
12Alternate motor control from an IR sensorMotors (2); IR sensor (1)
13Street lampLight sensor (1); LED (1)
14AutopilotLight sensor (1); motors (2)
15Alarm clockLight sensor (1); speaker/buzzer (1)
16IndicatorLight sensor (1); LED (1)
17Attacking defenderExternal encoders (2); motors (2); ultrasonic distance sensor (1)
18Crane (lifting)Motors (2); touch sensor/button (1)
19Timid robotMotors (2); analog sound sensor (1)
20“Who is faster?” gameButtons (2); LEDs (2)
21Double elevator liftTouch sensors/buttons (2); motors (2); encoders (2)
22Button-operated lifting mechanismButtons (2); motors (2); encoders (2)
23“Triangle” trajectoryMotors (2); encoders (2)
24“Square” trajectoryMotors (2); encoders (2)
25“Hexagon” trajectoryMotors (2); encoders (2)
27Magic wandSpeaker/buzzer (1); tilt sensor (1)
28Mountain climberMotors (2); tilt sensor (1)
29Careful driverMotors (2); vibration sensor (1)
30RattleVibration sensor (1); speaker/buzzer (1)
31Museum guardVibration sensor (1); speaker/buzzer (1); motor (1)
32Timid mouseSound sensor (1); motors (2)
33PuppySound sensor (1); motors (2)
34Volume indicatorSound sensor (1); LEDs (3)
37Color arrow indicatorColor sensor (1); servomotor (1)
38Color keyColor sensor (1); servomotor (1); motors (2); speaker/buzzer (1)
42Construction levelAccelerometer/gyroscope (1); servomotor (1)
51Display the magnetic-field sensor readingMagnetic-field sensor (1); display (1)
52RangefinderDistance sensor (1); display (1)
53Display position coordinatesGyroscope/accelerometer sensor (1); display (1)
54Light-level indicatorLight sensor (1); display (1)
55Color repeaterColor sensor (1); display (1)
58Motion informationExternal encoders (2); display (1)
59SpeedometerExternal encoders (2); display (1)
60Magnetic analyzerMagnetic-field sensor (1); speaker/buzzer (1)
65Press counterButton (1); display (1)
66Combination lockButtons (4); servomotor (1)
67Black-stripe counterIR sensor (1); display (1)
6820-second timerEncoder (1); motor (1)
69Emotional colorsColor sensor (1); display (1)
70Speedometer (m/s) for a 4.5 cm wheelExternal encoders (2); display (1)
71Speedometer (m/s) for a 6.5 cm wheelExternal encoders (2); display (1)
72Follow a black line with 2 IR sensorsIR sensors (2); motors (2)
73Follow a black line with 3 IR sensorsIR sensors (3); motors (2)
76Remote controlRemote control (1); IR receiver (1); motors (2)
77Remote-controlled pianoRemote control (1); IR receiver (1); speaker/buzzer (1)
78Remote-controlled servomotorRemote control (1); IR receiver (1); servomotor (1)
79Remote switchRemote control (1); IR receiver (1); LEDs (3)
80Six-speed carRemote control (1); IR receiver (1); motors (2)
82Sound-level meterSound sensor (1); LEDs (3)
83Color analyzerColor sensor (1); LEDs (3)
84Rotate clockwise in a circleMotors (2)
85Rotate counterclockwise in a circleMotors (2)
86Move forward for 10 secondsMotors (2)
87Move forward for 5 secondsMotors (2)
88Move backward for 10 secondsMotors (2)
89Move backward for 5 secondsMotors (2)
90Spiral movementMotors (2)
91BeaconLEDs (2)
92Tilt indicatorAccelerometer/gyroscope (1); LEDs (2)
94AcceleratorMotors (2)
95Accelerated reverse movementMotors (2)
98SwingMotors (2)
99Color lockColor sensor (1); servomotor (1)