Part 1 Objective
After you upload the program, Codey's screen displays the output value of the gear potentiometer.
Part 2 Preparation
-
Codey (robot controller) 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.
Part 3 Programming
Use the gear potentiometer value block in Sensing blocks and the show ( ) block in Looks blocks, and click Upload to display the output value of the gear potentiometer in real time.
Part 4 Practice
-
Roll the gear potentiometer and see if the value changes.
-
Use the gear potentiometer together with other modules mentioned in the preceding cases to control the display of light intensity, sound volume, and sound frequency.
Comments
Please sign in to leave a comment.