Just printed a small violin from Thingiverse (https://www.thingiverse.com/thing:515900) and used a paper stripe with different colors to make a scale. Made it work using the color sensor from Lego Spike and the music extension to get the right tones.

Colors and sounds are similar. They are both associated with waves. Let’s see how that works! Atoms look like hotels. Protons and neutrons hang out in the lobby. Electrons sleep in the rooms. The first floor (orbit) has 2 rooms with single beds (1s2). The second floor has 2 rooms with single beds (2s2) and 3 rooms with 2 beds each (2p6). The higher the floor the more energy the electron must have to be there. Sometimes electrons jump from floor to floor. When they go closer to the lobby they release energy.
The energy released by electrons goes out of the atom as a wave. Waves with more energy “cycle” faster through space. Different sensors catch different frequencies. Sounds detected by our ears are “low” frequency. Our skin is sensitive to heat, which is “medium” frequency. Our eyes detect “higher” frequencies, which is light! Light, heat and sound are all the same: energy as in the spectrum below.

All colors are “inside” white light, like the light that comes from the sun. Different colors have different frequencies. Red is lower, and blue is higher. Our eyes are sensitive to Red, Green, and Blue (RGB), and we can make all the other colors by combining these ones. Cameras work the same way. They have phototransistors that allow current to flow when they catch red, green, or blue. Here is a circuit to do this using Arduino. I still do not know how to code the Arduino, my father did that part! Anyhow, the Spike lego camera works in the same way and catches the different colors stripe of the violin!
