#4380374 - 09/20/17 05:37 AM
Re: MMJoy/MMjoy2 - Build your own USB controller
[Re: sunrrrise]
|
Joined: Dec 2016
Posts: 454
Kb1rd1
Member
|
Member
Joined: Dec 2016
Posts: 454
|
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 ? http://SimHQ.com/forum/ubbthreads.p...uild-your-own-usb-controller#Post4358428 I did the same thing 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.
|
|
#4380451 - 09/20/17 02:26 PM
Re: MMJoy/MMjoy2 - Build your own USB controller
[Re: Sokol1]
|
Joined: Dec 2016
Posts: 454
Kb1rd1
Member
|
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.
|
|
#4380456 - 09/20/17 03:19 PM
Re: MMJoy/MMjoy2 - Build your own USB controller
[Re: Sokol1]
|
Joined: Jan 2017
Posts: 35
sunrrrise
Junior Member
|
Junior Member
Joined: Jan 2017
Posts: 35
|
Hi, I have soldered 10K resistor on the DATA for CD4021, but the problem persists 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
Last edited by sunrrrise; 09/20/17 03:20 PM.
|
|
#4380734 - 09/22/17 07:35 AM
Re: MMJoy/MMjoy2 - Build your own USB controller
[Re: Sokol1]
|
Joined: Jan 2017
Posts: 35
sunrrrise
Junior Member
|
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.pngbut I have soldered female connector 'upside-down', I mean mirrored! GND replaced with DATA, SCK with CS, VCC soldered to nothing Ten minutes later everything started to work :-) Regards, sun
Last edited by sunrrrise; 09/22/17 07:36 AM.
|
|
#4380796 - 09/22/17 02:25 PM
Re: MMJoy/MMjoy2 - Build your own USB controller
[Re: FlyingMonkey]
|
Joined: Dec 2016
Posts: 454
Kb1rd1
Member
|
Member
Joined: Dec 2016
Posts: 454
|
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
|
|
#4380804 - 09/22/17 02:58 PM
Re: MMJoy/MMjoy2 - Build your own USB controller
[Re: FlyingMonkey]
|
Joined: Nov 2001
Posts: 3,955
Sokol1
Senior Member
|
Senior Member
Joined: Nov 2001
Posts: 3,955
Internet
|
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.htmlhttp://www.derekspearedesigns.com/64-button-no-matrix-controller.html
|
|
#4381373 - 09/25/17 10:59 PM
Re: MMJoy/MMjoy2 - Build your own USB controller
[Re: Sokol1]
|
Joined: Apr 2017
Posts: 79
Tazz
Junior Member
|
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: 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.
|
|
#4381446 - 09/26/17 08:43 AM
Re: MMJoy/MMjoy2 - Build your own USB controller
[Re: Sokol1]
|
Joined: Mar 2015
Posts: 51
Sak75
Junior Member
|
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
Junior Member
|
Junior Member
Joined: Apr 2017
Posts: 79
Wellington, NZ
|
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.
|
|
|
|
|
|
|
|
|
Exodus
by RedOneAlpha. 04/18/24 05:46 PM
|
|
|
|
|