Jump to content

MB64E (encoder problem)


Sasha
 Share

Recommended Posts

I have problem with my last midibox project. I uploaded MB64E aplication on MIOS v1.9.  Instead of normal increase/decrease behaviour when moving encoder i get button behaviour (0/127 values). Where did I go wrong? I didn`t configured anything, just uploaded MB64E.syx files. I tried to switch encoder pins several times but same thing happends. I am almost sure all connections are good. I also tried different encoders, and different DIN pins without success.

Here is snapshot moving encoder left and right:

ox01.gif

Link to comment
Share on other sites

If this ansver is for me please confirm.

For MB64E with 2 detended encoders for NI Traktor jogs on SR#1, pins 4&5, 6&7 I have to:

1. modify MIOS source code file "mios_tables.inc" like this

...

;; encoder entry structure

ENC_ENTRY MACRO sr, din_0, mode

dw (mode << 8) | (din_0 + 8*(sr-1))

ENDM

ENC_EOT MACRO

dw 0xffff

ENDM

MIOS_ENC_PIN_TABLE

;; entry 0x00-0x0f

ENC_ENTRY  1,  4,  MIOS_ENC_MODE_DETENTED

ENC_ENTRY  1,  6,  MIOS_ENC_MODE_DETENTED

ENC_EOT

ENC_EOT

ENC_EOT

ENC_EOT

ENC_EOT

ENC_EOT

ENC_EOT

ENC_EOT

ENC_EOT

ENC_EOT

ENC_EOT

ENC_EOT

ENC_EOT

ENC_EOT

...

2. compile and upload MIOS

3. upload MB64E aplication file "setup_midibox64.syx"

Am I right?

Link to comment
Share on other sites

I done it, now it works. I dont know have i ever read about it and where. I read lots of times same documents but seams i often missing some information in the time i need it. Most dificult thing for me about MIOS projects is navigatin trough documents  :)

Link to comment
Share on other sites

  • 10 months later...

hello !

I have problem with my 8 encoders.

This part of my controler is based on MB64e.

Im my "mios_tables.inc" code i have :

...

;; encoder entry structure

ENC_ENTRY MACRO sr, din_0, mode

dw (mode << 8) | (din_0 + 8*(sr-1))

ENDM

ENC_EOT MACRO

dw 0xffff

ENDM

MIOS_ENC_PIN_TABLE

;; encoders 1-16

;;        SR  Pin  Mode

ENC_ENTRY  1,  0,  MIOS_ENC_MODE_DETENTED

ENC_ENTRY  1,  2,  MIOS_ENC_MODE_DETENTED

ENC_ENTRY  1,  4,  MIOS_ENC_MODE_DETENTED

ENC_ENTRY  1,  6,  MIOS_ENC_MODE_DETENTED

ENC_ENTRY  2,  0,  MIOS_ENC_MODE_DETENTED

ENC_ENTRY  2,  2,  MIOS_ENC_MODE_DETENTED

ENC_ENTRY  2,  4,  MIOS_ENC_MODE_DETENTED

ENC_ENTRY  2,  6,  MIOS_ENC_MODE_DETENTED

ENC_EOT

ENC_EOT

ENC_EOT

ENC_EOT

            ...

And after that i'm saving it in notepad, opening main.asm in MPLAB IDE , Building the main file into main.hex and... uploading it to my core using Mios Studio... and still my 8 encoders are working from 1 to 127  = / I would like to have function inc/dec! I tried to change it in 10 pr 20 diferent ways and i dont know what to do...and where is something wrong?

Link to comment
Share on other sites

Well they have different functions.

The .inc file, defines the way that your components are electrically connected, IE there is an encoder connected to pin X. No midi is involved at this point.

The .ini file, defines which midi messages should be sent by that hardware.

So they both work together, rather than one of them "winning" :)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...