Soundbeam Chords (Arduino)

From vjmedia

The Soundbeam Chords plays different chords depending upon the movement detected by the Ping))) Ultrasonic sensor. The sensor is connected to the Arduino Uno board which sends digital pulses to the sensor and measures how long did the waves take to reflect from a surface and come back. This unit of time then can be used to calculate the distance. The Arduino Board was programmed to convert the time into distance and send the data to the computer using serial port. Any software can have access to this data from the serial port. The setup and example code for using the sensor can be found here. The MaxMsp was used to build a program that converts the data received from Arduino into musical chords. Serial object that is present in the MaxMsp reads the data which is then connected to a pre-built module from EAMIR SDK[[1]].


Hardware:

-Mac or PC -Arduino Uno Board(or any other) -Ping))) Ultrasonic Sensor

Software:

- Arduino Software, Download here - MaxMsp - EAMIR SDK for Mac or PC, Download here



Source Files The media player is loading...


Notes: Arduino and MaxMsp do not share serial port simultaneously. In order for it to work, upload sketch to the board. Close Arduino software then disconnect the board. Connect it again, then open MaxMsp patch and run the program. MaxMsp will not read serial if you connect Arduino after you open MaxMsp.