Go Down

Topic: Help with Sharp IR Sensors (Read 832 times) previous topic - next topic


I am trying to do a project using the Sharp GP2Y0A21YK0F infrared sensor. The project uses the sensors to play musical notes. I don't have much experience programming and would like some help with how to use the sensors, and possible extra hardware to connect the sensors to my Arduino Uno and for plalying music


hi! i've never used one of those sensors, but here http://www.planetarduino.org/?cat=284 i've found that they have a standard SUPPLY-GROUND-OUT pinout configuration, so you just need to connect the power supply to the arduino one or to +5V, the ground to the arduino ground anche the last pin to an arduino analog input, then it's all up to the software. one more thing: you want to use this sensor to make a tone proportional to the distance (like a theremin) or to trigger notes (like the light beams used by kraftwerk in their "radioactivity")? these are both interesting ways to use that sensor.


I'm looking into using both if possible. I have four of the sensors. My ideal project uses each sensor for a note, and then an octave below if you go lower or lower if you go down. I want to make it really easy to use and try to avoid as many dissonant note combinations as possible. I would still appreciate more info with the music itself, if I need a midi shield or something like that.


i would share my midi library with you, but it's written in italian :P
do you want it anyway?


I would appreciate that. How do you use the midi library to create the sounds?

Go Up

Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

via Egeo 16
Torino, 10131