Sunday 14 December 2014

FIRST® LEGO® League robotics competition 2014.

This year, sixteen Year 6 to 9 students organised into two teams again participated in the FIRST® LEGO® League robotics competition.  A complete description of the event can be found here.


Conducting intensive preparations in the staging area!



Adapting to high pressure situations in the competition area!


Congratulations to all the students on both teams for the fantastic result this year!

Tuesday 27 May 2014

Project 3 (Year 8) Search and rescue.

In this project I introduce the concept of sensors and explain how they can be combined with actuators to build autonomous systems.  The objective of the project is to program the robot to navigate around a room by itself, avoiding obstacles, until it finds a "victim".  The idea is based on an emergency situation, such as the aftermath of an earthquake, where it might be unsafe for people to search the building themselves.  Below is a picture of the room in question, which I show the students from the start:


I also show the class the four modified robots for this project.  The ultrasonic sensor (top) and light sensor (front) are now fitted and connected to ports 1 and 4 respectively as shown below:


The next step is to demonstrate the use of these sensors.  In the first example I review iteration, or how to create a loop, to flash the lamp.  In the second I show how use selection to detect an obstacle with the ultrasonic sensor and in the third how to use selection to sense a change in the amount of reflected light to the light sensor.


If students have difficulty starting this project, ask them to program the robot to do the following tasks in this order:

1) Move straight forward until it is 50cm from an obstacle, then turn 90 degrees and stop.

2) Navigate around the room while avoiding obstacles using its ultrasonic sensors.

3) Move straight forward until its light sensor detects >50% reflected light, then stop.

4) Navigate around the room while avoiding obstacles and flashing its lamp.  When arriving at the "victim", make a sound and stop.