Previous Thread
Next Thread
Print Thread
Rate This Thread
Hop To
Page 19 of 112 1 2 17 18 19 20 21 111 112
#4137525 - 06/22/15 12:37 AM Re: MMJoy - Build your own USB controller ***** [Re: Sokol1]  
Joined: Jun 2015
Posts: 2
FlyerZ Offline
Junior Member
FlyerZ  Offline
Junior Member

Joined: Jun 2015
Posts: 2
Hi mega_mozg,

Many thanks for developing the mmjoy2 software.

I'm using V20150121 on an Arduino Leonardo R3 (ATMEGA32U4), to make an autopilot/nav radio controller for X-Plane.
I will be using more than 48 buttons including six rotary encoders for the job.
I will only be using three of the available internal analogue inputs, so I have plenty of input pins available.

What are the recommended values for 'Buttons debounce (ms)' and 'Pulse length (ms)'?
I have noticed that if 'Buttons debounce' is set to more than just a couple of milliseconds, that the encoder outputs become irregular/unreliable.

The rotary encoders give 20 pulses/rev, and output a 2-bit gray code.
I notice that the later version of your software don't have the debounce and pulse length settings options available.

Many thanks,
Steven.

Inline advert (2nd and 3rd post)

#4140418 - 06/28/15 06:36 AM Re: MMJoy - Build your own USB controller [Re: Sokol1]  
Joined: Jan 2014
Posts: 274
mega_mozg_13 Offline
Member
mega_mozg_13  Offline
Member

Joined: Jan 2014
Posts: 274
BELARUS, Minsk
FlyerZ and all
new update MMJOY2 [v20150626] https://sites.google.com/site/mmjoyproject/fajly-dla-skacivania
here 64 buttons + 6 encoders, plus new features "Timers" for encoders try from 16-32ms, also new "Shift" button.

#4141459 - 06/30/15 07:49 PM Re: MMJoy - Build your own USB controller [Re: Sokol1]  
Joined: Jan 2014
Posts: 274
mega_mozg_13 Offline
Member
mega_mozg_13  Offline
Member

Joined: Jan 2014
Posts: 274
BELARUS, Minsk
MMJoy2 + WarThunder = RGB LED output
https://www.youtube.com/embed/Cxp79iZQJGw

#4141475 - 06/30/15 08:17 PM Re: MMJoy - Build your own USB controller [Re: Sokol1]  
Joined: Oct 2014
Posts: 16
Euphoria Offline
Junior Member
Euphoria  Offline
Junior Member

Joined: Oct 2014
Posts: 16
United States
Very nice work Mega_mozg!

Can you explain how to use "Shift" function? When I assign shift to a toggle switch, and configure buttons to use Shift 1, both unshifted and shifted buttons activate.




Last edited by Euphoria; 06/30/15 08:21 PM.
#4141541 - 06/30/15 11:17 PM Re: MMJoy - Build your own USB controller [Re: mega_mozg_13]  
Joined: Jun 2015
Posts: 2
FlyerZ Offline
Junior Member
FlyerZ  Offline
Junior Member

Joined: Jun 2015
Posts: 2
Originally Posted By: mega_mozg_13
FlyerZ and all
new update MMJOY2 [v20150626] https://sites.google.com/site/mmjoyproject/fajly-dla-skacivania
here 64 buttons + 6 encoders, plus new features "Timers" for encoders try from 16-32ms, also new "Shift" button.


Many thanks mega_mozg.

I will try a 16-32ms pulse length for the encoders.

Steven.

#4141610 - 07/01/15 06:21 AM Re: MMJoy - Build your own USB controller [Re: Euphoria]  
Joined: Jan 2014
Posts: 274
mega_mozg_13 Offline
Member
mega_mozg_13  Offline
Member

Joined: Jan 2014
Posts: 274
BELARUS, Minsk
Originally Posted By: Euphoria

Can you explain how to use "Shift" function?
When I assign shift to a toggle switch, and configure buttons to use Shift 1, both unshifted and shifted buttons activate.

Yes it is right by buttons intergnal politics:
"button 1" work only from "hw.button 1" without any other conditions;
"button 9" work with "hw.button 1"(main) + "hw.button 13"(shift);

so you need switch shift with 3 positions "on-off-on" and add second shift to "button 1".

sample, Combra M5:




Last edited by mega_mozg_13; 07/01/15 01:02 PM.
#4141738 - 07/01/15 03:31 PM Re: MMJoy - Build your own USB controller [Re: Sokol1]  
Joined: Nov 2001
Posts: 3,955
Sokol1 Offline
Senior Member
Sokol1  Offline
Senior Member

Joined: Nov 2001
Posts: 3,955
Internet
If I understand, the shift is a "mode" selector, like in X-52 or Defender Cobra M-5.

Allow each physical button press 1(?) virtual button if "shift" are ON.


#4146013 - 07/13/15 03:43 PM Re: MMJoy - Build your own USB controller [Re: Sokol1]  
Joined: Jul 2015
Posts: 1
Jaylo Offline
Junior Member
Jaylo  Offline
Junior Member

Joined: Jul 2015
Posts: 1
NH, USA
Amazing work mega_mozg!

This is really helping me with my custom racing cockpit as well as some hand controls I'm building for a friend of mine who's son is disabled and needs hand controls.

I am struggling a bit with getting my pots to work. I've tried several and can't get them to show up as an axis.

The other issue I'm having is with rotary encoders. It seems they only recognize every 4th pulse in either direction.

One last question - is there a way to cause a switch to act as a momentary press? I.E. when switch is "on" show as a button press, then when the button changes state to "off" show as press again? I tried an on-off switch in all different modes, but none seemed to replicate the action I was looking for.

I have the latest version, updated on July 9th. I hadn't tried any other versions of the software, as this one seems to be the latest and has the encoder timer function which I find I need.

Thank you so much for this config utility. It is really great. I have a friend travelling to Russia next week - I'm so thrilled I could send her to hug you!

Thanks,
Jason

#4146485 - 07/14/15 05:19 PM Re: MMJoy - Build your own USB controller [Re: Sokol1]  
Joined: Jan 2014
Posts: 274
mega_mozg_13 Offline
Member
mega_mozg_13  Offline
Member

Joined: Jan 2014
Posts: 274
BELARUS, Minsk
hi to all,
does anybody use 32 or more buttons?

#4146631 - 07/14/15 09:51 PM Re: MMJoy - Build your own USB controller [Re: Sokol1]  
Joined: Oct 2014
Posts: 16
Euphoria Offline
Junior Member
Euphoria  Offline
Junior Member

Joined: Oct 2014
Posts: 16
United States
On my throttle base, I use 62 buttons, including rotary encoders

#4147841 - 07/17/15 06:20 PM Re: MMJoy - Build your own USB controller [Re: Sokol1]  
Joined: Jan 2014
Posts: 274
mega_mozg_13 Offline
Member
mega_mozg_13  Offline
Member

Joined: Jan 2014
Posts: 274
BELARUS, Minsk
update MMJOY2 [v20150717]



now mmjoy is a composite device joystick + mouse (3 buttons + 2 axis) + keyboard (mapping up to 10 any keys)

#4147843 - 07/17/15 06:21 PM Re: MMJoy - Build your own USB controller [Re: Sokol1]  
Joined: Jan 2014
Posts: 274
mega_mozg_13 Offline
Member
mega_mozg_13  Offline
Member

Joined: Jan 2014
Posts: 274
BELARUS, Minsk
sorry for russian texts on pictures winkngrin

#4147939 - 07/18/15 12:36 AM Re: MMJoy - Build your own USB controller [Re: Sokol1]  
Joined: Nov 2011
Posts: 20
xaoslaad Offline
Junior Member
xaoslaad  Offline
Junior Member

Joined: Nov 2011
Posts: 20
NC, US
Can this be used to set up rotary encoders? Is there anything special to it? I wanted to give a try just setting up a controller with three rotary encoders, maybe with an Arduino Leonardo, but I am very new to this stuff.

Thanks in advance for any help/response!

#4147967 - 07/18/15 03:27 AM Re: MMJoy - Build your own USB controller [Re: Sokol1]  
Joined: Nov 2001
Posts: 3,955
Sokol1 Offline
Senior Member
Sokol1  Offline
Senior Member

Joined: Nov 2001
Posts: 3,955
Internet
Look in the picture (posted above), bellow left side, just above the button "Windows Joystick". wink

http://simhq.com/forum/files/usergals/2015/07/full-37484-105241-mmjoy2combram5.png

BTW - Read the first post to see what are the compatible Arduino boards.

Last edited by Sokol1; 07/18/15 03:27 AM.
#4147995 - 07/18/15 05:19 AM Re: MMJoy - Build your own USB controller [Re: Sokol1]  
Joined: Nov 2011
Posts: 20
xaoslaad Offline
Junior Member
xaoslaad  Offline
Junior Member

Joined: Nov 2011
Posts: 20
NC, US
Thank you for the hint. I think I am starting to understand and will manage to make it work if I put my mind to it. I might have some questions, but I watched some tutorials about connecting encoders to an Arduino:

https://www.youtube.com/watch?v=HQuLZHsGZdI

which had somewhat different wiring from:

https://www.youtube.com/watch?v=p18UayMMIWk
https://www.youtube.com/watch?v=FGxLXqzPe3Q

But I see from the second that the capacitors they both used are probably a good idea to protect against bounce?

Anyway, I'll have some fun/frustration tinkering when the stuff arrives, I am sure. If I can get it working on a breadboard like this I'll look to make a smaller and more permanent version and boxing it up pretty.

#4148058 - 07/18/15 02:39 PM Re: MMJoy - Build your own USB controller [Re: Sokol1]  
Joined: Nov 2001
Posts: 3,955
Sokol1 Offline
Senior Member
Sokol1  Offline
Senior Member

Joined: Nov 2001
Posts: 3,955
Internet
Remember that MMJoy firmware for (some) Arduino boards is for joystick controller, encoder should be connected in this way, using diodes (1N4148...) - to avoid "ghost" press:

http://simhq.com/forum/files/usergals/2014/08/full-37484-85623-pins_common.png

In the linked videos I dont know the purpose of encoder, maybe are for use in audio volume control, or steep motor control...

So, depends of intended use maybe MMjoy firmware is not suitable for your purposes.

#4148520 - 07/20/15 10:53 AM Re: MMJoy - Build your own USB controller [Re: mega_mozg_13]  
Joined: Aug 2002
Posts: 46
Czary Offline
Junior Member
Czary  Offline
Junior Member

Joined: Aug 2002
Posts: 46
Lodz, PL
Originally Posted By: mega_mozg_13
MMJoy2 + WarThunder = RGB LED output
https://www.youtube.com/embed/Cxp79iZQJGw


Awesome ! jawdrop Now I see that my hope for building Hurricane gear indicator may come true whoohoo

#4148561 - 07/20/15 01:16 PM Re: MMJoy - Build your own USB controller [Re: Sokol1]  
Joined: Jan 2014
Posts: 274
mega_mozg_13 Offline
Member
mega_mozg_13  Offline
Member

Joined: Jan 2014
Posts: 274
BELARUS, Minsk
Czary.
not only gear.
srart warhunder go to fly, and open browser http://127.0.0.1:8111/state or http://127.0.0.1:8111/indicators
here a lot data from game.

#4148767 - 07/20/15 08:14 PM Re: MMJoy - Build your own USB controller [Re: Sokol1]  
Joined: Jul 2015
Posts: 13
Vindicore Offline
Junior Member
Vindicore  Offline
Junior Member

Joined: Jul 2015
Posts: 13
Hi all - some really impressive work in this topic!

I am interested in using MMJoy2 to add a couple of thumbsticks and extra buttons to my cheap Thrustmaster HOTAS X (can’t afford an off the shelf better HOTAS) to make it better. I initially followed this old guide to add a single one of these thumbsticks to the throttle but now I want more and that little guide will no longer help, so I have simply switched to MMJoy2 which was much easier to set up and get working. I am a novice when it comes to electronics so I likely have some pretty basic questions.

First question: if you look at that guide I have used a GND, VCC, A3 and A2 pins for the thumbstick which works just fine with MMJoy2 – if I want to add a second thumbstick I would use A1 and A0, but do I simply connect that to VCC in parallel with the original thumbstick I put in?

Second question(s): I only want to add at most 8 buttons so I presume that I do not need a button matrix? Looking at SolderMonkey’s set up on page 14 that seems to be the case. If that is true do I simply connect the buttons from the left hand side numbered pins on the Pro Micro through to the RX B(D2) pin? Do I need a diode to connect them to that D2 pin to prevent ghost clicks?

Third question: if I wanted to use some toggle switches instead of momentary push buttons what extra work would it require?

As I say I am just getting started so thanks in advance; really excited to give this more of a go.

#4149400 - 07/22/15 01:03 PM Re: MMJoy/MMjoy2 - Build your own USB controller [Re: Sokol1]  
Joined: Apr 2015
Posts: 1
Dplus12 Offline
Junior Member
Dplus12  Offline
Junior Member

Joined: Apr 2015
Posts: 1
Ohio, USA
After lurking on this thread for awhile, I finally got everything set up for my X36/X35T... and besides issues with the original DB15 connector (new one is coming in the mail), I'm having issues with the MCP 3208 and setting up the axes...

I'm only getting a couple to show up, and they are not on the channel they are supposed to be (Joystick X, and Y are both showing on channel 1, Throttle is showing up on channel 2 instead of 4, etc), is my MCP3208 damaged? Also, all the documentation I can find for setting up curves and all the hundreds of settings for the axes are from Google-translated Russian, so I'm having a hard time figuring out if there is something else I should tweak. I'm by no means an electrical engineer so this has all been a great learning experience.

Thanks all!
Dplus12

Last edited by Dplus12; 07/22/15 01:05 PM.
Page 19 of 112 1 2 17 18 19 20 21 111 112

Moderated by  RacerGT 

Quick Search
Recent Articles
Support SimHQ

If you shop on Amazon use this Amazon link to support SimHQ
.
Social


Recent Topics
Carnival Cruise Ship Fire....... Again
by F4UDash4. 03/26/24 05:58 PM
Baltimore Bridge Collapse
by F4UDash4. 03/26/24 05:51 PM
The Oldest WWII Veterans
by F4UDash4. 03/24/24 09:21 PM
They got fired after this.
by Wigean. 03/20/24 08:19 PM
Grown ups joke time
by NoFlyBoy. 03/18/24 10:34 PM
Anyone Heard from Nimits?
by F4UDash4. 03/18/24 10:01 PM
RIP Gemini/Apollo astronaut Tom Stafford
by semmern. 03/18/24 02:14 PM
10 years after 3/8/2014
by NoFlyBoy. 03/17/24 10:25 AM
Copyright 1997-2016, SimHQ Inc. All Rights Reserved.

Powered by UBB.threads™ PHP Forum Software 7.6.0