Case 4 - Light Intensity Detection

Case 4 - Light Intensity Detection

Part 1   Objective

After you upload the program, the screen displays the light intensity detected by light sensor in real time.

7.gif

Part 2   Preparation

  • CyberPi x 1

  • USB cable (Type-C) x 1

    Computer with network access x 1

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.

8.gif

9.gif

Part 3   Programming

  1. Detect the ambient light intensity and display it on the CyberPi screen in real time.10.gif

Part 4   Practice

  1. Find some tools such as flashlight and desk lamp to change the ambient light intensity. See how the value changes!

 

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

Comments

0 comments

Please sign in to leave a comment.