Modul Box NG V2

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”

 

From NG user manual, .NGC config, SRIO section

 

| debounce_cycles=<0..65535> | This command allows to enable a debouncing mechanism for digital inputs (buttons). The number specifies the dead time in SRIO cycles at which button events will be rejected.
The time of a SRIO cycle depends on the num_sr configuration, typically it’s around 420 uS for 32 SRs, which means that with debounce_cycles=20 the debouncing dead time is 8.4 mS. |

thank you for your help

I tried :

#PADS&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; EVENT\_BUTTON&nbsp;&nbsp; &nbsp;id=&nbsp;&nbsp; &nbsp;65&nbsp;&nbsp; &nbsp;hw\_id=&nbsp;&nbsp; &nbsp;33&nbsp;&nbsp; &nbsp;fwd\_id=RGBLED:137&nbsp;&nbsp; &nbsp;type=CC&nbsp;&nbsp; &nbsp;chn=&nbsp;&nbsp; &nbsp;1&nbsp;&nbsp; &nbsp;cc=&nbsp;&nbsp; &nbsp;33&nbsp;&nbsp; &nbsp;button\_mode=&nbsp;&nbsp; &nbsp;Toggle&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;label=&nbsp;&nbsp; &nbsp;"^std\_btn"&nbsp;&nbsp; &nbsp;bank=&nbsp;&nbsp; &nbsp;1&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;hsv=&nbsp;&nbsp; &nbsp;50:100:10&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;debounce\_cycles=65535 EVENT\_BUTTON&nbsp;&nbsp; &nbsp;id=&nbsp;&nbsp; &nbsp;66&nbsp;&nbsp; &nbsp;hw\_id=&nbsp;&nbsp; &nbsp;35&nbsp;&nbsp; &nbsp;fwd\_id=RGBLED:138&nbsp;&nbsp; &nbsp;type=CC&nbsp;&nbsp; &nbsp;chn=&nbsp;&nbsp; &nbsp;1&nbsp;&nbsp; &nbsp;cc=&nbsp;&nbsp; &nbsp;34&nbsp;&nbsp; &nbsp;button\_mode=&nbsp;&nbsp; &nbsp;Toggle&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;label=&nbsp;&nbsp; &nbsp;"^std\_btn"&nbsp;&nbsp; &nbsp;bank=&nbsp;&nbsp; &nbsp;1&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;hsv=&nbsp;&nbsp; &nbsp;100:100:10&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;debounce\_cycles=65535 EVENT\_BUTTON&nbsp;&nbsp; &nbsp;id=&nbsp;&nbsp; &nbsp;67&nbsp;&nbsp; &nbsp;hw\_id=&nbsp;&nbsp; &nbsp;37&nbsp;&nbsp; &nbsp;fwd\_id=RGBLED:139&nbsp;&nbsp; &nbsp;type=CC&nbsp;&nbsp; &nbsp;chn=&nbsp;&nbsp; &nbsp;1&nbsp;&nbsp; &nbsp;cc=&nbsp;&nbsp; &nbsp;35&nbsp;&nbsp; &nbsp;button\_mode=&nbsp;&nbsp; &nbsp;Toggle&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;label=&nbsp;&nbsp; &nbsp;"^std\_btn"&nbsp;&nbsp; &nbsp;bank=&nbsp;&nbsp; &nbsp;1&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;hsv=&nbsp;&nbsp; &nbsp;0:100:10&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;debounce\_cycles=65535 EVENT\_BUTTON&nbsp;&nbsp; &nbsp;id=&nbsp;&nbsp; &nbsp;68&nbsp;&nbsp; &nbsp;hw\_id=&nbsp;&nbsp; &nbsp;39&nbsp;&nbsp; &nbsp;fwd\_id=RGBLED:140&nbsp;&nbsp; &nbsp;type=CC&nbsp;&nbsp; &nbsp;chn=&nbsp;&nbsp; &nbsp;1&nbsp;&nbsp; &nbsp;cc=&nbsp;&nbsp; &nbsp;36&nbsp;&nbsp; &nbsp;button\_mode=&nbsp;&nbsp; &nbsp;Toggle&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;label=&nbsp;&nbsp; &nbsp;"^std\_btn"&nbsp;&nbsp; &nbsp;bank=&nbsp;&nbsp; &nbsp;1&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;hsv=&nbsp;&nbsp; &nbsp;200:100:10&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;debounce\_cycles=65535 EVENT\_BUTTON&nbsp;&nbsp; &nbsp;id=&nbsp;&nbsp; &nbsp;69&nbsp;&nbsp; &nbsp;hw\_id=&nbsp;&nbsp; &nbsp;34&nbsp;&nbsp; &nbsp;fwd\_id=RGBLED:141&nbsp;&nbsp; &nbsp;type=CC&nbsp;&nbsp; &nbsp;chn=&nbsp;&nbsp; &nbsp;1&nbsp;&nbsp; &nbsp;cc=&nbsp;&nbsp; &nbsp;37&nbsp;&nbsp; &nbsp;button\_mode=&nbsp;&nbsp; &nbsp;Toggle&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;label=&nbsp;&nbsp; &nbsp;"^std\_btn"&nbsp;&nbsp; &nbsp;bank=&nbsp;&nbsp; &nbsp;1&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;hsv=&nbsp;&nbsp; &nbsp;50:100:10&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;debounce\_cycles=65535 EVENT\_BUTTON&nbsp;&nbsp; &nbsp;id=&nbsp;&nbsp; &nbsp;70&nbsp;&nbsp; &nbsp;hw\_id=&nbsp;&nbsp; &nbsp;36&nbsp;&nbsp; &nbsp;fwd\_id=RGBLED:142&nbsp;&nbsp; &nbsp;type=CC&nbsp;&nbsp; &nbsp;chn=&nbsp;&nbsp; &nbsp;1&nbsp;&nbsp; &nbsp;cc=&nbsp;&nbsp; &nbsp;38&nbsp;&nbsp; &nbsp;button\_mode=&nbsp;&nbsp; &nbsp;Toggle&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;label=&nbsp;&nbsp; &nbsp;"^std\_btn"&nbsp;&nbsp; &nbsp;bank=&nbsp;&nbsp; &nbsp;1&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;hsv=&nbsp;&nbsp; &nbsp;100:100:10&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;debounce\_cycles=65535 EVENT\_BUTTON&nbsp;&nbsp; &nbsp;id=&nbsp;&nbsp; &nbsp;71&nbsp;&nbsp; &nbsp;hw\_id=&nbsp;&nbsp; &nbsp;38&nbsp;&nbsp; &nbsp;fwd\_id=RGBLED:143&nbsp;&nbsp; &nbsp;type=CC&nbsp;&nbsp; &nbsp;chn=&nbsp;&nbsp; &nbsp;1&nbsp;&nbsp; &nbsp;cc=&nbsp;&nbsp; &nbsp;39&nbsp;&nbsp; &nbsp;button\_mode=&nbsp;&nbsp; &nbsp;Toggle&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;label=&nbsp;&nbsp; &nbsp;"^std\_btn"&nbsp;&nbsp; &nbsp;bank=&nbsp;&nbsp; &nbsp;1&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;hsv=&nbsp;&nbsp; &nbsp;0:100:10&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;debounce\_cycles=65535 EVENT\_BUTTON&nbsp;&nbsp; &nbsp;id=&nbsp;&nbsp; &nbsp;72&nbsp;&nbsp; &nbsp;hw\_id=&nbsp;&nbsp; &nbsp;40&nbsp;&nbsp; &nbsp;fwd\_id=RGBLED:144&nbsp;&nbsp; &nbsp;type=CC&nbsp;&nbsp; &nbsp;chn=&nbsp;&nbsp; &nbsp;1&nbsp;&nbsp; &nbsp;cc=&nbsp;&nbsp; &nbsp;40&nbsp;&nbsp; &nbsp;button\_mode=&nbsp;&nbsp; &nbsp;Toggle&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;label=&nbsp;&nbsp; &nbsp;"^std\_btn"&nbsp;&nbsp; &nbsp;bank=&nbsp;&nbsp; &nbsp;1&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;hsv=&nbsp;&nbsp; &nbsp;200:100:10&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;debounce\_cycles=65535 &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; #PADS&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; EVENT\_BUTTON&nbsp;&nbsp; &nbsp;id=&nbsp;&nbsp; &nbsp;73&nbsp;&nbsp; &nbsp;hw\_id=&nbsp;&nbsp; &nbsp;41&nbsp;&nbsp; &nbsp;fwd\_id=RGBLED:129&nbsp;&nbsp; &nbsp;type=CC&nbsp;&nbsp; &nbsp;chn=&nbsp;&nbsp; &nbsp;1&nbsp;&nbsp; &nbsp;cc=&nbsp;&nbsp; &nbsp;41&nbsp;&nbsp; &nbsp;button\_mode=&nbsp;&nbsp; &nbsp;Toggle&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;label=&nbsp;&nbsp; &nbsp;"^std\_btn"&nbsp;&nbsp; &nbsp;bank=&nbsp;&nbsp; &nbsp;1&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;hsv=&nbsp;&nbsp; &nbsp;50:100:10&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;debounce\_cycles=65535 EVENT\_BUTTON&nbsp;&nbsp; &nbsp;id=&nbsp;&nbsp; &nbsp;74&nbsp;&nbsp; &nbsp;hw\_id=&nbsp;&nbsp; &nbsp;43&nbsp;&nbsp; &nbsp;fwd\_id=RGBLED:130&nbsp;&nbsp; &nbsp;type=CC&nbsp;&nbsp; &nbsp;chn=&nbsp;&nbsp; &nbsp;1&nbsp;&nbsp; &nbsp;cc=&nbsp;&nbsp; &nbsp;42&nbsp;&nbsp; &nbsp;button\_mode=&nbsp;&nbsp; &nbsp;Toggle&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;label=&nbsp;&nbsp; &nbsp;"^std\_btn"&nbsp;&nbsp; &nbsp;bank=&nbsp;&nbsp; &nbsp;1&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;hsv=&nbsp;&nbsp; &nbsp;100:100:10&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;debounce\_cycles=65535 EVENT\_BUTTON&nbsp;&nbsp; &nbsp;id=&nbsp;&nbsp; &nbsp;75&nbsp;&nbsp; &nbsp;hw\_id=&nbsp;&nbsp; &nbsp;45&nbsp;&nbsp; &nbsp;fwd\_id=RGBLED:131&nbsp;&nbsp; &nbsp;type=CC&nbsp;&nbsp; &nbsp;chn=&nbsp;&nbsp; &nbsp;1&nbsp;&nbsp; &nbsp;cc=&nbsp;&nbsp; &nbsp;43&nbsp;&nbsp; &nbsp;button\_mode=&nbsp;&nbsp; &nbsp;Toggle&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;label=&nbsp;&nbsp; &nbsp;"^std\_btn"&nbsp;&nbsp; &nbsp;bank=&nbsp;&nbsp; &nbsp;1&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;hsv=&nbsp;&nbsp; &nbsp;0:100:10&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;debounce\_cycles=65535 EVENT\_BUTTON&nbsp;&nbsp; &nbsp;id=&nbsp;&nbsp; &nbsp;76&nbsp;&nbsp; &nbsp;hw\_id=&nbsp;&nbsp; &nbsp;47&nbsp;&nbsp; &nbsp;fwd\_id=RGBLED:132&nbsp;&nbsp; &nbsp;type=CC&nbsp;&nbsp; &nbsp;chn=&nbsp;&nbsp; &nbsp;1&nbsp;&nbsp; &nbsp;cc=&nbsp;&nbsp; &nbsp;44&nbsp;&nbsp; &nbsp;button\_mode=&nbsp;&nbsp; &nbsp;Toggle&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;label=&nbsp;&nbsp; &nbsp;"^std\_btn"&nbsp;&nbsp; &nbsp;bank=&nbsp;&nbsp; &nbsp;1&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;hsv=&nbsp;&nbsp; &nbsp;200:100:10&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;debounce\_cycles=65535 EVENT\_BUTTON&nbsp;&nbsp; &nbsp;id=&nbsp;&nbsp; &nbsp;77&nbsp;&nbsp; &nbsp;hw\_id=&nbsp;&nbsp; &nbsp;42&nbsp;&nbsp; &nbsp;fwd\_id=RGBLED:133&nbsp;&nbsp; &nbsp;type=CC&nbsp;&nbsp; &nbsp;chn=&nbsp;&nbsp; &nbsp;1&nbsp;&nbsp; &nbsp;cc=&nbsp;&nbsp; &nbsp;45&nbsp;&nbsp; &nbsp;button\_mode=&nbsp;&nbsp; &nbsp;Toggle&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;label=&nbsp;&nbsp; &nbsp;"^std\_btn"&nbsp;&nbsp; &nbsp;bank=&nbsp;&nbsp; &nbsp;1&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;hsv=&nbsp;&nbsp; &nbsp;50:100:10&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;debounce\_cycles=65535 EVENT\_BUTTON&nbsp;&nbsp; &nbsp;id=&nbsp;&nbsp; &nbsp;78&nbsp;&nbsp; &nbsp;hw\_id=&nbsp;&nbsp; &nbsp;44&nbsp;&nbsp; &nbsp;fwd\_id=RGBLED:134&nbsp;&nbsp; &nbsp;type=CC&nbsp;&nbsp; &nbsp;chn=&nbsp;&nbsp; &nbsp;1&nbsp;&nbsp; &nbsp;cc=&nbsp;&nbsp; &nbsp;46&nbsp;&nbsp; &nbsp;button\_mode=&nbsp;&nbsp; &nbsp;Toggle&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;label=&nbsp;&nbsp; &nbsp;"^std\_btn"&nbsp;&nbsp; &nbsp;bank=&nbsp;&nbsp; &nbsp;1&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;hsv=&nbsp;&nbsp; &nbsp;100:100:10&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;debounce\_cycles=65535 EVENT\_BUTTON&nbsp;&nbsp; &nbsp;id=&nbsp;&nbsp; &nbsp;79&nbsp;&nbsp; &nbsp;hw\_id=&nbsp;&nbsp; &nbsp;46&nbsp;&nbsp; &nbsp;fwd\_id=RGBLED:135&nbsp;&nbsp; &nbsp;type=CC&nbsp;&nbsp; &nbsp;chn=&nbsp;&nbsp; &nbsp;1&nbsp;&nbsp; &nbsp;cc=&nbsp;&nbsp; &nbsp;47&nbsp;&nbsp; &nbsp;button\_mode=&nbsp;&nbsp; &nbsp;Toggle&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;label=&nbsp;&nbsp; &nbsp;"^std\_btn"&nbsp;&nbsp; &nbsp;bank=&nbsp;&nbsp; &nbsp;1&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;hsv=&nbsp;&nbsp; &nbsp;0:100:10&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;debounce\_cycles=65535 EVENT\_BUTTON&nbsp;&nbsp; &nbsp;id=&nbsp;&nbsp; &nbsp;80&nbsp;&nbsp; &nbsp;hw\_id=&nbsp;&nbsp; &nbsp;48&nbsp;&nbsp; &nbsp;fwd\_id=RGBLED:136&nbsp;&nbsp; &nbsp;type=CC&nbsp;&nbsp; &nbsp;chn=&nbsp;&nbsp; &nbsp;1&nbsp;&nbsp; &nbsp;cc=&nbsp;&nbsp; &nbsp;48&nbsp;&nbsp; &nbsp;button\_mode=&nbsp;&nbsp; &nbsp;Toggle&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;label=&nbsp;&nbsp; &nbsp;"^std\_btn"&nbsp;&nbsp; &nbsp;bank=&nbsp;&nbsp; &nbsp;1&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;hsv=&nbsp;&nbsp; &nbsp;200:100:10&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;debounce\_cycles=65535 &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;

     doesn’t seem to work                                                                                       

well then test like i suggested:

Voltmeter black cable to a ground pin (core ore dinx4 module)

Voltmeter red cable to a Dinx4 Pin that is connect to a PAD.

if you dont press the PAD you should have 5V (its pulled high with the Dinx4 inbuilt pull high resistor > the 10K ones)
if you then press the PAD you should have 0V (its pulled down with the button that connects now the Dinx4 Pin with Ground)
if this is not 0V, and in worst case 2.5V - then the Resistance between Button and Ground is to high, so the 10K resistors which are connected to +5V overrule them… the Chips on the Dinx4 recognize 5V to 2,5V as high (cant say if this is true i think its arround 2,5V) and 0-2,5V is low

my suggestion is now, take one off the 10K resistor out and replace it with a 100K resistors, measure again, and see the difference.

about NG: maybe ZAM knows more… i am definitvly the wrong one for NG script :wink:

23 hours ago, ksir said:

doesn’t seem to work   

IIRC this is a global definition, not an event definition !

You have to put it only once at the beginning of your .NGC config file, it will set all SRIO to the specified value.

Check to be sure but probably max value (65535) is way to much, like 30sec for 32 shift register ! that’s a long time before being able to push a button again.

You should be able to monitor the bouncing time of the button (via midi or debug), maybe there is more than one bounce actually, you’ll see.

Set the debounce time about twice that to be safe, or whatever higher possible value without feeling some requested fast push don’t work.

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:
 
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)

 

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..

Thank you

 

1 Like

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!

)

 

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)

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 ?

( 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 )

 

maybe its the Ripple off the PSU
about your PSU - reichelt specs is saying : “Ondulation résiduelle : 80 mVcàc”   i guess this is not a 50Hz ripple but HF ripple…
— i guess some small cap (100nf, 10pF) and a big Cap (depends on the load, use for example a 100uF and a 2200uF) on the output off the PSU would reduce that “ripple”… 
* maybe that caps are not enough and you need some more filtering (coil, resistor, lpf…) but i would start with some caps…

the connections in your 2nd picture are not necessery - i guess (dont seeing the whole picture, but i think so…) — so picture 1 is correct.

by the way - its only the last LED that flickers? maybe you have to terminate the DO line on the very last LED off the Chain with a 10K resistor to 5V or Ground.

else it could be a software problem, when the software loops thru the LEDs, and when it comes to the last one it jumps to the beginning off the chain… try to programm in the ng code one more LED (which in reality not exists) - so you can be sure that this is not a software bug…

  • but dont ask me about ng-programming — no glue about that.

  • mike.

 

1 Like