Presentation is loading. Please wait.

Presentation is loading. Please wait.

Using the Colour Sensor

Similar presentations


Presentation on theme: "Using the Colour Sensor"— Presentation transcript:

1

2 Using the Colour Sensor
LESSON 07 Using the Colour Sensor

3 Lesson Introduction The purpose of this lesson is to introduce students to the Colour Sensor and how to use it in a program.

4 The Colour Sensor Learning objective: Students will understand how the Colour Sensor works

5 Fitting the Colour Sensor
Learning objective: Students will understand how to attach the Colour Sensor to the Basebot Task 1: The build – Fitting the Colour Sensor Fit the Colour Sensor in the front position as shown on the picture here This can be done using four of the 1x1 connector pins Once in position on the robot, connect the Colour Sensor to the Brain using a Smart Cable of appropriate length. Fit the Colour Sensor Cable into Port 3 of the Brain Fit the Touch LED in the top position as shown on the picture here using four of the 1x1 connector pins. Once in position on the robot connect the Touch LED to the Brain using a Smart Cable of appropriate length. Fit the Touch LED cable into Port 5 of the Brain

6 Colour Sensor Test Task 1: Using the ‘getColorName’ command
Learning objective: Students will be able to program the Basebot using the Colour Sensor and ‘getColorName’ command Task 1: Using the ‘getColorName’ command Complete the Task 1 experiment changing the Colours the robot is attempting to detect. How might you be able to use this colour recognition ability?

7 Programming using ROBOTC
Learning objective: Students will be able to program the Basebot using the Colour Sensor and ‘getColorName’ command

8 Garage Parking Challenge
The challenge: On a flat surface set up side by side 3 different coloured garages that have enough space for the Basebot to park in. You need to create a program using the Colour Sensor that allows the Basebot to drive down the front of the garages and park only in green garage.

9 Garage Parking Challenge
The build – Fitting the Colour Sensor Fit the Colour Sensor as shown on the picture here This can be done using four of the 1x1 connector pins and one of the Worm Brackets. Once in position on the robot, connect the Colour Sensor to the Brain using a Smart Cable of appropriate length. Fit the Colour Sensor Cable into Port 3 of the Brain

10 Garage Parking Challenge
Sample Solution

11 Lesson - Plenary As a class, let us consider the following questions?
A. How does the Colour Sensor work? B. How many colours can the sensor detect? C. Did the sensor detect all the colours we tested? What might affect the accuracy of the Colour Sensor? D. Where else might the use of a Colour Sensor be useful?

12 Summary Today you have:
Learning objective: Students will understand how the Colour Sensor works. Students will understand how to attach the colour sensor to the Basebot. Students will be able to program the Basebot using the Colour Sensor and ‘getColorName’ command. Students will be able to design a program for the Basebot to take part in the Garage Parking Challenge. Today you have: Learnt how to control the robot using a Colour Sensor Looked at how Colour Sensors can be used to help program robots Programmed the Basebot using the ‘getColourName’ command


Download ppt "Using the Colour Sensor"

Similar presentations


Ads by Google