I want to expand from my I/O assignment - adding sound and visual effects in p5.js
As the light is turning on in sequence, each light is generating a different note. Since there are 8 LEDs, I was thinking I could make them an octave in C Major - do re mi fa so la ti do.
I was actually thinking to do the sound/tone part with the Arduino speaker but I did not like the sound of it, plus it could only generates a single tone. So then I decided to program the sound in p5.js and also incorporate some visuals.
Visual idea: having single-color bubbles flowing and bouncing on the canvas when nothing is triggered. When a LED lights up (a note comes with it), there is a bubble popping on the screen with a distinct color. The 8 LEDs (or notes) will associate with 8 different-colors' popping bubbles.
BOM:
- breadboard, Arduino Nano 33, wires
- 1 potentiometer, 8 LEDs, 8 220-Ohm resistors
- programming in Arduino and p5.js
(don't need to order extra stuff)
Back to Top