Case 2 - Control the LEDs

Part 1   Objective

After you upload the program, the RGB LEDs blink and light up one by one.

7.gif

2.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 or web version), connect CyberPi, and select the Upload mode.

3.gif

4.gif

Part 3   Programming

1. When you turn on mBot Neo, the RGB LEDs are on and off alternatively.

5.gif

2. When you turn on mBot Neo, the RGB LEDs light up one by one.

6.gif

Part 4   Practice

  1. Try to change the color of the LEDs.
  2. Try to change the blinking frequency of the LEDs.
  3. Try to change the light-up sequence of the LEDs.
Was this article helpful?
3 out of 5 found this helpful

Comments

1 comment

Article is closed for comments.