Jump to content

ksir

Members
  • Posts

    77
  • Joined

  • Last visited

  • Days Won

    5

Posts posted by ksir

  1. J'ai approfondi mes tests.
    Si je ne connecte pas l'alimentation externe, je n'ai pas de problème avec le clignotement des LED.

    si j'ajoute de l'alimentation les LED clignotent
    voici comment je branche l'alimentation : (après avoir déconnecté le j17)

    922861830_Sanstitre3.thumb.png.c6a50e5c97f41946d7a96b065229e37a.png

    le câblage est-il correct ?

     

    j'ai lu ici :  http://www.ucapps.de/midibox_ng_manual_hw.html

    Citation

    L'entrée de données doit être connectée à J4B.SC, la masse à J4B.VS et +5 V à une alimentation externe.

    dois-je connecter j4.vs à une alimentation 0V ? et j4b.5v à 5v psu ?

    1984668963_Sanstitre2.thumb.png.4ed992d340459a67ad390784d5a66634.png

    ( i use this PSU : https://secure.reichelt.com/fr/fr/bloc-d-alimentation-d-coupage-ferm-50-w-5-v-10-a-mw-lrs-50-5-p202960.html?&trstct=pol_4&nbc=1 )

     

  2. I tried adding a 10uf capacitor every 128 LEDs.
    I tried to connect dout of the last led to gnd.
    I tried to connect the end of the last LED to a 120 homs resistor.

    the last LEDs still flicker

     

    ( just for information I specify that I modified

    mios32\apps\controllers\midibox_ng_v1\src\mbng_rgbled.c

     line 116  u32 num_leds = 15; // TODO: we could make this configurable!

    )

     

  3. hello, I use my controller with fl studio with which it is possible to create python scripts.

    https://www.image-line.com/fl-studio-learning/fl-studio-online-manual/html/midi_scripting.htm


    I have already tried with a small script which allows you to create a “learn” mode

    Would it be possible to display the name of the parameter that I can retrieve with "getParamName" to display them on the screens of my midibox ng?

    I think that fl studio's python scripts can be a very powerful tool combined with midibox ng. but I have no other idea of what could be interesting. If you have any suggestions

    thank you

    
    
    # name=ModulBox
    # définir les variables
    
    # Importer les modules nécessaires pour utiliser les fonctionnalités de FL Studio
    import midi
    import device
    import playlist
    import channels
    import mixer
    import patterns
    import arrangement
    import ui
    import transport
    import plugins
    import general
    import launchMapPages
    
    # Définir le numéro du contrôleur MIDI que vous souhaitez utiliser pour le bouton Learn
    BoutonLearn = 31
    
    # Initialiser la variable Mode_Learn avec une valeur booléenne, Cette variable indique si le mode Learn est actif ou non
    ModeLearn = False
    
    # Fonction appelée lorsqu'un message MIDI est reçu par FL Studio
    def OnMidiMsg(event): 
        # Utiliser la variable globale Mode_Learn dans la fonction OnMidiMsg
        global ModeLearn
        
        # Indiquer que l'événement n'a pas encore été traité
        event.handled = False 
        
        # Afficher des informations sur l'événement MIDI reçu
        print('MidiId: ', event.midiId, 'EventData1: ', event.data1, 'eventData2: ', event.data2,'eventMidiChan', event.midiChan, 'eventMidiPort: ', event.port) 
        
        # Si l'événement correspond à l'appui sur le bouton Learn, activer ou désactiver le mode Learn en fonction de la valeur de l'événement
        if event.data1 == BoutonLearn and event.data2 == 127:
                ModeLearn = True 
                print(ModeLearn,"Mode Learn actif.")            
        elif event.data1 == BoutonLearn and event.data2 == 0:
            ModeLearn = False 
            print(ModeLearn,"Mode Learn Inactif.")   
        
        # Si la valeur de l'événement est supérieure à 0 et que le mode Learn est actif, lier le dernier paramètre modifié au contrôleur MIDI utilisé et désactiver le mode Learn
        if event.data2 >0 and ModeLearn==True and event.data1 != BoutonLearn:	
            # Utiliser la fonction device.linkToLastTweaked() avec les arguments appropriés
            device.linkToLastTweaked(event.data1, event.midiChan+1,)
            ModeLearn = False 
            #test extinction led
            #device.midiOutMsg(176, event.midiChan, BoutonLearn, 0)
            device.midiOutMsg(176, 15, BoutonLearn, 0)
            print(ModeLearn,"Mode Learn Inactif.")
            # Indiquer que l'événement a été traité par le script en mettant la valeur de event.handled à True
            event.handled = True
    
        
        # Indiquer que l'événement a été traité par le script en mettant la valeur de event.handled à True
        #event.handled = True
    
    '''
    '''

     

  4. Hello, first of all thank you for your previous answers.
    I haven't fixed the problem with the pads yet.


    I'm focusing on another problem for now: with the LED rings.
    with 16 led ring of 16 led no problem. when I add more, the LEDs flicker.

    https://youtu.be/HyLkVeFtALw?si=gT09lbCxEwLRmHt8


    I read here:
      http://midibox.org/forums/topic/21095-lre-4x1-breakable-rgb-led-ringrotary-encoder-pcb-bulk-order/?do=findComment&comment=184155
    FantomXR had flickering problems, solved with a 10uf capacitor.

    Should I add a 10uf capacitor at the input of my LED ring cards? (as in the image below) (C129)
    image.thumb.png.0230551676ea324199514e63d4935ebc.png

     

    To understand my configuration see the pdfs:

    LEDRING:
    https://drive.google.com/file/d/1XpDQBUE42IqXpXicO--B2gfIoNQDh5ga/view?usp=drive_link

    “power card”:
    https://drive.google.com/file/d/1NJ-H-QXD-tl9rU6nbYdEh2Q4jFqjWt6b/view?usp=drive_link


    I made a PCB that I call a “power card” that I supply with 5v 10 amps.
    The J2 connector of the "power card" is connected to J4b of core 32.
    Connector J44 of the first OLED card is connected to J3 of the “power card”
    Connector J45 of the first OLED card is connected to J4 of the “power card”
    Connector J44 of the second OLED card is connected to J5 of the “power card”
    Connector J45 of the second OLED card is connected to J6 of the “power card”

    etc..

    image.thumb.png.336f85b50785e40e72c2899d72c248fd.png

    Thank you

     

    • Like 1
  5. thank you for your help

    I tried :

    #PADS                                                                                                    
    EVENT_BUTTON    id=    65    hw_id=    33    fwd_id=RGBLED:137    type=CC    chn=    1    cc=    33    button_mode=    Toggle            label=    "^std_btn"    bank=    1            hsv=    50:100:10        debounce_cycles=65535
    EVENT_BUTTON    id=    66    hw_id=    35    fwd_id=RGBLED:138    type=CC    chn=    1    cc=    34    button_mode=    Toggle            label=    "^std_btn"    bank=    1            hsv=    100:100:10        debounce_cycles=65535
    EVENT_BUTTON    id=    67    hw_id=    37    fwd_id=RGBLED:139    type=CC    chn=    1    cc=    35    button_mode=    Toggle            label=    "^std_btn"    bank=    1            hsv=    0:100:10        debounce_cycles=65535
    EVENT_BUTTON    id=    68    hw_id=    39    fwd_id=RGBLED:140    type=CC    chn=    1    cc=    36    button_mode=    Toggle            label=    "^std_btn"    bank=    1            hsv=    200:100:10        debounce_cycles=65535
    EVENT_BUTTON    id=    69    hw_id=    34    fwd_id=RGBLED:141    type=CC    chn=    1    cc=    37    button_mode=    Toggle            label=    "^std_btn"    bank=    1            hsv=    50:100:10        debounce_cycles=65535
    EVENT_BUTTON    id=    70    hw_id=    36    fwd_id=RGBLED:142    type=CC    chn=    1    cc=    38    button_mode=    Toggle            label=    "^std_btn"    bank=    1            hsv=    100:100:10        debounce_cycles=65535
    EVENT_BUTTON    id=    71    hw_id=    38    fwd_id=RGBLED:143    type=CC    chn=    1    cc=    39    button_mode=    Toggle            label=    "^std_btn"    bank=    1            hsv=    0:100:10        debounce_cycles=65535
    EVENT_BUTTON    id=    72    hw_id=    40    fwd_id=RGBLED:144    type=CC    chn=    1    cc=    40    button_mode=    Toggle            label=    "^std_btn"    bank=    1            hsv=    200:100:10        debounce_cycles=65535
                                                                                                        
    #PADS                                                                                                    
    EVENT_BUTTON    id=    73    hw_id=    41    fwd_id=RGBLED:129    type=CC    chn=    1    cc=    41    button_mode=    Toggle            label=    "^std_btn"    bank=    1            hsv=    50:100:10        debounce_cycles=65535
    EVENT_BUTTON    id=    74    hw_id=    43    fwd_id=RGBLED:130    type=CC    chn=    1    cc=    42    button_mode=    Toggle            label=    "^std_btn"    bank=    1            hsv=    100:100:10        debounce_cycles=65535
    EVENT_BUTTON    id=    75    hw_id=    45    fwd_id=RGBLED:131    type=CC    chn=    1    cc=    43    button_mode=    Toggle            label=    "^std_btn"    bank=    1            hsv=    0:100:10        debounce_cycles=65535
    EVENT_BUTTON    id=    76    hw_id=    47    fwd_id=RGBLED:132    type=CC    chn=    1    cc=    44    button_mode=    Toggle            label=    "^std_btn"    bank=    1            hsv=    200:100:10        debounce_cycles=65535
    EVENT_BUTTON    id=    77    hw_id=    42    fwd_id=RGBLED:133    type=CC    chn=    1    cc=    45    button_mode=    Toggle            label=    "^std_btn"    bank=    1            hsv=    50:100:10        debounce_cycles=65535
    EVENT_BUTTON    id=    78    hw_id=    44    fwd_id=RGBLED:134    type=CC    chn=    1    cc=    46    button_mode=    Toggle            label=    "^std_btn"    bank=    1            hsv=    100:100:10        debounce_cycles=65535
    EVENT_BUTTON    id=    79    hw_id=    46    fwd_id=RGBLED:135    type=CC    chn=    1    cc=    47    button_mode=    Toggle            label=    "^std_btn"    bank=    1            hsv=    0:100:10        debounce_cycles=65535
    EVENT_BUTTON    id=    80    hw_id=    48    fwd_id=RGBLED:136    type=CC    chn=    1    cc=    48    button_mode=    Toggle            label=    "^std_btn"    bank=    1            hsv=    200:100:10        debounce_cycles=65535
          

         doesn't seem to work                                                                                       

  6. Hello, I haven't studied your answer in depth yet, but here is an example of declaration of my pads in ngc file

     

    #PADS

    EVENT_BUTTON id= 33 fwd_id=RGBLED:137 hsv=50:100:10 type=CC chn= 1 cc= 33 button_mode=Toggle label="^std_btn"

    EVENT_BUTTON id= 35 fwd_id=RGBLED:138 hsv=100:100:10 type=CC chn= 1 cc= 35 button_mode=Toggle label="^std_btn"

  7. yes all encoders work,


    after having pushed the tests a little, I have the impression that it is the accent (é) in the comments of my code which poses a problem and erases lines at the end of my ngc file

  8. Thank you again for your help
    I tried :

     

    # encode hardware configuration
    
    ENC n= 16 sr= 4 pins=5:4 type=non_detented
    ENC n= 15 sr= 4 pins=7:6 type=non_detented
    ENC n= 2 sr= 1 pins=1:0 type=non_detented
    ENC n= 1 sr= 1 pins=3:2 type=non_detented
    ENC n= 4 sr= 1 pins=5:4 type=non_detented
    ENC n= 3 sr= 1 pins=7:6 type=non_detented
    ENC n= 6 sr= 2 pins=1:0 type=non_detented
    ENC n= 5 sr= 2 pins=3:2 type=non_detented
    ENC n= 8 sr= 2 pins=5:4 type=non_detented
    ENC n= 7 sr= 2 pins=7:6 type=non_detented
    ENC n= 10 sr= 3 pins=1:0 type=non_detented
    ENC n= 9 sr= 3 pins=3:2 type=non_detented
    ENC n= 12 sr= 3 pins=5:4 type=non_detented
    ENC n= 11 sr= 3 pins=7:6 type=non_detented
    ENC n= 14 sr= 4 pins=1:0 type=non_detented
    ENC n= 13 sr= 4 pins=3:2 type=non_detented

    It's encoder 13 that didn't work anymore
     I moved the encoder hardware config code to the middle of the code, instead of putting it at the end, now it works

  9. Unable to operate encoder #15
    he is detected by mios studio
    but he answers me: not event assigned,
      yet I seem to have configured it like the other 15 which works well...

     

    Thanks for your help

     

    image.thumb.png.21aad3693576e20c28674d787a8a04b6.png

     

    #Modulbox
    RESET_HW
    
    # le SCS doit émuler les fonctions bouton/enc dans la page principale
    SCS soft1_button_emu_id=2000 \
        soft2_button_emu_id=2001 \
        soft3_button_emu_id=2002 \
        soft4_button_emu_id=2003 \
        shift_button_emu_id=2004 \
        enc_emu_id=2000
    
    
    # Contrôlé à partir des boutons SCS à J10 dans la page principale
    EVENT_BUTTON id=2000  type=Meta   meta=SetBank   button_mode=OnOnly range=1:1  lcd_pos=1:17:2 label="Bnk%q"
    EVENT_BUTTON id=2001  type=Meta   meta=SetBank   button_mode=OnOnly range=2:2  lcd_pos=1:17:2 label="Bnk%q"
    EVENT_BUTTON id=2002  type=Meta   meta=SetBank   button_mode=OnOnly range=3:3  lcd_pos=1:17:2 label="Bnk%q"
    EVENT_BUTTON id=2003  type=Meta   meta=SetBank   button_mode=OnOnly range=4:4  lcd_pos=1:17:2 label="Bnk%q"
    EVENT_BUTTON id=2004  type=Meta   meta=EncFast:4 button_mode=OnOff  range=2:0
    
    # l'encodeur SCS en J10 incrémente/décrémente simplement la banque
    # fonction redondante - pourrait être modifiée à l'avenir
    EVENT_ENC    id=2000  type=Meta   meta=SetBank   range=1:4
    
    # le but de cet élément EVENT est d'imprimer la banque chaque fois que l'écran LCD est rafraîchi (par exemple après le démarrage ou le changement de banque)
    EVENT_LED id=2000 fwd_to_lcd=1 lcd_pos=1:1:2 label="Bank #%q"
    
    
    
    
    
    
    
    
      # ENC 1 - 8 ///////////////////////////////////////////////////
    # Classical Thermometer Pattern, Jaune
    #EVENT_ENC    id=  1  hw_id =  1  bank=1  fwd_id=RGBLED:2    rgbled_pattern=1   hsv=50:100:10    fwd_to_lcd=1  type=CC     chn= 1 cc= 16   range=  0:127 offset=  0  ports=1000100000001000  lcd_pos=1:1:1    # label="ENC #%3i    %3d@(1:1:2)%B"
    
    # ENC 1 Moving Dot ,jaune
    EVENT_ENC    id=  1  hw_id =  1  bank=1  fwd_id=RGBLED:2    rgbled_pattern=2   hsv=50:100:10    fwd_to_lcd=1  type=CC     chn= 1 cc= 1   range=  0:127 offset=  0  ports=1000100000001000  lcd_pos=1:1:1    label="^std_enc"
    # ENC 2 Moving Dot , Green
    EVENT_ENC    id=  2  hw_id =  2  bank=1  fwd_id=RGBLED:18   rgbled_pattern=2   hsv=100:100:10  fwd_to_lcd=1  type=CC     chn= 1 cc= 2   range=  0:127 offset=  0  ports=1000100000001000  lcd_pos=1:1:1  label="^std_enc"
    # ENC 3 Moving Dot , RED
    EVENT_ENC    id=  3  hw_id =  3  bank=1  fwd_id=RGBLED:34   rgbled_pattern=2   hsv=0:100:10  fwd_to_lcd=1  type=CC     chn= 1 cc= 3   range=  0:127 offset=  0  ports=1000100000001000  lcd_pos=1:1:1  label="^std_enc"
    # ENC 4 Moving Dot , Blue
    EVENT_ENC    id=  4  hw_id =  4  bank=1  fwd_id=RGBLED:50   rgbled_pattern=2   hsv=200:100:10  fwd_to_lcd=1  type=CC     chn= 1 cc= 4   range=  0:127 offset=  0  ports=1000100000001000  lcd_pos=1:1:1  label="^std_enc"
    # ENC 5 Moving Dot Jaune
    EVENT_ENC    id=  5  hw_id =  5  bank=1  fwd_id=RGBLED:66   rgbled_pattern=2   hsv=50:100:10    fwd_to_lcd=1  type=CC     chn= 1 cc= 5   range=  0:127 offset=  0  ports=1000100000001000  lcd_pos=1:1:1  label="^std_enc"
    # ENC 6 Moving Dot GREEN
    EVENT_ENC    id=  6  hw_id =  6  bank=1  fwd_id=RGBLED:82   rgbled_pattern=2   hsv=100:100:10    fwd_to_lcd=1  type=CC     chn= 1 cc= 6   range=  0:127 offset=  0  ports=1000100000001000  lcd_pos=1:1:1 label="^std_enc"
    # ENC 7 Moving Dot RED
    EVENT_ENC    id=  7  hw_id =  7  bank=1  fwd_id=RGBLED:98   rgbled_pattern=2   hsv=0:100:10    fwd_to_lcd=1  type=CC     chn= 1 cc= 7   range=  0:127 offset=  0  ports=1000100000001000  lcd_pos=1:1:1  label="^std_enc"
    # ENC 8 Moving Dot BLUE   #label="Enc%3i&k@(1:4:6)%B&n@(1:19:5)%3d"
    EVENT_ENC    id=  8  hw_id =  8  bank=1  fwd_id=RGBLED:114   rgbled_pattern=2   hsv=200:100:10    fwd_to_lcd=1  type=CC     chn= 1 cc= 8   range=  0:127 offset=  0  ports=1000100000001000  lcd_pos=1:1:1  label="^std_enc"
     
     
     # ENC 9-16 /////////////////////////////////////////////////////////
    
    # Moving Dot Jaune
    EVENT_ENC    id=  9  hw_id =  9  bank=1  fwd_id=RGBLED:146   rgbled_pattern=2   hsv=50:100:10    fwd_to_lcd=1  type=CC     chn= 1 cc= 9   range=  0:127 offset=  0  ports=1000100000001000  lcd_pos=1:1:1 label="^std_enc"
    # Moving Dot GREEN
    EVENT_ENC    id=  10  hw_id =  10  bank=1  fwd_id=RGBLED:162   rgbled_pattern=2   hsv=100:100:10    fwd_to_lcd=1  type=CC     chn= 1 cc= 10   range=  0:127 offset=  0  ports=1000100000001000  lcd_pos=1:1:1 label="^std_enc"
    # Moving Dot RED
    EVENT_ENC    id=  11  hw_id =  11  bank=1  fwd_id=RGBLED:178   rgbled_pattern=2   hsv=0:100:10    fwd_to_lcd=1  type=CC     chn= 1 cc= 11   range=  0:127 offset=  0  ports=1000100000001000  lcd_pos=1:1:1  label="^std_enc"
    # Moving Dot BLUE   
    EVENT_ENC    id=  12  hw_id =  12  bank=1  fwd_id=RGBLED:194   rgbled_pattern=2   hsv=200:100:10    fwd_to_lcd=1  type=CC     chn= 1 cc= 12   range=  0:127 offset=  0  ports=1000100000001000  lcd_pos=1:1:1  label="^std_enc"
    # Moving Dot Jaune
    EVENT_ENC    id=  13  hw_id =  13  bank=1  fwd_id=RGBLED:210   rgbled_pattern=2   hsv=50:100:10    fwd_to_lcd=1  type=CC     chn= 1 cc= 13   range=  0:127 offset=  0  ports=1000100000001000  lcd_pos=1:1:1  label="^std_enc"
    # Moving Dot GREEN
    EVENT_ENC    id=  14  hw_id =  14  bank=1  fwd_id=RGBLED:226   rgbled_pattern=2   hsv=100:100:10    fwd_to_lcd=1  type=CC     chn= 1 cc= 14   range=  0:127 offset=  0  ports=1000100000001000  lcd_pos=1:1:1 label="^std_enc"
    # Moving Dot RED
    EVENT_ENC    id=  15  hw_id =  15  bank=1  fwd_id=RGBLED:242   rgbled_pattern=2   hsv=0:100:10    fwd_to_lcd=1  type=CC     chn= 1 cc= 15   range=  0:127 offset=  0  ports=1000100000001000  lcd_pos=1:1:1  label="^std_enc"
    # Moving Dot BLUE  
    EVENT_ENC    id=  16  hw_id =  16  bank=1  fwd_id=RGBLED:258   rgbled_pattern=2   hsv=200:100:10    fwd_to_lcd=1  type=CC     chn= 1 cc= 16   range=  0:127 offset=  0  ports=1000100000001000  lcd_pos=1:1:1  label="^std_enc"
    
    #bouton poussoir encodeurs 1
    EVENT_BUTTON id=  66  fwd_id=RGBLED:1     hsv=00:100:10  type=CC  chn= 1 cc= 17  button_mode=Toggle label="^std_btn"
    EVENT_BUTTON id=  65  fwd_id=RGBLED:17     hsv=0:100:10  type=CC  chn= 1 cc= 18  button_mode=Toggle label="^std_btn"
    EVENT_BUTTON id=  68  fwd_id=RGBLED:33     hsv=0:100:10  type=CC  chn= 1 cc= 19  button_mode=Toggle label="^std_btn"
    EVENT_BUTTON id=  67  fwd_id=RGBLED:49     hsv=0:100:10  type=CC  chn= 1 cc= 20  button_mode=Toggle label="^std_btn"
    EVENT_BUTTON id=  70  fwd_id=RGBLED:65     hsv=0:100:10  type=CC  chn= 1 cc= 21  button_mode=Toggle label="^std_btn"
    EVENT_BUTTON id=  69  fwd_id=RGBLED:81     hsv=0:100:10  type=CC  chn= 1 cc= 22  button_mode=Toggle label="^std_btn"
    EVENT_BUTTON id=  72  fwd_id=RGBLED:97     hsv=0:100:10  type=CC  chn= 1 cc= 23  button_mode=Toggle label="^std_btn"
    EVENT_BUTTON id=  71  fwd_id=RGBLED:113     hsv=0:100:10  type=CC  chn= 1 cc= 24  button_mode=Toggle label="^std_btn"
    
    #bouton poussoir encodeurs 2
    EVENT_BUTTON id=  74  fwd_id=RGBLED:145     hsv=00:100:10  type=CC  chn= 1 cc= 25  button_mode=Toggle label="^std_btn"
    EVENT_BUTTON id=  73  fwd_id=RGBLED:161     hsv=0:100:10  type=CC  chn= 1 cc= 26  button_mode=Toggle label="^std_btn"
    EVENT_BUTTON id=  76  fwd_id=RGBLED:177     hsv=0:100:10  type=CC  chn= 1 cc= 27  button_mode=Toggle label="^std_btn"
    EVENT_BUTTON id=  75  fwd_id=RGBLED:193     hsv=0:100:10  type=CC  chn= 1 cc= 28  button_mode=Toggle label="^std_btn"
    EVENT_BUTTON id=  78  fwd_id=RGBLED:209     hsv=0:100:10  type=CC  chn= 1 cc= 29  button_mode=Toggle label="^std_btn"
    EVENT_BUTTON id=  77  fwd_id=RGBLED:225     hsv=0:100:10  type=CC  chn= 1 cc= 30  button_mode=Toggle label="^std_btn"
    EVENT_BUTTON id=  80  fwd_id=RGBLED:241     hsv=0:100:10  type=CC  chn= 1 cc= 31  button_mode=Toggle label="^std_btn"
    EVENT_BUTTON id=  79  fwd_id=RGBLED:257     hsv=0:100:10  type=CC  chn= 1 cc= 32  button_mode=Toggle label="^std_btn"
    
    #PADS
    EVENT_BUTTON id=  33  fwd_id=RGBLED:137     hsv=50:100:10  type=CC  chn= 1 cc= 33  button_mode=Toggle label="^std_btn"
    EVENT_BUTTON id=  35  fwd_id=RGBLED:138     hsv=100:100:10  type=CC  chn= 1 cc= 35  button_mode=Toggle label="^std_btn"
    EVENT_BUTTON id=  37  fwd_id=RGBLED:139     hsv=0:100:10  type=CC  chn= 1 cc= 37  button_mode=Toggle label="^std_btn"
    EVENT_BUTTON id=  39  fwd_id=RGBLED:140     hsv=200:100:10  type=CC  chn= 1 cc= 39  button_mode=Toggle label="^std_btn"
    EVENT_BUTTON id=  34  fwd_id=RGBLED:141     hsv=50:100:10  type=CC  chn= 1 cc= 34  button_mode=Toggle label="^std_btn"
    EVENT_BUTTON id=  36  fwd_id=RGBLED:142     hsv=100:100:10  type=CC  chn= 1 cc= 36  button_mode=Toggle label="^std_btn"
    EVENT_BUTTON id=  38  fwd_id=RGBLED:143     hsv=0:100:10  type=CC  chn= 1 cc= 38  button_mode=Toggle label="^std_btn"
    EVENT_BUTTON id=  40  fwd_id=RGBLED:144     hsv=200:100:10  type=CC  chn= 1 cc= 40  button_mode=Toggle label="^std_btn"
    
    #PADS
    EVENT_BUTTON id=  41  fwd_id=RGBLED:129     hsv=50:100:10  type=CC  chn= 1 cc= 41  button_mode=Toggle label="^std_btn"
    EVENT_BUTTON id=  43  fwd_id=RGBLED:130     hsv=100:100:10  type=CC  chn= 1 cc= 43  button_mode=Toggle label="^std_btn"
    EVENT_BUTTON id=  45  fwd_id=RGBLED:131     hsv=0:100:10  type=CC  chn= 1 cc= 45  button_mode=Toggle label="^std_btn"
    EVENT_BUTTON id=  47  fwd_id=RGBLED:132     hsv=200:100:10  type=CC  chn= 1 cc= 47  button_mode=Toggle label="^std_btn"
    EVENT_BUTTON id=  42  fwd_id=RGBLED:133     hsv=50:100:10  type=CC  chn= 1 cc= 42  button_mode=Toggle label="^std_btn"
    EVENT_BUTTON id=  44  fwd_id=RGBLED:134     hsv=100:100:10  type=CC  chn= 1 cc= 44  button_mode=Toggle label="^std_btn"
    EVENT_BUTTON id=  46  fwd_id=RGBLED:135     hsv=0:100:10  type=CC  chn= 1 cc= 46  button_mode=Toggle label="^std_btn"
    EVENT_BUTTON id=  48  fwd_id=RGBLED:136     hsv=200:100:10  type=CC  chn= 1 cc= 48  button_mode=Toggle label="^std_btn"
    
    
    
    
    #switch
    
    # SWITCH BANK 1
    
    EVENT_BUTTON id=101  hw_id =  57   bank=1 fwd_id=LED:8  type=CC chn= 1 cc= 49  button_mode=Toggle lcd_pos=1:1:1  label="^std_btn"
    EVENT_BUTTON id=102  hw_id =  58   bank=1 fwd_id=LED:7  type=CC chn= 1 cc= 50  button_mode=Toggle lcd_pos=1:1:1  label="^std_btn"
    EVENT_BUTTON id=103  hw_id =  59   bank=1 fwd_id=LED:6  type=CC chn= 1 cc= 51  button_mode=Toggle lcd_pos=1:1:1  label="^std_btn"
    EVENT_BUTTON id=104  hw_id =  60   bank=1 fwd_id=LED:5  type=CC chn= 1 cc= 52  button_mode=Toggle lcd_pos=1:1:1  label="^std_btn"
    EVENT_BUTTON id=105  hw_id =  61   bank=1 fwd_id=LED:4  type=CC chn= 1 cc= 53  button_mode=Toggle lcd_pos=1:1:1  label="^std_btn"
    EVENT_BUTTON id=106  hw_id =  62   bank=1 fwd_id=LED:3  type=CC chn= 1 cc= 54  button_mode=Toggle lcd_pos=1:1:1  label="^std_btn"
    EVENT_BUTTON id=107  hw_id =  63   bank=1 fwd_id=LED:2  type=CC chn= 1 cc= 55  button_mode=Toggle lcd_pos=1:1:1  label="^std_btn"
    EVENT_BUTTON id=108  hw_id =  64   bank=1 fwd_id=LED:1  type=CC chn= 1 cc= 56  button_mode=Toggle lcd_pos=1:1:1  label="^std_btn"
    
    EVENT_BUTTON id=109  hw_id =  49  bank=1 fwd_id=LED:16 type=CC chn= 1 cc= 57  button_mode=Toggle lcd_pos=1:1:1  label="^std_btn"
    EVENT_BUTTON id=110  hw_id =  50  bank=1 fwd_id=LED:15 type=CC chn= 1 cc= 58 button_mode=Toggle lcd_pos=1:1:1  label="^std_btn"
    EVENT_BUTTON id=111  hw_id =  51  bank=1 fwd_id=LED:14 type=CC chn= 1 cc= 59 button_mode=Toggle lcd_pos=1:1:1  label="^std_btn"
    EVENT_BUTTON id=112  hw_id =  52  bank=1 fwd_id=LED:13 type=CC chn= 1 cc= 60 button_mode=Toggle lcd_pos=1:1:1  label="^std_btn"
    EVENT_BUTTON id=113  hw_id =  53  bank=1 fwd_id=LED:12 type=CC chn= 1 cc= 61 button_mode=Toggle lcd_pos=1:1:1  label="^std_btn"
    EVENT_BUTTON id=114  hw_id =  54  bank=1 fwd_id=LED:11 type=CC chn= 1 cc= 62 button_mode=Toggle lcd_pos=1:1:1  label="^std_btn"
    EVENT_BUTTON id=115  hw_id =  55  bank=1 fwd_id=LED:10 type=CC chn= 1 cc= 63 button_mode=Toggle lcd_pos=1:1:1  label="^std_btn"
    EVENT_BUTTON id=116  hw_id =  56  bank=1 fwd_id=LED:9  type=CC chn= 1 cc= 64 button_mode=Toggle lcd_pos=1:1:1  label="^std_btn"
    
    
    
    aINSER n=  1   enabled=1  muxed=1  cs=0  resolution=7bit
    aINSER n=  2   enabled=0  muxed=1  cs=1  resolution=7bit
    
    
    # AINSER BANK 1
    
    EVENT_AINSER id=  125 hw_id =  1     bank=1  type=CC     chn= 1 cc= 65   range=  0:127 offset=  0  ports=1000100000001000  lcd_pos=1:1:1  label="^std_aser"
    EVENT_AINSER id=  126 hw_id =  2     bank=1  type=CC     chn= 1 cc= 66   range=  0:127 offset=  0  ports=1000100000001000  lcd_pos=1:1:1  label="^std_aser"
    EVENT_AINSER id=  127 hw_id =  3     bank=1  type=CC     chn= 1 cc= 67   range=  0:127 offset=  0  ports=1000100000001000  lcd_pos=1:1:1  label="^std_aser"
    EVENT_AINSER id=  128 hw_id =  4     bank=1  type=CC     chn= 1 cc= 68   range=  0:127 offset=  0  ports=1000100000001000  lcd_pos=1:1:1  label="^std_aser"
    EVENT_AINSER id=  129 hw_id =  5     bank=1  type=CC     chn= 1 cc= 69   range=  0:127 offset=  0  ports=1000100000001000  lcd_pos=1:1:1  label="^std_aser"
    EVENT_AINSER id=  130 hw_id =  6     bank=1  type=CC     chn= 1 cc= 70   range=  0:127 offset=  0  ports=1000100000001000  lcd_pos=1:1:1  label="^std_aser"
    EVENT_AINSER id=  131 hw_id =  7     bank=1  type=CC     chn= 1 cc= 71   range=  0:127 offset=  0  ports=1000100000001000  lcd_pos=1:1:1  label="^std_aser"
    EVENT_AINSER id=  132 hw_id =  8     bank=1  type=CC     chn= 1 cc= 72   range=  0:127 offset=  0  ports=1000100000001000  lcd_pos=1:1:1  label="^std_aser"
    EVENT_AINSER id=  133 hw_id =  9     bank=1  type=CC     chn= 1 cc= 73   range=  0:127 offset=  0  ports=1000100000001000  lcd_pos=1:1:1  label="^std_aser"
    EVENT_AINSER id=  134 hw_id =  10    bank=1  type=CC     chn= 1 cc= 74   range=  0:127 offset=  0  ports=1000100000001000  lcd_pos=1:1:1  label="^std_aser"
    EVENT_AINSER id=  135 hw_id =  12    bank=1  type=CC     chn= 1 cc= 75   range=  0:127 offset=  0  ports=1000100000001000  lcd_pos=1:1:1  label="^std_aser"
    EVENT_AINSER id=  136 hw_id =  13    bank=1  type=CC     chn= 1 cc= 76   range=  0:127 offset=  0  ports=1000100000001000  lcd_pos=1:1:1  label="^std_aser"
    EVENT_AINSER id=  137 hw_id =  14    bank=1  type=CC     chn= 1 cc= 77   range=  0:127 offset=  0  ports=1000100000001000  lcd_pos=1:1:1  label="^std_aser"
    EVENT_AINSER id=  138 hw_id =  15    bank=1  type=CC     chn= 1 cc= 78   range=  0:127 offset=  0  ports=1000100000001000  lcd_pos=1:1:1  label="^std_aser"
    EVENT_AINSER id=  139 hw_id =  16    bank=1  type=CC     chn= 1 cc= 79   range=  0:127 offset=  0  ports=1000100000001000  lcd_pos=1:1:1  label="^std_aser"
    EVENT_AINSER id=  140 hw_id =  17    bank=1  type=CC     chn= 1 cc= 80   range=  0:127 offset=  0  ports=1000100000001000  lcd_pos=1:1:1  label="^std_aser"
    EVENT_AINSER id=  141 hw_id =  18    bank=1  type=CC     chn= 1 cc= 81   range=  0:127 offset=  0  ports=1000100000001000  lcd_pos=1:1:1  label="^std_aser"
    EVENT_AINSER id=  142 hw_id =  19    bank=1  type=CC     chn= 1 cc= 82   range=  0:127 offset=  0  ports=1000100000001000  lcd_pos=1:1:1  label="^std_aser"
    EVENT_AINSER id=  143 hw_id =  20    bank=1  type=CC     chn= 1 cc= 83   range=  0:127 offset=  0  ports=1000100000001000  lcd_pos=1:1:1  label="^std_aser"
    EVENT_AINSER id=  144 hw_id =  21    bank=1  type=CC     chn= 1 cc= 84   range=  0:127 offset=  0  ports=1000100000001000  lcd_pos=1:1:1  label="^std_aser"
    EVENT_AINSER id=  145 hw_id =  22    bank=1  type=CC     chn= 1 cc= 85   range=  0:127 offset=  0  ports=1000100000001000  lcd_pos=1:1:1  label="^std_aser"
    EVENT_AINSER id=  146 hw_id =  23    bank=1  type=CC     chn= 1 cc= 86   range=  0:127 offset=  0  ports=1000100000001000  lcd_pos=1:1:1  label="^std_aser"
    EVENT_AINSER id=  147 hw_id =  24    bank=1  type=CC     chn= 1 cc= 87   range=  0:127 offset=  0  ports=1000100000001000  lcd_pos=1:1:1  label="^std_aser"
    EVENT_AINSER id=  148 hw_id =  25    bank=1  type=CC     chn= 1 cc= 88   range=  0:127 offset=  0  ports=1000100000001000  lcd_pos=1:1:1  label="^std_aser"
    EVENT_AINSER id=  149 hw_id =  26    bank=1  type=CC     chn= 1 cc= 89   range=  0:127 offset=  0  ports=1000100000001000  lcd_pos=1:1:1  label="^std_aser"
    EVENT_AINSER id=  150 hw_id =  27    bank=1  type=CC     chn= 1 cc= 90   range=  0:127 offset=  0  ports=1000100000001000  lcd_pos=1:1:1  label="^std_aser"
    EVENT_AINSER id=  151 hw_id =  28    bank=1  type=CC     chn= 1 cc= 91   range=  0:127 offset=  0  ports=1000100000001000  lcd_pos=1:1:1  label="^std_aser"
    EVENT_AINSER id=  152 hw_id =  29    bank=1  type=CC     chn= 1 cc= 92   range=  0:127 offset=  0  ports=1000100000001000  lcd_pos=1:1:1  label="^std_aser"
    EVENT_AINSER id=  153 hw_id =  30    bank=1  type=CC     chn= 1 cc= 93   range=  0:127 offset=  0  ports=1000100000001000  lcd_pos=1:1:1  label="^std_aser"
    EVENT_AINSER id=  154 hw_id =  31    bank=1  type=CC     chn= 1 cc= 94   range=  0:127 offset=  0  ports=1000100000001000  lcd_pos=1:1:1  label="^std_aser"
    EVENT_AINSER id=  155 hw_id =  32    bank=1  type=CC     chn= 1 cc= 95   range=  0:127 offset=  0  ports=1000100000001000  lcd_pos=1:1:1  label="^std_aser"
    EVENT_AINSER id=  156 hw_id =  33    bank=1  type=CC     chn= 1 cc= 96   range=  0:127 offset=  0  ports=1000100000001000  lcd_pos=1:1:1  label="^std_aser"
    EVENT_AINSER id=  157 hw_id =  34    bank=1  type=CC     chn= 1 cc= 97   range=  0:127 offset=  0  ports=1000100000001000  lcd_pos=1:1:1  label="^std_aser"
    EVENT_AINSER id=  158 hw_id =  35    bank=1  type=CC     chn= 1 cc= 98   range=  0:127 offset=  0  ports=1000100000001000  lcd_pos=1:1:1  label="^std_aser"
    EVENT_AINSER id=  159 hw_id =  36    bank=1  type=CC     chn= 1 cc= 99   range=  0:127 offset=  0  ports=1000100000001000  lcd_pos=1:1:1  label="^std_aser"
    EVENT_AINSER id=  160 hw_id =  37    bank=1  type=CC     chn= 1 cc= 100   range=  0:127 offset=  0  ports=1000100000001000  lcd_pos=1:1:1  label="^std_aser"
    EVENT_AINSER id=  161 hw_id =  38    bank=1  type=CC     chn= 1 cc= 101   range=  0:127 offset=  0  ports=1000100000001000  lcd_pos=1:1:1  label="^std_aser"
    EVENT_AINSER id=  162 hw_id =  39    bank=1  type=CC     chn= 1 cc= 102   range=  0:127 offset=  0  ports=1000100000001000  lcd_pos=1:1:1  label="^std_aser"
    EVENT_AINSER id=  163 hw_id =  40    bank=1  type=CC     chn= 1 cc= 103   range=  0:127 offset=  0  ports=1000100000001000  lcd_pos=1:1:1  label="^std_aser"
    
    
    
    # encoder hardware configuration
    ENC n=  2   sr= 1  pins=1:0   type=non_detented
    ENC n=  1   sr= 1  pins=3:2   type=non_detented
    ENC n=  4   sr= 1  pins=5:4   type=non_detented 
    ENC n=  3   sr= 1  pins=7:6   type=non_detented
    ENC n=  6   sr= 2  pins=1:0   type=non_detented
    ENC n=  5   sr= 2  pins=3:2   type=non_detented
    ENC n=  8   sr= 2  pins=5:4   type=non_detented
    ENC n=  7   sr= 2  pins=7:6   type=non_detented
    ENC n=  10   sr= 3  pins=1:0   type=non_detented
    ENC n=  9   sr= 3  pins=3:2   type=non_detented
    ENC n=  12   sr= 3  pins=5:4   type=non_detented
    ENC n=  11   sr= 3  pins=7:6   type=non_detented
    ENC n=  14   sr= 4  pins=1:0   type=non_detented
    ENC n=  13   sr= 4  pins=3:2   type=non_detented
    ENC n=  16   sr= 4  pins=5:4   type=non_detented
    ENC n=  15   sr= 4  pins=7:6   type=non_detented 
    
    

    I take this opportunity to share with you a photo of my project

    IMG_20230716_145620.thumb.jpg.f0829134e857c81a7a2799b0b3d39872.jpg

  10. I would need help with the power supply, I want to power at least 264 ws2812b leds, maybe more in the future,

    several dout modules,

    in the future surely 8 oled screens, and I'm sure I'm forgetting some. 

    I wonder what power supply to buy and how to connect it.. I thought I would take 5v 10a..

    https://secure.reichelt.com/fr/fr/bloc-d-alimentation-d-coupage-ferm-50-w-5-v-10-a-mw-lrs-50-5-p202960.html?&trstct=pol_4&nbc=1

     

    I already have this usb hub:

    https://secure.reichelt.com/fr/fr/hub-usb-3-0-4-ports-avec-bloc-d-alimentation-en-m-tal-logilink-ua0149-p127833.html?&nbc=1

     

    Thank you for your help 

  11. Thank you for these tips, I modified the files

    I ordered the uln2803 and the 74HCT1G14GW-Q100H to test the RGB PEL12T encoders, but I haven't managed to solve the problem yet. While waiting to solve the problem with the PEL12T RGB encoders, I developed circuits for the PEC16 encoders that I have in stock.

    https://drive.google.com/file/d/1HiJ8JmOTWMXAXDr4jsRvSmx43k4zEgOv/view?usp=share_link

     

    I also finished the files for the 4x2 silicon sparkfun pads.
    https://drive.google.com/file/d/1pefRBtEz9XU68osIdfHJXfBManKkIZye/view?usp=share_link

     

    I started to document the project

    https://ksir-diy.blogspot.com/2023/05/modulbox-v2.html?m=1

  12. Thank you for your involvement in my project. 


    After studying novski's projects https://github.com/novski/Midibox/tree/master/VLR-8Enc
    It uses an uln2803 for the switches.
    I reproduced its layout, but I don't really understand how Darlington transistor arrays work.

    https://drive.google.com/file/d/1EW-IxclCJ1_cOeau-bTUnaOuSZ5eGdsN/view?usp=share_link

    image.thumb.png.b282a7b229b79b171a29ec3bd266818e.png


    I will study the solution you propose with 74HC1G14.

     

    22 hours ago, Phatline said:

    just had a look on your 4x2 Enc RGB SW Led ring Rgb render here... and i am not 100% sure that the inbuilt RGB LEDs that enlighten the Encodersshaft dont shine on the LED-Ring and make them hard too read (maybe need some lightshielding)... by the way hard too read, those Alps Knobs are a bit big for that small Ledring - can you still see the LEDs when looking from a angle that is not 100% from top?

    you are right and will try to take your remarks into account.
    although I don't have a solution yet.
    the alps caps are pretty and I couldn't find a smaller equivalent.

     

    22 hours ago, Phatline said:

    since i have not much time these times, and you have plenty off modules what module i should check next?

    thank you again for your involvement
    The encoders and silicon pad modules are far from finished.
    the other modules are almost ok for me, I should check them again.
    maybe you can watch this if you want.
    but if you have little time, I would not like to waste it and keep the time you can give me to really check the modules that I think I have completely finished

  13. hello,

    always about

    4x2 Enc RGB SW Led ring Rgb

    I abandoned the idea of a matrix for the rgb leds of the pel12t encoders. this simplifies the diagram.
    for the common anode I read here: http://midibox.org/forums/topic/20713-how-to-connect-common-anode-rgb-leds/#comment-180389
    just connect the cathodes to the DOUT pins.
    595s can sink current, which means they "can supply ground/0V". Thus, the output is "reversed" for common anode parts. This can be specified in MB_NG. When the 595 output is high, the LED is off. When low, the LED is on.

    On the other hand I still do not know how to connect the switch of the pel12t encoders to the 74hc165.
    normally a switch is connected between VS and D*
    with its switches the contact is between VD and D*.

    Is there a way to solve this problem in a software way?
    should I use a bc547 for example or other hardware solution?
    another possible solution?

     

    https://drive.google.com/file/d/1kLTryPKwxlgYORO9NTeJ00XRjq4Sl2w4/view?usp=share_link

     

    Thanks for your help

  14.  


    The module that gives me the most problem is the

    4x2 Enc RGB SW Led ring Rgb

    Screenshot 2023-04-10 161734.png
    https://drive.google.com/file/d/1kLTryPKwxlgYORO9NTeJ00XRjq4Sl2w4/view?usp=share_link


    I'm trying to use Bourns RGB + Switch Pel12T Encoders
    https://mou.sr/3zJilbU
    https://www.mouser.fr/datasheet/2/54/PEL12T-777462.pdf

    But the wiring diagram of the leds and switches of these encoders is a challenge for me:

    Screenshot 2023-04-10 194912.png

    the RGB LED matrix is also difficult.

    Maybe it's not possible with a matrix because of the switch ? 

    Help and advice are always welcome.

    and the lack of space on will also be a PCB challenge,
    I may be forced to add a third sandwich panel.

     

     

     

     

     

  15. 3 hours ago, Phatline said:

    yes i can share it... will take a while... do you want to use it in a button-led-matrix "scalar" way?

    Thanks

    It's mostly to look at how you designed it. I would adapt it for the sparkfun 2x2 pads

    i would like to use it with rgb leds

×
×
  • Create New...