Previous Thread
Next Thread
Print Thread
Rate This Thread
Hop To
Page 75 of 112 1 2 73 74 75 76 77 111 112
#4362598 - 06/07/17 04:17 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
Anyone has the scheme (pins) for connect 74HC165 in Teensy ++2.0?

Inline advert (2nd and 3rd post)

#4362678 - 06/08/17 01:18 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
Originally Posted by Sokol1
Anyone has the scheme (pins) for connect 74HC165 in Teensy ++2.0?



Using a Shift Register PCB you mean Sokol ? why would it be any different than hooking it to a Leonardo? I am not sure I understand 100% cos I am sure you know this :


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 (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; 06/10/17 07:12 PM. Reason: Miso is B3 not B2

My FLCS+TQS Conversion here on SimHQ

http://simhq.com/forum/ubbthreads.php/topics/4324940/1
#4362808 - 06/08/17 04:24 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
Thank you.

A guy ask in another forum, but I am not sure - are some confusion about pins name and PCB for 74HC165. smile

#4362821 - 06/08/17 06:04 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
The PCB designs are not all good in the MMjoy PCB Folder as I found out a few weeks ago when making my own SR Board for 3 Chips, there are missing 10K resistors and some capacitors ..at least on the one design with 2016-8-18 Firmware, so this is how mine ended up with help from Erichos and Buncan and they seem to be working properly now :

Attached Files Shift Register 74HC165_Board _GOOD_Layout.png

My FLCS+TQS Conversion here on SimHQ

http://simhq.com/forum/ubbthreads.php/topics/4324940/1
#4362902 - 06/09/17 05:43 AM Re: MMJoy/MMjoy2 - Build your own USB controller [Re: Sokol1]  
Joined: Aug 2016
Posts: 7
Pilot_B737 Offline
Junior Member
Pilot_B737  Offline
Junior Member

Joined: Aug 2016
Posts: 7
Does anybody tried to build concentric levers using TLE and magnets?
General question - if I will put the TLE and magnet (as a pair) and next one another pair of TLE and magnet, will one magnet effects to another TLE?
What is the minimum distance between these pairs should be?


Last edited by Pilot_B737; 06/09/17 05:44 AM.
#4363009 - 06/09/17 04:50 PM Re: MMJoy/MMjoy2 - Build your own USB controller [Re: mega_mozg_13]  
Joined: Apr 2016
Posts: 63
erichos Offline
Junior Member
erichos  Offline
Junior Member

Joined: Apr 2016
Posts: 63
Slovakia
@mega_mozg_13
I usally use 20ms, 100ms and sometimes 200ms for older switches. Allways ON but for encoders ON+OFF.

#4363089 - 06/10/17 02:44 AM Re: MMJoy/MMjoy2 - Build your own USB controller [Re: mega_mozg_13]  
Joined: Dec 2016
Posts: 115
Barra Offline
Member
Barra  Offline
Member

Joined: Dec 2016
Posts: 115
Australia
Originally Posted by mega_mozg_13
All who use the timers:
What delay interval do you choose and which mode?
I have plans to make one standard type "20ms and ON + OFF" mode


That is what I've used to date.

#4363104 - 06/10/17 09:18 AM Re: MMJoy/MMjoy2 - Build your own USB controller [Re: Sokol1]  
Joined: Apr 2016
Posts: 63
erichos Offline
Junior Member
erichos  Offline
Junior Member

Joined: Apr 2016
Posts: 63
Slovakia
Hi Sokol1, I used this pinout scheme for Teensy 2.0:
Pinout for Teensy 2.0

#4363150 - 06/10/17 04:18 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

#4363179 - 06/10/17 07:30 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


Sorry I think I put you wrong above , I wrote MISO (Data) but put B2 ...it is B3 ...... you need MISO (B3 or any Digital Pin assigned except 13) not MOSI which is B2 but it too can be assigned in MMJoy as SR Data if not needed.

Above now corrected ...

Check the above '165 PCB layout i posted as I am not sure the one you used is correct ? I needed to add (4) 10kohm resistors and several Capacitors too to stop button ghosting and the chips sending random button presses.


From the WIKI :


"B6" for TLE5010-GEN - this pin are shared for all TLE5010/5011 sensors.

"B3" for SPI-MISO (SR -DATA in MMjoy) this pin are shared for all "SPI" sensors (TLE5010/5011/kma200/mcp3201-3208).
you can connect as you like too, and where you connect Data pin need to assign in MMJoy .

"B1" for SPI-SCK - this pin are shared for all "SPI" sensors (TLE5010/5011/kma200/mcp3201-3208).

"SPI-CS" - ( SR-CS in MMJoy) you can connect as you like, and where you connect CS-pin need to assign in MMJoy .

"SPI-MOSI" shared for "SPI" sensors mcp3202-3208.

What is the difference between the controllers?

All the functions of the joystick work the same on all boards and chips.
The only difference is in quantity of available pins on a particular circuit board, the greater it is, the more legs can be connected directly to the buttons and axes.

PJRC "Teensy ++ 2.0" (at90usb1286, 46 pin total, 8 of them are available for the axes of the internal ADC directly)


For quick reference this is Sokol1 image....

Attached Files Teensy_2.0_SR_74HC165.jpg
Last edited by Kbird; 06/10/17 11:19 PM.

My FLCS+TQS Conversion here on SimHQ

http://simhq.com/forum/ubbthreads.php/topics/4324940/1
#4363197 - 06/10/17 11:10 PM Re: MMJoy/MMjoy2 - Build your own USB controller [Re: Sokol1]  
Joined: Apr 2016
Posts: 63
erichos Offline
Junior Member
erichos  Offline
Junior Member

Joined: Apr 2016
Posts: 63
Slovakia
Yes Sokol1, your scheme is OK but you can use pin B2-MOSI as DATA (in software MMJoy2) only if you don`t need MOSI for MCP3202-3208. Otherwise change B2 to any digital free pin.

#4363793 - 06/14/17 07:12 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
Hi, a upload a video of my button matrix. (32 buttons)

https://www.youtube.com/watch?v=xrMYQeOAr6s&list=UU013nX_B5PJm-1OIpHgb13g&index=1

#4364247 - 06/16/17 07:25 AM Re: MMJoy/MMjoy2 - Build your own USB controller [Re: Sokol1]  
Joined: May 2011
Posts: 10
Juris3D Offline
Junior Member
Juris3D  Offline
Junior Member

Joined: May 2011
Posts: 10
Riga, Latvia
Hello all!
I am very sorry if that is obviously answered before (I tried to search), but I would like to ask: is there orderable PCB boards somewhere, that would be expansion board for chinese Leonardo Pro Micro clone, board with pins/sockets, and maybe with 74HC165 chips?
Thank You in advance for eventual information!

#4364332 - 06/16/17 04: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
Debolestis upload some in OSH Park:

https://oshpark.com/shared_projects

BTW - He use CD4021B instead 74HC165 for Shift Register.

For 74HC165 Switf_CCP upload model for China PCB manufacturer:

https://forum.il2sturmovik.ru/topic/5126-zakaz-plat-pod-mmjoy2-v-kitae/

#4364451 - 06/17/17 10:10 AM Re: MMJoy/MMjoy2 - Build your own USB controller [Re: Sokol1]  
Joined: Jul 2010
Posts: 74
Repvez Offline
Junior Member
Repvez  Offline
Junior Member

Joined: Jul 2010
Posts: 74
For the shift reg Do I need to use diode or not? What is the connection order on the buttons? (TMS,DMS,CMS,HAT)
How can I flash the pro micro or set up the firmware on it?

#4364474 - 06/17/17 02:04 PM Re: MMJoy/MMjoy2 - Build your own USB controller [Re: Repvez]  
Joined: Nov 2001
Posts: 3,955
Sokol1 Offline
Senior Member
Sokol1  Offline
Senior Member

Joined: Nov 2001
Posts: 3,955
Internet
If use Shift Register board don't need diode matrix (one replace other).

Connect buttons in Shift Register PCB pins, each m/c (CD4021B or 74HC165) handle 8 buttons.

For firmware flash RTFM (link pag 1): : http://www.geneb.org/mmjoy2/pro-micro-instructions.pdf


Last edited by Sokol1; 06/17/17 02:04 PM.
#4364590 - 06/18/17 11:22 AM Re: MMJoy/MMjoy2 - Build your own USB controller [Re: Sokol1]  
Joined: Jul 2010
Posts: 74
Repvez Offline
Junior Member
Repvez  Offline
Junior Member

Joined: Jul 2010
Posts: 74
is it no matter what pin is the column and what is the row?
I Have a set what I showed in #4362564 , but I don't know which pins are row and column or other, because it contain only chinese character .What pins have to solder from the DMS and HAT,CMS,TMS to shift reg?
In the MMjoy program I have to set up every buttons the correct row and coulumn place? Can I cange the buttons place or noumber after that I soldered in place ?


So the firmware install process is :
I plug the pro micro to PC
open device managger
touch twice the rst and grd
I write the com port noumber from device managger
Open the MMjoy program firm tab
once again touch the rst and grd on pro micro
and upload the firmware in 8 sec

#4364629 - 06/18/17 03:33 PM Re: MMJoy/MMjoy2 - Build your own USB controller [Re: Repvez]  
Joined: Nov 2001
Posts: 3,955
Sokol1 Offline
Senior Member
Sokol1  Offline
Senior Member

Joined: Nov 2001
Posts: 3,955
Internet
Originally Posted by Repvez
is it no matter what pin is the column and what is the row?


Any pin labeled BM on Arduino (vide MegaMOZG scheme) can be used for ROW and COLUMNS of Diode Matrix, this is defined by user in MMJoySetup - buttons tab.

But if this Chinese kit already include Shift Register (74HC165) boards for connect up to 48 buttons ( 3 x 8 x 2), why bother with Diode Matrix?

Last edited by Sokol1; 06/18/17 03:34 PM.
#4364637 - 06/18/17 04:41 PM Re: MMJoy/MMjoy2 - Build your own USB controller [Re: Sokol1]  
Joined: Jul 2010
Posts: 74
Repvez Offline
Junior Member
Repvez  Offline
Junior Member

Joined: Jul 2010
Posts: 74
I don't bother just I don't know , how start the buttons sorderin on it.
Becouse the shift reg has 6 x 5 pin connector but I don't know which pin is row or column or 5v and grd.
here just found matrix connection sample with diode, but with shift reg not.
I'm not an electricer and i misunderstud something.

For exsample the DMS button have 4 switch there should be 4 row and 1 common coulumn, but which is which on the shift reg?
And the POV HAT should be an dedicated place or not?

#4364641 - 06/18/17 05:14 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
Here picture in better resolution of previous version of this Chinese "kit".

https://img.alicdn.com/imgextra/i4/441247242/TB2tcL7jVXXXXb9XpXXXXXXXXXX-441247242.jpg

Notice how 2 momentary press button is connect in Shift Register board (one button has LED, why 3 lines - ignore this detail).

The used connector in Shift Register has 5 pins, 4 for buttons inputs and one common, the red wire (is +5V).

So for connect that "CMS" thing - that is just a 4 switch HAT use one of this 4 pins input connector one pin for each 4 switch in this HAT and one pin as common (for all 4 switches).

POV HAT is too a 4 switch HAT, but for send diagonals (2 buttons pressed simultaneous) need be connected in MMJoy2 specific pins (defined in MMjoySetup) since the diagonals is created in firmware.
To know what pins are POV HAT in this Shift Register board use trial and error.

Resuming: in each of this 5 pins connector in Shift Register board can be connect one HAT, or 4 individual buttons (momentary, toggle ON-OFF) or 2 encoders or 2 ON-OFF-ON switch (showed in picture).

Again, in this connections is not used "ROW and COLUMNS" concept but input pins plus common wire - that in 74HC165 is +5V.

Page 75 of 112 1 2 73 74 75 76 77 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
Headphones
by RossUK. 04/24/24 03:48 PM
Skymaster down.
by Mr_Blastman. 04/24/24 03:28 PM
The Old Breed and the Costs of War
by wormfood. 04/24/24 01:39 PM
Actors portraying British Prime Ministers
by Tarnsman. 04/24/24 01:11 AM
Roy Cross is 100 Years Old
by F4UDash4. 04/23/24 11:22 AM
Actors portraying US Presidents
by PanzerMeyer. 04/19/24 12:19 PM
Dickey Betts was 80
by Rick_Rawlings. 04/19/24 01:11 AM
Exodus
by RedOneAlpha. 04/18/24 05:46 PM
Copyright 1997-2016, SimHQ Inc. All Rights Reserved.

Powered by UBB.threads™ PHP Forum Software 7.6.0