Previous Thread
Next Thread
Print Thread
Rate This Thread
Hop To
Page 20 of 112 1 2 18 19 20 21 22 111 112
#4149494 - 07/22/15 04:53 PM Re: MMJoy - Build your own USB controller ***** [Re: Vindicore]  
Joined: Nov 2001
Posts: 3,945
Sokol1 Offline
Senior Member
Sokol1  Offline
Senior Member

Joined: Nov 2001
Posts: 3,945
Internet
Originally Posted By: Vindicore

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?



Each "thumbstick" has 2 axis inputs plus +5V (VCC) and GND pins.

In MMJoy each axis need a exclusive input, but the +5V VCC and GND can be shared with all axis used.

Quote:

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 SolderMonkeys set up on page 14 that seems to be the case.


Depends on how many buttons is need press at same time the ghost eventually can happen.

Do a test, if ghost appear, add diodes - is simple and cheap.

Quote:

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


No, but for work in games as ON and OFF will be need a keymapper software with function "mapped key on press" and "mapped key on release" because games are in general designed for momentary commands only and most functions are mapped for press a button to engage, press the same button again to disengage.

Without the software will be need toggle switch ON to - for example - turn ON navigation lights and turn the toggle switch OFF and ON again to turn OFF the navigation lights... awkward and spoil the visual feedback of ON/OFF state of the switch.

If the game allow map one key/button for toggle the lights ON and other to toggle OFF using a DPDT toggle switch you get the correct operation expected for the the toggle switch: Up ON, down OFF.

Or by adding a extra hardware with optocouplers/relay/condenser to translate the ON and OFF states of toggle switch in momentarily key press. Some USB controller cards do this in firmware, example Desktop Aviator ones, the old Mjoy16 too for some inputs.

Inline advert (2nd and 3rd post)

#4149504 - 07/22/15 05:22 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
Awesome thanks Sokol; I am part way through adding the second thumbstick now! Edit: Completed and working great, just need to get it off the breadboard and sort out the cables...

Also got a bunch of diodes just in case I need them when I add the buttons.

Regarding the toggle switches I may just get some of the momentary style ones... not as satisfying though.

Last edited by Vindicore; 07/22/15 05:54 PM.
#4151125 - 07/27/15 11:18 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
Can anyone recommend a type of encoder for me to use; my local stores have nothing sadly so I need to order some?

#4151192 - 07/28/15 03:58 AM Re: MMJoy - Build your own USB controller [Re: Vindicore]  
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: Vindicore
Can anyone recommend a type of encoder for me to use; my local stores have nothing sadly so I need to order some?


Hi, I use regular rotary encoder from china.
http://www.ebay.com/itm/10pcs-12mm-Rotar...=item1e90852a00

#4151208 - 07/28/15 06:44 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
Are encoders supposed to appear as two buttons or as an axis? For me they show as two buttons. That surprised me some, but thinking about it I could guess why it might be necessary, although then I wonder why the special configuration...

#4151210 - 07/28/15 07:15 AM Re: MMJoy - Build your own USB controller [Re: xaoslaad]  
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: xaoslaad
Are encoders supposed to appear as two buttons or as an axis? For me they show as two buttons. That surprised me some, but thinking about it I could guess why it might be necessary, although then I wonder why the special configuration...

with 3 buttons you can build "virtual axis" (1 button - axis step up, 2 buttton - axis to center, 3 button - axis step down).
encoder with push just give to you 3 buttons.

#4151420 - 07/28/15 05:33 PM 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
What am I doing wrong with configuring the encoder?

As soon as I add the buttons to the encoder list it stops working whether I put them in the list on the right. I get three buttons but I can only activate the push button.

If I remove the encoder settings I get three buttons and as I turn the rotary I see both of the switches make contact in order. either 2 3 or 3 2 depending on which way I turn it.

I don't think the wiring is screwed up, just my software configuration.





Last edited by xaoslaad; 07/28/15 05:35 PM.
#4151567 - 07/29/15 02:49 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
xaoslaad
1) check buttons with VKB_BtnTester (with "Show log" option)
2) try to add delay timer for encoder

#4151576 - 07/29/15 03:46 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
Thanks!!! The timer was the missing piece. I could see in the show log section it was working as expected, without the timer I guess it was just too instantaneous to light up in windows or do anything in the game.

#4151607 - 07/29/15 08:26 AM Re: MMJoy - Build your own USB controller [Re: Sokol1]  
Joined: Aug 2002
Posts: 46
Czary Offline
Junior Member
Czary  Offline
Junior Member

Joined: Aug 2002
Posts: 46
Lodz, PL
Hello ! I've just started using my scratch build rudder with ProMicro and TLE5010 sensor. Rudder works perfect (the 12bit sensor resolution is awesome thumbsup), but I need to solve two things :

1. Rudder freezes every time I restart the system and I need to unplug and plug it back in to work.

2. As I send firmware to rudder controller for the first time I've forgot to change its name. Later as I set everything up as needed, I also changed the name to TLE5010 Rudder. It reports with correct name at Devices and Printers, but at the Game Controler properties or WT controls the name is MMjoy2 (If I build another device, I'm afraid of conflicts as controllers will use the same name).




#4151645 - 07/29/15 10:52 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
I made the same mistake at first. I think all it took was the clear registry button on the firmware page and to remove it and plug it back in.

#4151656 - 07/29/15 11:27 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
mega_mozg_13,
Thanks again, as buttons the encoder works great!

I was playing with it as a virtual access before you showed me the Timer piece and managed to get that working, however it bounces pretty crazily, as I would pretty much expect if it's not configured to account for it being an encoder. But when I configure the buttons as an encoder they seem to stop working for the axis. I'm just trying to learn the ins and outs of both configurations before settling on either one. Thanks again for the great software!

Is there a way to get rid of the bounce with the virtual axis too? Thanks!

#4151993 - 07/30/15 12:12 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
This is what I have working:
https://www.youtube.com/watch?v=KZSS8IY-dxE

Looks like I need to find a 3d printer. I designed a case to attach to the back of my throttle, that is pretty close. Need to do a print and make any minor adjustments and I should be all set!

#4152070 - 07/30/15 06:12 AM Re: MMJoy - Build your own USB controller [Re: Sokol1]  
Joined: Aug 2002
Posts: 46
Czary Offline
Junior Member
Czary  Offline
Junior Member

Joined: Aug 2002
Posts: 46
Lodz, PL
Thank you very much - now the name is correct.

#4152230 - 07/30/15 03:20 PM Re: MMJoy - Build your own USB controller [Re: Czary]  
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: Czary

1. Rudder freezes every time I restart the system and I need to unplug and plug it back in to work.

Dzien dobry. Did you test this error with "20150727" firmvare?

Last edited by mega_mozg_13; 07/30/15 03:21 PM.
#4152257 - 07/30/15 04:31 PM 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
mega_mozg_13,
With some more playing around I got the encoders to work as virtual axes.

I was toying with the idea of adding a toggle switch to shift them from behaving as axes and buttons.

It only sort of works. The buttons only work if the toggle is flipped and shift 1 is on, but the virtual axis work either way. Is there a possibility of adding an optional shift state to the virtual axis as well?



Thanks!

Last edited by xaoslaad; 07/30/15 05:10 PM.
#4152299 - 07/30/15 05:51 PM 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
Zdrastvujtie !
I've used "20150727" version only. But my concern is the firmware tab - I havent touch anything and left it default, which looks like this :


Last edited by Czary; 07/30/15 05:57 PM.
#4152464 - 07/31/15 05:28 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
Czary, "ED tracker" working as USB-HID or USB-CDC(com port)?
"COM1" not a arduino bootloader.
try this - "start bootloader" click "COM Port list" while you see second "COMyy" port. and manual write "COMyy" to "Port(arduino)".

#4152490 - 07/31/15 09:30 AM Re: MMJoy - Build your own USB controller [Re: xaoslaad]  
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: xaoslaad

Is there a possibility of adding an optional shift state to the virtual axis as well?

right now - no way. need a time to thinking.

#4152699 - 07/31/15 08:52 PM Re: MMJoy - Build your own USB controller [Re: Sokol1]  
Joined: Aug 2002
Posts: 46
Czary Offline
Junior Member
Czary  Offline
Junior Member

Joined: Aug 2002
Posts: 46
Lodz, PL
Hope this helps- these are screens from USBDeview, for EDtracker, then TLE5010 Rudder before and after unplug/plug proceedure. I see that ED tracker works as USB-Communication device.





And after "Start bootloader" and "COM Port List" i see 2 of them - COM1 and COM5.

Page 20 of 112 1 2 18 19 20 21 22 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
Flight of Nova
by KRT_Bong. 06/01/23 12:46 PM
New Warthog HOTAS Bargain
by F4UDash4. 05/31/23 05:00 PM
Speaking of AI and robots
by PanzerMeyer. 05/30/23 12:38 PM
The oldest operating canal in North America
by KraziKanuK. 05/30/23 11:17 AM
Memorial Day 2023
by F4UDash4. 05/29/23 11:50 AM
Route 66
by KraziKanuK. 05/28/23 05:17 PM
Every multi-seat jet needs one...
by CyBerkut. 05/27/23 03:38 PM
Copyright 1997-2016, SimHQ Inc. All Rights Reserved.

Powered by UBB.threads™ PHP Forum Software 7.6.0