Previous Thread
Next Thread
Print Thread
Rate This Thread
Hop To
Page 79 of 112 1 2 77 78 79 80 81 111 112
#4380299 - 09/19/17 06:11 PM Re: MMJoy/MMjoy2 - Build your own USB controller ***** [Re: Sokol1]  
Joined: Jan 2017
Posts: 35
sunrrrise Offline
Junior Member
sunrrrise  Offline
Junior Member

Joined: Jan 2017
Posts: 35
Hello,
quick question:
- is it possible to connect in chain:

ProMicro --- 1#TLE5010 --- 2#TLE5010 --- CD4021BE

?

It should be obvious, but I cannot make it working. I have soldered Debolesti's PCB and I can plug my B-5 to Warthog's base - works like a charm. But while I try to connect B-5 to the last TLE5010 in chain it does not regognize buttons. All eight buttons are just red.

Each of three PCBs shares following wires/pins:
- VCC
- GND
- MISO (B3)
- SCK (B1)

Both TLE5010 share B6 as GEN.

CD4021BE uses E6 as CS pin, TLE5010 use B4 and B5 pins for CS.

I have checked circuits from end to end for each wire and all seem to be ok. But it's not. Can you please post your screens how it should be configured?


Last edited by sunrrrise; 09/19/17 10:16 PM.
Inline advert (2nd and 3rd post)

#4380374 - 09/20/17 05:37 AM Re: MMJoy/MMjoy2 - Build your own USB controller [Re: sunrrrise]  
Joined: Dec 2016
Posts: 454
Kb1rd1 Offline
Member
Kb1rd1  Offline
Member

Joined: Dec 2016
Posts: 454
Originally Posted by sunrrrise
Hello,
quick question:
- is it possible to connect in chain:

ProMicro --- 1#TLE5010 --- 2#TLE5010 --- CD4021BE

?

It should be obvious, but I cannot make it working. I have soldered Debolesti's PCB and I can plug my B-5 to Warthog's base - works like a charm. But while I try to connect B-5 to the last TLE5010 in chain it does not regognize buttons. All eight buttons are just red.

Each of three PCBs shares following wires/pins:
- VCC
- GND
- MISO (B3)
- SCK (B1)

Both TLE5010 share B6 as GEN.

CD4021BE uses E6 as CS pin, TLE5010 use B4 and B5 pins for CS.

I have checked circuits from end to end for each wire and all seem to be ok. But it's not. Can you please post your screens how it should be configured?



did you forget what we talked about on page 147 ? smile http://SimHQ.com/forum/ubbthreads.p...uild-your-own-usb-controller#Post4358428

I did the same thing smile on my FLCS ...... use another digital pin for the 4021 PCB as the TLE5010 will override anything else on MISO (data) , see if that works ?



GND ---- Any Available GND Pin
SCK ---- Pin B1
CS ------ Any Available Pin--Assign in MMjoy
DATA --- (MISO) Pin B3 if available but can use any available Digital Pin... eg if TLE5010 PCB are using Miso use any other digital pin (avoid Pin13 or LED will Flash constantly with data flow)
VCC --- 5v Power ( On the Leonardo I use Vin too as Vin voltage = input voltage ie 5v from USB)





Last edited by Kbird; 09/20/17 05:42 AM.

My FLCS+TQS Conversion here on SimHQ

http://simhq.com/forum/ubbthreads.php/topics/4324940/1
#4380375 - 09/20/17 07:02 AM Re: MMJoy/MMjoy2 - Build your own USB controller [Re: Kb1rd1]  
Joined: Jan 2017
Posts: 35
sunrrrise Offline
Junior Member
sunrrrise  Offline
Junior Member

Joined: Jan 2017
Posts: 35
Hi,
totally forgot it - at that time I did not used CD4021 :-)

I have resoldered wires and right now I have:

- common GND for both TLE5010 and one CD4021,
- common VCC for both TLE5010 and one CD4021,
- common CSK for both TLE5010 and one CD4021,
- common GEN for both TLE5010,
- common DATA for both TLE5010,
- individual DATA for CD4021.
- individual CS for each PCB,

But still no luck. It's even worse. If I connect CD4021 then both TLE5010 seems to be freezing. Once disconected both TLE5010 are working fine.

Buttons are still not being recognized.

#4380450 - 09/20/17 02:21 PM Re: MMJoy/MMjoy2 - 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
From il-2.ru forum, TLE501x and Shift Register in same PRO Micro.

[Linked Image]

#4380451 - 09/20/17 02:26 PM Re: MMJoy/MMjoy2 - Build your own USB controller [Re: Sokol1]  
Joined: Dec 2016
Posts: 454
Kb1rd1 Offline
Member
Kb1rd1  Offline
Member

Joined: Dec 2016
Posts: 454
do you have the 10k resistor on the Data ?? that was my other issue , some of the later PCB design are wrong..... have a look here and a few posts lower

hopefuly you get it sorted out...please post back as I just got some Pro Mircro's for a 2nd build....

http://SimHQ.com/forum/ubbthreads.p...uild-your-own-usb-controller#Post4354647

Last edited by Kbird; 09/20/17 02:29 PM.

My FLCS+TQS Conversion here on SimHQ

http://simhq.com/forum/ubbthreads.php/topics/4324940/1
#4380456 - 09/20/17 03:19 PM Re: MMJoy/MMjoy2 - Build your own USB controller [Re: Sokol1]  
Joined: Jan 2017
Posts: 35
sunrrrise Offline
Junior Member
sunrrrise  Offline
Junior Member

Joined: Jan 2017
Posts: 35
Hi,
I have soldered 10K resistor on the DATA for CD4021, but the problem persists frown

Let me make a summary:
- B-5 grip with CD4021 is working fine with Warthog base,
- both TLE5010 are working fine,
- I use separate CS for each chip,
- I use separate DATA for CD4021 and TLE5010s,
- I have 10K resistor on the DATA for CD4021,
- I have checked all cables from end to end and I haven't found any short circuits and believe there are no errors in design.

#%&*$#! What else can be wrong?

@Sokol1,
your schema looks like the maze wink

Last edited by sunrrrise; 09/20/17 03:20 PM.
#4380571 - 09/21/17 04:36 AM Re: MMJoy/MMjoy2 - Build your own USB controller [Re: Sokol1]  
Joined: Dec 2016
Posts: 454
Kb1rd1 Offline
Member
Kb1rd1  Offline
Member

Joined: Dec 2016
Posts: 454
Perhaps you should post your Schematic , so someone can see if it is correct , sorry I don't know enough to really help you but @Erichos might if he has time.

KB..


My FLCS+TQS Conversion here on SimHQ

http://simhq.com/forum/ubbthreads.php/topics/4324940/1
#4380726 - 09/22/17 05:03 AM Re: MMJoy/MMjoy2 - Build your own USB controller [Re: Sokol1]  
Joined: Jun 2009
Posts: 624
FlyingMonkey Offline
Member
FlyingMonkey  Offline
Member

Joined: Jun 2009
Posts: 624
Down under in Adelaide
Hey guys, I'm in the early stage of planning a throttle + buttons and rotary encoders box for my VR cockpit, and I'm planning to use mmjoy for that.

From the screenshots I see in this thread, there is a maximum of 6 encoders per controller, is that correct? If yes I might need two controllers as I was planning a total of 8-10 encoders (for all the nav, adf, gps, alt sel dials etc). Or maybe I should use a BU036A for that since it can use a matrix of 16 encoders? I'm focusing on rotary dials because they're a pain to control in VR if you need to repeatedly click on them using a trackball or the Vive controllers, and that's particularly painful when trying to tune navigation in a vintage plane.

#4380734 - 09/22/17 07:35 AM Re: MMJoy/MMjoy2 - Build your own USB controller [Re: Sokol1]  
Joined: Jan 2017
Posts: 35
sunrrrise Offline
Junior Member
sunrrrise  Offline
Junior Member

Joined: Jan 2017
Posts: 35
@KBird,
hahaha, found it. I have checked each component once again and nothing. Being quite resigned I decided to check Warthog stick (I know, it was waving a dead chicken...). So I unscrew the grip and plug it to female connector of PS/2. Of course... nothing, it's dead. So I turned the grip upside down to unplug it...

"Hmmm... WTF? How is it supposed to work? One cable is not connected at all! OMG, the other are soldered to wrong pins!"

You know what happened? I used this schema:

http://SimHQ.com/forum/files/usergals/2013/06/full-25157-60873-grip.png

but I have soldered female connector 'upside-down', I mean mirrored! GND replaced with DATA, SCK with CS, VCC soldered to nothing biggrin

Ten minutes later everything started to work :-)

Regards,
sun

Last edited by sunrrrise; 09/22/17 07:36 AM.
#4380793 - 09/22/17 02:16 PM Re: MMJoy/MMjoy2 - Build your own USB controller [Re: Sokol1]  
Joined: Dec 2016
Posts: 454
Kb1rd1 Offline
Member
Kb1rd1  Offline
Member

Joined: Dec 2016
Posts: 454
That is good news even if it makes you feel a bit silly smile ...been there done that smile

have not seen that wiring pinout diagram before ....nice ....this is the one i modified when I had the issue with MISO....

Attached Files Handle shift_register_thrustmaster_FLCS_F22_Cougar Wiring Colors.jpg

My FLCS+TQS Conversion here on SimHQ

http://simhq.com/forum/ubbthreads.php/topics/4324940/1
#4380796 - 09/22/17 02:25 PM Re: MMJoy/MMjoy2 - Build your own USB controller [Re: FlyingMonkey]  
Joined: Dec 2016
Posts: 454
Kb1rd1 Offline
Member
Kb1rd1  Offline
Member

Joined: Dec 2016
Posts: 454
Originally Posted by FlyingMonkey
Hey guys, I'm in the early stage of planning a throttle + buttons and rotary encoders box for my VR cockpit, and I'm planning to use mmjoy for that.

From the screenshots I see in this thread, there is a maximum of 6 encoders per controller, is that correct? If yes I might need two controllers as I was planning a total of 8-10 encoders (for all the nav, adf, gps, alt sel dials etc). Or maybe I should use a BU036A for that since it can use a matrix of 16 encoders? I'm focusing on rotary dials because they're a pain to control in VR if you need to repeatedly click on them using a trackball or the Vive controllers, and that's particularly painful when trying to tune navigation in a vintage plane.


Documentation is a bit sparse on MMjoy2 ...hence this long thread....but I think you are right FM , but alot of use use two or three controllers any way eg FLCS, TQS, RUDDERS and as long as you have USB ports to plug into if should be fine....though it maybe cheaper to get one BU0386A , unless you order some cheap pro micros or Leonardos from China....

the Wiki is the only Documentation I am aware of... though you may find a PDF on MMjoy (predecessor) online I am not sure how relevant the info is these days...

https://github.com/MMjoy/mmjoy_en/wiki


My FLCS+TQS Conversion here on SimHQ

http://simhq.com/forum/ubbthreads.php/topics/4324940/1
#4380804 - 09/22/17 02:58 PM Re: MMJoy/MMjoy2 - Build your own USB controller [Re: FlyingMonkey]  
Joined: Nov 2001
Posts: 3,955
Sokol1 Offline
Senior Member
Sokol1  Offline
Senior Member

Joined: Nov 2001
Posts: 3,955
Internet

Originally Posted by FlyingMonkey

If yes I might need two controllers as I was planning a total of 8-10 encoders (for all the nav, adf, gps, alt sel dials etc). Or maybe I should use a BU036A for that since it can use a matrix of 16 encoders? I'm focusing on rotary dials because they're a pain to control in VR if you need to repeatedly click on them using a trackball or the Vive controllers, and that's particularly painful when trying to tune navigation in a vintage plane.


In that case worth spent more with BU0836, due their 16 Encoder support.

DSB 32/64 button controller (no axis) is another option:

http://www.derekspearedesigns.com/32-button-no-matrix-controller.html

http://www.derekspearedesigns.com/64-button-no-matrix-controller.html

#4380929 - 09/23/17 03:46 AM Re: MMJoy/MMjoy2 - Build your own USB controller [Re: Sokol1]  
Joined: Jun 2009
Posts: 624
FlyingMonkey Offline
Member
FlyingMonkey  Offline
Member

Joined: Jun 2009
Posts: 624
Down under in Adelaide
Thanks guys. Sokol1, that DSD 32/64 controller look like a perfect solution for me. I'll still use my Leonardo board for 10 turn pots for trim for a rudder and aileron trim wheel and most likely a GVL224 lever and magRes if I can figure out how to pay him (he's told me how but geez it's tricky to pay someone in Ukraine...) as well as a couple of slider pots. So all in all I'm spending a bit more but I'm still finding a use for what I already have.

#4380990 - 09/23/17 05:40 PM Re: MMJoy/MMjoy2 - Build your own USB controller [Re: Sokol1]  
Joined: Dec 2016
Posts: 454
Kb1rd1 Offline
Member
Kb1rd1  Offline
Member

Joined: Dec 2016
Posts: 454
Originally Posted by Sokol1

Originally Posted by FlyingMonkey

If yes I might need two controllers as I was planning a total of 8-10 encoders (for all the nav, adf, gps, alt sel dials etc). Or maybe I should use a BU036A for that since it can use a matrix of 16 encoders? I'm focusing on rotary dials because they're a pain to control in VR if you need to repeatedly click on them using a trackball or the Vive controllers, and that's particularly painful when trying to tune navigation in a vintage plane.


In that case worth spent more with BU0836, due their 16 Encoder support.

DSB 32/64 button controller (no axis) is another option:

http://www.derekspearedesigns.com/32-button-no-matrix-controller.html

http://www.derekspearedesigns.com/64-button-no-matrix-controller.html


I havent seen that site before or even heard of Him but very interesting , the Flight Panels look nice as well

http://www.derekspearedesigns.com/dsd-flight---flt1flt2.html


My FLCS+TQS Conversion here on SimHQ

http://simhq.com/forum/ubbthreads.php/topics/4324940/1
#4381373 - 09/25/17 10:59 PM Re: MMJoy/MMjoy2 - Build your own USB controller [Re: Sokol1]  
Joined: Apr 2017
Posts: 79
Tazz Offline
Junior Member
Tazz  Offline
Junior Member

Joined: Apr 2017
Posts: 79
Wellington, NZ
Could someone be so kind to provide some insight into how the FLCS stick (shift registers) should be wired onto an Arduino Micro with MMJoy?

So based on the image posted by KBird, I've got the following:

Ground (green) on GRND pin
VCC (brown) on the 5V pin
SPI-SCK (orange) on the SCK pin (pin 1 top right)
SPI-CS (red) on A0/F7 and configured in MMJoy as such
SPI-MISO (yellow) on D7/E6 and figured in MMJoy as such

And here's my MMJoy:

[Linked Image]

But my problem is that no button presses are registered at all in the VKB Keytester? So I think it must have wired something the wrong way around but I can't quite find what the problem is.

#4381385 - 09/25/17 11:36 PM Re: MMJoy/MMjoy2 - 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
Seems OK. Just in case, after set MMjoySetup as in the above picture you click in "Save sets to device"?

#4381423 - 09/26/17 03:30 AM Re: MMJoy/MMjoy2 - Build your own USB controller [Re: Sokol1]  
Joined: Apr 2017
Posts: 79
Tazz Offline
Junior Member
Tazz  Offline
Junior Member

Joined: Apr 2017
Posts: 79
Wellington, NZ
Yes I did. By the way when assigning the Hardware Buttons, how do I actually know which button has which ID? e.g. how do I know that TMS up is button 12 or something?

#4381433 - 09/26/17 04:49 AM Re: MMJoy/MMjoy2 - Build your own USB controller [Re: Sokol1]  
Joined: Dec 2016
Posts: 454
Kb1rd1 Offline
Member
Kb1rd1  Offline
Member

Joined: Dec 2016
Posts: 454
it looks right as Sokol said... did you try SCK on the ICSP header instead? usually pin 3 ...

remove D2 and B5 from the Rows setup too ...for now...are you copying mine? they don't have anything to do with the handle buttons AFAIR...

you did upload the MMjoy Firmware to the Pro Micro right? the 2016-11-01 Firmware has a few bugs , not sure if that is it ? I'm using 2016 -8-18 now instead ...you can't mix and match firmwares and configs BTW...

try different USB VID and PID numbers ...Windows maybe confused too ....I had some weirdness if the number were too similar , I don't know if it was MMjoy or Win10 though.... ie try 7777 and 7700 and make the TQS 7777 and 7800....

Are you sure you have power?

I just went through each button and recorded what number lit up in MMjoy Button panel and then assigned it to the Hardware button I wanted.

Attached Files ICSP 6 pin Header 2 (2).png
Micro_pinout_v3_0.pdf (285 downloads)
Last edited by Kbird; 09/26/17 05:00 AM.

My FLCS+TQS Conversion here on SimHQ

http://simhq.com/forum/ubbthreads.php/topics/4324940/1
#4381446 - 09/26/17 08:43 AM Re: MMJoy/MMjoy2 - Build your own USB controller [Re: Sokol1]  
Joined: Mar 2015
Posts: 51
Sak75 Offline
Junior Member
Sak75  Offline
Junior Member

Joined: Mar 2015
Posts: 51
Madrid, Spain

#4381452 - 09/26/17 10:30 AM Re: MMJoy/MMjoy2 - Build your own USB controller [Re: Kb1rd1]  
Joined: Apr 2017
Posts: 79
Tazz Offline
Junior Member
Tazz  Offline
Junior Member

Joined: Apr 2017
Posts: 79
Wellington, NZ
Originally Posted by Kbird
it looks right as Sokol said... did you try SCK on the ICSP header instead? usually pin 3 ...

remove D2 and B5 from the Rows setup too ...for now...are you copying mine? they don't have anything to do with the handle buttons AFAIR...

you did upload the MMjoy Firmware to the Pro Micro right? the 2016-11-01 Firmware has a few bugs , not sure if that is it ? I'm using 2016 -8-18 now instead ...you can't mix and match firmwares and configs BTW...

try different USB VID and PID numbers ...Windows maybe confused too ....I had some weirdness if the number were too similar , I don't know if it was MMjoy or Win10 though.... ie try 7777 and 7700 and make the TQS 7777 and 7800....

Are you sure you have power?

I just went through each button and recorded what number lit up in MMjoy Button panel and then assigned it to the Hardware button I wanted.


Yes I was copying your file as I couldn't find any documentation on MMJoy as to what should be set or not.
Yes I did upload the firmware and yes I have power on all pins (4.90 to 4.70V).

If I take one of the wires out or wiggle it, it will show that all 20 buttons are getting pressed at once , as if something is shortening out or so. Other than that, it's pretty dead.
I'e tried using the SCK on the ICSP header but it made no difference using it on top of the Arduino Micro or using pin 1 on the buttom.

Page 79 of 112 1 2 77 78 79 80 81 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
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
It's Friday: grown up humor for the weekend.
by NoFlyBoy. 04/12/24 01:41 PM
OJ Simpson Dead at 76
by bones. 04/11/24 03:02 PM
They wokefied tomb raider !!
by Blade_RJ. 04/10/24 03:09 PM
Good F-35 Podcast
by RossUK. 04/08/24 09:02 AM
Gleda Estes
by Tarnsman. 04/06/24 06:22 PM
Copyright 1997-2016, SimHQ Inc. All Rights Reserved.

Powered by UBB.threads™ PHP Forum Software 7.6.0