Previous Thread
Next Thread
Print Thread
Rate This Thread
Hop To
Page 22 of 112 1 2 20 21 22 23 24 111 112
#4156842 - 08/12/15 08:05 PM Re: MMJoy/MMjoy2 - Build your own USB controller ***** [Re: Debolestis]  
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: Debolestis

I understand where to connect GND, VCC, MISO.
Does SPI-SCK goes to SCLK?
Where with SPI-CS? To MOSI?

"MISO" not used at shift register.
"Pins_Sparkfun[promicro].PNG" helps to you.
"SPI-CS" any pin, and this pin name need to set at "shift register".

Originally Posted By: Debolestis

Can I connect button matrix and shift registers together?

better don't use. but SCK/MISO/MOSI can be used for SPI and button matrix with some "magic".

Inline advert (2nd and 3rd post)

#4157234 - 08/13/15 10:44 PM Re: MMJoy/MMjoy2 - 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

#4157406 - 08/14/15 11:14 AM Re: MMJoy/MMjoy2 - Build your own USB controller [Re: Sokol1]  
Joined: Jul 2001
Posts: 171
hunter1 Offline
Member
hunter1  Offline
Member

Joined: Jul 2001
Posts: 171
Italy , Florence
Can anyone help me ?

#4157435 - 08/14/15 12:58 PM Re: MMJoy/MMjoy2 - Build your own USB controller [Re: hunter1]  
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: hunter1
Can anyone help me ?

and again, and again...
Old midi-gameport joysticks may be work in "Analog" or "Digital" modes. I don't know wich mode at your...

#4157576 - 08/14/15 06:49 PM Re: MMJoy/MMjoy2 - Build your own USB controller [Re: Sokol1]  
Joined: Aug 2015
Posts: 68
Debolestis Offline
Junior Member
Debolestis  Offline
Junior Member

Joined: Aug 2015
Posts: 68
Croatia
Shift registers work, but only in version v20150626. In all others there is this:



All buttons are pressed.

Can you explain how shift function works because I don't know how to set it up.

Thank you!

#4157585 - 08/14/15 07:33 PM Re: MMJoy/MMjoy2 - Build your own USB controller [Re: Sokol1]  
Joined: Jul 2001
Posts: 171
hunter1 Offline
Member
hunter1  Offline
Member

Joined: Jul 2001
Posts: 171
Italy , Florence
http://www.reocities.com/Eureka/Promenade/1849/joy2.jpg and http://www.reocities.com/Eureka/Promenade/1849/joy1.jpg and if connect whit a usb adapter , show only the adapter . It's digital ? like MS sidewinder FF ?

#4157599 - 08/14/15 08:16 PM Re: MMJoy/MMjoy2 - Build your own USB controller [Re: Debolestis]  
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: Debolestis
Shift registers work, but only in version v20150626.

translate from russian updates page https://sites.google.com/site/mmjoyproject/novosti-i-obnovlenia
from "v20150701" changed connection method, "SPI-MISO" replaced to "SPI-MOSI".

#4157810 - 08/15/15 02:34 PM Re: MMJoy/MMjoy2 - Build your own USB controller [Re: Sokol1]  
Joined: Aug 2015
Posts: 68
Debolestis Offline
Junior Member
Debolestis  Offline
Junior Member

Joined: Aug 2015
Posts: 68
Croatia
Thank you! It works now.

I don't understand shift function.

When I press button+shift there is original button and shifted button.

See here:



Can you explain how shift works.

#4158146 - 08/16/15 05:16 PM Re: MMJoy/MMjoy2 - 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
try this
"button 1" will be active when HW7=ON and HW4=ON(shift 1 mode "on")
"button 2" will be active when HW7=ON and HW4=OFF(shift 2 mode "off")

Last edited by mega_mozg_13; 08/16/15 05:21 PM.
#4158471 - 08/17/15 03:44 PM Re: MMJoy/MMjoy2 - Build your own USB controller [Re: Sokol1]  
Joined: Jul 2015
Posts: 5
Aqua Offline
Junior Member
Aqua  Offline
Junior Member

Joined: Jul 2015
Posts: 5
First of all I wanna say a big thank you to mega_mozg_13. This is a great tool.

Now I wanna ask what is the proper way to set up a three-way on/off/on toggle switch. How do I make the center(off) position be recognized as a button?

#4158513 - 08/17/15 05:29 PM Re: MMJoy/MMjoy2 - Build your own USB controller [Re: Aqua]  
Joined: Aug 2015
Posts: 68
Debolestis Offline
Junior Member
Debolestis  Offline
Junior Member

Joined: Aug 2015
Posts: 68
Croatia
Buy on-off-on toggle switch. It is just 2 switches in one. spdt is ok.

#4158523 - 08/17/15 05:52 PM Re: MMJoy/MMjoy2 - Build your own USB controller [Re: Aqua]  
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: Aqua

Now I wanna ask what is the proper way to set up a three-way on/off/on toggle switch. How do I make the center(off) position be recognized as a button?

sorry, no way...

#4158536 - 08/17/15 06:37 PM Re: MMJoy/MMjoy2 - Build your own USB controller [Re: Sokol1]  
Joined: Dec 2009
Posts: 748
AndyB Offline
Member
AndyB  Offline
Member

Joined: Dec 2009
Posts: 748
Ayrshire, Scotland
Don't know if it's any help but you could do it with a 2 input NOR gate, but that starts going in to logic gate chips.

Basically, connect each input of the gate to one of the ON connections on the switch. The output of the gate is logic "1" (+5v) UNTIL one of the inputs goes high (logic "1") and then the output drops to logic "0" or 0 volts.

That's just a rough description of how it works. You also need to supply +5 volts and ground for the chip itself.

Hope this helps,

Andy

Last edited by AndyB; 08/17/15 06:37 PM.

Andy's simpit: http://www.simpit.me.uk
#4158586 - 08/17/15 09:15 PM Re: MMJoy/MMjoy2 - Build your own USB controller [Re: AndyB]  
Joined: Jul 2015
Posts: 5
Aqua Offline
Junior Member
Aqua  Offline
Junior Member

Joined: Jul 2015
Posts: 5
Originally Posted By: AndyB
Don't know if it's any help but you could do it with a 2 input NOR gate, but that starts going in to logic gate chips.

Basically, connect each input of the gate to one of the ON connections on the switch. The output of the gate is logic "1" (+5v) UNTIL one of the inputs goes high (logic "1") and then the output drops to logic "0" or 0 volts.

That's just a rough description of how it works. You also need to supply +5 volts and ground for the chip itself.

Hope this helps,

Andy


I am familiar with how the basic logic gates work and this seems like my best bet atm since that function cannot be supported by the software. Thanks for the help, I'm gonna order some and try this out.

Edit: Would you mind making a simple circuit diagram for a 3way switch and a nor gate because I'm not entirely sure how that would tie in with the columns and rows setup of MMJOY?

Last edited by Aqua; 08/17/15 09:45 PM.
#4158593 - 08/17/15 09:28 PM Re: MMJoy/MMjoy2 - Build your own USB controller [Re: Aqua]  
Joined: Nov 2001
Posts: 3,955
Sokol1 Offline
Senior Member
Sokol1  Offline
Senior Member

Joined: Nov 2001
Posts: 3,955
Internet
Originally Posted By: Aqua
[quote=AndyB]... that function cannot be supported by the software.


For some DCS planes you can achieve button press on toggle switch OFF position editing LUA files.
In other games using SVMapper or HIDMacros can map functions on press (ON) and released (OFF) of swtiches.

Depends on use of this " three-way on/off/on toggle switch" you can wire a always on connection for middle pins of DPDT switch.

Anyway Desktop Aviator have some boards that do this in hardware (send button press in ON and OFF).

#4158604 - 08/17/15 09:46 PM Re: MMJoy/MMjoy2 - Build your own USB controller [Re: Sokol1]  
Joined: Jul 2015
Posts: 5
Aqua Offline
Junior Member
Aqua  Offline
Junior Member

Joined: Jul 2015
Posts: 5
Originally Posted By: Sokol1
Originally Posted By: Aqua
[quote=AndyB]... that function cannot be supported by the software.


For some DCS planes you can achieve button press on toggle switch OFF position editing LUA files.
In other games using SVMapper or HIDMacros can map functions on press (ON) and released (OFF) of swtiches.

Depends on use of this " three-way on/off/on toggle switch" you can wire a always on connection for middle pins of DPDT switch.

Anyway Desktop Aviator have some boards that do this in hardware (send button press in ON and OFF).





I'll look into that if I cannot get it done with NOR gates

#4158648 - 08/18/15 12:12 AM Re: MMJoy/MMjoy2 - Build your own USB controller [Re: Sokol1]  
Joined: Jul 2009
Posts: 9,619
CyBerkut Offline
Administrator
CyBerkut  Offline
Administrator
Hotshot

Joined: Jul 2009
Posts: 9,619
Florida

#4158710 - 08/18/15 06:50 AM Re: MMJoy/MMjoy2 - Build your own USB controller [Re: Aqua]  
Joined: Aug 2015
Posts: 68
Debolestis Offline
Junior Member
Debolestis  Offline
Junior Member

Joined: Aug 2015
Posts: 68
Croatia
Sorry Aqua, I completely misunderstood your question.

You can do it with on-on-on switch. I draw this picture, I think it should work. Please let us know if it works for real.


#4158720 - 08/18/15 07:56 AM Re: MMJoy/MMjoy2 - Build your own USB controller [Re: Debolestis]  
Joined: Jul 2015
Posts: 5
Aqua Offline
Junior Member
Aqua  Offline
Junior Member

Joined: Jul 2015
Posts: 5
Originally Posted By: Debolestis
Sorry Aqua, I completely misunderstood your question.

You can do it with on-on-on switch. I draw this picture, I think it should work. Please let us know if it works for real.


I'm sure it will work with the DPDT switches which I have ordered, but I already have an spdt on-off-on switch that I wanna use plus I want to rewire the mode selector on the G940 throttle which acts like an on-off-on switch.

To make the latter work I am thinking of two ways:

1) make it work through the MMjoy software. I will do it this way: Let's call the positions of the 3way switch a-b-c, a then corresponds to button 1 and c to button 2. b is the off switch so it isn't a button. What I'll do then is make a button 3 that activates when the switch moves away from the a position(=button 1 turns off) AND a button 4 that activates when the switch moves away from the c position(=button 2 turns off). So essentianly the b position will correspond to BOTH button 3 and 4 and will have to be bound twice in my game. This is not optimal but it will get the job done.

2) use NOR logic gates. If I can make this work it will be a perfect solution, but I have no experience with them and I haven't figured out exactly how the circuit should be set up so that the output of the gate gets recognised as a button (if someone can draw a circuit of how it should be set up, it would help me immensely). Nevertheless I have ordered some, so I will at least try to make it work this way.

Last edited by Aqua; 08/18/15 08:01 AM.
#4158733 - 08/18/15 09:33 AM Re: MMJoy/MMjoy2 - Build your own USB controller [Re: Sokol1]  
Joined: Dec 2009
Posts: 748
AndyB Offline
Member
AndyB  Offline
Member

Joined: Dec 2009
Posts: 748
Ayrshire, Scotland
Hi,
Here's a quick diagram using a NOR gate.

Andy


Andy's simpit: http://www.simpit.me.uk
Page 22 of 112 1 2 20 21 22 23 24 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