Go Down

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

ncoop4

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

HCPUNK

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.

ncoop4

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.

HCPUNK

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

ncoop4

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

Go Up