<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Guys, <br>
<br>
Still working on the sysex arduino sketch for my JD-990. (which
sounds awesome, and indeed, the vintage card has some cool sounds,
thanks James!)<br>
<br>
I have a question...<br>
I have an arduino program that reads 32 digital inputs with a
shiftIn function. See attachment. <br>
I end up with 4 bytes.<br>
The values I should see are like this:<br>
2 bits per encoder<br>
Sequence CW rotation:<br>
00 10 11 01<br>
Sequence CCW rotation:<br>
00 01 11 10<br>
But between each step I see 11, as this is the value when the
encoder is not turned.<br>
Now, how does one cope with this behaviour? <br>
Should I only check for the 10 -> 01 or 01 ->10 transitions?
Am I not loosing too much accuracy this way? (I can test this pretty
easy I think, but I thought I ask first.)<br>
The same question for reading the push buttons (encoders, all read
into byte 3). They transmit a 1 all the time, only a 0 when
pressed. (so this is easy, I just check for 0's and change the value
(on to off or off to on) when a 0 is present.)<br>
Keep in mind that the serial print of the attach sketch takes some
time, so some values are not displayed. I use a 74HC165 as shown on
the ucapps website. <cite>www.<b>ucapps</b>.de</cite><br>
I'm not a programmer, so maybe my code is to complex for what I'm
doing. If this is the case I'd like to hear this.<br>
<br>
Any pointers appreciated!<br>
<br>
Next step is to calculate "pot" values and calculate the sysex
string and put it in a buffer. I guess I have to go from using bytes
to arrays at this point....<br>
I hope to get this done this weekend. If all goes well I hope to
have something working by the end of this year ;-)<br>
<br>
Cheers,<br>
ToAd<br>
<br>
</body>
</html>