Jump to content

MMjoy


Recommended Posts

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

Your button state is floating. You either need to add a pullup or or pulldown resistor. Best use around 10k Ohms.


Edited 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

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 by jazzymanserg
Link to comment
Share on other sites

  • 2 weeks later...

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

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

 

 

encoder_PCB.jpg

 

 

WMIwT


Edited 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

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

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

  • 3 weeks later...

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

  • 5 months later...

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

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

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.

1LAZEg1

https://imgur.com/a/1LAZEg1


Edited by slowmover

[sIGPIC][/sIGPIC]

Link to comment
Share on other sites

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.

1LAZEg1

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

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

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.

1LAZEg1

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.

 

full-37484-89476-pins_sparkfunpromicro.png

 

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 by Sokol1_br
Link to comment
Share on other sites

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

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

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

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...