Arduino Vb.net Button Problem


hello friends, im developing project arduino , vb.net , @ begining project looking quite easy complete have problem buttons, in summary , when push psychical button , increases (1,2,3)the value in textbox located in windows form. can data arduino way 1 button , textbox biggest problem arduino have 3 different pychical buttons , each buttons send datas 3 different textboxes, how can ensure datas different textboxes in windows form ? please ? thank you

quote
but biggest problem arduino have 3 different pysical buttons , each buttons send datas 3 different textboxes
if understand you, arduino button #1 has 3 text boxes, 1, 2, 3.  repeated button #2 , #3.  therefore have 3 physical buttons , 9 text boxes.

a way fo assign phases each button: phase 1 , phase 2.  phase 1 involves long-press , phase 2 involves short-press.

example:
button #2 long-pressed (> 500ms).  led lights indicate phase 1 has been activated.  now, short press on of 3 buttons select associated pc  box.  led extinguished show completion , logic returns waiting long-press ... in state, short-press on button ignored.


you can extend short, long-press scenario 3 or 4 phases before gets difficult.  example:

0 ms - 499 ms            ignore
500 ms - 999 ms       phase 1
1000 ms - 1499 ms   phase 2
1500 ms - 1999 ms   phase 3

leds each phase helps human avoid confusion.
phsse 1   ---->  phsse 2   ----->  phase 3  ----->   clear  ----->  phase 1 ...

you add clear button if desired instead of extended presses sbove.

good luck.  review how software button debounce implemented!!!


ray



Arduino Forum > Using Arduino > Project Guidance > Arduino Vb.net Button Problem


arduino

Comments

Popular posts from this blog

Error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode - Raspberry Pi Forums

class MPU6050 has no member named begin

missing filename after '-o'