Previous Thread
Next Thread
Print Thread
Rate This Thread
Hop To
Page 108 of 112 1 2 106 107 108 109 110 111 112
#4551987 - 01/12/21 02:25 PM Re: MMJoy/MMjoy2 - Set your own USB controller with a cheap Arduino ***** [Re: Sokol1]  
Joined: Nov 2001
Posts: 3,955
Sokol1 Offline
Senior Member
Sokol1  Offline
Senior Member

Joined: Nov 2001
Posts: 3,955
Internet
What you mean with "upload"?

Load the firmware again?

Or "save to device" a new "joystick" profile in MMjoySetup?

If you create a profile, e.g. with 1 button, "save to device" , test. etc,
and then change for 10 buttons and nothing more and "save to device", the Windows will not detect, because the VID/PID has not changed, so you need clear the previous entry in windows Register.

Anyway in this case games recognize the change, the issue is only with the obsolete Windows Game Controllers.



Inline advert (2nd and 3rd post)

#4552271 - 01/14/21 05:01 PM Re: MMJoy/MMjoy2 - Set your own USB controller with a cheap Arduino [Re: Sokol1]  
Joined: May 2013
Posts: 7
SeanGH Offline
Junior Member
SeanGH  Offline
Junior Member

Joined: May 2013
Posts: 7
Originally Posted by Sokol1
What you mean with "upload"?

Load the firmware again?

Or "save to device" a new "joystick" profile in MMjoySetup?

If you create a profile, e.g. with 1 button, "save to device" , test. etc,
and then change for 10 buttons and nothing more and "save to device", the Windows will not detect, because the VID/PID has not changed, so you need clear the previous entry in windows Register.

Anyway in this case games recognize the change, the issue is only with the obsolete Windows Game Controllers.



Yes, so it worked the first time so i could test a button. Then i added more buttons and tried to save to device. I have even tried starting the boot loader etc. So the CMD screen opens, the process runs, but it does not reflect the changes

#4552297 - 01/14/21 06:43 PM Re: MMJoy/MMjoy2 - Set your own USB controller with a cheap Arduino [Re: Sokol1]  
Joined: May 2013
Posts: 7
SeanGH Offline
Junior Member
SeanGH  Offline
Junior Member

Joined: May 2013
Posts: 7
OK i got it to upload the new sets. I added an X axis But it shows on buttons used and Axis 0

#4561499 - 03/27/21 04:54 PM Re: MMJoy/MMjoy2 - Set your own USB controller with a cheap Arduino [Re: Sokol1]  
Joined: Mar 2021
Posts: 3
Dovahkiin Offline
Junior Member
Dovahkiin  Offline
Junior Member

Joined: Mar 2021
Posts: 3
Iran
Hello
I'm new here, I'm trying to build a button box and have some questions.
First, can I add more button and shift regester later? I mean after I programed the button box?
Secound, I found a photo from 74HC165 shif regester PCB, since I have no accses to outside of my country I must build that PCB using prototype boards. I found out that there are some resistors between input of each SR and 5v line. Is that correct? Why should use a resistor there?
Third, Can I program off buttons? I mean when I press on sth happens and when I press off sth else happens

Attached Files Shift-Register-74HC165_Board-_GOOD_Layout.png
Last edited by Dovahkiin; 03/27/21 06:33 PM. Reason: Adding a Picture of 74HC165 PCB
#4562288 - 04/02/21 05:37 PM Re: MMJoy/MMjoy2 - Set your own USB controller with a cheap Arduino [Re: Dovahkiin]  
Joined: Nov 2019
Posts: 4
tailor Offline
Junior Member
tailor  Offline
Junior Member

Joined: Nov 2019
Posts: 4
Hi Dovahkiin
I am not an expert, but I’ll try answer you.
Originally Posted by Dovahkiin
First, can I add more button and shift regester later? I mean after I programed the button box?

Yes, you’ll have to reprogram your arduino board by Mmjoy software (very simple). Of course there might be a need to resolder some pins (especially 5V and GND) to connect shift register board, that’s why bear in mind to add extra connectors if you plan developing.

Originally Posted by Dovahkiin
Secound, I found a photo from 74HC165 shif regester PCB, since I have no accses to outside of my country I must build that PCB using prototype boards. I found out that there are some resistors between input of each SR and 5v line. Is that correct? Why should use a resistor there?

If I remember correctly, resistors should be placed onto PCB to makes it working properly, there is some discussion in this topic, but I can’t believe you may not buy 74HC165 shift register from aliexpress like this
I use it, easy to connect and works fine.

Originally Posted by Dovahkiin
Third, Can I program off buttons? I mean when I press on sth happens and when I press off sth else happens

I’m not sure, Mmjoy software gives possibility to set different ways of buttons operating but probably not as you need. To do so, I use external program like JoyToKey or Gremlin Joystick, anyway you can try set desired button in “Switch mode”, will see.


Attached Files Button mode1.pngButton mode.png
Last edited by tailor; 04/02/21 06:21 PM.
#4562294 - 04/02/21 06:44 PM Re: MMJoy/MMjoy2 - Set your own USB controller with a cheap Arduino [Re: tailor]  
Joined: Dec 2009
Posts: 748
AndyB Offline
Member
AndyB  Offline
Member

Joined: Dec 2009
Posts: 748
Ayrshire, Scotland
Hi,

I had a quick look at the pin out of the 74165 and all those pins with resistors are inputs, so I'd guess that they are there to protect the inputs of the chip from accidental over voltage.

For changing the programming of the keys/buttons I'd suggest a program called "AutoHotKeys". That's what I used in my cockpit to program the functions of all the switches/buttons. There are a lot of these programs out there and most are free (this one is).

Hope this helps.

Andy


Andy's simpit: http://www.simpit.me.uk
#4564166 - 04/13/21 09:36 PM Re: MMJoy/MMjoy2 - Set your own USB controller with a cheap Arduino [Re: Sokol1]  
Joined: Apr 2021
Posts: 6
joch40 Offline
Junior Member
joch40  Offline
Junior Member

Joined: Apr 2021
Posts: 6
Berlin
Hi,

I am new here and searched google and this forum for a rather simple newbi question but can not find a straitforward answer.

I try to use a NewHope ShiftRegister 74HC165 that has been discussed in this forum already (link: https://www.aliexpress.com/snapshot...28567998584812&productId=32861811972) (New series that should have the correct marking on the board) .

The Host-System is a Arduino Leonard on MMJoy2. The goal is to build a button box. But somehow something simply doesn’t work.

MMJoy2 is up and running on the Leonardo as I can test it with some simple poti’s.

After some research I think I managed to wire the connection between the Leonardo and the SR NewHope 74HC165 device.

I use this layout

[Linked Image]



Inside mmjoy2 I configured the SR as shown below.

[Linked Image]

Following the specifications in https://github.com/MMjoy/mmjoy_en/wiki/Controllers-(compatible-base-boards) I use pin 13 for MISO and Pin 12 for CS.

Assuming that this is correct so far the real challenge (at least for me) seems to be how to connect a simple push button with two connections (or any other sensor) to the sr board.

As the SR Board has six slots the connections have to go into one slot. The first one has a numbering 1-4 and an arrow pin (that seems to connect to vcc). Like this:

[Linked Image]

My first guess was to connect on wire with slot 1 and the other with GND (on the Arduino). This – as all other combinations I tried -gave no result. For a dummy like me it would be perfect if I could get a diagram like this: https://img.alicdn.com/imgextra/i4/441247242/TB2tcL7jVXXXXb9XpXXXXXXXXXX-441247242.jpg (Obviously without the mainboard connections that are visible on this diagram).

What I am doing wrong?

Thanks for your support.

Best

Janko

PS: I tried to contact the NewHope People but they don’t seem to understand this use case and could not help me. There reply to my request :

We don't understand the technology. We have the goods. You can use it if you see the right model.
(Probably a Google-Translate form Chinese)

Attached Files Anschlüsse für SR 74CH165.pngmmjoy2sr config.pngSR-Slot.png

Janko Jochimsen
#4564238 - 04/14/21 04:30 PM Re: MMJoy/MMjoy2 - Set your own USB controller with a cheap Arduino [Re: Sokol1]  
Joined: Nov 2001
Posts: 3,955
Sokol1 Offline
Senior Member
Sokol1  Offline
Senior Member

Joined: Nov 2001
Posts: 3,955
Internet
Just in case check this and following posts, this 74HC165 is a confuding matter.


https://SimHQ.com/forum/ubbthreads....uild-your-own-usb-controller#Post4451088

#4564259 - 04/14/21 05:57 PM Re: MMJoy/MMjoy2 - Set your own USB controller with a cheap Arduino [Re: Sokol1]  
Joined: Nov 2019
Posts: 4
tailor Offline
Junior Member
tailor  Offline
Junior Member

Joined: Nov 2019
Posts: 4
Originally Posted by Sokol1
Just in case check this and following posts, this 74HC165 is a confuding matter.


https://SimHQ.com/forum/ubbthreads....uild-your-own-usb-controller#Post4451088

Hi
I use the same SR (I mean which is mentioned by joch40) connected to pro micro, no problems.
I think, arduino Leonardo pinout which you used is probably not correct, try to use this one from wiki. I made you simple connection diagram, but as I wrote in previous post I’m not an expert (in contrast to Sokol, check it please winkngrin ) . From the other hand, if your previous tests did not burn arduino board, another try shouldn’t be hazardous bump . Also remember to set switch selector “UP” to mmjoy position.

Attached Files leonardo_74HC165.pngIMAG0476.jpg
#4564394 - 04/15/21 02:23 PM Re: MMJoy/MMjoy2 - Set your own USB controller with a cheap Arduino [Re: Sokol1]  
Joined: Apr 2021
Posts: 6
joch40 Offline
Junior Member
joch40  Offline
Junior Member

Joined: Apr 2021
Posts: 6
Berlin

Hi,

thank you for the advice.

I have read the post

https://SimHQ.com/forum/ubbthreads....uild-your-own-usb-controller#Post4451088

but I could not find any hind how to properly wire the buttons. The discussion kind of ends as the participants discover that the labelling is wrong, but this problem is fixed.

Thanks tailor for the diagram I think this is actually what I am looking for. I will test tonight and report back with the results. Especially interesting is the idea to the B3 pin in the ICSP block as MISO.


Thanks again

Janko


Janko Jochimsen
#4564473 - 04/15/21 08:28 PM Re: MMJoy/MMjoy2 - Set your own USB controller with a cheap Arduino [Re: Sokol1]  
Joined: Apr 2021
Posts: 6
joch40 Offline
Junior Member
joch40  Offline
Junior Member

Joined: Apr 2021
Posts: 6
Berlin
Hi,
I investigated further and put the wiring exactly like tailor advised. Sadly without much success. I connected one push button in the first slot by the first and the last connector (1 and arrow) but with no result. I also tried to short the wires directly – again no reaction in the MMJoy2 Panel.

The only sign of life I get from this SR is if I put the ejoy / mjoy switch in the wrong position. In this case the buttons from 1 to 24 in the MMJoy2 Panel light up. I think this is the expected behaviour (right?). Therefor I assume that the wiring between Leo and SR is now correct (correct?).

So there has to bs some mystery about how to wire the buttons (or any other idea?)


What to do next?

Any help is appreciated

Best

Janko


Janko Jochimsen
#4564608 - 04/16/21 03:47 PM Re: MMJoy/MMjoy2 - Set your own USB controller with a cheap Arduino [Re: Sokol1]  
Joined: Nov 2001
Posts: 3,955
Sokol1 Offline
Senior Member
Sokol1  Offline
Senior Member

Joined: Nov 2001
Posts: 3,955
Internet
Post a picture of MMjoySetup, buttons tab.

#4564642 - 04/16/21 06:18 PM Re: MMJoy/MMjoy2 - Set your own USB controller with a cheap Arduino [Re: joch40]  
Joined: Nov 2019
Posts: 4
tailor Offline
Junior Member
tailor  Offline
Junior Member

Joined: Nov 2019
Posts: 4
Originally Posted by joch40
In this case the buttons from 1 to 24 in the MMJoy2 Panel light up. I think this is the expected behaviour (right?).

No, button box in mmjoy button tab should light up only when the real button is pressed, I had the same situation as I made wrong MISO assignment in SR-DATA gap. I have no idea what’s wrong, maybe some thoughts:
-make sure that your assignment in SR-CS and SR-DATA gaps is correct
-reconnect CS wire to another analog or digital pin
-replace SR board and check (you should have two)
-connect single button in matrix mode (row/column), reprogram mmjoy, see if it works (leo board is ok)
-reconnect CS and MISO to TX(D3) and RX(D2) like in this SR 4021 and pro micro example also you can see the same type of connection here for Leonardo board (photo).
Trying to help you, but as I said I’m not an electronic expert

#4564676 - 04/16/21 08:10 PM Re: MMJoy/MMjoy2 - Set your own USB controller with a cheap Arduino [Re: Sokol1]  
Joined: Apr 2021
Posts: 6
joch40 Offline
Junior Member
joch40  Offline
Junior Member

Joined: Apr 2021
Posts: 6
Berlin
Hi all,
thank you for been with me in this.

Attached find the button panel. I changed some things compared to the original layout.


[Linked Image]

CS is now on D7 as I was suspicions that the CS Pin has to be PWM and away from the higher numbers as they might conflict with the ICSP Header.
MISO is on B3 (MISO Pin of the ICSP) as tailor recommended.

I also tried to use the ICSP Ground.

I have one push button assigned to the first slot (from 1 to arrow). But I have no resistors or anything like that attached.

No result so far….

Best

Janko

Attached Files Button Tab.png

Janko Jochimsen
#4564885 - 04/17/21 08:50 PM Re: MMJoy/MMjoy2 - Set your own USB controller with a cheap Arduino [Re: Sokol1]  
Joined: Apr 2021
Posts: 6
joch40 Offline
Junior Member
joch40  Offline
Junior Member

Joined: Apr 2021
Posts: 6
Berlin
Hi,

soooo it was a broken cable after all. Following tailors advice to use the other SR I took everything apart and started completely new and suddenly It started to work. After that it turned out that the first SR is OK but on DuPont wire is broken.
Sorry that I made such a fuss, but a least I can confirm that the following configuration works on a Leonardo Board:

MISO – B3 (on ICSP)
5V – 5V
CS – D7 (= Pin 6)
SCK – B1 (again on ICSP)
GND – Gnd

Wiring of the buttons as shown by tailor.

After that thing is settled may I ask a follow up question?

Is it possible to connect an encoder to these Shift-Register? And if so how do I wire them. I have read Page 61 (https://SimHQ.com/forum/ubbthreads....uild-your-own-usb-controller#Post4333127) that explains very nicely how to connect an encoder as a Button Matrix. Is something similar also possible on these SRs?

Thank you all for your support great environment.

Cheers

Janko


Janko Jochimsen
#4565043 - 04/18/21 06:29 PM Re: MMJoy/MMjoy2 - Set your own USB controller with a cheap Arduino [Re: Sokol1]  
Joined: Nov 2019
Posts: 4
tailor Offline
Junior Member
tailor  Offline
Junior Member

Joined: Nov 2019
Posts: 4
Originally Posted by joch40

Is it possible to connect an encoder to these Shift-Register? And if so how do I wire them.



I tried it when I was building my simple button box, unfortunately with no success, that's why I had to make it in button matrix mode, however I've just found post where some guy claims that it is possible https://forums.eagle.ru/topic/156619-cursed-encoders/?tab=comments#comment-3136243, also in the picture you linked earlier https://img.alicdn.com/imgextra/i4/441247242/TB2tcL7jVXXXXb9XpXXXXXXXXXX-441247242.jpg connected encoder is visible. Let as know if you succeed.

#4565468 - 04/21/21 08:05 PM Re: MMJoy/MMjoy2 - Set your own USB controller with a cheap Arduino [Re: Sokol1]  
Joined: Apr 2021
Posts: 6
joch40 Offline
Junior Member
joch40  Offline
Junior Member

Joined: Apr 2021
Posts: 6
Berlin
Hi,

It works. At least in a test environment.

I followed the setting in https://forums.eagle.ru/topic/156619-cursed-encoders/?tab=comments#comment-3136243

There are some points to mention:
1. The lights will not show in the mmjoy2 panel, they show in VB Button Tester and in the Windows configuration but not in the mmjoy2 main button panel. So you might have a correct configuration but miss it because you are looking at the wrong test panel.
2. GND of the encoder has to go into the slot where the signals go. The firtzing in the reference doesn’t shows this as it uses a direct connection.
3. Timer Setting are critical and have to be activated as the signal might otherwise be missed. (The older references show sometimes an on-off-on setting that seems to be gone.). I expect there might be the need for some fine tuning once the SR gets more connections and therefor more “stress”.

I attach the
mmjoy2 settings
[Linked Image]

wire schema.
[Linked Image]


Thank you all for your support.

Best

Janko

Attached Files MMJoxEncoder.pngEncoderWire.png

Janko Jochimsen
#4565616 - 04/22/21 08:42 PM Re: MMJoy/MMjoy2 - Set your own USB controller with a cheap Arduino [Re: Sokol1]  
Joined: Jul 2016
Posts: 25
Snagov Offline
Junior Member
Snagov  Offline
Junior Member

Joined: Jul 2016
Posts: 25
Hi folks....

I make a Button box with 90 buttons (10 rows + 9 columns), in MMJOY works well but in the "VKB Button Tester" a lot off buttons not works (principaly in high numbers <70) , someone works if i change H/W number, but others not works . Any idea?

Last edited by Snagov; 04/23/21 04:06 PM.
#4565896 - 04/25/21 03:43 AM Re: MMJoy/MMjoy2 - Set your own USB controller with a cheap Arduino [Re: Sokol1]  
Joined: Mar 2021
Posts: 3
Dovahkiin Offline
Junior Member
Dovahkiin  Offline
Junior Member

Joined: Mar 2021
Posts: 3
Iran
Hello,
I built a button box with 128 buttons and 8 axes. I have following problem (I think its a software related problem.)
All the button of my button box is recognized with mmjoy software button page.( the page in above pic)

I configured them  all as normal buttons in the right section. So far so good.
[Linked Image]
(This pic is from MMJOY wiki and I use it just for showing sections that I will mention)
Then I used joystick germlin (is the spell right? :D) and I pressed some buttons, the program recognized some. But some of them didn't recognized by the program. I opened VKB button test in MMjoy and it didnt recognized the buttons that joystick germlin couldnt recognized. At the same time when I press them, the nummber of the button goes red in the MMjoy button section (pic above). So they have no hardware problem. Then I changed the nummber of button in the right section of pic above and then saved them. I tested it with VKB button test and joystick germlin, both didn't recognized some buttons but they were diffrent button from the first test. I realy hope someone could help me solve this problem beacuse I put a lot of time on buliding my button box.

(I'm using SRs and arduino Leonardo, also I tested both 2016 versions of MMJOY and both had this problem but with diffrent buttons)

Last edited by Dovahkiin; 04/25/21 04:00 AM.
#4566238 - 04/27/21 01:50 PM Re: MMJoy/MMjoy2 - Set your own USB controller with a cheap Arduino [Re: Sokol1]  
Joined: Apr 2021
Posts: 7
AlenC Offline
Junior Member
AlenC  Offline
Junior Member

Joined: Apr 2021
Posts: 7
Hello everyone,

I was hoping to get some help for my new MMJoy2 project.

I'm trying to rewire Suncom F-15 Raptor and I'd like to use existing LED's on the stick, but I'm not sure how to wire them so that they light up when a button is pressed. Is it done in MMJoy2 setup (there are some LED options, but I couldn't find any explanation on how to use it)? I don't think that passing a current through the switch would be a good idea. Just please note that I'll be also including two hall sensors and maybe a couple of potentiometers, so if I need to include a battery for LED's, that would be also fine.

Thanks! (PS, if someone has a Suncom throttle, I'd be intereseted in purchasing it!)

Page 108 of 112 1 2 106 107 108 109 110 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