Case 26 - "Chameleon"

Case 26 - "Chameleon"

Part 1   Objective

After you upload the program, you can detect the color of an object by using port R2 (the port at the far right) of Quad RGB Sensor, and then the screen of CyberPi displays the color value.

74.gif

Part 2   Preparation

  • CyberPi-installed shield x 1 (powered on)

  • Installed Quad RGB Sensor

  • USB cable (Type-C) x 1

  • Computer with network access x 1

Assemble the above parts, connect CyberPi to the computer by using the cable, open mBlock 5 (PC client, web version, or mobile app), connect CyberPi, and select the Upload mode.

75.gif
76.gif

Part 3   Programming

  1. Add Quad RGB Sensor, and then program with the blocks added.

77.gif

Part 4   Practice

  1. You can try to use other features of Quad RGB Sensor. The sensor also appears in the following cases.

 

 

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.