Previous Thread
Next Thread
Print Thread
Rate This Thread
Hop To
Page 5 of 112 1 2 3 4 5 6 7 111 112
#4024039 - 10/18/14 08:43 AM Re: MMJoy - Build your own USB controller ***** [Re: Sokol1]  
Joined: Jan 2010
Posts: 464
tirta Offline
Member
tirta  Offline
Member

Joined: Jan 2010
Posts: 464
Thanks Sokol1,

However, from this picture:


at this site:
https://code.google.com/p/mmjoy/wiki/MMJOY2

I find only the old one:
6 axis (6 ADCx)
36 buttons (6 BC x 6 BR)

The new one is at mega_mozg link:
https://groups.google.com/forum/?hl=ru#!topic/mmjoy_update/Lnvn-Utj3D4

[img]https://08526453900738904547.googlegroups.com/attach/7a1aac23283b6a29/Pins_Sparkfun%5Bpromicro%5D.PNG?part=0.6&view=1&vt=ANaJVrGlPYB1P4y9ZAJK7OG5XYqHoDpTh270LugTAHUFoRiUequ-b3CLqXrlzzqgghydu3M_UCX_ApPtSUhC3ktP1LdwPT6BVRnAz518Yq9VsTKwOxONUm4[/img]

However, the connection is still not clear.
It seems that one pin is used for 2 connections?
I hope mega_mozg can clarify this.

Inline advert (2nd and 3rd post)

#4024053 - 10/18/14 10:02 AM Re: MMJoy - Build your own USB controller [Re: tirta]  
Joined: Jan 2014
Posts: 274
mega_mozg_13 Offline
Member
mega_mozg_13  Offline
Member

Joined: Jan 2014
Posts: 274
BELARUS, Minsk
hi to all.

Originally Posted By: tirta

However, the connection is still not clear.
It seems that one pin is used for 2 connections?



for a sample see pin "A3" = [F4] AI/AE/BM it can be used as internal port ADC, OR as external SPI-ChipSelect for ADC mcp320x, OR as button matrix.
another sample see pin "TX1" = [D3] ../AE/BM there is no internal port ADC, so use as external SPI-ChipSelect for ADC mcp320x, OR as button matrix.

one pin can be used only for one function.

#4024058 - 10/18/14 10:37 AM Re: MMJoy - Build your own USB controller [Re: Sokol1]  
Joined: Jan 2014
Posts: 274
mega_mozg_13 Offline
Member
mega_mozg_13  Offline
Member

Joined: Jan 2014
Posts: 274
BELARUS, Minsk
now only one difference between any board - is a available pins count.
Sparkfun[promicro] - total 18 pins, and 9 can be used for internal(onboard ADC) axis.
Arduino[leonardo] - total 23 pins, 11 internal axis.
Arduino[micro] - total 24 pins, 12 internal axis.
PJRC[Teensy 2.0] - total 25 pins, 12 internal axis.
JRC[Teensy 2.0 ++] - total 46 pins, 8 internal axis.

so if you want more axis, you can use SPI connected external ADC:
a) "kma200" magnetic field angle sensor + 13 bit ADC;
b) "MCP3201" 1 channel 12 bit ADC;
c) "MCP3202" 2 channels 12 bit ADC;
d) "MCP3204" 4 channels 12 bit ADC;
e) "MCP3208" 8 channels 12 bit ADC;
f) "MMSENS(MCP3202+KMZ60)" magnetic field angle sensor KMZ60 + MCP3202 12 bit ADC + trigonometric math at controller, my new project digital sensor;
SPI is a very easy to use, just connect power and ground from controller to ADC and connect SPI lines MISO/MOSI/SCK and CS(chip select). pin "CS" are individual for ADC, other pins is common for all ADC's connected.

PS: here some pictures of "MMSENS" working.

#4024113 - 10/18/14 02:52 PM Re: MMJoy - Build your own USB controller [Re: Sokol1]  
Joined: Jan 2010
Posts: 464
tirta Offline
Member
tirta  Offline
Member

Joined: Jan 2010
Posts: 464
Hi mega_mozg,

Thanks for the reply.
so for pro micro, there are 18 pins.

If I use 6 for axis,
there are only 12 pins left for buttons?

so 16 axis with 64 buttons are not possible for pro micro?

Are these correct?

#4024213 - 10/18/14 08:04 PM Re: MMJoy - Build your own USB controller [Re: tirta]  
Joined: Jan 2014
Posts: 274
mega_mozg_13 Offline
Member
mega_mozg_13  Offline
Member

Joined: Jan 2014
Posts: 274
BELARUS, Minsk
Originally Posted By: tirta

so for pro micro, there are 18 pins.
If I use 6 for axis, there are only 12 pins left for buttons?
so 16 axis with 64 buttons are not possible for pro micro?
Are these correct?

it is correct only if you want to use internal ADC.

but with two "mcp3208" connected to "pro micro" you can access to 16 axis(used 2 pins to "SPI-CS"), and you have 16 pins to buttons 8*8 = 64.

#4024331 - 10/19/14 04:24 AM Re: MMJoy - Build your own USB controller [Re: Sokol1]  
Joined: Jan 2010
Posts: 464
tirta Offline
Member
tirta  Offline
Member

Joined: Jan 2010
Posts: 464

Hi mega_mozg,

thanks for the explanation.

do you have picture for connecting pro micro to mcp3208 to hall sensors?

#4024341 - 10/19/14 06:33 AM Re: MMJoy - Build your own USB controller [Re: tirta]  
Joined: Jan 2014
Posts: 274
mega_mozg_13 Offline
Member
mega_mozg_13  Offline
Member

Joined: Jan 2014
Posts: 274
BELARUS, Minsk
Originally Posted By: tirta

do you have picture for connecting pro micro to mcp3208 to hall sensors?


look at my "ProMicro_ExtensionBoard". I use it for "Saitek x35/36". Here two mcp3208.




and special for you only promicro + mcp3208.




pins:
mcp3208.VDD = promicro.VCC
mcp3208.VREF = promicro.VCC
mcp3208.AGND = promicro.GND
mcp3208.DGND = promicro.GND
mcp3208.CLK = promicro.SCK (also "SCK" possible to share with button matrix, you can use this pin for SPI and for buttons)
mcp3208.Dout = promicro.MISO (also "MISO" possible to share with button matrix, you can use this pin for SPI and for buttons)
mcp3208.Din = promicro.MOSI (also "MOSI" possible to share with button matrix, you can use this pin for SPI and for buttons)
mcp3208.CS = any pin of promicro (this pin must used only for SPI, and it pin must be assigned at JoySetup)

and last note, if you like to use SPI and button matrix together all 3 SPI pins(MOSI/MISO/SCK) must be at one side raws or colunms. At my sample "ProMicro_ExtensionBoard" SPI shared with raws.

and connecting pot or hall to mcp3208 pins CH0-CH7, as regular ADC Pow(vcc) Gnd and out.

#4024342 - 10/19/14 06:42 AM Re: MMJoy - Build your own USB controller [Re: Sokol1]  
Joined: Jan 2014
Posts: 274
mega_mozg_13 Offline
Member
mega_mozg_13  Offline
Member

Joined: Jan 2014
Posts: 274
BELARUS, Minsk
and guys, this SPI external ADC's you can use with any board Arduino or Teensy.

#4024353 - 10/19/14 08:33 AM Re: MMJoy - Build your own USB controller [Re: Sokol1]  
Joined: Jan 2010
Posts: 464
tirta Offline
Member
tirta  Offline
Member

Joined: Jan 2010
Posts: 464
thanks mega_mozg.
I really appreciate it very much.
pictures make it very clear.

if I need only 7 axis and 42 buttons,
is 1 mcp3208 and 1 pro micro enough?

how fast is this setup compared to the first mmjoy?

#4024388 - 10/19/14 01:24 PM Re: MMJoy - 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
Mega_mozg

I think by "how fast" Tirta mean board operations frequency, if 100, 150 MHZ, etc, relative to old ATMEGA8/16 versions.

Sokol1






#4024411 - 10/19/14 02:51 PM Re: MMJoy - Build your own USB controller [Re: Sokol1]  
Joined: Jan 2010
Posts: 464
tirta Offline
Member
tirta  Offline
Member

Joined: Jan 2010
Posts: 464
hi mega_mozg,

I have looked for mcp3208 at ebay,
it seems that there are lots of versions,
here are two of them:

MCP3208-CI/P 12-bit A/D Converter IC New Microchip DIP 16
http://www.ebay.com/itm/1-PCS-MCP3208-CI...=item3a8769a5a3

MCP3208-CI/SL 12-bit A/D Converter IC New Microchip SOP-16 SMD SOP16
http://www.ebay.com/itm/1-PCS-MCP3208-CI...=item3cd878b302

which one should I use?

#4024721 - 10/20/14 05:26 AM Re: MMJoy - Build your own USB controller [Re: Sokol1]  
Joined: Jan 2014
Posts: 274
mega_mozg_13 Offline
Member
mega_mozg_13  Offline
Member

Joined: Jan 2014
Posts: 274
BELARUS, Minsk
Originally Posted By: Sokol1

I think by "how fast" Tirta mean board operations frequency, if 100, 150 MHZ, etc, relative to old ATMEGA8/16 versions.

starting release "20140909" no more support for classic Mjoy8(atmega8) and Mjoy16(atmega16).

#4024724 - 10/20/14 05:55 AM Re: MMJoy - Build your own USB controller [Re: tirta]  
Joined: Jan 2014
Posts: 274
mega_mozg_13 Offline
Member
mega_mozg_13  Offline
Member

Joined: Jan 2014
Posts: 274
BELARUS, Minsk
Originally Posted By: tirta
how fast is this setup compared to the first mmjoy?

set "USB Poll" to "1" = 1000 Hz
2=500
4=250
and 8=125 (OS Windows limit for old mjoy8 / mjoy16).

#4024725 - 10/20/14 05:58 AM Re: MMJoy - Build your own USB controller [Re: tirta]  
Joined: Jan 2014
Posts: 274
mega_mozg_13 Offline
Member
mega_mozg_13  Offline
Member

Joined: Jan 2014
Posts: 274
BELARUS, Minsk
Originally Posted By: tirta

MCP3208-CI/P 12-bit A/D Converter IC New Microchip DIP 16
MCP3208-CI/SL 12-bit A/D Converter IC New Microchip SOP-16 SMD SOP16

it has many package versions:


#4024726 - 10/20/14 06:13 AM Re: MMJoy - Build your own USB controller [Re: Sokol1]  
Joined: Jan 2010
Posts: 464
tirta Offline
Member
tirta  Offline
Member

Joined: Jan 2010
Posts: 464
so any of them is good to use?

#4024730 - 10/20/14 06:26 AM Re: MMJoy - Build your own USB controller [Re: tirta]  
Joined: Jan 2014
Posts: 274
mega_mozg_13 Offline
Member
mega_mozg_13  Offline
Member

Joined: Jan 2014
Posts: 274
BELARUS, Minsk
Originally Posted By: tirta
so any of them is good to use?

"DIP" easy to solder.

#4024736 - 10/20/14 07:05 AM Re: MMJoy - Build your own USB controller [Re: Sokol1]  
Joined: Jan 2010
Posts: 464
tirta Offline
Member
tirta  Offline
Member

Joined: Jan 2010
Posts: 464
thanks mega_mozg.

about the button matrix, in the new mmjoy2,
you do not specify which one is column and which one is row.

so how do you connect the buttons?

#4024740 - 10/20/14 07:14 AM Re: MMJoy - Build your own USB controller [Re: Sokol1]  
Joined: Jan 2014
Posts: 274
mega_mozg_13 Offline
Member
mega_mozg_13  Offline
Member

Joined: Jan 2014
Posts: 274
BELARUS, Minsk
tirta
button matrix, setup as you like.

#4024748 - 10/20/14 08:09 AM Re: MMJoy - Build your own USB controller [Re: Sokol1]  
Joined: Jan 2010
Posts: 464
tirta Offline
Member
tirta  Offline
Member

Joined: Jan 2010
Posts: 464
so you define which one is row and which one is column with joysetup.exe?

#4024749 - 10/20/14 08:19 AM Re: MMJoy - Build your own USB controller [Re: Sokol1]  
Joined: Jan 2010
Posts: 464
tirta Offline
Member
tirta  Offline
Member

Joined: Jan 2010
Posts: 464
is there any difference between sparkfun pro micro and arduino pro micro?

http://www.ebay.com/itm/New-Pro-Micro-AT...=item20d2a4f795

or they are the same?

Page 5 of 112 1 2 3 4 5 6 7 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
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
Grumman Wildcat unique landing gear
by Coot. 04/17/24 03:54 PM
Peter Higgs was 94
by Rick_Rawlings. 04/17/24 12:28 AM
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
Copyright 1997-2016, SimHQ Inc. All Rights Reserved.

Powered by UBB.threads™ PHP Forum Software 7.6.0