What’s up everyone?
I am attempting to replace the LDR I have been using for my midi theremin with a maxbotix ultrasonic rangefinder. As with the LDR, I want to use this device to sense where my hand is and select the appropriate midi note.
With the LDR, I was able to map out the notes from 0-1023, and it worked great except I am having trouble getting it to work consistently in environments with different light levels. I’ve tried adapting the calibration example codes on this site but have had no luck.
My problem with the maxbotix device is that its range is about 21 feet. Obviously if I map out my notes across its range of 0-512 I will have to grow much longer arms to access it all. I have managed to limit it to more manageable ranges but when I do so I either end up having it skip many notes and stop detecting where I want it to, or it detects the notes correctly up to where I want it to stop but keeps detecting past that point and detects notes that are no longer in the musical scale that I have programmed.
Any ideas? Hell, if someone can suggest a better way of using the LDRs I’ll go with that, too! Thanks.