Jump to content

Recommended Posts

Posted

That looks about right to me.

If you want to check it, maybe see if you can find schems for the other DIY encoders, like rasteri's or sashas. I would assume that you've found the other threads about mouse encoders already, and they didn't have any schems? It would be cool if you could tag them all, so that those threads lead to your answer :)

  • 6 months later...
Posted

I have connected encoder according to the scheme in the second drawing and began to receive such signals from a kernel:

00000000313896 ms | [B0 20 3F] Channel 1: CC LSB 0 (Bank Select) value: 63
00000000313956 ms | [B0 20 3F] Channel 1: CC LSB 0 (Bank Select) value: 63
00000000314016 ms | [B0 20 3F] Channel 1: CC LSB 0 (Bank Select) value: 63
00000000314076 ms | [B0 20 3F] Channel 1: CC LSB 0 (Bank Select) value: 63
00000000314136 ms | [B0 20 3F] Channel 1: CC LSB 0 (Bank Select) value: 63
00000000314197 ms | [B0 20 3F] Channel 1: CC LSB 0 (Bank Select) value: 63
00000000314257 ms | [B0 20 3F] Channel 1: CC LSB 0 (Bank Select) value: 63
00000000314317 ms | [B0 20 3F] Channel 1: CC LSB 0 (Bank Select) value: 63
00000000314376 ms | [B0 20 3F] Channel 1: CC LSB 0 (Bank Select) value: 63
00000000314436 ms | [B0 20 3F] Channel 1: CC LSB 0 (Bank Select) value: 63
00000000314496 ms | [B0 20 3F] Channel 1: CC LSB 0 (Bank Select) value: 63
00000000314556 ms | [B0 20 3F] Channel 1: CC LSB 0 (Bank Select) value: 63
00000000314616 ms | [B0 20 3F] Channel 1: CC LSB 0 (Bank Select) value: 63
main.c
MIOS_ENC_TABLE {
   MIOS_ENC_ENTRY(7, 0, MIOS_ENC_MODE_NON_DETENTED), //
   MIOS_ENC_EOT
};

...
void Init...
for(i=0; i<2; ++i) {
    // available speed modes: SLOW, NORMAL and FAST
    MIOS_ENC_SpeedSet(i, MIOS_ENC_SPEED_SLOW, 2); // encoder, speed mode, divider
  }
...
void ENC_NotifyChange....
 MIOS_MIDI_BeginStream();
  MIOS_MIDI_TxBufferPut(0xb0);           // CC at MIDI Channel #1
  MIOS_MIDI_TxBufferPut(0x20 + encoder); // CC# is 0x20 (32) for first encoder
  MIOS_MIDI_TxBufferPut((0x40 + incrementer) & 0x7f);
  // this "40 +/- speed" format is used by NI software and some others
  MIOS_MIDI_EndStream();

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...