Case 19 - Color Identification

Case 19 - Color Identification

 

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, web version, or mobile app), delete the default device, click +add, select Codey from 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?
0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.