en when i connect myself to the 0V it stays at 127
hmm… I don’t understand that part ;D
I thought it works if the LTC is not connected (0 + 127): For a button, this would be the expected behaviour. Now when you connect the LTC you only get 127, is that right?
That means the error should be at the LTC or the DIN-module or the optocoupler.
I connected the input of the other 3 schift registers with a wire to the output. Is this correct?
The DINx4 modules have to be chained. That means: Core J9 –> J1 DIN#1 J2 –> J1 DIN#2
What I meant was to leave out the first DINx4 module to see if the error is located at the second DIN.
Can you make a photo and attach it?
In the meanwhile you could go through all the wirings and check them against the plans available @ uCApps.de; I think it sounds like a wiring issue…
This will not work. And if it works, I’d be astonished.
You need a capacity based touch sensor circuit (search for “Quantum QProx QT113”) or if you want to stay connected while touching: a skin resistance circuit. Last one is probably the easiest:
If you measure your skin resistance with a multimeter, you’ll find out, that your skin as about 1 M to 20 M. If you look here: http://www.midibox.org/dokuwiki/doku.php?id=sensors and http://www.midibox.org/forum/index.php?topic=6506.0 you should be able to connect a basic skin restisance sensor. The topic was meant to be used on a AIN, but it’s so easy, I think you’ll be able to adapt it for a digital ON/OFF signal…
However, I’d use a capacity based circuit, because you don’t need to be wired. Just google around a bit and you should find plenty of touch circuits for switches!
Strange thad it works whith the other fellows but not with me!
Well, as you can read on the second page of the topic you are referring to, similar problems like yours occured. I bet it behaves exactly the same if JazzyPidjay would connect an LTC module!
So I think it’s rather a basic construction error:
1- the first problem i have encountered is when i touch a sensor the message 0,127,0,127,0,127… was send in loop to resolve this problem i have simply connect the 0v of the midibox to the ground.
2- ok at this stade, when i touch a sensor it send correctly the values like a button. (but very quickly and intuitively) but when i touch to or more sensors, there’s no more message send or messages are send randomely.
to fix this problem, i simply plug myself with a jack in the belt directly to my skin connected to the ground
Now my body was perfectly at 0v, the computer & the midibox also !! and i can touch 32 or more sensors, without any problem, like a button.
i search a better way to solve this problem, but for now i plug (myself) & play ;D
This all sounds like grounding/shielding issues. Normally the touch sensing pin J14 is used for motorfaders (see “Touch Sensors” on the MBHP MF page: http://www.ucapps.de/mbhp_mf.html ; there’s also a very detailed explanation by TK here: http://www.midibox.org/forum/index.php?topic=1544.0 ). You don’t need to ground yourself to get that working! So either the MB64 application is not configured to use that kind of feature (don’t know that, 'cause I go no MB64) or there is a basic mistake about your implementation of the touchDetection.
Why don’t you use a normal button switch to test if your basic equipment is working; then you could resume experimenting with different touch detection circuits! J14 is not the only possibility to get that kind of feature…
I’m also unsure if J14 is supported for touchsensors in other applications than the LC.
With Midibox LC it is definitly working (for the touchsensors of the motorfaders). But I also have to connect myself to ground before I touch a fader.
You changed the resistors correctly for the Touchsensor-DIN (no 10k resistors there?).
Another thing:
J14 (RD4 on the PIC) sits directly beneath the RX Pin. Have you checked these connections? Is there perhaps a short or something else between J14 and RX/TX. This would be the only “harware” explenation for the LTC / Touch behavoiur.