SimHQ
Previous Thread
Next Thread
Print Thread
Rating: 5
Hop To
Page 108 of 112 1 2 … 106 107 108 109 110 111 112
Joined: Nov 2001
Posts: 3,960
S
Senior Member
Senior Member
S Offline
Joined: Nov 2001
Posts: 3,960
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)

Joined: May 2013
Posts: 7
S
Junior Member
Junior Member
S Offline
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

Joined: May 2013
Posts: 7
S
Junior Member
Junior Member
S Offline
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

Joined: Mar 2021
Posts: 3
D
Junior Member
Junior Member
D Offline
Joined: Mar 2021
Posts: 3
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
Attachments
Shift-Register-74HC165_Board-_GOOD_Layout.png

Last edited by Dovahkiin; 03/27/21 06:33 PM. Reason: Adding a Picture of 74HC165 PCB
Joined: Nov 2019
Posts: 4
T
Junior Member
Junior Member
T Offline
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.

Attachments
Button mode1.png Button mode.png

Last edited by tailor; 04/02/21 06:21 PM.
Joined: Dec 2009
Posts: 751
A
Member
Member
A Offline
Joined: Dec 2009
Posts: 751
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
Joined: Apr 2021
Posts: 6
J
Junior Member
Junior Member
J Offline
Joined: Apr 2021
Posts: 6
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)
Attachments
Anschlüsse für SR 74CH165.png mmjoy2sr config.png SR-Slot.png


Janko Jochimsen
Joined: Nov 2001
Posts: 3,960
S
Senior Member
Senior Member
S Offline
Joined: Nov 2001
Posts: 3,960
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

Joined: Nov 2019
Posts: 4
T
Junior Member
Junior Member
T Offline
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.
Attachments
leonardo_74HC165.png IMAG0476.jpg

Joined: Apr 2021
Posts: 6
J
Junior Member
Junior Member
J Offline
Joined: Apr 2021
Posts: 6

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
Joined: Apr 2021
Posts: 6
J
Junior Member
Junior Member
J Offline
Joined: Apr 2021
Posts: 6
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
Joined: Nov 2001
Posts: 3,960
S
Senior Member
Senior Member
S Offline
Joined: Nov 2001
Posts: 3,960
Post a picture of MMjoySetup, buttons tab.

Joined: Nov 2019
Posts: 4
T
Junior Member
Junior Member
T Offline
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

Joined: Apr 2021
Posts: 6
J
Junior Member
Junior Member
J Offline
Joined: Apr 2021
Posts: 6
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
Attachments
Button Tab.png


Janko Jochimsen
Joined: Apr 2021
Posts: 6
J
Junior Member
Junior Member
J Offline
Joined: Apr 2021
Posts: 6
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
Joined: Nov 2019
Posts: 4
T
Junior Member
Junior Member
T Offline
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.

Joined: Apr 2021
Posts: 6
J
Junior Member
Junior Member
J Offline
Joined: Apr 2021
Posts: 6
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
Attachments
MMJoxEncoder.png EncoderWire.png


Janko Jochimsen
Joined: Jul 2016
Posts: 25
S
Junior Member
Junior Member
S Offline
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.
Joined: Mar 2021
Posts: 3
D
Junior Member
Junior Member
D Offline
Joined: Mar 2021
Posts: 3
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.
Joined: Apr 2021
Posts: 7
A
Junior Member
Junior Member
A Offline
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 

Link Copied to Clipboard
Quick Search
Support SimHQ

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


Recent Topics
God Forbid they want to have a bit of fun at work
by NoFlyBoy - 09/22/26 08:50 PM
How a 5" 38 Caliber US Naval Gun Works
by F4UDash4 - 09/19/26 01:20 AM
100% commission based sales
by PanzerMeyer - 09/18/26 04:47 PM
Relativity
by Terl9999 - 09/18/26 04:34 AM
HOA's
by Terl9999 - 09/18/26 04:12 AM
Football
by Terl9999 - 09/18/26 02:42 AM
Flags
by Terl9999 - 09/15/26 10:03 PM
September 15th Battle of Britain Day.
by RedToo - 09/15/26 08:06 PM
Population Patterns
by PanzerMeyer - 09/15/26 03:43 PM
"Problem occurred in connection"
by F4UDash4 - 09/14/26 01:41 PM
Popular Topics(Views)
7,067,685 SAM Simulator
Copyright 1997-2016, SimHQ Inc. All Rights Reserved.

Powered by UBB.threads™ PHP Forum Software 8.0.1