Previous Thread
Next Thread
Print Thread
Rate This Thread
Hop To
Page 18 of 112 1 2 16 17 18 19 20 111 112
#4118957 - 05/11/15 02:58 PM Re: MMJoy - Build your own USB controller ***** [Re: Sokol1]  
Joined: Apr 2015
Posts: 14
mskurnik Offline
Junior Member
mskurnik  Offline
Junior Member

Joined: Apr 2015
Posts: 14

Inline advert (2nd and 3rd post)

#4119254 - 05/12/15 08:15 AM Re: MMJoy - Build your own USB controller [Re: mskurnik]  
Joined: Jan 2014
Posts: 274
mega_mozg_13 Offline
Member
mega_mozg_13  Offline
Member

Joined: Jan 2014
Posts: 274
BELARUS, Minsk

#4119653 - 05/12/15 09:57 PM Re: MMJoy - Build your own USB controller [Re: Sokol1]  
Joined: Apr 2015
Posts: 14
mskurnik Offline
Junior Member
mskurnik  Offline
Junior Member

Joined: Apr 2015
Posts: 14
Thanks. Are you guys planning on switching to GitHub or something else since Google Code is now defunct?

#4123484 - 05/22/15 06:43 PM Re: MMJoy - Build your own USB controller [Re: zeg33]  
Joined: Nov 2001
Posts: 3,955
Sokol1 Offline
Senior Member
Sokol1  Offline
Senior Member

Joined: Nov 2001
Posts: 3,955
Internet
Originally Posted By: zeg33
Hi mega_mozg

is there any way to use the magnetic analog stick in sony PS3 controler





Mega-Mozg,

On Arduino forum the guys say that this PS3 stick use HALL sensor "dual output" (think that X, Y axis), SENTRON 2SA-10, datasheet:

http://www.gmw.com/magnetic_sensors/sentron/2sa/documents/2SA10.pdf

If are suitable for use with MMJoy is good because these PS3 stick (with 2 sensor) is cheap on eBay, and ready to use including magnets.




#4123699 - 05/23/15 06:18 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
analog stick in sony PS3 controler
now I understand, "2SA-10" like "KMZ60/KMZ41/TLE5010", so it must be usable with "mcp3202" ("KMZ60+MCP3202" at configurator sensor type).

#4125420 - 05/27/15 04:47 AM Re: MMJoy - Build your own USB controller [Re: Sokol1]  
Joined: Apr 2015
Posts: 14
mskurnik Offline
Junior Member
mskurnik  Offline
Junior Member

Joined: Apr 2015
Posts: 14
How would you go about creating a button matrix that contained a few switches that have a built-in LED? I have 3 safety toggle switches that light up and have power, acc, and ground. I can read the data fine if I only connect power (from the column) and ACC but once I connect the ground to the ground on the microcontroller, the state of the other buttons on that lock into the on position when I turn the switch off. I tried adding a diode to the ground but that didn't work. Does anyone have a wiring diagram on how to do this?

#4125710 - 05/27/15 07:29 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
Whit DPDT swith you use one pole for (game) button press and another pole to turn ON/OF the LED - connected in +5V and GDN.

https://www.google.com.br/url?sa=i&rct=j&q=&esrc=s&source=images&cd=&cad=rja&uact=8&ved=0CAcQjRw&url=http%3A%2F%2Fsimhq.com%2Fforum%2Fubbthreads.php%2Ftopics%2F3357605%2Fall%2FQuestions_regarding_making_a_s.html&ei=dBpmVZyTNcPSsAXRtoHwDw&bvm=bv.93990622,d.cWc&psig=AFQjCNGJcB8R_7YCI5gsRcPXLN0VNcjtYw&ust=1432841109230432

#4125751 - 05/27/15 08:22 PM Re: MMJoy - Build your own USB controller [Re: Sokol1]  
Joined: Apr 2015
Posts: 14
mskurnik Offline
Junior Member
mskurnik  Offline
Junior Member

Joined: Apr 2015
Posts: 14
The problem I have is the switch I have only has the 3 pins I mentions. I does not have a separate set of pins for the LED.

They are 3-pole SPST switches that I got when the store was going out of business. http://comingsoon.radioshack.com/12vdc-t...-U&tab=tab1

#4125778 - 05/27/15 10:00 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
Wrong switch for wiring in matrix...

Maybe using relay, see this "pulse" circuit, when the switch is closed (and in your case light the LED) the relay send a momentary press for controller.

http://desktopaviator.tripod.com/Articles/USB_Switches/index3_files/image013.gif
http://desktopaviator.tripod.com/Articles/sch.gif

http://desktopaviator.tripod.com/Articles/USB_Switches/index3.htm

#4126218 - 05/28/15 11:21 PM Re: MMJoy - Build your own USB controller [Re: Sokol1]  
Joined: Apr 2015
Posts: 6
Bolelas Offline
Junior Member
Bolelas  Offline
Junior Member

Joined: Apr 2015
Posts: 6
Portugal
To Mr mskurnik:
The DPDT (double pole, double stroke) Switch are like twin switches side-by-side operated by the same lever. They are not electricaly connected, but it is as if they´r levers were welded. One Side for game (3poles), other for LED (3 poles). If one is ON, the othe is also ON.
With this type of switch (it has usualy 6 pins) you can also have one LED for ON, another for OFF (good for landing gear), even if you have only one button from the game. (of course you can connect 2 buttons from the game also).
Get a DPDT switch has Mr Sokol suggested, they are cheap and easy to find.

#4126528 - 05/29/15 04:16 PM Re: MMJoy - Build your own USB controller [Re: Sokol1]  
Joined: Jan 2004
Posts: 1,221
f15sim Offline
More projects than sense!
f15sim  Offline
More projects than sense!
Member

Joined: Jan 2004
Posts: 1,221
Graham, WA
If you're not aware, a DPDT switch is essentially two separate switch mechanisms activated by the same mechanics. They're not electrically connected to each other inside the switch body.

g.


Proud owner of 80-0007
http://www.f15sim.com - The only one of its kind.
http://geneb.simpits.org - the Me-109F/X Project
#4126651 - 05/29/15 11:38 PM Re: MMJoy - Build your own USB controller [Re: f15sim]  
Joined: Apr 2015
Posts: 14
mskurnik Offline
Junior Member
mskurnik  Offline
Junior Member

Joined: Apr 2015
Posts: 14
F15Sim I was aware but I had these switches and they looked nice so I wanted to use them.

Funny thing is it turns out that I never checked which pins on my breadboard were rows and which were columns. I just assumed that I had plugged the column jumpers to the top of the board and the rows to the bottom. So I was plugging the power pole into the matrix's row instead of the matrix's column thus causing the row to ground itself and activate all of the switches.

Here is how I wired it.
•Power -> 220 ohm resistor -> Column N
•ACC -> Row N
•Ground -> Ground

#4132406 - 06/11/15 02:54 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
Hello, and thank you for the great project !
What I would like to do, is to make my F16 FLCS/TQS work again using this setup (master/slave boards with Arduino Pro Micro). What I don't undertand is - as you put master board into stick base and slave into throttle - how do you connect both boards ? I can't see any connections between those two extension boards.
Best regards.

Originally Posted By: mega_mozg_13
and some pictures from me.
base joystick: Saitek X35-X36/Suncom F15.
electronics: MMjoy2 ProMicro, simple extension boards, Hall's Allegro A1324 (X/Y/Throttle).

handmade aluminum bearings mechanics:



ring magnets + Halls:


base for stick:


base for throttle:


stick assemble:



stick 'Saitek':


stick 'Suncom':



rubber pads:


extension board scheme:


firmware configuration:


#4132442 - 06/11/15 03:26 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
The throttle is connected to USB controller board inside joystick base with this multiply wires cable with yellow tape on connector, right of Arduino controller (the original gameport cable, I think):



You can fit a DB-15 connector in joystick case to plug/remove throttle if want, in this case reuse the TQS DB-15 connector - is need map the pins with multimeter.

In TQS you need 3 axis - 3 wires
+5V and GND - 2 wires


If TQS gameport cable has 15 internal wires (in some gameport sticks the cable dont have), you have 10 remaining wires to combine in matrix for handle the TQS 14 buttons (if use a HAT in thumb control), e.g a 4x4 matrix (3x5...).

Or, if want fit a mini-stick (PS2 style) in place of the thumb controller in TQS (a pressure device that probable dont work with analog USB controller, and anyway work bad even in brand new TQS):

5 wires for axis (3 TQS, 2 mini-stick)
2 for +5V and GND
10 buttons

So you have 8 wires for combine in matrix for control the buttons. 3x4 = 12 (4x4...)

In this CH Combatstick + CH PRO Throttle (Bu0836), due the need of 20 wires for throttle I use 2 cables between stick and throttle:

http://i62.tinypic.com/i74lyu.jpg

Or, if you dont plan play old games of fly in FPS games (BF...) as they have joystick restrictions, ones recognize only 1, fit one controller (MMjoy) inside each controller and avoid this cable mess. wink

#4133230 - 06/12/15 08:11 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 + TQS/FLCS = just work in prigress!!!
http://forum.il2sturmovik.ru/topic/3027-mmjoy2-i-thrustmaster/

#4134111 - 06/14/15 10:05 PM Re: MMJoy - Build your own USB controller [Re: Sokol1]  
Joined: Jun 2015
Posts: 4
Starfighter Offline
Junior Member
Starfighter  Offline
Junior Member

Joined: Jun 2015
Posts: 4
Hey guys, I have a quick question. Is it possible to rebind an axis as digital inputs? In other words, if I want to rebind analog thumb stick to be a 4 way digital hat, is there a way to do that?

Edit: Ok, just noticed Axis To Button for the first time, but I'm not sure how to use it - the values aren't labeled in the app.

Last edited by Starfighter; 06/14/15 10:13 PM.
#4134196 - 06/15/15 02:27 AM Re: MMJoy - Build your own USB controller [Re: Starfighter]  
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: Starfighter

Axis To Button for the first time, but I'm not sure how to use it - the values aren't labeled in the app.


try translate from russian
https://forum.warthunder.ru/index.php?/topic/64234-mjoy-mjoy8-mjoy16-mmjoy/page-39#entry4231024

#4134214 - 06/15/15 03:24 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


1 - Button that will be pressed with the axis of movement, eg. button 33
2 - Axis that will press the button, eg. axis 6
3 and 4 - Minimum and maximum vale of axis band that will be converted in button press, eg. 0 and 48%

Then set other Axis to Button using the same axis:
1 - Button 34
2 - Axis 6
3 and 4 - 52% and 100%

So moving the axis 6 up and down (or left and right...) will be press respectively button 34 (up) and button 33 (down), in the middle (49-5-51%) of axis no button is pressed.

As you can create 4 button press with the Axis to Button function and the mini-stick has 2 axis, you can set then as 4 way HAT.

#4134225 - 06/15/15 03:53 AM Re: MMJoy - Build your own USB controller [Re: mega_mozg_13]  
Joined: Jun 2015
Posts: 4
Starfighter Offline
Junior Member
Starfighter  Offline
Junior Member

Joined: Jun 2015
Posts: 4
Still having trouble, going to experiment a bit more.

Edit: Is it a % or a set value, eg 0-1023 for 10 bit?

Last edited by Starfighter; 06/15/15 04:00 AM.
#4134454 - 06/15/15 03:59 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
Axis value is not in % (I use for reference), is in resolution points, look in this picture:

https://forum.warthunder.ru/uploads/monthly_03_2015/post-15009-0-16818800-1426868202.jpg

MMjoy is 12 bytes = 4096 points. Try with 0-1000 and 3096-4096.

Page 18 of 112 1 2 16 17 18 19 20 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
Actors portraying US Presidents
by PanzerMeyer. 04/19/24 12:19 PM
Dickey Betts was 80
by Rick_Rawlings. 04/19/24 01:11 AM
Exodus
by RedOneAlpha. 04/18/24 05:46 PM
Grumman Wildcat unique landing gear
by Coot. 04/17/24 03:54 PM
Peter Higgs was 94
by Rick_Rawlings. 04/17/24 12:28 AM
Whitey Herzog was 92
by F4UDash4. 04/16/24 04:41 PM
Anyone can tell me what this is?
by NoFlyBoy. 04/16/24 04:10 PM
10 Years ago MV Sewol
by wormfood. 04/15/24 08:25 PM
Pride Of Jenni race win
by NoFlyBoy. 04/15/24 12:22 AM
Copyright 1997-2016, SimHQ Inc. All Rights Reserved.

Powered by UBB.threads™ PHP Forum Software 7.6.0