Case 14 - Voice-Activated Music Light

Part 1   Objective

After you upload the program, the brightness and number of LEDs lighting up on CyberPi change with the loudness detected by the microphone in real time, allowing you to control the LEDs with music.

28.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.

29.gif

30.gif

Part 3   Programming

1. Change the brightness of the RGB LEDs by changing the loudness.

31.gif

2. Change the number of RGB LEDs lighting up by changing the loudness.

32.gif

Part 4   Practice

Play a piece of music and see what happens.

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

Comments

0 comments

Article is closed for comments.