Difference between revisions of "Soundbeam Chords (Arduino)"
(2 intermediate revisions by the same user not shown) | |||
Line 17: | Line 17: | ||
---- | ---- | ||
+ | |||
+ | |||
+ | [http://media.wpi.edu/Academics/Depts/HUA/Manzo/Soundbeam%20Chords/SoundBeam_Chords.zip Source Files] | ||
+ | <mediaplayer>http://media.wpi.edu/Academics/Depts/HUA/Manzo/Soundbeam%20Chords/soundbeam.mp4</mediaplayer> | ||
+ | |||
+ | |||
+ | '''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. |
Latest revision as of 09:38, 18 October 2013
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.