Software Python: a programming software that supports multiple external applications - Interprets signals from proximity sensors. - Measures distance to determine drum set sound. - Communicates sensor readings to Pure Data. Pure Data (Pd) extended: a graphical programming software (objects are connected into patches) - Imports and generates the drum sound profiles, then plays them. Procedures 1. We connected the sensors to our Raspberry Pi with a few circuits. 2. We programed in python to interpret the data from the sensors and calculate the distance. 3. We downloaded WAV sound files for the instruments and imported them into Pd. 4. We programmed patches in Pd to read the sound files. 5. We connected Pd with python using a port in the Raspberry Pi. 6. We coded the sensors in python to play specific drums in designated areas. 7. We created a stand for all of the sensors. CocoBongo By: Valerie Chen, Coco Chou, Amelia Whitworth Statement of Purpose The purpose of our project is to create a portable, virtual drum set using proximity sensors. The sensors will be sectioned off into specific areas that play certain programmed drum set sounds as the sensors detect hand motions. Using this virtual technology, one can play drums anywhere. Project Goals & Guidelines The goals of this project are to utilize our learned knowledge of programing software languages and hardware circuits, and to create a product that combines music and technology.. Abstract CocoBongo is a virtual drum set controlled by a series of proximity sensors. These four sensors are mapped out into nine drums in a similar layout to a real drum set. We coded this drum set on a Raspberry Pi using the programing languages of Python and Pure Data. The result is a drum set with many different sounds that one can take wherever he/she goes. Raspberry Pi 2: a microcontroller where we run our programs. Hardware Breadboard: a device that allows for quick circuits to be made without soldering. Proximity sensors: detect distance from an object by emitting ultrasonic waves and the time it takes for them to be reflected back. - Detect user s hands coming down and react by playing a drum sound. - Sectioned off into specified regions for different drums, based on the positions in a real drum set. Speaker: emit drum sounds; also able to connect to headphones. Code
Statement of Purpose Portable, virtual drum set Proximity sensors Nine different drum sounds RIDE CYMBAL MID TOM LOW TOM HIGH TOM SNARE DRUM CRASH CYMBAL HI HAT RIMSHOT BASS DRUM RIMSHOT 2
Project Goals and Guidelines Utilize knowledge learned throughout the course Hardware Programing languages Produce a product combining music and technology 3
Software Python Interpret proximity sensors Measure sections for each drum sound Send sensor readings to Pd Pd-Extended Import and generate drum sound Communicate with Python 5
Hardware Raspberry Pi Breadboard Proximity sensors Ultrasonic waves Detect which section is blocked Sound Speakers Headphones 6
Procedures 1. Connected sensors to Raspberry Pi 2. Programmed Python to read sensors 3. Downloaded WAV sound files for drums 4. Imported sounds into Pd and programmed them to play 5. Connected Python (sensors) with Pd (drums) 6. Mapped out drum set positions 7. Created a stand for sensors
Code 8
Thank You! 9