Case 19 - Codey Rocky identifies colors

Part 1   Objective

After you upload the program, the RGB LED indicator is lit up in the color detected by the IR color sensor at the bottom of Codey Rocky.

82.gif

Part 2   Preparation

  • Assembled Codey Rocky x 1

  • USB cable x 1

  • Computer with network access x 1

Connect Codey to the computer by using the USB cable, open mBlock 5 (PC client or web version), delete the default device, click +add, select Codey from the Device Library and then click Set as mostly used device in the upper left corner, click Connect, and select the Upload mode.

83.gif

84.gif

Part 3   Programming

Turn the IR color sensor at the front of Codey Rocky to be at the bottom of it. Use Control blocks and Lighting blocks, and click Upload to make the colors detected by Rocky displayed on Codey's screen through the RGB LED indicator.

85.gif

Part 4   Practice

Try to make Codey Rocky identify more colors.

Was this article helpful?
1 out of 2 found this helpful

Comments

0 comments

Please sign in to leave a comment.