SimHQ
Previous Thread
Next Thread
Print Thread
Rating: 5
Hop To
Page 5 of 112 1 2 3 4 5 6 7 … 111 112
Joined: Jan 2010
Posts: 464
T
Member
Member
T Offline
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)

Joined: Jan 2014
Posts: 274
M
Member
Member
M Offline
Joined: Jan 2014
Posts: 274
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.

Joined: Jan 2014
Posts: 274
M
Member
Member
M Offline
Joined: Jan 2014
Posts: 274
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.

Joined: Jan 2010
Posts: 464
T
Member
Member
T Offline
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?

Joined: Jan 2014
Posts: 274
M
Member
Member
M Offline
Joined: Jan 2014
Posts: 274
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.

Joined: Jan 2010
Posts: 464
T
Member
Member
T Offline
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?

Joined: Jan 2014
Posts: 274
M
Member
Member
M Offline
Joined: Jan 2014
Posts: 274
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.

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

Joined: Jan 2010
Posts: 464
T
Member
Member
T Offline
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?

Joined: Nov 2001
Posts: 3,960
S
Senior Member
Senior Member
S Offline
Joined: Nov 2001
Posts: 3,960
Mega_mozg

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

Sokol1






Joined: Jan 2010
Posts: 464
T
Member
Member
T Offline
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?

Joined: Jan 2014
Posts: 274
M
Member
Member
M Offline
Joined: Jan 2014
Posts: 274
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).

Joined: Jan 2014
Posts: 274
M
Member
Member
M Offline
Joined: Jan 2014
Posts: 274
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).

Joined: Jan 2014
Posts: 274
M
Member
Member
M Offline
Joined: Jan 2014
Posts: 274
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:


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

Joined: Jan 2014
Posts: 274
M
Member
Member
M Offline
Joined: Jan 2014
Posts: 274
Originally Posted By: tirta
so any of them is good to use?

"DIP" easy to solder.

Joined: Jan 2010
Posts: 464
T
Member
Member
T Offline
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?

Joined: Jan 2014
Posts: 274
M
Member
Member
M Offline
Joined: Jan 2014
Posts: 274
tirta
button matrix, setup as you like.

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

Joined: Jan 2010
Posts: 464
T
Member
Member
T Offline
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 

Link Copied to Clipboard
Quick Search
Recent Articles
Support SimHQ

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


Recent Topics
How to Decommission Obsolete Robots....
by F4UDash4 - 10/04/26 05:54 PM
J-B Weld
by Terl9999 - 10/02/26 11:54 PM
Cydonia Mars
by Terl9999 - 10/01/26 07:22 AM
Steam vs GOG
by Terl9999 - 09/30/26 09:04 PM
It has been a long absence
by Snow46 - 09/30/26 07:36 PM
SpaceX Starship Going to Orbit
by F4UDash4 - 09/28/26 12:37 PM
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
Popular Topics(Views)
7,082,994 SAM Simulator
Copyright 1997-2016, SimHQ Inc. All Rights Reserved.

Powered by UBB.threads™ PHP Forum Software 8.0.1