Pages: [1]   Go Down
Author Topic: Help with Sharp IR Sensors  (Read 616 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 6
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Recanati (MC)
Offline Offline
Jr. Member
**
Karma: 0
Posts: 83
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 6
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Recanati (MC)
Offline Offline
Jr. Member
**
Karma: 0
Posts: 83
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

i would share my midi library with you, but it's written in italian smiley-razz
do you want it anyway?
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 6
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Pages: [1]   Go Up
Jump to: