hi
i will start a new thread about the Sharp GP infrared sensor.There is already a good starting point in this thread
http://www.midibox.org/forum/index.php?topic=5270.60
but i decided to start a new topic in this section because it is not about C programming anymore
I plan to keep uptodate this thread with my work around the GP sensor.
My enviroment is OSX (but i will try to give good hints to PC users as well) and a custom MB64E, on this box i ve got connectors (stereo mini jacks) for 4 digital inputs and 1 analog input, i am using the analog input to connect the GP sensor, when i don use the senso i can connect a modified Alesis floor board.
Right now i am using the sensor with the following modification
a) 1 capacitor 2200 microFarads and a bypass cap 0,1 microFarad (no pol) between
Vin and Ground right close to the sensor.This will smooth the signal and bring the
jittering down to 1 or 2 values.
b) i ve modified the MIOS_AIN_DeadBandSet parameter to 3e (i plan to use a
smaller i think it is possible) NOTE: bigger values will lower the resolution.This is
stopping the jittering.
c) i use a program called MidiPipe (http://homepage.mac.com/nicowald/SubtleSoft/)
to scale the range, use the Control Split tool and set the Limit to 0-81 (it can vary
a little depending on your supply, connections etc, just use the maximum MIDI cc
value you get from the sensor) then set the Scale parameter to 0-127 (default)
IMPORTANT: you have to one Control Split tool for every CC sent by the sensor
if you have different banks/groups
c) for PC users: download MIDIOX http://www.midiox.com/ you will easily find out
how to scale the CC values
NOTE: remember to use shielded cable !!! brighter illumination where you use the sensor will improve the jittering problems
Now so far we ve got a first solution not really so elegant but functional.
I am working around an hardware circuit to stabilize the sensor s output and decrease the impendance.
Here a first schematic attached
R1 35k (or the closest value 34?)
R2 10k
R3 22K
R4 50K trimmer (at 44k should double the output)
J1 to the sensor (follow the pin numbers as for GP)
J2 to the box
IC A and IC B is NOT LM358 as described in the schematic, i am looking for Opamps that accept an asymmetrical supply, maybe OPA350? The first stage will lower the impendance so the second stage will perform the scaling stuff with no gain problems
IMPORTANT: this is not a verified circuit, you are very welcome to try it but no guarantee at all.I am not an electronic expert i am trying to figure out this schematic but i need help out there!!!
I have a candidate: LM324 it s a quad Opamp anc could be used for 2 sensors
I recalculated the resistors values and there are some mistake i will post the new schematic

