Jump to content

SEQ-CS-Wilba + other Code, Scan Matrix


Phatline
 Share

Recommended Posts

I want to program my own software running on the "Generic" SEQ-CS-Wilba - UI- PCB (Software: Triggermatrix)

it has nothing to do with the SEQV4, except the BPM part, so ripp off the UI-Code for the Button-Matrix from SEQV4 is a no go > i dont understand it.

i first wrote a small app to show me DIN-PINing off all Btns,  (following Pins have a offset off 4 Shiftregisters ... because a MB-LRE-8x2CS is in the chain)

then realized that not every btn has its very own PIN...ok i thougt, i know such things from LEDMatrices the other way arround.

But Scan Matrices (BTNs) is newland for me... i quick search give me: mios32/trunk/apps/examples/fastscan_button_matrix_16x16 <<< should i start with that, or is there a more simple/better for learn-Code somewhere

thanx

  MB-LRE8x2CS ROW 1
ENC 0 1 2 3 4 5 6 7
SR 1 1 1 1 2 2 2 2
Pin 0 2 4 6 0 2 4 6
  MB-LRE8x2CS ROW 2
ENC 8 9 10 11 12 13 14 15
SR 3 3 3 3 4 4 4 4
Pin 0 2 4 6 0 2 4

 

        BNT-SCAN-Matrix
Nr.       0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
BTN 46 46                                  
LED                                      
BTN 47 47                                  
LED                                      
BTN 46 46                                  
LED                                      
BTN 47 47                                  
LED                                      
                                       
BTN 47 47   40 41 40 41 40 41 40 41 40 41 40 41 40 41 40 41
LED                                      
BTN 47 47   43 42 43 42 43 42 43 42 43 42 43 42 43 42 43 42
LED                                      
BTN 47 47   45 44 45 44 45 44 45 44 45 44 45 44 45 44 45 44
LED                                      
Link to comment
Share on other sites

As far as I know, there's no circuit diagram for the SEQ PCB, but you could trace the layout pretty easily. Are you familiar with the concept though? A button matrix scans inputs via DIN and sends pulses on the DOUT chain to close the circuit. It's not high-level programming, but you could load up MB_NG and define a button matrix to test the concept. @Sauraen just made a CS for his SEGA Genesis build, perhaps he has some advice.

Link to comment
Share on other sites

the concept sounding logical.... i think i have something seen here http://svnmios.midibox.org/filedetails.php?repname=svn.mios32&path=%2Ftrunk%2Fapps%2Ftutorials%2F029_keyboard_velocity%2FREADME.txt

no, mb_ng is to big (cant understand code which i havent programmed myself, or stripped down to the minimum working task)

have to try to strip down the tutorial 29 code, by remove the Velocity calculating.

 

Link to comment
Share on other sites

The BLM_X is the right choice (and not the KEYBOARD driver)

Programming Example: http://svnmios.midibox.org/listing.php?repname=svn.mios32&path=%2Ftrunk%2Fapps%2Fexamples%2Fblm_x%2F

Following configuration is required in mios32_config.h:

// configure BLM_X driver
#define BLM_X_NUM_ROWS            8
#define BLM_X_BTN_NUM_COLS        8
#define BLM_X_LED_NUM_COLS        8
#define BLM_X_LED_NUM_COLORS      1
#define BLM_X_ROWSEL_DOUT_SR      1
#define BLM_X_LED_FIRST_DOUT_SR   2
#define BLM_X_BTN_FIRST_DIN_SR    2
#define BLM_X_ROWSEL_INV_MASK     0x00
#define BLM_X_DEBOUNCE_MODE       1

Schematic which shows the DIN/DOUT mapping: http://www.ucapps.de/midibox_seq/mbseq_v4_dio_wilba_layout.pdf

Best Regards, Thorsten.

Link to comment
Share on other sites

yesss... Triggermatrix is on the way to generic :cheers:

 

SOFTWARE:   i stripped it a bit, and something... to find the pinning... and with pinning its easyer to program....

UI__SEQ-CS+LRE8x2CS.zip

HARDWARE:

STM34F4 CORE [J8/J9] > [J1]MB-SEQ-CS-Wilba[J2] > [IN]MB-LRE8x2CS-Fairlightii

  MB-SEQ CS
BLMx     ENCODERS
BTN 62 54 ENC 0   1   2   3   4   5   6   7   8   9   10   11   12   13   14   15  
LED 59 50 SR 1   1   1   1   3   3   3   3   4   4   4   4   5   5   5   5  
BTN 63 55 PIN 6   4   2   0   6   4   2   0   6   4   2   0   6   4   2   0  
LED 58 49  
BTN 46 38 ENC 16 JOG                                                          
LED 57 34 SR 6                                                          
BTN 47 39 PIN 2                                                          
LED 56 33                                                                    
BLMx     BLM+x
BTN 14 30     32 33 40 41 48 49 56 57 24 25 16 17 8 9 0 1
LED 10 26     39 38 37 36 47 46 45 44 55 54 53 52 63 62 61 60 31 30 29 28 23 22 21 20 15 14 13 12 7 6 5 4
BTN 15 31     35   42   43   50   51   58   59           26   27   18   19   10   11   2  
LED 9 25     35   43   42   51               BEAT                              
BTN 6 22     37   44   45   52   53   60   61     1     28   29   20   21   12   13   4  
LED 8 24     0?   41   40   48                               18   19   11   3   2  

 

MB-LRE8x2 CS 2.5 in seriell to MB-SEQ CS Wilba
ENC 0   2   4   6   8   10   12   14
SR 7   7   8   8   9   9   10   10
PIN 0   4   0   4   0   4   0   4
ENC 1   3   5   7   9   11   13   15
SR 7   7   8   8   9   9   10   10
PIN 2   6   2   6   2   6   2   6
Edited by Phatline
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...