jazzymanserg Posted March 27, 2018 Share Posted March 27, 2018 Hello! I have a problem with mmjoy2. My joy consist from 88 buttons, and worcking propperly. I use diode matrix 10X10 an Arduino NANO. Recently, I separated 25 buttons into remote module and connected them with a 4-wire FTP cable with a matrix. I got the problem. If the cable is more than 2 meters (3 metres for example) then the spontaneous button presses begin. Did someone meet with such a problem and how to solve it? I put timers on the buttons - it's better, but still the problem remains. There may be restrictions on the length of the cable? Link to comment Share on other sites More sharing options...
rel4y Posted March 28, 2018 Share Posted March 28, 2018 (edited) Your button state is floating. You either need to add a pullup or or pulldown resistor. Best use around 10k Ohms. Edited March 28, 2018 by rel4y Cougar, CH and Saitek PnP hall sensor kits + shift registers: https://forums.eagle.ru/showthread.php?t=220916 Shapeways store for DIY flight simming equipment and repair: https://www.shapeways.com/shops/rel4y-diy-joystick-flight-simming Link to comment Share on other sites More sharing options...
jazzymanserg Posted March 28, 2018 Share Posted March 28, 2018 (edited) Your button state is floating. You either need to add a pullup or or pulldown resistor. Best use around 10k Ohms. Thx for advice! Where I need to setup them. I thought about this, but i have no variant. I use matrix, If i need pullup resistor for each button - it`s very many resistors. May be I can Pullup each collumns, and pulldown each row ? Have you advice ? And Are you shure, that Mega_mozg not include internal Arduino pullup and pulldown resistors ? Edited March 28, 2018 by jazzymanserg Link to comment Share on other sites More sharing options...
jazzymanserg Posted March 28, 2018 Share Posted March 28, 2018 (edited) Am I right? Edited March 28, 2018 by jazzymanserg Link to comment Share on other sites More sharing options...
jazzymanserg Posted April 6, 2018 Share Posted April 6, 2018 Oh , Boys, Thnx for answer. )))))) Theme is alive ))) I founded ! Its working On 5 meters wire Link to comment Share on other sites More sharing options...
rel4y Posted April 13, 2018 Share Posted April 13, 2018 (edited) Sorry, I was on vacation. 10K pullup is the way to go, glad you got it sorted out. Btw does anyone know if I need to hardware debounce encoders or if MMJoy2 does that in software? Edited April 13, 2018 by rel4y Cougar, CH and Saitek PnP hall sensor kits + shift registers: https://forums.eagle.ru/showthread.php?t=220916 Shapeways store for DIY flight simming equipment and repair: https://www.shapeways.com/shops/rel4y-diy-joystick-flight-simming Link to comment Share on other sites More sharing options...
rel4y Posted April 14, 2018 Share Posted April 14, 2018 (edited) Here is my version of an encoder PCB for these abundant EC11 type encoders from Aliexpress. (link) It is hardware debounced and pullups can be added for A, B and push button. Here is the Osh Park link: https://oshpark.com/shared_projects/4gvesbVp Edited June 1, 2018 by rel4y Cougar, CH and Saitek PnP hall sensor kits + shift registers: https://forums.eagle.ru/showthread.php?t=220916 Shapeways store for DIY flight simming equipment and repair: https://www.shapeways.com/shops/rel4y-diy-joystick-flight-simming Link to comment Share on other sites More sharing options...
jazzymanserg Posted April 16, 2018 Share Posted April 16, 2018 I have 6 encoders and 80 buttons and I setup Capacity betwen + and - of the buttons, but encoders clean. MMJOY2 Let input soft timers for first 12 buttton, and 20 buttons. So I use timer (for debouncing) for first 32 buttons, and hardware debounce for 60. - its simple R-C filter R 10K C 0.1mF/ If your buttons are very bouncer, so change R or C. Link to comment Share on other sites More sharing options...
jazzymanserg Posted April 16, 2018 Share Posted April 16, 2018 Osh Park - cool ! Link to comment Share on other sites More sharing options...
rel4y Posted April 16, 2018 Share Posted April 16, 2018 I have 6 encoders and 80 buttons and I setup Capacity betwen + and - of the buttons, but encoders clean. MMJOY2 Let input soft timers for first 12 buttton, and 20 buttons. So I use timer (for debouncing) for first 32 buttons, and hardware debounce for 60. - its simple R-C filter R 10K C 0.1mF/ If your buttons are very bouncer, so change R or C. Thanks for the info mate! :) But isnt 0.1 mF a bit high? That should give you a pretty large slope of like 1 second. The 100 nF cap should theoretically provide a 1 ms slope in the PCB I posted above. Cougar, CH and Saitek PnP hall sensor kits + shift registers: https://forums.eagle.ru/showthread.php?t=220916 Shapeways store for DIY flight simming equipment and repair: https://www.shapeways.com/shops/rel4y-diy-joystick-flight-simming Link to comment Share on other sites More sharing options...
jazzymanserg Posted April 17, 2018 Share Posted April 17, 2018 Yes, I know this, But i tried 100nf, may be i have bad buttons, I achieved success only with 0.1mf minimum Link to comment Share on other sites More sharing options...
lucky-hendrix Posted May 3, 2018 Share Posted May 3, 2018 Hi guys, I have a question for the one that use encoders to control functions in DCS such as : HSI CRS/HDG. Radio volume, Altimeter QFE, lights level, and so on. For those function I always have trouble with the timer setting. what do you use ? what delay and switch ON+OFF or just on or OFF ? I tried several settings, but in game adjustment (HSI crs for instance) is either too slow, or is not smooth. Or continues to increment in one direction when I try to stop it by turning the other direction. Link to comment Share on other sites More sharing options...
slowmover Posted October 27, 2018 Share Posted October 27, 2018 So i upload MMJOY to micro pro and then i can programm it with mmjoy software? I want to make some raddio panels etc for heuy.I want to put on-on swtiches rotary encoder and rotary switches.Micri pro with MMJOY can do it? [sIGPIC][/sIGPIC] Link to comment Share on other sites More sharing options...
Sokol1_br Posted October 27, 2018 Author Share Posted October 27, 2018 Yes, is this. First use MMJoySetup software for upload MMJoy2 firmware to PRO Micro or compatible Arduino EPROM. This create will create a HID controller, an "joystick". Then use MMjoySetup software for configure this "joystick" for your needs, setting up ~120 buttons, up to 8 axes, up to 6 encoders... Link to comment Share on other sites More sharing options...
jazzymanserg Posted October 29, 2018 Share Posted October 29, 2018 Hi guys, I have a question for the one that use encoders to control functions in DCS such as : HSI CRS/HDG. Radio volume, Altimeter QFE, lights level, and so on. For those function I always have trouble with the timer setting. what do you use ? what delay and switch ON+OFF or just on or OFF ? I tried several settings, but in game adjustment (HSI crs for instance) is either too slow, or is not smooth. Or continues to increment in one direction when I try to stop it by turning the other direction. Only AutoHotKey can help you Link to comment Share on other sites More sharing options...
slowmover Posted October 30, 2018 Share Posted October 30, 2018 (edited) Okey i am confused.How it can recognise 120buttons?I see only 18 positions for inputs.I have make a button box only with leobodnar and i am trying to understand how it will work with micro pro.I want to buiuld some panels for the uh-1h cockpit so i will need that 120buttons.If anyone can help. https://imgur.com/a/1LAZEg1 Edited October 30, 2018 by slowmover [sIGPIC][/sIGPIC] Link to comment Share on other sites More sharing options...
Biggus Posted October 31, 2018 Share Posted October 31, 2018 Okey i am confused.How it can recognise 120buttons?I see only 18 positions for inputs.I have make a button box only with leobodnar and i am trying to understand how it will work with micro pro.I want to buiuld some panels for the uh-1h cockpit so i will need that 120buttons.If anyone can help. https://imgur.com/a/1LAZEg1 https://github.com/MMjoy/mmjoy_en/wiki/Connecting-basic-inputs-and-setting-up-software Go to the above link and read about button matrixes and shift registers. Hopefully this will help you. Link to comment Share on other sites More sharing options...
jazzymanserg Posted October 31, 2018 Share Posted October 31, 2018 I made 120 buttons mmjoy and get one big problem. When make encoders, system begin malfunction, - various magical errors for example - buttons №98 work invers, or press button 101, and controller press button 41 e.t.c. And nobody can help me.. now system consist 128 buttons and without encoders Link to comment Share on other sites More sharing options...
Sokol1_br Posted October 31, 2018 Author Share Posted October 31, 2018 (edited) Okey i am confused.How it can recognise 120buttons?I see only 18 positions for inputs.I have make a button box only with leobodnar and i am trying to understand how it will work with micro pro.I want to buiuld some panels for the uh-1h cockpit so i will need that 120buttons.If anyone can help. https://imgur.com/a/1LAZEg1 MMJoy2 firmware allow use up to ~120 buttons, but use all this buttons depends on Arduino board used. PRO Micro have limited inputs pins, allowing use 18 pins (BM) for buttons matrix if no axes input is used. This mean a 9x9 matrix = 81 buttons. For use more buttons is need other models of Arduino (ATMEGA32u4) with more pins, see in first message of this topic. Or using chained Shift Register boards can use axes (up to 8 ) and more buttons, because Shift Register use only 5 pins in Arduino for for serial connection. Edited October 31, 2018 by Sokol1_br Link to comment Share on other sites More sharing options...
slowmover Posted November 3, 2018 Share Posted November 3, 2018 Thank you for your help guys one more question.I want it to built me cockpit for the uh1h .Which shift register should I use?74HC595 or 74HC165? I will use micro pro with chained shift register.How many chained shift register I can connect to pro micro? [sIGPIC][/sIGPIC] Link to comment Share on other sites More sharing options...
rel4y Posted November 3, 2018 Share Posted November 3, 2018 74HC165 are for inputs. But you cant use the breakout boards from ebay, they require significant rework on their schematic. Cougar, CH and Saitek PnP hall sensor kits + shift registers: https://forums.eagle.ru/showthread.php?t=220916 Shapeways store for DIY flight simming equipment and repair: https://www.shapeways.com/shops/rel4y-diy-joystick-flight-simming Link to comment Share on other sites More sharing options...
Sokol1_br Posted November 3, 2018 Author Share Posted November 3, 2018 Why not use CD4021B instead 74HC165 as CD4021 is standard in Thrustmaster, VPC? Each Shift Register m/c (chip) control 8 buttons, theoretically you need 16 for be able to use all buttons allowed in MMjoy2 firmware. Link to comment Share on other sites More sharing options...
slowmover Posted November 3, 2018 Share Posted November 3, 2018 Why not use CD4021B instead 74HC165 as CD4021 is standard in Thrustmaster, VPC? Each Shift Register m/c (chip) control 8 buttons, theoretically you need 16 for be able to use all buttons allowed in MMjoy2 firmware. What is the difference between CD4021B 74CH165? Each shift register controls 8 buttons but for me it will take 4 toggle switches (on-on) [sIGPIC][/sIGPIC] Link to comment Share on other sites More sharing options...
rel4y Posted November 3, 2018 Share Posted November 3, 2018 Basically, for your use there are none. 4021 are a bit more modern and also a little more expensive. The 74HC types are from the 60s or 70s mostly. Cougar, CH and Saitek PnP hall sensor kits + shift registers: https://forums.eagle.ru/showthread.php?t=220916 Shapeways store for DIY flight simming equipment and repair: https://www.shapeways.com/shops/rel4y-diy-joystick-flight-simming Link to comment Share on other sites More sharing options...
slowmover Posted November 9, 2018 Share Posted November 9, 2018 i think i am doing something wrong.trying to upload the firmware to arduino pro micro. https://imgur.com/a/rR5mgOu [sIGPIC][/sIGPIC] Link to comment Share on other sites More sharing options...
Recommended Posts