Case 26 - "Chameleon"

Part 1   Objective

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

74.gif

Part 2   Preparation

  • CyberPi-installed shield (powered on) x 1

  • Built-in quad RGB sensor

  • USB cable (Type-C) x 1

  • Computer with network access x 1

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

75.gif

76.gif

Part 3   Programming

Add Quad RGB Sensor from the Extension center, and then program with the blocks added.

77.gif

Part 4   Practice

Try to use other features of the quad RGB sensor. The sensor also appears in other cases.

 

 

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

Comments

0 comments

Article is closed for comments.