Convert analog input from Arduino into sounds

Feb 19, 2013 at 11:59pm

Convert analog input from Arduino into sounds

I’m trying to make my Arduino Uno to generate different sounds based on input data from an accelerometer(ADXL335). I am able to read input using standard firmata/Maxuino test but honestly I do not know where to go from there (I’m relatively new to both IDEs).

Any hints regarding how to set up / fun things I could try out would be greatly appreciated.

Thank you for your time,

Vikash

#66615
Feb 20, 2013 at 12:27am

try this

– Pasted Max Patch, click to expand. –
#239751
Feb 20, 2013 at 1:04am

Hi Balam, thanks for the quick response! I’m not so sure how to add objects for reading serial and analog input, Is it simply a matter of copying from another patcher?

#239752
Feb 20, 2013 at 1:10am

best way to learn is to play with.
is not easy but very rewarding
post you max patch.

#239753
Feb 20, 2013 at 1:23am

Here’s what I have so far:

– Pasted Max Patch, click to expand. –
#239754
Feb 20, 2013 at 1:26am

thanks
would be possible to do

copy compress
then paste.

#239755
Feb 20, 2013 at 1:32am

Haha, I’ve just figured that out. Sorry about that!

#239756
Feb 20, 2013 at 1:37am

from this you can figure it out.

– Pasted Max Patch, click to expand. –
#239757
Feb 20, 2013 at 1:45am

I think I must’ve copied in the serial/analog read incorrectly, it’s not reading the analog input when I select the correct port at all anymore, though I really appreciate the help!

I know what I did wrong earlier with that patch (not linking any of the analog pins to the patch you sent me earlier) so I’ll play around with that once I get it working again.

#239758
Feb 21, 2013 at 4:14pm

Here’s part of my updated patch, I’ve managed to get serial input working just fine, I’m just trying to get the accelerometer (x axis) it to trigger off the MIDI note below but Im not sure how to do that. any hints would be greatly appreciated!

– Pasted Max Patch, click to expand. –
#239759

You must be logged in to reply to this topic.