Block5 tutorials

Projects with Blocks

Put it all together in complete block projects: alarms, games, light shows, and autonomous robots.

Motion Alarm

IntermediateBlock

Build a working motion alarm using the HC-SR04 distance sensor. When something moves within range, the RED LED lights and the buzzer sounds. Adjust the sensitivity with a distance threshold.

DistanceHC-SR04AlarmLEDBuzzerProjectIntermediate

Reaction Time Game

AdvancedBlock

Build a reaction time game. A random wait ends when the GRN LED turns on — press Switch A as fast as you can! Your score (lower is faster) appears on the OLED.

VariablesRandomSwitchesOLEDGameProjectAdvanced

Sound + Light Show

IntermediateBlock

Choreograph a light and sound show using all three LEDs and the buzzer. Design a repeating sequence that combines colour changes with musical tones.

LEDBuzzerSequenceTimingProjectIntermediate

Line Follower

AdvancedBlock

Program your robot to follow a dark line on a light surface using the two TCRT5000 line sensors. The robot steers by adjusting motor speeds based on which sensor detects the line.

Line SensorMotorsSteeringRobotProjectAdvanced

Obstacle Avoider

AdvancedBlock

Program your robot to navigate a room on its own. It drives forward until the distance sensor detects an obstacle, then reverses and turns to find a clear path.

DistanceMotorsAutonomousRobotProjectAdvanced