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.


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.

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 0 found this helpful



Please sign in to leave a comment.