Introduction: A Song of Georgia Tech
There are numerous ways we could use to document Georgia Tech, for example taking photos or video record the campus. But is there an alternative method to record the atmosphere as a whole? In a nutshell, our project hopes to use the value of light as the parameters and convert them into the music note pitches, the device could realize a double channel music output depending on the lightness change of the environment. In this way, a song dedicated to Georgia Tech is composed.
Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.
Step 1: Overall Device Mechanism:
- Arduino board read the values fetched by the sensors
- Analyze the data of the environment to make suitable mapping algorithm
- Mapping them to suitable values
- Set appropriate delay time to make tempo
- Tune the sounds created by different sensors by adjusting the tone frequency
- Use the values to create music tracks
- Here comes the music!
Step 2: Preparation
The following materials and tools are required for the project:
- One Arduino UNO
- One Bread board
- One 10k-ohm Resistor
- Two 330-ohm Resistors
- One Photoresistor
- One Adafruit TSL2561 Digital Luminosity/Lux/Light Sensor
- One Active Buzzers × 2 Hook-up wires
- One Battery Clip with Male DC Plug
- Some 9V Batteries
- One USB cable to connect the arduino to the computer
- One SD card shield(optional)
For Case (optional):
- One Pencil Case
Two Velcro Straps
- Solder irons (optional)
- Cutter (optional)
- Scissors (optional)
Go to grab the needed materials, and you can always be creative and use the available resources for substitution if possible. SD card shield is an optional device to store the data for later music manipulation. Other methods like serial port data transfer or WIFI shield for cloud data storage are also possible options. If other environment parameters, such as temperature, humidity, air pressure, stand as characteristics of your testing sites, try to use the corresponding sensors to develop your own devices.
The case is to make the device portable and stable. You could also design your own case with your own creativity.
Step 3: Wiring
To make the wiring step and possible debugging process easier, connect the parts separately and test them individually, which may save you much time.
TSL 2561 could be replaced by another photoresistor if needed. The 330-ohm resistor is used to limit the current to the buzzer. Adjust the resistance in specific case.
Step 4: Coding
If you have not installed the arduino software, please download it here.
The coding part is mainly divided into three parts: sensor setup, sensor data retrieving and mapping sensor data to sound.
When trying to figure out how to make multi-channel sounds, the tone library created by Brett Hagman was partially used as a reference.
The codes of the algorithm of mapping data to sound notes fit the environment of Georgia Institute of Technology. It may need some changes when applied to a new project. By developing a dynamic mapping function that using the data range as parameters, it became easy to flexibly adjust the mapping algorithm to different environments and weathers. In this case, customizing the tempo and rhythm of the music piece is realized pretty well.
Code download: https://github.com/cvcv101wh/musicOfGatech.git
Extra Libraries Needed:
Tone (third-party library): https://learn.adafruit.com/tsl2561/use
(If you do not know how to install an additional library, more information can be get here: https://www.arduino.cc/en/Guide/Libraries)
Extension: It is also possible to use the changes of temperature, humidity and/or other environment parameters to create more music tracks.
Step 5: Making Case
To make a case, we have to keep in mind that the case can not reduce the light exposure and the buzzer volume. It is the principle that should be followed when you are designing the layout of the case.
The steps are shown below.
- Use pencil to make note to cut off the undesirable parts exactly.
- Cut holes on/beside the buzzer, light sensor and power jack.
- Cut four gaps for the straps to go through (two gaps for each strap).
- Fix the straps by move them through the gaps.
- Stick the parts in the case.
Step 6: Conclusion
This project tries to convert geographical information into audio information to create a specific song for a certain place, path or road. It uses the change of environment lightness level to make a two-channel song which applies a dynamic lightness mapping algorithm. With a case, this device could be portable and translate the environment information lively.
It could be useful for visually impaired people who cannot receive such information by eyes. As long as they distinguish a specific sound pattern, they could know what place they are at present.
For further application and replication of the experiment, sensors of all sorts could be added to the Arduino boards to mix the inputs of different parameters into a single output. For example, a wind speed sensor and a light sensor can be combined to produce the output of sonification. In this way, the atmosphere is better recorded and analyzed.In addition, as mentioned in the previous sections, the light sensors in our examples can be replaced by sensors of all sorts to suit the scenarios.