homepage

MMJoy/MMjoy2 - Set your own USB controller with a cheap Arduino

Posted By: Sokol1

MMJoy/MMjoy2 - Set your own USB controller with a cheap Arduino - 01/21/14 03:55 PM

Update: MMjoy2 USB 2.0

What is MMjoy2?

A free firmware developed by Mega_Mozg13 for make USB joystick controller using specific versions of Arduino/Teensy prototype boards, without need to assembly circuit boards or write computer code or deal with Arduino "sketches".

Solder tools and skill is need to assembly pins in some Arduino boards, as well to attach potentiometer, sensor, buttons as in any joystick.

Hardware needed: ~5$ Arduino PRO Micro (ATMEGA32U4) clone (or ~20$ Sparkfun/Teensy versions). Other supported boards linked bellow. Sample:

[Linked Image]

IMPORTANT - Arduino PRO MICRO with ATMEGA43u4, 16 MHZ, 5V.

Firmware : MMjoy2 - is loaded in Arduino board through a USB cable with MMJoy2 JoySetup software:

[Linked Image]
https://s31.postimg.cc/j2e3t3v5z/Teensy2.jpg

Firmware and MMJoySetup download: https://sites.google.com/site/mmjoyproject/fajly-dla-skacivania <<< Always check if MJoySetup and firmware are with same date (or redundance error will occur).

Firmware MMjoy2 Download.

Tutorial for firmware upload - by Geneb(F15SIM): http://www.geneb.org/mmjoy2/pro-micro-instructions.pdf

Sample of firmware upload, using Teensy 2.0+: http://forum.il2sturmovik.com/topic/18379-teensy-20-mmjoy2-firmware-joystick-controller

Features (latest firmware):

Buttons: Up to 128 - Notice that 128 buttons was possible in some boards only due pinout limitations, see in links bellow.
Buttons connection require use of Diode Matrix or Shift Register circuits. Sample o DIY Shift Register board, by Debolesis (ED forum).

Encoder - up to 6, adjustable "click" times

Axis: Up to 8 axis using the internal 10 bits (1024 points) ADC or up to 8 axis using 12 bits (4096 position) using external ADC MCP3201, 3202, 3204, 3208 (the last digit indicates supported axis number)

Inputs (axis) in analog mode:

Conventional potentiometer, Linear type (B code), 1k to 100k, ideally use 10k.

HALL sensor: Radiometric linear, example Honeywell SS495A1, Allegro A1324

Inputs in digital mode:

TLE5010/5011, KMA200, KMZ60 + MCP3202 magnetic resistence sensors.

* TLE5010/11 has internal ADC 14 bits.

8 way PoV HAT.

Special functions:

- "Shift" (mode) function, allow a physical button press a virtual button if "shift" are ON.
- Compatibility with shift registers used in F-22 PRO, Cougar, Warthog and Cobra M-5 grips, making use this grips "plug-and-play".
- "Joystick" name, VID, PID defined be user as desired, allowing use several MMjoy2 in the same computer.

If you want configure MMJoy as "2 axis and 1(or 0) button joystick" you can.

Update December 2015:

Quote
Firmware has support for up to 128 buttons + 10 axis inputs (2 axis reserved for mouse emulation, Windows Game Controllers see up to 8 axis), number of buttons use depend on Arduino board number of pins available.
Possibility to use for joystick: 128 buttons + 2 HAT's (8 buttons) + 8 axis
Possibility to use for mouse emulation: 3 buttons + 2 axis
Possibility to use for keyboard emulation: 12 buttons (or 15 without "mouse")

To maximize the MCU (Arduino board) pins use:

For axis - MCP3208 external ADC, what allow use 8 channel 12 bit (this free 4 pins on Arduino and allow 8 analog axis inputs)
For buttons - shift register IC 74HC165 or CD 4021B (this free 3 pins on Arduino and allow UNLIMITED button sources chaining one Shift Register IC in another, each manage 8 buttons)


Compatible Arduino boards:

1

2

3

For MMJoy firmware/Configurator download see the more recently Mega_Mozg links (end of topic), or there:

https://sites.google.com/site/mmjoyproject/fajly-dla-skacivania

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

Related topics in Russian language forums:
https://forum.warthunder.ru/index.php?/topic/64234-mjoy-mjoy8-mjoy16-mmjoy/

Skip the DIY build boards part (first posts - like here) with today available and cheap Arduino boards the DIY ones became obsolete.

http://forum.il2sturmovik.ru/topic/...a-i-soft-dlya-samodelnogo-k/#entry435954

In English:

http://forums.eagle.ru/showthread.php?t=120049

=============================================================================================================

Debolestis PCB Layout for make DIY Shift Register boards (Cougar/Warthog compatible):

[Linked Image]
http://i.imgur.com/Kx6YvcD.jpg

http://forums.eagle.ru/showpost.php?p=2780923&postcount=89

Sample of Diode Matrix connections (using BU0836 as example):

[Linked Image]

Mega_Mozg scheme:

[Linked Image]
http://i65.tinypic.com/2qv402c.png

===============================================================================================================

WARNING (02/20/2017): Is know that MMJoySetup - the firmware flash, configuration utility - don't run in Windows in Chinese language, and virtual machine running English windows don't help - the COM port is not seem.
In that cases is need a computer/laptop running a Windows in English, German or Russian for run MMjoySetup.


Original topic - obsolete:




What is MMJoy?

A new firmware developed by MEGA_Mozg, for the old (2004) Mindaugas/Meandog project MJoy (DIY USB Controller based on ATMEL mc), that besides original Mjoy8 or Mjoy16 board works on "developer� METABOARD, AVR_USB_MEGA16 and Arduino based Teensy 2.0 and Leonardo PRO Micro (Chinese clones cost ~5$ in eBay).

Is a configurable joystick firmware, after write MMJoy firmware on your board (require USB ISP programmer cable), this is recognized by Windows as USB HID device, but not as �joystick�, because since the firmware is configurable, are you that define the �joystick" parameters, to this use the program &#147;Configurator�, via standart USB cable:

[Linked Image]

MMJoy main features:
Quote


2 to 8 axis (10 bits= 1024 points of resolution with ATMEGA32u4 ADCand 12 bits= 4.096 points of resolution with external ADC)
- Support for axis in digital mode with external ADC converter (MCP3201/MCP3202/MCP3204/MCP3208 and KMA200)
- Axis inversion in firmware
- Axis auto-calibration (optional)
- Axis ZOOM mode (momentary � by button press - reduce axis response to improve precision)
- Axis STOP mode (momentary � by button press � �freeze� axis response)

0 to 48 buttons in momentary or toggle mode (in Windows buttons after 32 need keymapper)

4 encoders (each encoder take 2 button position).

POV HAT (8 angles)

User defined �joystick� name with up to 10 characters.
User defined VID and PID number � this allow use more than one MMjoy on same computer without conflict, set the MMjoy joystick to be seem by Windows first or after �COTS� joystick.


Code Google project page (In Russian, but easy readable with Google Translator).

https://code.google.com/p/mmjoy/

Actually the cost of Teensy 2.0 or Leonardo PRO Micro assembled boards make almost senseless DIY cards, but since different world regions have restrictions to import (here import fees double prices) is easy to do.

EDIT - What "hardware" is need to start?

A Teensy 2.0 (Teensy 2.0++ firmware WiP, see bellow) or Leonardo Pro Micro board.
PCI pins for connection (optional).
A USBASP USBISP AVR Programmer cable to transfer the firmware from PC/Laptop.


Sample: DIY Mjoy16 (ATMEGA16-16PU) that I build in 2008 and now re-write with MMJoy firmware.

[Linked Image]

My LPT1 DIY programmer cable (now obsolete):

Other Mjoy, used to "USB'erized" a gameport CH PRO pedal - "Bic" HALL sensor on rudder axis (notice some RC linkage wink ).

http://img97.imageshack.us/img97/1040/mjoy83x.jpg

When I start with this, the only thing I know is how do "acceptable solders", and that in electricity "+" and "-" dont can be mixed - but my first Mjoy make some smoke (and survive). smile



Sokol1
Posted By: f15sim

Re: MMJoy - Build your own USB controller - 01/21/14 05:20 PM

If you want to use the Teensy++ 2.0 board, you can use GenericHID: http://generichid.sourceforge.net/

g.
Posted By: Sokol1

Re: MMJoy - Build your own USB controller - 01/21/14 10:56 PM

Gene,

I know some other firmware for use Arduino (like Teensy) boards as joystick controller.
But since MMjoy do the same and more, is configurable, and develop by simmers is (my)
natural choince.. smile

Sokol1
Posted By: recoilfx

Re: MMJoy - Build your own USB controller - 01/23/14 03:10 AM

Sokol, what do you do to keep the noise down? I had my Teensy3/Arudino Uno hooked up my supposedly high quality pots, but the outputs jitter... They don't show any jitters with BU0836x or UHID.

Does MMJoy use some special filters? Better, if there is a way to port it over to Teensy/Arduino...
Posted By: Sokol1

Re: MMJoy - Build your own USB controller - 01/23/14 03:19 PM

I dont have experience with Teensy, only with Mjoy DIY boards (~8), with pots have no jitter, and some with HALL sensor, is need use shielded cables.

AFAIK - MMjoy firmware are ported for Teensy 2.0 - is just matter or write via USB ISP cable - but not for 3.0

Sokol1
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 01/27/14 06:20 AM

Hi to all. I'm author of software/firmware MMJOY.

Originally Posted By: recoilfx
Does MMJoy use some special filters?

Firmware have software filtration algorithms. Have 15 steps of filtration settings.
"Filter #1" - no filtration, clear signal from sensor;
"Filter #15" - maximum filtration;


Any questions and(or) ideas are welcome!
Posted By: recoilfx

Re: MMJoy - Build your own USB controller - 01/27/14 01:30 PM

Hi Mega, thanks for the reply! Is the filter function an average of multiple analog reads? Can the algorithm looked up somewhere? I'd like to implement my filter code for my Teensy3...
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 01/27/14 06:13 PM

Originally Posted By: recoilfx
Is the filter function an average of multiple analog reads? Can the algorithm looked up somewhere?


Look here: https://code.google.com/p/mmjoy/source/browse/
Folder: common_libs
File: MMJoy.c
Function: Axis_Filter()

PS: All project materials are open source.
Posted By: recoilfx

Re: MMJoy - Build your own USB controller - 01/27/14 08:01 PM

Yep got it! Thanks! Will look through it tonight!
Posted By: f15sim

Re: MMJoy - Build your own USB controller - 01/29/14 05:21 PM

Does the firmware work with the Teensy++ 2.0?

g.
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 01/30/14 05:32 AM

Originally Posted By: Gene Buckle
Does the firmware work with the Teensy++ 2.0?

Not now.
But possible in future, need only a sample "Teensy++ 2.0".
Posted By: f15sim

Re: MMJoy - Build your own USB controller - 02/05/14 05:44 PM

I asked about the Teensy++2.0 because of the work this guy has done:
http://generichid.sourceforge.net/

The extra pins on the ++ would benefit MMJoy I think.

g.
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 02/10/14 07:27 AM

Originally Posted By: Gene Buckle
The extra pins on the ++ would benefit MMJoy I think.

MMJoy main idea is a simple controller for a simple joystick.
I don't want make 'fat cockpit controller' with hundreds buttons/axis/indicators.

About 'Teensy++ 2.0' I asked developers for sample/discount items, and was refused.
Posted By: Eogund

Re: MMJoy - Build your own USB controller - 02/19/14 04:53 PM

Hi, I have bought a Leonardo Pro Micro clone because I want to build a collective for DCS-UH1. It is detected in Windows as Arduino Leonardo and HID device, however in MMJoy-Loader it doesnt show in the device list. I installed the driver from the JoyLoader_arduino folder, do I have to do something else before using the loader?
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 02/20/14 08:19 AM

Originally Posted By: Eogund
Hi, I have bought a Leonardo Pro Micro clone because I want to build a collective for DCS-UH1. It is detected in Windows as Arduino Leonardo and HID device, however in MMJoy-Loader it doesnt show in the device list. I installed the driver from the JoyLoader_arduino folder, do I have to do something else before using the loader?


1) for first time - manual select from the list 'Scheme'
2) select firmware(hex) file
3) manual input COM port of Arduino.
4) click 'upload...'
Posted By: Eogund

Re: MMJoy - Build your own USB controller - 02/20/14 08:26 PM

Ok, thanks for your help. Now I receive a message about missing libusb0.dll. Where can I download it?
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 02/21/14 04:32 AM

Originally Posted By: Eogund
message about missing libusb0.dll

It is a part of Atmel FLIP:
FLIP 3.4.7 for Windows (Java Runtime Environement included)
After install look in Flip\usb\...
Posted By: Eogund

Re: MMJoy - Build your own USB controller - 02/21/14 09:00 AM

Well, still having no luck with my board. I get this message:

Connecting to programmer: .
Found programmer: Id = """; type = &#9786;
Software Version = . ; Hardware Version = .
avrdude.exe: error: buffered memory access not supported. Maybe it isn't
a butterfly/AVR109 but a AVR910 device?
Presione una tecla para continuar . . .

Any idea?
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 02/21/14 10:09 AM

let me know one thing.
When device start bootloader on console "device management" you see "COMx port" (where 'x' maybe variable) or "ATMEGA32U4" device?(make screenshots please)
Posted By: Eogund

Re: MMJoy - Build your own USB controller - 02/21/14 04:42 PM

Ok, I see my mistake, I did not tried to launch Joyloader while in bootloader mode (a little difficult, you only have a few seconds after manually restarting the device). Working OK now.
I have one more question: How does the buttons matrix work ? Is it similar to Leo Bodnar's BU0836?
Thanks for your help.
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 02/21/14 05:45 PM

Originally Posted By: Eogund
Ok, I see my mistake, I did not tried to launch Joyloader while in bootloader mode (a little difficult, you only have a few seconds after manually restarting the device). Working OK now.

8 seconds bootloader mode.

Originally Posted By: Eogund

I have one more question: How does the buttons matrix work ? Is it similar to Leo Bodnar's BU0836?

Yes.
Leo Bodnar's BU0836:

Mjoy original:
Posted By: Sokol1

Re: MMJoy - Build your own USB controller - 02/21/14 05:54 PM

PRO Micro (clone) pinnout:

[Linked Image]
EDIT- For serial connections check Arduino PRO Micro pinout in MMjoy2 Wiki.

6 rows (BR pins) x 6 columns (BC pins) = 36 buttons and 6 analog axis input - number of axis could be increased for 8 using pins from matrix at cost of buttons number. Teensy, Arduino Micro boards has more pints for inputs.

ADC pins is axis input.

Sokol1

Posted By: Eogund

Re: MMJoy - Build your own USB controller - 02/21/14 06:22 PM

Wow, thank you Sokol, that's exactly what I was looking for. I am a nerd in electronics, what kind of diodes are you using in the matrix?
Posted By: Sokol1

Re: MMJoy - Build your own USB controller - 02/21/14 06:39 PM

1N4148 or 1N4004 is fine.

Sokol1
Posted By: f15sim

Re: MMJoy - Build your own USB controller - 02/21/14 06:44 PM

A 1N4001 diode should work just fine.

g.
Posted By: skygunner58203

Re: MMJoy - Build your own USB controller - 03/03/14 01:51 AM

Will this work on my Arduino Micro? It runs on the ATMega32u4, but look different from the Leonardo pro micro. Also, could I use my Uno R3 to program it?
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 03/04/14 06:27 AM

Originally Posted By: skygunner58203
Will this work on my Arduino Micro? It runs on the ATMega32u4, but look different from the Leonardo pro micro.


Arduino Micro
Microcontroller ATmega32u4
Operating Voltage 5V
Clock Speed 16 MHz

it is same as 'promicro', you can try.

Originally Posted By: skygunner58203
Also, could I use my Uno R3 to program it?

Only if "Uno R3" support upload 'hex' files.
My "JoyLoader" software to load firmware via bootloader(Atmel FLIP/Arduino and Teensy2).

Downloads/Updates here: https://drive.google.com/folderview?id=0B2zIeYwbAIHOMFlzSkNPZ1NXV1k&usp=sharing
Posted By: E69_Jack_Aubrey

Re: MMJoy - Build your own USB controller - 03/17/14 04:03 PM

Mega_mozg do you mean that it would be possible to use the Uno R3 with your work....

So let me guess you upload part to the atmega 328p and then the usb comunication to the atmega16u2???? If that's true would you mean to explain for dumbs as i'm a complete begginer and also english it isn't my mother language.

If it's true I'm gonna love you!!!!!
Posted By: Sokol1

Re: MMJoy - Build your own USB controller - 03/17/14 05:56 PM

JA, the precondition to test is:

Originally Posted By: mega_mozg_13

Only if "Uno R3" support upload 'hex' files.


And the answer is yes:

http://rlangoy.github.io/Arduino-Uno-Uploader-Tool/

Entonces lo prueba, hombre
. wink

Use Mega_Mozg "JoyLoader".

Sokol1

Posted By: E69_Jack_Aubrey

Re: MMJoy - Build your own USB controller - 03/17/14 09:37 PM

...... jawdrop kneeldown then i begging to test it tomorrow... Because right now i have to much Guinness beercheers
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 03/19/14 09:01 AM

sorry, guys.
No support to "UNO_R3" here crazy hardware "atmega16u2" + "atmega328p".
Only possible with single chip "ATmega32u4" = "Arduino Leonardo" / "Arduino Micro" and clone "Sparkfun ProMicro" .
Posted By: Sokol1

Re: MMJoy - Build your own USB controller - 03/21/14 12:47 AM

Small test with DIY board, 1 encoder (incremental/quadrature) from mouse scroll , 1 pot 50k (CH) 1 pot 100k - no brand.



Set as trim in CloD - Fiat Br.20 - Encoder on Elevator (Profundit)



Buttons:

On "normal" mode = act like keyboard (ON until pressed)

On "S" mode = turn ON in first press and turn OFF on second press (similar to OF-OFF toggle switch).

On "P" and R" mode = Dont get a conclusive result, some random blinks only...

Sokol1
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 03/21/14 01:45 PM

and some pictures from me.
base joystick: Saitek X35-X36/Suncom F15.
electronics: MMjoy2 ProMicro, simple extension boards, Hall's Allegro A1324 (X/Y/Throttle).

handmade aluminum bearings mechanics:



ring magnets + Halls:


base for stick:


base for throttle:


stick assemble:



stick 'Saitek':


stick 'Suncom':



rubber pads:


extension board scheme:


firmware configuration:

Posted By: E69_Jack_Aubrey

Re: MMJoy - Build your own USB controller - 03/24/14 03:40 PM

Thanks for that reply mega_mozg... i was thinking about that "two chip" setup from arduino UNO

Also, which one u recommend for MMjoy 2???
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 03/24/14 05:36 PM

E69_Jack_Aubrey,
if you want "ready for use":
"Sparkfun Arduino ProMicro" - 36 buttons + 6 axis, or "Teensy 2.0" - 64 buttons + 8 axis.

PS: now testing "Arduino Leonardo(ATmega32u4)" and results later.
Posted By: E69_Jack_Aubrey

Re: MMJoy - Build your own USB controller - 03/24/14 07:23 PM

There's any diference between Arduino Micro and the one you said the Sparkfun Arduino ProMicro ... the thing is that for me the less expensive one is the Arduino's one and the Sparkfun it's quite expensive (shipment mainly).

I have seen your post telling Arduino micro or sparkfun clone ....

Also i understand that it's posible to build a shield to increment the inputs????
Posted By: Eogund

Re: MMJoy - Build your own USB controller - 03/25/14 04:12 PM

Hi, I'm having bad response when connecting 10k and 100k pots directly to the axis pins of the Promicro. Buttons work OK. Will I have better results using the MCP3208 chip instead?
Posted By: Sokol1

Re: MMJoy - Build your own USB controller - 03/25/14 09:20 PM

Eogund,

You did Windows > C.Panel > Game Controllers calibration process?
With ATMEGA axis stabilize only after do this 1st time.
Or use DXTweake2.

Use only pots 10 ~50k, 100k pick much noise.

Sokol1
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 03/26/14 07:19 AM

Originally Posted By: E69_Jack_Aubrey
Also i understand that it's posible to build a shield to increment the inputs????

only axis possible to increase (with MCP3202/MCP3204/MCP3208), but total no more 8.

if you want more 36 buttons, at plans make a firmware for promicro(train sim) "8*8 = 64 buttons + 2 axis (and possible add axis with MCP320x)"

Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 03/26/14 07:23 AM

Originally Posted By: Eogund
Hi, I'm having bad response when connecting 10k and 100k pots directly to the axis pins of the Promicro.


make fotos, it help to find problem. picture of "JoySetup".

and today updated information of connecting axis to promicro:
Posted By: Red_Yeti

Re: MMJoy - Build your own USB controller - 05/10/14 08:00 AM

Hi
any news regarding the Teensy2++ compatibility?
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 05/12/14 09:21 AM

Originally Posted By: Red_Yeti
Hi any news regarding the Teensy2++ compatibility?


Hi.

I do not have "Teensy2++".
If community helps with donate (to buy it) or somebody send "Teensy2++" to me I will start work.

sorry for this position, but project non commercial and I waste a lot of money (and time too)...
Posted By: Red_Yeti

Re: MMJoy - Build your own USB controller - 05/12/14 11:07 AM

Hi thx for the answer.
Where in Europe do you live? I could send you a board. Otherwise, I would also be willing to donate money.
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 05/12/14 01:20 PM

Red_Yeti check PM.
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 05/16/14 06:28 AM

Hi community.
What about this solution (as start) for Teensy ++ 2.0
64 buttons (8*8 matrix), and 8 Axis:


PS: my respect to Red_Yeti
Posted By: f15sim

Re: MMJoy - Build your own USB controller - 05/16/14 01:19 PM

That would be cool. It would work nicely with the 8 row, 4 column diode-isolated input boards I had made recently. You could daisy-chain two of them to get the 64 switch inputs.

g.
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 05/28/14 12:38 PM

release [v20140528] support "MMJoy2.f (AT90USB1286-Teensy++2.0, USB2.0)"
not yet tested on hardware, you can try to be first tester!!!
Posted By: Red_Yeti

Re: MMJoy - Build your own USB controller - 05/29/14 09:33 AM

Hi, made a short test with a 5x5 keymatrix. Works for me so far.
I'll do some other tests with encoders and axes this weekend.
Posted By: Red_Yeti

Re: MMJoy - Build your own USB controller - 06/27/14 10:08 AM

Hi, could you replicate the issue with the 7 row?
Posted By: arnsk98

Re: MMJoy - Build your own USB controller - 06/28/14 03:23 AM

Hello all

First post ever after lurking for long. I have wanted to make a cockpit/panels using Mjoy/Mjoy16 for years, just now I have both time and money.

Thank you, mega_mozg_13, for making this project and saving me from having to make a PCB.

I'm having some issues, though.

I'm using a Pro Micro clone off Ebay, Windows 7 x64, mmjoy_software[20140528_update2] and mmjoy_firmware_lufa[v20140528_update1]. In JoySetup, I'm using the values loaded after clicking on the "mjoy8" button (6 axis, 28 buttons)

First: at random intervals, anywhere from 1 to 120 minutes, the board restarts itself. Also, JoySetup doesn't update the uptime value in real time, rather it's slower.

Second: I can't make the first 4 axis change value. Axis 5 and 6 work well. I see values for all 6 axis in Sensors(Source/MCU Port/Channel) with a lot of jitter when they're not connected. But only axis 5 and 6 seem to work. In the board itself, pins A3 and A2 work well, pins A1, A0, 10 and 9 don't seem to work. Nothing happens when connected to a pot (100K) or ground.

This happens with 2 different Pro Micro boards in both my desktop and laptop PCs.

Thank you to whoever can help.

Regards

Al

Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 07/02/14 12:32 PM

arnsk98

about axis - check this picture, for "promicro" source "IntSensor" can be only 5/6/7/8/13/14:


about random restarts - try to check USB connection (maybe connect active USB HUB with self power source).
Posted By: Crosswind

Re: MMJoy - Build your own USB controller - 07/24/14 09:40 AM

great works! make things a lot of easy for somebody not knowing electronics

Thank you, mega_mozg_13
Posted By: Crosswind

Re: MMJoy - Build your own USB controller - 07/24/14 03:24 PM

How about this testing "Arduino Leonardo(ATmega32u4)"? working as well?
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 07/28/14 04:04 PM


work in progress.
new idea "open hardware", you can assign MCU pins to ADC/Buttons as you like.
Posted By: Crosswind

Re: MMJoy - Build your own USB controller - 08/01/14 03:54 PM

Great! in Leonardo board, I had to try each pin out for the Axis.

Do you have plan to add the deadzone setting in the tool?
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 08/04/14 05:16 PM

Crosswind, not each!!

for axis use only with "ADCxx" pins (green marker).
and current version supports no more 8 axis.
Posted By: Crosswind

Re: MMJoy - Build your own USB controller - 08/06/14 05:53 AM

Yes, yes, of cause I meant the ADC pins....

This is the result for the Channel vs Pins I got from my Leonardo board:

Axis Channel Arduino Leonardo Pin
1 ----> 5
6 ----> A2
7 ----> A1
8 ----> A0
9 ----> 4
10 ----> 12
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 08/12/14 11:44 AM

hi boys!

here some pictures. is it easy to understand how to connect pins to pot's / buttons:






Posted By: f15sim

Re: MMJoy - Build your own USB controller - 08/15/14 07:33 PM

Excellent work, thanks for posting that!

g.
Posted By: Sokol1

Re: MMJoy - Build your own USB controller - 08/16/14 02:42 AM

Very well, Thank you.

This button scheme is for connect Encoder?



Sokol1
Posted By: Rog99

Re: MMJoy - Build your own USB controller - 08/16/14 03:39 PM

Hi, new guy here...

Have lurked on this and other forums for quite a while, but thought I'd register just to say thanks for the MMjoy firmware - it's great and allowed me to resurrect an old CH Pro throttle with an ADB interface.



Additional buttons and rotaries, maybe a mini-stick will be added when I can work out how to add them nicely.

The only real problem I had was getting the firmware on to the Arduino, but got there first time with a USBASP programmer.

Any chance of increasing the device name to more than 10 characters?

Thanks again.
Posted By: Sokol1

Re: MMJoy - Build your own USB controller - 08/17/14 05:35 PM

Rog99

Well done!

These gameport CH Throttles is very friendly to "update", all wires are very accessible.

Sokol1
Posted By: Lorphos

Re: MMJoy - Build your own USB controller - 08/18/14 07:12 PM

Hi Rog99,

I want to do the same exact mod (once I get a cheap CH Pro Throttle). Well done.

For everyone else: Could someone explain why I need an extra USBasp to program the Arduino Pro Micro? According to Sparkfun, one of its features is the "On-Board micro-USB connector for programming".
Posted By: Red_Yeti

Re: MMJoy - Build your own USB controller - 08/18/14 08:54 PM

If I'm right, you no longer need it.
Just the firmware, the loader an FLIP installed, i think.

But did not tested it yet.
Posted By: Sokol1

Re: MMJoy - Build your own USB controller - 08/18/14 09:09 PM

Seems that use USB cable is a bit tricky, due restrict time to type the commands...

and since USBasp is cheap, most prefer the "easy" way. smile

https://code.google.com/p/mmjoy/wiki/UpdateFirmware_eng

Instructions for use USB cable and Flip (Google translated from Russian):

Quote:

Notes on using the native firmware bootloader and program Flip.
(Information for users who assembly the controller from scratch)
Microcontrollers "AT90USB646" and "ATMEGA32U4" from the factory have built bootloader - built-in loader flasher.
Therefore properly assembled one when connected to the computer immediately recognized by the operating system.
For firmware update you should download and install the free software from the site FLIP ATMEL.
Link to the site download http://www.atmel.com/tools/flip.aspx

To activate the loader, follow these steps.
On the boards with buttons:
- Connect the board via USB
- Press button RST
- Holding the RST, press the button HWB
- Hold down the HWB, release the button RST
- Release the HWB

On the boards without the button, with a jumper HWB:
- Set jumper HWB
- Connect the board via USB
- Remove the jumper HWB

If done correctly the OS will detect the new device. The name used by the microcontroller, respectively. If the operating unit is determined with an error in Device Manager, you must find the device and update the driver by specifying the source directory with installed Flip.


https://code.google.com/p/mmjoy/wiki/MMJOY2

Sokol1
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 08/19/14 03:26 AM

Hi!
Rog99 WOW. Very good!
Lorphos NO NO NO "USBasp"!!! Use "JoyLoader" software for firmware updates.
Sokol1 Yes it encoders.
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 08/19/14 05:14 AM

update:

thanks to Red_Yeti
Posted By: Lorphos

Re: MMJoy - Build your own USB controller - 08/19/14 03:49 PM

Hi mega_mozg_13, you're the man!
Originally Posted By: mega_mozg_13

Lorphos NO NO NO "USBasp"!!! Use "JoyLoader" software for firmware updates.

OK, no need to buy the USBasp, instead I use JoyLoader during the 8 seconds that is it in bootloader mode, got it!
Posted By: Red_Yeti

Re: MMJoy - Build your own USB controller - 08/20/14 05:40 PM

Originally Posted By: Lorphos

OK, no need to buy the USBasp, instead I use JoyLoader during the 8 seconds that is it in bootloader mode, got it!


Tested today and it works as described. But had to use arduino IDE to get the right COM-Port.
Posted By: deee

Re: MMJoy - Build your own USB controller - 09/05/14 10:39 PM

First of, very, very nice job mega_mozg_13.

I'm in need of advise. I have a Leonardo, but i do not understand what the schemes are in mmjoy loader and which hex file to load to be able to support 8 axis etc. I have not found any explanation for scheme/hex void 6/36 nor YoZHeg 888. So which scheme/hex to use?

Just some more info: I downloaded the mmjoy_software[20140528_update2] and also 20140702_u1 from beta directory, but there's no leonardo option. The screenshot seems to indicate, that you used the pro micro FW for the Leonardo, is that correct? I hope there'll be a leonardo scheme/hex, if others can't be used.

Ok, i uploaded the pro micro FW to it for now. Had a little difficulties getting it programmed. So here's a little explanation for others:
1. Start MMjoy loader
2. Select scheme, crystal, and hex.
3. Go to device manager (from the device management or devmgmt-button), open ports (COM & LPT).
4. Press reset on the board, the device manager might refresh and show the com port.
5. After the 8 seconds of boot time, the com port might change, device manager refresh, as it did with me(which caused the difficulties), but you need to use the com port when in boot loader mode.
6. Type the port to port input (like COM5 for example)
7. Select bootloader type arduino
8. Press reset on the board and within the bootloader time (light doing the "heartbeat"-thing), press "upload firmware"

Also, found what the void 6/36-type is, in the wiki, MMjoy2 page, but don't know what YoZHeg 888 is.
Posted By: Lorphos

Re: MMJoy - Build your own USB controller - 09/07/14 12:16 PM

I have a quick question, I got a digital joystick here (4 micro switches) with 4 buttons. Do I need to use the button matrix or can I just connect one button per pin directly without anything else?
Posted By: Sokol1

Re: MMJoy - Build your own USB controller - 09/07/14 10:37 PM

No HAT?

The diode matrix is used to avoid "ghost" button press when you press three or more buttons simultaneous,
what probable you will not do.

Try using one pin from Row and one pin from Column.

Sokol1
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 09/09/14 09:25 AM

hi to all.
mmjoy[20140909] "open hardware" release.
more inromation (russian)
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 09/23/14 09:04 AM

hi. a have some news:


soon to release. two joysticks per one board. 8 axis/32 buttons/2 HATs per each joystick.
Posted By: 0052

Re: MMJoy - Build your own USB controller - 10/10/14 04:11 AM

Hi guys, this is awesome, just what I've been looking for for a long time. Quick question. I have built a stick with 6 buttons and 5 pots, the pots are no problem, have them working on the device no problem. But the buttons are not. This is how I have them wired:



And this is the setup:



But when I press the buttons in the windows device settings nothing happens, they are not recognized. What am I doing wrong? Thanks!
Posted By: Sokol1

Re: MMJoy - Build your own USB controller - 10/10/14 03:11 PM

Check diode orientation, on above example they are placed with strip toward ROW.
Posted By: Red_Yeti

Re: MMJoy - Build your own USB controller - 10/10/14 08:46 PM

Sokol1 has right. Just swap the rows and columns in MMJoy.
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 10/14/14 09:10 AM

Hi, new beta MMJOY2_beta_2014.10.14.rar
two joysticks for all USB 2.0 hardware (ProMicro, Arduino Leonardo/Micro, Teensy 2.0/2.0++)
more information (russian)
Posted By: tirta

Re: MMJoy - Build your own USB controller - 10/17/14 04:44 PM

hi mega_mozg,
hi sokol1,

it is very nice to see you guys here. biggrin

I am excited about the new mmjoy2_beta,
so it has total 16 axis and 64 buttons?
and it only use one arduino pro micro?
is this correct?

how fast is the speed?
Posted By: Sokol1

Re: MMJoy - Build your own USB controller - 10/17/14 06:28 PM

Tirta,

Yes, this last firmware create two "virtual" joysticks with one physical board, with 8 axis, 32 buttons each, this allows all buttons to be seen by Windows without use of keymapper's, simplifying map in games.

To be USB 2.0 the board need use ATmega32U4 like these Arduino, but you can build your own board (maybe not cost/effective if compared to Chinese ones):

https://code.google.com/p/mmjoy/wiki/MMJOY2

Sokol1
Posted By: tirta

Re: MMJoy - Build your own USB controller - 10/18/14 08:43 AM

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.
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 10/18/14 10:02 AM

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.
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 10/18/14 10:37 AM

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.
Posted By: tirta

Re: MMJoy - Build your own USB controller - 10/18/14 02:52 PM

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?
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 10/18/14 08:04 PM

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.
Posted By: tirta

Re: MMJoy - Build your own USB controller - 10/19/14 04:24 AM


Hi mega_mozg,

thanks for the explanation.

do you have picture for connecting pro micro to mcp3208 to hall sensors?
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 10/19/14 06:33 AM

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.
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 10/19/14 06:42 AM

and guys, this SPI external ADC's you can use with any board Arduino or Teensy.
Posted By: tirta

Re: MMJoy - Build your own USB controller - 10/19/14 08:33 AM

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?
Posted By: Sokol1

Re: MMJoy - Build your own USB controller - 10/19/14 01:24 PM

Mega_mozg

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

Sokol1





Posted By: tirta

Re: MMJoy - Build your own USB controller - 10/19/14 02:51 PM

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?
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 10/20/14 05:26 AM

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).
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 10/20/14 05:55 AM

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).
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 10/20/14 05:58 AM

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:

Posted By: tirta

Re: MMJoy - Build your own USB controller - 10/20/14 06:13 AM

so any of them is good to use?
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 10/20/14 06:26 AM

Originally Posted By: tirta
so any of them is good to use?

"DIP" easy to solder.
Posted By: tirta

Re: MMJoy - Build your own USB controller - 10/20/14 07:05 AM

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?
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 10/20/14 07:14 AM

tirta
button matrix, setup as you like.
Posted By: tirta

Re: MMJoy - Build your own USB controller - 10/20/14 08:09 AM

so you define which one is row and which one is column with joysetup.exe?
Posted By: tirta

Re: MMJoy - Build your own USB controller - 10/20/14 08:19 AM

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?
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 10/20/14 08:19 AM

tirta
you eat my brain.

"mmjoy2" by default no axis and no buttons, no any fixed presets.
just setup as you like as you need.
1) open "Pins_Sparkfun[promicro].PNG" and you see a pins names(F4/D3/B6) and possible pins fuctions(AI/AE/BM).
2) think what you want, make decision, set X pins to axis, Y pins to button raw and Z pins to button column.
3) solder / setup and enjoy.
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 10/20/14 08:48 AM





Posted By: tirta

Re: MMJoy - Build your own USB controller - 10/20/14 08:51 AM

hi mega_mozg,

thanks for the explanation. biggrin

sorry I do not understand what you mean by "you eat my brain".

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


so if i use 8 axis with 42 buttons,
do I get faster response using mmjoy2 compared to the old mjoy16?
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 10/20/14 08:55 AM

Tirta, x4 faster at minimum.
Posted By: tirta

Re: MMJoy - Build your own USB controller - 10/20/14 09:07 AM

thanks mega_mozg,

the reason I ask for the sparkfun pro micro is the one I get from ebay:
http://www.ebay.com/itm/New-Pro-Micro-AT...i-/140972980117

does not have "sparkfun" in it.

so since I know almost nothing about electronics,
I wonder if it is the same product or not.

I have googled this, and find out that sparkfun is a brand name.
And the one from ebay is a chinese clone.

so I guess it is the same, but I am not very sure about it.
Posted By: triggahappy

Re: MMJoy - Build your own USB controller - 10/20/14 09:23 AM

Hello.

@Mega mozg

I know its possible to use pro micros 5v to power up mcp 3208 however in your original pro micro and extension board you have used external 12v power supply converted to 5v to power up both mcp 3208.

My knowledge of electronics is limited and i can only guess why did you do that way.
Am i correct guessing that the only reason to use external power supply (stable 5v) to mcp3208 is to get highest sampling rate from the chip.

Thanks

@tirta

i am using 'ebay' pro micro and it works just fine, just make sure its pro micro and not any 'other'micro
Posted By: Sokol1

Re: MMJoy - Build your own USB controller - 10/20/14 05:02 PM

Quote:

is there any difference between sparkfun pro micro and arduino pro micro?


Originally Posted By: tirta
thanks mega_mozg,

the reason I ask for the sparkfun pro micro is the one I get from ebay:
http://www.ebay.com/itm/New-Pro-Micro-AT...i-/140972980117

does not have "sparkfun" in it.

so since I know almost nothing about electronics,
I wonder if it is the same product or not.

I have googled this, and find out that sparkfun is a brand name.
And the one from ebay is a chinese clone.

so I guess it is the same, but I am not very sure about it.



Tirta,

This one you buy in Ebay is Chinese no brand clone of PRO-Micro (Sparkfun is only manufacturer) - work in the same way (if work... like all cheap China goods smile ).

Is advisable buy the in pairs... just in case. hahaha

Sokol1



Posted By: tirta

Re: MMJoy - Build your own USB controller - 10/21/14 04:42 AM

hi triggahappy & sokol1,

thanks for clarifying about pro micro.
now I am going to order it biggrin
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 10/21/14 05:27 AM

Originally Posted By: triggahappy

Am i correct guessing that the only reason to use external power supply (stable 5v) to mcp3208 is to get highest sampling rate from the chip.

Yes it is for stable 5v.
Posted By: tirta

Re: MMJoy - Build your own USB controller - 10/21/14 09:43 AM

Hi mega_mozg,

after studying and looking at your pictures and explanations, then comparing the prices at ebay:
http://www.ebay.com/itm/Leonardo-R3-Pro-...=item2ececa28e3

it seems that using arduino leonardo is better for only 6 axis & 42 buttons.

it has total 23 pins, 11 internal axis.
if I use only 6 axis, there are 17 pins left for button matrix.
so 17 is more than enough, for 42 buttons I only need 13 pins.
13 = 6+7
6 colums x 7 rows = 42 buttons.

so there is no need to add mcp3208.

is this correct?
Posted By: triggahappy

Re: MMJoy - Build your own USB controller - 10/21/14 10:51 AM

Thanks mega_mozg

@tirta

As long as you have enough pins that long one device will do the job and you wont have to use mcp3208

I think the reason to use mcp3208 in general is not only to extend the number of axis but also to use 12bit adc instead of built in 10 bit adc.

As far as i am aware pro micro offers 10 bit internal adc (axis sensor) which offers resolution of 1024 and mcp3208 is a 12 bit adc with resolution of 4095.
Posted By: tirta

Re: MMJoy - Build your own USB controller - 10/21/14 12:15 PM

thanks triggahappy.

what is the advantage using 12bit?
is it more accurate?
can you feel it when playing the game?
Posted By: triggahappy

Re: MMJoy - Build your own USB controller - 10/21/14 01:32 PM

@tirta

That's the thing.... i don't know:P
It's only my assumption that with higher resolution you should get more precise response.
And i expect to see results while playing game.

I am rebuilding logitech extreme 3d pro with hall sensors and belkin n52te as a throttle control with additional second pov and 2 additional axis. i need around 40 buttons and 6 axis. one way or another i need mcp3208.

I was hoping mega_mozg would shed some light on how 12bit compares to 10bit.

Since we are on the subject it would be good to know if there is significant difference in mcp3208 performance while using 4.5v instead of full 5v

Cheers
Posted By: Sokol1

Re: MMJoy - Build your own USB controller - 10/21/14 06:57 PM

Other (theoretical) advantage is that communication between MCP3208 and the controller board is in Digital mode (binary code) instead Analog (voltage variation), what means axis less subject to external interferences (electrical/magnetic noise).

https://code.google.com/p/mmjoy/wiki/ExtenralADC

Sokol1
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 10/22/14 06:44 AM

MMJOY2 [v20141021]
'Shift registers' now posible connecting "Defender Comba m5" and "Thrustmaster Warthog/Cougar" grips using native 5 wire connector.
Posted By: Sokol1

Re: MMJoy - Build your own USB controller - 10/22/14 05:10 PM

Quote:
and "Thrustmaster Warthog/Cougar" grips using native 5 wire connector.


That's reminder-me that I have a old Tm F22PRO somewhere ... smile
Posted By: tirta

Re: MMJoy - Build your own USB controller - 10/23/14 10:22 AM

hi mega_mozg,

what is the advantage using 12bit (mcp3208)?
is it more accurate compared to 10bit?
can you feel it when playing the game?
Posted By: Sokol1

Re: MMJoy - Build your own USB controller - 10/23/14 06:44 PM

Tirta,

My 0,02$

Probable you don't feel difference in practice, because this will be masked by joystick gimbal imperfections.

A good read about this matter (sensors) is what Milan and Slaw post in the "Battle of pedals".

http://simhq.com/forum/ubbthreads.php/topics/3977757/Slaw_VS._Milan_the_battle_of_t#Post3977757

Sokol1

Posted By: tirta

Re: MMJoy - Build your own USB controller - 10/24/14 03:01 PM

Hi Sokol1,

Thanks for the link.

it seems what those guys say is mostly true,
so there is no need to use 12bit or adding mcp3208 for my purpose.
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 10/27/14 08:59 AM

driving 10 Pcs WS2811/WS2812 RGB LED(on strip).


for indicating any data from any games (gears/flaps/overheating).
more information later...
Posted By: Sokol1

Re: MMJoy - Build your own USB controller - 10/27/14 06:51 PM

WoW! Nice news. thumbsup

Sokol1
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 10/27/14 08:17 PM





RGB LED strip "ws2811", each LED have individual digital address to set any color.
3 wire connection power/ground and digital control.
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 10/28/14 08:56 AM

MMJOY2 v20141028
Posted By: Euphoria

Re: MMJoy - Build your own USB controller - 11/08/14 04:54 PM

Mega_mozg, I signed up for this forum with the sole purpose of thanking you for your hard work on the mmjoy platform. I also wanted to ask you about your hall sensor and magnet arrangement. What is your usable range with the sensor/magnet orientation you use (how many steps?). I have a similar arrangement and can only get about 3000 steps
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 11/10/14 07:08 AM

Hi, Euphoria.
Quote:
I have a similar arrangement and can only get about 3000 steps

What type of hall sensor you use?
By my think, 3000 steps it is very good achievement.
Posted By: Euphoria

Re: MMJoy - Build your own USB controller - 11/10/14 05:08 PM

I purchased allegro a1324 sensors from Mouser, and my magnets are removed from tiny motors used in micro helicopter toys. They are about 5mm diameter and 15mm long, and are polarized diametrically. The hall sensor is placed at one end of the magnet with it's top facing it. I am just trying to figure out a way to get the extra ~1000 steps to get closer to full range of the MCP3208. I want to thank you again for your work. I am a stay-at-home dad and have plenty of time to tinker with projects like this.
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 11/11/14 05:26 AM

Euphoria, I understand now.
I have test many times positions hall and magnet, and best is:

with one magnet cube(or ring);


with two flat magnets;

rotate over central pin, and minimum as possible distance between hall and magnet.






Posted By: Euphoria

Re: MMJoy - Build your own USB controller - 11/11/14 06:47 PM

Thank you for the information, mega_mozg. Your findings are the same as my own experiments with magnet and sensor orientation. I have another question regarding rotary encoders. I have configured my encoders in mmjoy (three encoders on my throttle) and when I view the outputs thru the program "DIView", I can see the button presses registering for all three encoders. My issue is that when I turn my encoders in a game, sometimes the button presses do not register within the game. It takes sometimes 3 or 4 clicks before one button press is detected. Again, this is only while in game environment, whereas DIView sees every single click as a button press. Can you shed any light on this?
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 11/12/14 04:26 AM

Euphoria, try to set debounce interval to minimum.
Posted By: Euphoria

Re: MMJoy - Build your own USB controller - 11/12/14 06:07 AM

Mega_mozg,

Thank you for the reply. I have set my debounce to 1ms and still the same issue. I have done some research today that leads me to believe the issue is because of the short pulse width of the rotary encoders. Looking at the data from DIview, most of the pulses from any of my encoders last less than 20ms, more around 10-15ms. The pulses that do make it thru as a button press in game are over 40ms. I wonder if there is a way to adjust rotary encoder pulse width in the code? I will look into it some more, just wanted to share my findings with you.
Posted By: SolderMonkey

Re: MMJoy - Build your own USB controller - 11/12/14 07:38 PM

Mega_Mozg - First - thanks for putting together such an incredible set of code. I've got a working Thrustmaster FCS and WCS now - for $38 total. I'm 1990s cool again, thanks to your software.

Question though - I have never been able to get the firmware loader in Joyloader to work. I've tried literally dozens of times. I have ended up flashing using the USBASP method. Would you be willing to post a YouTube Video or a walkthrough for those of us lacking the competence to make that part work?

Many thanks for all of your work!

Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 11/13/14 06:20 AM

SolderMonkey,
yes it is very very big trouble to load firmware at first time... Im searching idea to fix this.
please make more photos "Thrustmaster FCS" =)
Posted By: SolderMonkey

Re: MMJoy - Build your own USB controller - 11/14/14 05:49 AM

Ok, photos. I don't have "before" shots, so some steps are missing.

I started with a $10 Thrustmaster FCS mark 1 off ebay. I think it was a Macintosh model, it had a PS2 passthrough connector on the end of it. model was KP3MACFCS.


Taking the bottom off, I removed the original circuit board. There are two ribbon cables that connect the stick to the board. I desoldered them, but I'm sure there is enough leftover to cut them at the board. There was also a 5 pin connector that would have run out to the PS2 connector and the computer, it just pulled off the board.

Remember, you're looking at the bottom of the stick. You can see the two original ribbon cables - one for the stick, one for the pots. The stick has 9 conductors and comes out of the bottom of the stick support tube in the center. The pots get 4 conductors and come in from the bottom left in this view. To connect to the PC, I just hacked a usb phone cord in two and spliced it in to the original keyboard cable, so I could keep the original stress relief. The splice is ugly, but it works.



Board views. I added one diode on the common ground and soldered the original cables straight in. The pots are just too easy, wired exactly like the common samples images earlier in this thread.






This is what the stick buttons and hat switch looked like on mine - colors all fed into the green common wire.

This is how I hooked to the pro micro.


Once again, three cheers for Mega_Mozg!
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 11/15/14 07:08 PM

SolderMonkey, good work!!!

I save "promicro_labels.pdf" at "MMJoy/downloads" it helps with pins/ports for promicro...
Posted By: Bluedeath

Re: MMJoy - Build your own USB controller - 11/17/14 03:55 PM

i bought this on ebay
New Pro Micro ATmega32U4 5V 16MHz Replace ATmega328 Ardu.
what kind of programmer should i use?

Thanks in advance
Posted By: Sokol1

Re: MMJoy - Build your own USB controller - 11/17/14 05:19 PM

The last firmware (Atemega32U4) is http://simhq.com/forum/ubbthreads.php/topics/4028164/Re:_MMJoy_-_Build_your_own_USB#Post4028164

You can load the firmware with USB cable (a bit tricky) or use USBASP cable (V 2.0).

https://code.google.com/p/mmjoy/wiki/UpdateFirmware_eng
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 11/18/14 05:30 AM

guys, you are killing me by USBASP...

use bootloader, it easy!!!

0) connect leonardo to USB, windows ask for drivers. Use it from subfolder 'JoySetup' -> 'drivers'.
1) open "device manager" -> "LPT/COM ports". somevere will be "Arduino leonardo COMxx". warning "COMxx"!!!
2) click "reset"+"gnd" pins twice, "Arduino leonardo COMxx" - remove and windows ask for new device and drivers.
3) on "device manager" -> "LPT/COM ports". will be NEW "Arduino leonardo bootloader COMyy". warning "COMyy"!!!
!!!remember bootloader mode active only 8 sec, after leonardo automaticly reset to "Arduino leonardo"!!!
so for update firmware you need a active state "Arduino leonardo bootloader COMyy".
4) start JoySetup, manual select: chip "atmega32u4", file firmware "Firmware_lufa_[MMJOY2.ATMEGA32U4].hex", boot type "Arduino", and COM port. where "COMyy" - bootloader port number "YY".
5) again goto bootloader mode "click "reset"+"gnd" twice".
6) when field port are green it is ready to update just click "upload firmware".
Posted By: Bluedeath

Re: MMJoy - Build your own USB controller - 11/18/14 07:10 AM

Thanks to both of you.
Posted By: Bluedeath

Re: MMJoy - Build your own USB controller - 11/18/14 08:05 AM

Can the MMjoy2 work with FCC3 FSSB or other force modsof the cougar?
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 11/18/14 08:30 AM

Bluedeath, no force feedback.
Posted By: CyBerkut

Re: MMJoy - Build your own USB controller - 11/18/14 12:06 PM

Originally Posted By: mega_mozg_13
Bluedeath, no force feedback.


He was talking about Force Sensing, not Force Feedback.
Posted By: Bluedeath

Re: MMJoy - Build your own USB controller - 11/18/14 12:08 PM

By force mod i mean load cells / strain gauges (like FCC or FFSB or the real f16 handle) not FF.
They are direct retrofit of the cougar i was wondering if the work in the MMjoy2 too (I'm triying to ditch the origina Cougar pcb)
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 11/19/14 04:18 AM

tensor gauge, now I understand. I do not have sensors. where to buy?
Posted By: Bluedeath

Re: MMJoy - Build your own USB controller - 11/19/14 09:05 AM

Here
Look at page 3 for the links

Thanks in advance
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 11/19/14 09:03 PM

Bluedeath,
this is simple system like regular pot, use it as is.
or you want special features(curves) at JoySetup/Firmware?
Posted By: Bluedeath

Re: MMJoy - Build your own USB controller - 11/19/14 09:46 PM

I do not need to setup curves just ti know if the mmjoy2 works with a strain gauge modded cougar (normally i tweak curves in the simulator so is no big deal)
Posted By: f15sim

Re: MMJoy - Build your own USB controller - 11/19/14 09:51 PM

Is the source code for the Windows client software available somewhere?

tnx.

g.
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 11/20/14 04:19 AM

Originally Posted By: f15sim
Is the source code for the Windows client software available somewhere?

it written at Delphi2010 + JEDI Code Library(HID driver). what do you want to know from sources?
Posted By: f15sim

Re: MMJoy - Build your own USB controller - 11/20/14 04:31 PM

I think it would be interesting to port to either C# or Lazarus. I like looking to see how things are done, too. smile

I've got every version of Delphi from v1 to XE. It's a shame Embarcadero insists on charging so much for it. They're doing more damage to the language via their pricing model than Microsoft could ever hope to do. frown

g.
Posted By: tirta

Re: MMJoy - Build your own USB controller - 11/28/14 10:35 AM

Hi Guys,

After waiting for about a month, finally my arduino leonardo is arrived.
Then I try to program it with the latest mmjoy2 20141119.

First, I start "joyloader.exe",
then choose "firmware" section.
Then after plugging the arduino leonardo to my system,
I press "start bootloader" or press reset button on the board.
Then I press "upload firmware".

Then, a little cmd window pops up,
it says: connecting to proggrammer etc etc.

However, before the window dissappear,
I notice there is an error:

avrdude: error: buffered memory access not supported. Maybe it isn't
a butterfly/AVR109 but a AVR910 device?

what is wrong here?
please advise.
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 11/28/14 08:25 PM

Tirta!
did you read this?
do you understand difference "Arduino Leonardo - COMx" and "Arduino Leonardo Bootloader - COMy" modes?
Posted By: tirta

Re: MMJoy - Build your own USB controller - 11/29/14 07:22 AM

Hi mega_mozg

Success!! yeah
I can program it successfully now. thumbsup

It takes me a while to discern what you wrote,
but finally I understand what you mean.

However, your "start bootloader" button does not work.
I use reset button on the board.

Thanks for all the help. cheers



Posted By: tirta

Re: MMJoy - Build your own USB controller - 11/29/14 07:34 AM

sorry if this is another noob question:

about ICSP pin,




there is 2 pin for each number,

so which one should I use for button matrix:
the upper pin or the lower one?
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 11/29/14 07:09 PM

Posted By: tirta

Re: MMJoy - Build your own USB controller - 11/29/14 08:24 PM

thanks mega_mozg for the picture.

can you explain about "shift register" ?
what does it do?
Posted By: Sokol1

Re: MMJoy - Build your own USB controller - 11/29/14 10:27 PM

Tirta,

"Shift register" is the way that joysticks like Thrustmaster F22/PRO, Cougar, Warthog and Defender Cobra M5 use to send buttons/HATS press to controller main board via 5 wires cable, due use of multiplexer chips inside joystick grip. If you are not using one of this grips, this functions will dont have use.

Sokol1
Posted By: tirta

Re: MMJoy - Build your own USB controller - 11/30/14 01:32 PM

thanks Sokol1 for the explanation.

how about encoder?
what do you use it for?
Posted By: Sokol1

Re: MMJoy - Build your own USB controller - 12/01/14 12:57 AM

Encoder is physically similar to potentiometer, but instead read voltage variation (or resistance) send binary code, what the USB controller interprets as key press.

Turned clockwise send one press (e.g A) turn anti-clockwise send other press (e.g. B).

In Flight Simulator is useful for things like set COMM radios, select weapons, set bombsights, autopilots...
or for example in il-2 BoS adjust trim (in this not assignable to analog axis) be wheels controls.
In racing sim is used for adjust brakes bias, etc.
Any control that use + and - inputs can be benefited by the use of encoder.

Sokol1
Posted By: tirta

Re: MMJoy - Build your own USB controller - 12/04/14 10:05 AM

thanks Sokol1.

is encoder similar to using svmapper - continuous key press?
Posted By: Sokol1

Re: MMJoy - Build your own USB controller - 12/04/14 02:34 PM

Encoder send a momentary key press in each direction of rotation.

SVMapper translate a continuous key press from a ON/OFF switch in ON position in momentary key press (what the games are designed to handle, with few exceptions in some DCS controls).

See the Encoder (from SIM point of view) like a rotary device that instead send voltage or resistance variation (like a potentiometer) send momentary key press.

The encoder code can be translate in proportional movement (like a axis) be appropriated controller, example mouse scroll wheel, or Saitek Trim Wheel, that use encoder instead potentiometer.

Sokol1
Posted By: tirta

Re: MMJoy - Build your own USB controller - 12/05/14 02:11 PM

thanks Sokol1 for the explanation.

I notice there is also "filter " for axis.
what does it do?
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 12/05/14 08:13 PM

tirta, filter is smoothing (cut signal noise).
Posted By: tirta

Re: MMJoy - Build your own USB controller - 12/06/14 09:11 AM

thanks mega_mozg,

I am using hall effect sensor, do I need to use it?
Posted By: Sokol1

Re: MMJoy - Build your own USB controller - 12/06/14 03:08 PM

Tirta,

Test your "joystick" with JoyTester2, VKB joystester (or Tm Joy Analyzer), if without move the axis the response line became "serrated" apply the filter, if not is no need.

The two first programs here, in Mercury13 page (Analyzer from Thrustmaster page):

http://mercury13.tut.su/?q=soft_other
Or
http://ftp.vkb-sim.pro/Programms/

Sokol1
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 12/06/14 09:03 PM

my collection of tools for joysticks "all in one" [MMJOY downloads] -> [tools_joy.rar]
Posted By: tirta

Re: MMJoy - Build your own USB controller - 12/07/14 04:30 PM

thanks Sokol1 for the reply.

thanks mega_mozg for the files.

I am going to do some testing now.
Posted By: tirta

Re: MMJoy - Build your own USB controller - 12/12/14 10:19 AM

Hi mega_mozg,
Hi Sokol1,

I have another problem when connecting the cables for button matrix from the throttle unit to the joystick unit.
My old version, I connect the cables directly from the throttle button to mmjoy.
There is no problem, everything work fine this way.

Now, since I want to make the joystick interchangeable.
I use db15 connector in between throttle and joystick unit (mmjoy is inside joystick unit),
so that I can use another joystick with the same throttle.

However with these connectors (male and female). it seems that connections are never good,
Testing with joysetup.exe, when I press the one button, always 2 or 3 numbers are checked.
Bad connector? may be,
but I have changed both male and female parts 2 times with new parts,
the result is still the same.
I have double check all cables connection, with multimeter there seems nothing wrong.

However, if I do not use the connector at all,
all the buttons are good, always one number for one button pressed.
Why is that?
Do you know what is the culprit?

And what is button debounce?
what does it do?
Posted By: Lorphos

Re: MMJoy - Build your own USB controller - 12/12/14 02:18 PM

Hi mega_mozg_13,

I saw your conversion of the Saitek X36/X35. Do you think it's also possible to do a less invasive conversion leaving the wiring of the stick and throttle unchanged and only add an Arduino with MMJoy in the base of the joystick?

Also thanks for the detailed flashing instructions in your posting

Btw, have you seen the new dirt cheap "Nano 3.0 CH340" boards on AliExpress? You can get them for around $3.20 with shipping, or $2.60 if you buy ten.
Posted By: Sokol1

Re: MMJoy - Build your own USB controller - 12/12/14 04:27 PM

Originally Posted By: tirta
, when I press the one button, always 2 or 3 numbers are checked.


You are using diodes on buttons?

When using many inputs from matrix they are need to avoid "ghost" buttons press.

1N4148 diode is fine.

Sokol1
Posted By: tirta

Re: MMJoy - Build your own USB controller - 12/12/14 06:56 PM

yes I use 1N4148 diode.

I am thinking of buying another pair of db15 connector [male and female], might be a better quality ones.
It seems that all 2 pairs that I have are bad.

it seems unlikely,
but that is the most logical explanation so far.
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 12/14/14 05:55 AM

Originally Posted By: Lorphos

I saw your conversion of the Saitek X36/X35. Do you think it's also possible to do a less invasive conversion leaving the wiring of the stick and throttle unchanged and only add an Arduino with MMJoy in the base of the joystick?

it was a more then year ago... I don't remember.

Originally Posted By: Lorphos
Btw, have you seen the new dirt cheap "Nano 3.0 CH340" boards on AliExpress?

"Nano 3.0 CH340" not supported (MCU "ATmega328P" without USB interface).
Posted By: tirta

Re: MMJoy - Build your own USB controller - 12/16/14 10:53 AM

Hi mega_mozg,
Hi sokol1,

Finally I manage to get rid of the "ghost button presses" by adding the pull up resistor 10k to each column.
Thanks for letting me know.

Now with firmware v20141119,
I find out that the axis value on the "Joystick axes" page is different than "Joy-tester" page.
So which one is the correct one?



min center max
X 122 2059 3975 these values from Joy-tester > raw
X 676 1984 3308 these values from Joystick axes > value

Y 161 2168 3866 these values from Joy-tester > raw
Y 1724 2496 3180 these values from Joystick axes > value





I use hall sensor for both x and y.
Are these values good enough?
or do I need to better align the magnet - hall sensor?

Also I have enabled the auto calibration w/center for both axis,
but when I look at control panel > game controller,
I find the axis is not centered.



Then I calibrate it from setting > calibrate,
but it seem the result is not optimal,
the axis is still not centered.




Please let me know what is wrong and how to fix it.
Posted By: Sokol1

Re: MMJoy - Build your own USB controller - 12/16/14 03:04 PM

The reading values - above 3000 are very good, don't worry with this.

Try this: open the device (joystick ?) plug into computer USB port and careful move the magnets until the axis are centered (more approximately possible).

Instead monitor on Windows applet use one these joy test software, like this one in your above pictures, more detailed.
The center is in 2048. The blue axis -static on second picture - is clearly off center.

The "Achilles hell" of DIY HALL sensor assembly is this alignment, a 0.1 mm off make difference in centering.

Sokol1
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 12/17/14 04:35 AM

tirta, your hall+magnet system works ery well.
if want more, and perfect:
1) decrease distance between hall and magnet as less as possible. axis raw must be: min 0-100 point, and max 4000-4096.
2) check your mechanic


it is no good!!!

see my bearings mechanic:
Posted By: tirta

Re: MMJoy - Build your own USB controller - 12/17/14 06:02 PM

thanks Sokol1 & mega_mozg for sharing your knowledge.
I learn a lot from reading your posts.

mega_mozg,
your joystick motion looks very smooth.
can I know what kind of joystick do you use?
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 12/18/14 04:19 AM

Originally Posted By: tirta
mega_mozg, your joystick motion looks very smooth. can I know what kind of joystick do you use?

worklog
Posted By: Ltfransky

Re: MMJoy - Build your own USB controller - 12/18/14 07:04 PM

Ok, I'm gonna take another shot at this even though my last mjoy attempt was an utter failure.

Will this board work with MMJoy?

http://www.ebay.ca/itm/Leonardo-Pro-Micr...=item4853468c6a
Posted By: Ltfransky

Re: MMJoy - Build your own USB controller - 12/18/14 07:40 PM

Originally Posted By: mega_mozg_13
guys, you are killing me by USBASP...

use bootloader, it easy!!!

0) connect leonardo to USB, windows ask for drivers. Use it from subfolder 'JoySetup' -> 'drivers'.
1) open "device manager" -> "LPT/COM ports". somevere will be "Arduino leonardo COMxx". warning "COMxx"!!!
2) click "reset"+"gnd" pins twice, "Arduino leonardo COMxx" - remove and windows ask for new device and drivers.
3) on "device manager" -> "LPT/COM ports". will be NEW "Arduino leonardo bootloader COMyy". warning "COMyy"!!!
!!!remember bootloader mode active only 8 sec, after leonardo automaticly reset to "Arduino leonardo"!!!
so for update firmware you need a active state "Arduino leonardo bootloader COMyy".
4) start JoySetup, manual select: chip "atmega32u4", file firmware "Firmware_lufa_[MMJOY2.ATMEGA32U4].hex", boot type "Arduino", and COM port. where "COMyy" - bootloader port number "YY".
5) again goto bootloader mode "click "reset"+"gnd" twice".
6) when field port are green it is ready to update just click "upload firmware".


Holy #%&*$#. So with any pro micro you DON"T need a progammer (I have an avrisp - no idea how to use it)? All I have to do is follow the above steps to get it to work? Also, in order for this to work, do steps 4-6 have to be done within 8 seconds or can you start Joysetup and get everything ready, then plug in the promicro and click "upload"?
Posted By: tirta

Re: MMJoy - Build your own USB controller - 12/18/14 08:28 PM

Originally Posted By: mega_mozg_13
Originally Posted By: tirta
mega_mozg, your joystick motion looks very smooth. can I know what kind of joystick do you use?

worklog


hi mega_mozg,

wow, I am speechless.
you make your own gimbal mechanism.
that is very impressive. thumbsup

how long does it takes to make it?
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 12/19/14 04:22 AM

Originally Posted By: Ltfransky

yes!!!
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 12/19/14 04:27 AM

Originally Posted By: Ltfransky

Holy #%&*$#. So with any pro micro you DON"T need a progammer (I have an avrisp - no idea how to use it)?

also with Arduino Leonardo / Arduino Micro / Teensy2.0 and Teensy2.0++ - NO NEED EXTERNAL PROGRAMMER.
if you want to update firmware no need to disassemble your joystick.

Originally Posted By: Ltfransky

All I have to do is follow the above steps to get it to work? Also, in order for this to work, do steps 4-6 have to be done within 8 seconds or can you start Joysetup and get everything ready, then plug in the promicro and click "upload"?

as you like, main think you understand. when you click "upload firmware" device mode "bootloader" and joysetup correct data fields(chip/file hex/com port/type boot).
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 12/19/14 04:34 AM

Originally Posted By: tirta

you make your own gimbal mechanism.
that is very impressive. thumbsup
how long does it takes to make it?

from first idea to first hardware - half year. and another half year to make 3 or 4 hardware versions...
Posted By: Crosswind

Re: MMJoy - Build your own USB controller - 12/19/14 12:30 PM

Hi mega_mozg_13,

I am planning to build my own magrez MCP601+kmz41 sensor, but in the joysetup the source has many option except IntSensor, which one should I choose if a magrez sensor is connect.

Many thanks
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 12/20/14 05:57 AM

Originally Posted By: Crosswind

I am planning to build my own magrez MCP601+kmz41 sensor, but in the joysetup the source has many option except IntSensor, which one should I choose if a magrez sensor is connect.


Hi.
Select "IntSensor" / "Port" (where it connected) and "Assigment". It is minimum to works with any analog sensor (pot/hall/magrez).
Posted By: Crosswind

Re: MMJoy - Build your own USB controller - 12/20/14 07:00 AM

Originally Posted By: mega_mozg_13
Originally Posted By: Crosswind

I am planning to build my own magrez MCP601+kmz41 sensor, but in the joysetup the source has many option except IntSensor, which one should I choose if a magrez sensor is connect.


Hi.
Select "IntSensor" / "Port" (where it connected) and "Assigment". It is minimum to works with any analog sensor (pot/hall/magrez).


thank your explanation, I know this part. My mistake. I thought magrez is a digital sensor.....

Do you have any MCP320x + KMZxx shematic to share? I'd like to try something else other than analog.
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 12/20/14 07:46 AM

Crosswind,

MCP3202_KMZ60.lay6 (Sprint-Layout6) at "downloads" folder.

shematic:
for MCP3202-SOIC
for MCP3202-DIP

MCP3202-DIP real fotos



Posted By: Crosswind

Re: MMJoy - Build your own USB controller - 12/20/14 02:25 PM

very nice of you, thank again cheers

BTW, what's the R0?
Posted By: Ltfransky

Re: MMJoy - Build your own USB controller - 12/20/14 04:28 PM

Where is everyone getting the KMZ60s? I usually try for ebay because of free shipping, but i can't find any on there. I'd be interested in trying this out on some of my home sticks.

Also, I believe the MaRS sensor was the MCP601+kmz41, is there a schematic for that setup?
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 12/20/14 04:51 PM

Originally Posted By: Crosswind
very nice of you, thank again cheers
BTW, what's the R0?

this is Resistor = 0 Om (jumper).
Posted By: Sokol1

Re: MMJoy - Build your own USB controller - 12/20/14 04:56 PM

KMZ60 are available in Mouser, Digikey and Chip1stop.

MCP3202+KMZ60 has a advantage to use less components than the old MCP601+KMZ41

Sokol1



Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 12/20/14 04:57 PM

Originally Posted By: Ltfransky
Also, I believe the MaRS sensor was the MCP601+kmz41, is there a schematic for that setup?

Wrong!
"Mars" - this is VKB digital(kmz41+attiny85) sensor, works only with Defender Cobra M5/ VKB Njoy32 controller.
"Magrez" - analog kmz41+mcp601, works everywhere.

https://mmjoy.googlecode.com/svn/wiki/MagRez_GVL_MM_44-22.lay6
("Magrez" PCB, Sprint Layout6)
https://mmjoy.googlecode.com/svn/wiki/MagRez_GVL_Setup.doc
("Magrez" Russian manual "how to", author GVL)
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 12/20/14 05:02 PM

about KMZ60 / KMZ41. my english is no good, try to translate this from russian:
http://forum.warthunder.ru/index.php?/topic/64234-mjoy-mjoy8-mjoy16-mmjoy/?p=3814221
Posted By: Sokol1

Re: MMJoy - Build your own USB controller - 12/20/14 08:41 PM

What I understand from WT topic:

Quote:


KMZ41 - use one bridge of sensor

Advantage - Can be connect to any (USB) controller

Disadvantage - sensor gain value needs to be adjusted under work (joystick) mechanics, e.g. need solder components (resistor???)
Disadvantage - magnet central position needs to be set manually

KMZ60- use both bridge of sensor

Advantage - the central position of magnet (centering) is defined in Configurator
Advantage - adjusting for a (joystick) mechanics is done by Auto Calibration in Configurator

Disadvantage - this sensor only work if plugged into a controller that perform trigonometry calculations, or ones with MMJoy firmware
Disadvantage - is not easy to find and buy "KMZ60" and "MCP3202", therefore is provides possibility of replacing the ADC "MCP3202" by "MCP3204" or "MCP3208"


BTW - Nice Logitech upgrade: ball bearings on gimbal, MagRez sensors, MMjoy. smile

http://forum.warthunder.ru/uploads/monthly_12_2014/post-1103554-0-24545400-1418930208.jpg

Sokol1


Posted By: Crosswind

Re: MMJoy - Build your own USB controller - 12/21/14 04:47 PM

Russian flight sim community is another world! You guys did a great job
Posted By: f15sim

Re: MMJoy - Build your own USB controller - 12/21/14 08:39 PM

Now if they'd just write in English... biggrin

g.
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 12/22/14 04:16 AM

Originally Posted By: Sokol1

BTW - Nice Logitech upgrade: ball bearings on gimbal, MagRez sensors, MMjoy. smile


more fotos
Posted By: tirta

Re: MMJoy - Build your own USB controller - 12/22/14 03:26 PM

Hi mega_mozg,

Since your latest mmjoy firmware can use LED,
can you give me some ideas what the LED is used for?
Posted By: Sokol1

Re: MMJoy - Build your own USB controller - 12/22/14 08:25 PM

Tirta

You can use LED to monitor switch's state. Sample from above WT link.

http://forum.warthunder.ru/uploads/monthly_12_2014/post-59452-0-29246800-1418105755.jpg

Sokol1
Posted By: tirta

Re: MMJoy - Build your own USB controller - 12/24/14 08:21 AM

Originally Posted By: Sokol1
Tirta

You can use LED to monitor switch's state. Sample from above WT link.

http://forum.warthunder.ru/uploads/monthly_12_2014/post-59452-0-29246800-1418105755.jpg

Sokol1


thanks Sokol1,

that's a lot of LEDs.
so it is possible to assign one LED to each button?
How do you do it?
Posted By: SolderMonkey

Re: MMJoy - Build your own USB controller - 12/26/14 05:13 PM

Ok, I've now completed a thrustmaster FCS, WCS, X fighter, attack throttle, rudder pedals and a CH Pro yoke. All the buttons, hats and axis work. I think I'm getting the hang of this.

But, I have some questions:

What do Zoom, Stop, Trim and Divisor do in Axis Programming?

Is there a way to set one of the thrustmaster 3 way switches to actually work without putting in gate logic chips?

Can someone explain to me like I'm 5 - what are shift registers, how they work and why I would program them?

What are the differences between the October and the November firmware releases?
Posted By: tirta

Re: MMJoy - Build your own USB controller - 12/28/14 06:04 AM

use the latest firmware.
the latest is the most updated, so it should be better.
Posted By: Sokol1

Re: MMJoy - Build your own USB controller - 12/28/14 12:27 PM

Originally Posted By: SolderMonkey

What do Zoom, Stop, Trim and Divisor do in Axis Programming?


ZOOM (out) = reduce axis curse by a factor set on DIVISOR when a pre-set button is pressed.

STOP = stop axis response when a pre-set button is pressed.

DIVISOR = value for ZOOM, e.g.2

Time ago a did a translation of early Configurator readme (notice that English is not my native language and I dont know Russian language, so use online translator), quote about ZOOM:

Click to reveal..

5.6) Zoom: Special mode activated by selected control key. When you press the joystick control button the movement of the axis cursor is reduce by value set on "Divisor" (9).
To understand this operation mode consider this simple example:
Normal mode: The joystick handle is in the center, reading 511, if the handle are alternately move to extreme positions the readings will vary from 0 to 1023 (minimum/maximum).
Zoom mode: Divisor is set to "2" , the Zoom activation button is pressed, the joystick handle is in the center, reading and 511: if the handle is moved to full down position the reading will show the value of 255 (the difference between the "middle = 511" - "minimum = 0" / "Divisor =2 ").
If the joystick handle is move to full up position the reading will show the value of 767 (the difference between the "maximum =1023" - "middle = 511" / "Divisor = 2" + center position [511]).
After releasing the "Zoom" activation button can happen that the physical joystick handle be at his maximum position (1023), and when the virtual joystick passed from half of the displacement (767) to maximum no sudden change occurs (between 767 and 1023) on "DATA" parameter. Each USB package (pps) ADC data between physical and logical joystick will be reduced by the value set on "Reduction".
In this example, if the "Reduction" is set to "256", after releasing the "Zoom" the axis following package jump abruptly to 1023.
If the "Reduction" is set to "4" then 1023-767 = 256 / "4" = the reduction is carried out for 64 cycles (equivalent to approximately 0.5 seconds if the joystick is 120 pps).
As a result, the "Zoom" allows, when the control button is pressed, gently moves the sights on the target.



Quote:

Is there a way to set one of the thrustmaster 3 way switches to actually work without putting in gate logic chips?


You mean that 3 position key (for modes) in WCS/Attack Throttle?

I think that this will depend in what you want this button do.

In Defender Cobra M5/VKB Mamba are a 3 way switch to allow 7 physical press buttons work in 3 different way, allowing 21 virtual buttons.

A way to use this kind of 3 way switch without logical chips is for change matrix lines or columns, allowing a physical button press different (software) button dependent on 3 way switch position...

Quote:

Can someone explain to me like I'm 5 - what are shift registers, how they work and why I would program them?


Not sure, but this function is related with micro chips existent inside Tm FLCS/F22 PRO/Cougar or Defender Cobra M5 grips... to send button press to main controller via ~5 wires (without use of diode matrix).

Sokol1
Posted By: SolderMonkey

Re: MMJoy - Build your own USB controller - 12/29/14 03:54 PM

Sokol - as usual, your explanation is fantastic, thank you! I went in, changed 2 wires in my WCS and now I've got 12 working switches in 2 banks with a safe "no button" center setting.

Tirta - I'd agree, but can't seem to get the firmware to update without the USBASP. Once installed in the joystick, Attaching the programmer gets ... interesting. I've tried installing a reset switch connection and flashing using joyloader, but it doesn't connect on any port after I flash mmjoy2. Of course... I'm probably doing something wrong. I've gotten one board to work using joyloader without the USBASP now... but have never gotten one to work after installation in a joystick.

Regarding posts #4054660 and #4055320 I'm also curious about the LED system. So much so that I've ordered some WS2811 compatible LEDs and have started a switch matrix of my own.

Is this fabulous switch box you built just an 8x4 switch matrix at its heart? Push on/Push off switches?
What else have you set it up to do?

From there are you using 2 lines of output for the LEDS... one for the dedicated reds, one for the dedicated greens?

Are you using real red/green LEDs? Why, when the 2811/2812 would let you do that in one LED?
If not, why not use 1 line of output for each switch? Normal background of red, activation color of green?
Posted By: Brandano

Re: MMJoy - Build your own USB controller - 12/29/14 05:46 PM

I love the WS2812 leds, but they require exact timing on a rather odd serial protocol, and that will probably use up too many resources on the microcontroller. An alternative could be to have a separate microcontroller dedicated to the handling of outputs, including perhaps driving a few servos for panel gauges.
Posted By: tirta

Re: MMJoy - Build your own USB controller - 12/30/14 08:44 AM

I have not set up the LED.
I don't know how.

I hope Sokol1 or mega_mozg can explain in more detail
on how to set it up.
Posted By: arnsk98

Re: MMJoy - Build your own USB controller - 12/30/14 03:56 PM

Again, thanks for all the work.

When using the "2 joysticks-1 card" function, both virtual joysticks appear in the Control Panel with the same name, how can I change the name of at least one of them?

Also, there's something funny with the enumerator in JoySetup.exe (box below the "Donate" button). After configuring 2 axis, it says "Used axis: 3". with 4 axis, it says "Used axis: 10". O_o?

Screenshots in this thread also show the same results. In my case, ProMicro card and 20141119 version.

Regards
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 12/31/14 05:33 AM

Hi to all.
Originally Posted By: tirta
Since your latest mmjoy firmware can use LED,can you give me some ideas what the LED is used for?

Originally Posted By: Sokol1
You can use LED to monitor switch's state...

Sokol1, it is mistake, now LEDs don't have this features. manual controlling LED from tool "LEDControl.exe".
now started work to make driving LED state from WarThunder data(indicate gears, flaps...).
and again, mmjoy work only with strip "WS2811 RGB LED" 10pcs, not regular or any other type of LEDs.

Originally Posted By: Brandano
An alternative could be to have a separate microcontroller dedicated to the handling of outputs, including perhaps driving a few servos for panel gauges.

I don't have planes to do this. If you want "outputs" check controller "F2"/"F3" from author "Kreml".
link to russian forum

Originally Posted By: arnsk98

When using the "2 joysticks-1 card" function, both virtual joysticks appear in the Control Panel with the same name, how can I change the name of at least one of them?

you cannot switch secondary joystick to another name.

Originally Posted By: arnsk98

Also, there's something funny with the enumerator in JoySetup.exe (box below the "Donate" button). After configuring 2 axis, it says "Used axis: 3". with 4 axis, it says "Used axis: 10". O_o?

it is known bug, will be fixed at near release =)
Posted By: arnsk98

Re: MMJoy - Build your own USB controller - 12/31/14 04:42 PM

Ok, thanks mega_mozg_13

Is anybody using virtual joystiscks? Any tip about how to tell them apart or manage them?

I'm going to need 2 virtual joysticks, no axis, buttons only, and I foresee a bit of confusion assigning game functions if both joysticks appear with the same name.
Posted By: Jokeri

Re: MMJoy - Build your own USB controller - 01/09/15 11:42 AM

Hello!

Is there easy way to add bluetooth to teensy2.0 or to the other controllers?

I have DIY sim wheel project and I would like to have wireless shifters and buttons.

Thanks in advance
TT
Posted By: CyBerkut

Re: MMJoy - Build your own USB controller - 01/09/15 06:37 PM

"Easy" is subjective, so I don't know what will qualify for you on that count.

A Google search turns up a number of possible solutions. One that appears to be aimed at people who are less experienced with Teensy / Arduino is:

http://stafava.blogspot.com/2012/12/connect-teensy-to-bluetooth-module.html

That one is Teensy 2.0 specific, it appears. If you are not yet locked in to Teensy 2.0, there are solutions for Teensy 3.0, etc. Be sure to watch out for version specifics on versions. Voltage levels can vary with that, for instance.
Posted By: Jokeri

Re: MMJoy - Build your own USB controller - 01/09/15 09:19 PM

Thanks for the reply CyBerkut.

In my case easy is: I dont know electronics and I dont know how to code. That is how easy it has to be.

So teensy + one of those bluetooth modems will still be recognized as HID device?

Best regards,
TT



Originally Posted By: CyBerkut
"Easy" is subjective, so I don't know what will qualify for you on that count.

A Google search turns up a number of possible solutions. One that appears to be aimed at people who are less experienced with Teensy / Arduino is:

http://stafava.blogspot.com/2012/12/connect-teensy-to-bluetooth-module.html

That one is Teensy 2.0 specific, it appears. If you are not yet locked in to Teensy 2.0, there are solutions for Teensy 3.0, etc. Be sure to watch out for version specifics on versions. Voltage levels can vary with that, for instance.
Posted By: CyBerkut

Re: MMJoy - Build your own USB controller - 01/09/15 10:11 PM

Jokeri, it would take some research to see how readily it would be presented as an HID. I've never fooled with any Teensy boards (although I have looked at them online at various times), and only have spent minimal time messing with an Arduino Uno... so I'm not expert by any stretch of the imagination. That being said, I can not imagine that it is beyond reach. You just may need to combine sketch code from more than one example to get there.

Teensy is based on Arduino. Arduino's reason for existence is to make it easier to learn electronics. Existing software and help from folks like mega_mozg_13 and Sokol1 can make it a lot easier for you to accomplish your goal... but you really owe it to yourself to learn enough of the basics such that you will have an understanding of what you put together, and a bit about how it works.

I know when I have some specific project in mind, I'm not naturally inclined to work through tutorials that seemingly go through things I'm not interested in... (i.e "Hello world!", etc.). However, the tutorials are walking through the building blocks needed to get where I want to go. When I have taken the time to do the tutorials, I have never ended up regretting it.

Thanks to the internet and many motivated / generous people, there are tons of resources available to help you accomplish your project goal(s). Tutorials and example code are plentiful for the arduino based platforms, but you'll need to get a handle on some basics in order to make the best use of them.

Good luck with your project!
Posted By: Sim_Jack

Re: MMJoy - Build your own USB controller - 01/10/15 03:18 PM


Jokeri,

Not sure this may help since I'm not a guru at this stuff and I'm not sure if either fits you question, but here's two things you may want to look at.

https://www.adafruit.com/products/1697
(below may help with getting an idea how you may be able to use this)
https://learn.adafruit.com/getting-started-with-the-nrf8001-bluefruit-le-breakout


https://www.adafruit.com/products/1535
(below may help with getting an idea how you may be able to use this) https://learn.adafruit.com/introducing-bluefruit-ez-key-diy-bluetooth-hid-keyboard
Posted By: Jokeri

Re: MMJoy - Build your own USB controller - 01/10/15 09:38 PM

Hey, Sim_Jack!

that bluetooth hid keyboard works but it only simulates keyboard and "only" 12 buttons, so no rotary switches and so on.

http://www.racingfr.com/forum/index.php?s=&showtopic=48591&view=findpost&p=1526535

I currently use electronic from logitech freedom 2.4 joystick. It works ok but the circuit board + batteries takes alot of space..

https://www.dropbox.com/s/5buqdlxgvt6nue2/20140707_235040.jpg?dl=0


Originally Posted By: Sim_Jack

Jokeri,

Not sure this may help since I'm not a guru at this stuff and I'm not sure if either fits you question, but here's two things you may want to look at.

https://www.adafruit.com/products/1697
(below may help with getting an idea how you may be able to use this)
https://learn.adafruit.com/getting-started-with-the-nrf8001-bluefruit-le-breakout


https://www.adafruit.com/products/1535
(below may help with getting an idea how you may be able to use this) https://learn.adafruit.com/introducing-bluefruit-ez-key-diy-bluetooth-hid-keyboard


Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 01/12/15 07:51 AM

v20150111 BETA_Curves
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 01/17/15 05:40 PM

[v20150116] Curves release candidate
Posted By: tirta

Re: MMJoy - Build your own USB controller - 01/17/15 05:56 PM

As you might already know from my other post, I got TM Warthog last December.
However, only a few hours of use, due to cheap very low quality parts used,
some of the axis, z and rz won't work anymore.

So I am thinking modifying it with mmjoy.

Hi mega_mozg,
according to Sokol1, the hall sensor used in TM WH is Melexis 3D.
It has 5 wires out of it.

Is it possible to use the original sensor directly with mmjoy?
Please advise.
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 01/18/15 05:45 AM

Tirta.
Melexis 3D - not supported by mmjoy firmware.
if you want ask support - it is need sample of melexis sensor and lot of time to developing code.
Posted By: Ltfransky

Re: MMJoy - Build your own USB controller - 01/18/15 04:37 PM

If you want information about the melexis, you need to talk to Hempstead. He even has the programmer for that chip, and has written firmware for it.
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 01/21/15 08:49 AM

Hi to all

update mmjoy_20150121
+curves normal/symmertical
+dead zone low/center/high (%), and dynamical (axis points)

Posted By: Ltfransky

Re: MMJoy - Build your own USB controller - 01/21/15 04:26 PM

Holy &h!t! It worked!
Posted By: arnsk98

Re: MMJoy - Build your own USB controller - 01/21/15 06:37 PM

Thank you, mega_mozg_13
Testing now...
Posted By: Crosswind

Re: MMJoy - Build your own USB controller - 01/28/15 04:43 PM

nice update! I give it a test, and accidentally found that in the device name input, the new version can only accept 10 characters, the previous version(1119) can accept 20?

BTW, if I just want to use 5 buttons, how should I configure it? still need a button matrix? Pls help, mega_mozg_13

Thank your effort!
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 01/29/15 06:34 AM

Originally Posted By: Crosswind

I give it a test, and accidentally found that in the device name input, the new version can only accept 10 characters, the previous version(1119) can accept 20?

Yes, again 10 chars, "curves" eats a lot configuration values.

Originally Posted By: Crosswind

BTW, if I just want to use 5 buttons, how should I configure it? still need a button matrix?

still need.best solution for few buttons
Posted By: AndyB

Re: MMJoy - Build your own USB controller - 01/29/15 03:46 PM

Hi,
If I understand the workings correctly you should be able to connect 1 of the BC pins to one side of all 5 switches (daisy chained), then connect the other pin on each switch to one of the BR pins (one wire for each).

That should be the simplest way of getting 5 switches working.

Hope this helps.

Andy
Posted By: Bluedeath

Re: MMJoy - Build your own USB controller - 02/05/15 11:53 AM

Does anyone have the color code for the matrix of the CH fighterstick?
Posted By: CyBerkut

Re: MMJoy - Build your own USB controller - 02/05/15 12:38 PM

Originally Posted By: Bluedeath
Does anyone have the color code for the matrix of the CH fighterstick?


You might try PM'ing 531 Ghost. He's done some very impressive mods to various CH Products devices.
Posted By: Euphoria

Re: MMJoy - Build your own USB controller - 02/06/15 05:08 PM

Mega_mozg, I would like to thank you for all your work on the MMJoy project. Here is my contribution to the thread: my finished custom throttle for Star Citizen


Posted By: Euphoria

Re: MMJoy - Build your own USB controller - 02/06/15 05:13 PM

Here are a couple images of the F-15 stick I reworked, also with MMjoy2






To-do list: Write up worklog for project
Posted By: CyBerkut

Re: MMJoy - Build your own USB controller - 02/06/15 06:46 PM

Nice!

I think it is safe to say that more pics, and your upcoming worklog, will be welcomed! thumbsup
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 02/07/15 05:50 AM

Euphoria, funtastic!!!
how many axis and buttons are used?


also, this is pot or encoder?

Posted By: tirta

Re: MMJoy - Build your own USB controller - 02/07/15 08:34 AM

Hi Euphoria,

Wow !! thumbsup
that is a very impressive throttle.

how do you make it?
Posted By: Euphoria

Re: MMJoy - Build your own USB controller - 02/07/15 06:28 PM

Thank you for the compliments, everyone. I owe a big thanks to mega_mozg for his firmware. Without MMjoy2 I would have been forced to purchase controller boards, where I prefer to DIY anything I can.

Mega_mozg,

The F-15E Talon stick was purchased from Goodwill for very cheap. I stripped the PCB inside the handle of it's traces and rewired everything. I also replaced all the buttons with high quality snap-action switches (except for the Castle and China HAT switches). The knob you outlined in the picture is indeed a rotary encoder. The encoder itself is mounted further inside the stick, and I used a shaft from a broken potentiometer to attach. I will include more build pictures in my worklog (pending). The stick only uses two axes, but I have followed DocFlyer's hall sensor mod to perform the conversion on mine. I used Allegro A1326 hall sensors. Board used is one of your mmjoy2 designs with M32U4 AVR, and latest firmware with curves (I LOVE the curves, THANK YOU!)

The throttle started out as a lid for a VERY old metal filing box (probably from 1960-70s era). The base has something like 62 buttons all together, which I have split as two joysticks using the firmware. There are 8 toggle switches and three rotary encoders on the base. The base uses a single axis with hall sensor for the throttle slide. (I will have more pictures of the actuator when I finish the worklog). The handle is from a HORI playstation2 controller system. I also rebuilt the joystick from that kit (was my first mmjoy project.) The handle has it's own M32U4 controller built inside the box on the left side, connected with DIY USB coiled cable (making the coiled cables isn't very hard to do). The handle also has three rotary encoders. Alltogether, the throttle shows up in Windows as three controllers, every axis showing 12bit resolution (thanks to your autocalibration feature in the firmware). I will try to get my worklog drafted this week and hosted on my website.

Credit goes to:
Mega_mozg_13 for his brilliant work with MMjoy2
My best friend James for pressuring me to finish and take pictures
My metalworker friend Lee who plasma cut the mounting bracket for the handle
A character named Loc Nar from the Mechwarrior Online forums for sparking my interest in DIY joysticks


EDIT: I forgot to mention that I also have a set of Thrustmaster RCS pedals, which I have also totally modified with toe brakes, a robust centering mechanism, and also uses MMjoy2 via M32U4 chip biggrin

EDIT #2: I also forgot to mention that the trigger is a dual-stage. It has two switches and very different feels for both actions
Posted By: zeg33

Re: MMJoy - Build your own USB controller - 02/08/15 12:50 AM

Originally Posted By: mega_mozg_13
Hi to all

update mmjoy_20150121
+curves normal/symmertical
+dead zone low/center/high (%), and dynamical (axis points)



thanks for your great work


maybe a bug, 20150121 version on teensy2 the D0 pin for button matrix not work


and the curves apply to the raw value or calibrated value?



and two suggest

make a manual calibration setting, auto calibration always get wrong center position

more detail zoom rate between 1 to 2 (1.2 1.4 1.6 etc.
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 02/08/15 06:12 AM

zeg33,

Quote:
maybe a bug, 20150121 version on teensy2 the D0 pin for button matrix not work

thanks, I check this later.

Quote:
and the curves apply to the raw value or calibrated value?

1) read raw from ADC
2) calibrate
3) invert
4) curve
5) zoom/stop/trim
6) filter(smooth)

Quote:
make a manual calibration setting, auto calibration always get wrong center position

center position watching for first 3 seconds after start work. minimum and maximum raw and correct watch always.
a have plans to do saving calibration to eeprom.

Quote:
more detail zoom rate between 1 to 2 (1.2 1.4 1.6 etc.

sorry, don't understand you.

guys,
a have plans to remove second joystick support again, and I need your opinion:
I think more functions and supported sensors better than more axis/buttons.
one controller - one joystick - 8 axis, 4 hats, 64 buttons?
Posted By: zeg33

Re: MMJoy - Build your own USB controller - 02/08/15 08:37 AM

er... I mean the zoom divisor, minvalue is 2 now



btw

the indicator on curve setting graph is raw value
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 02/08/15 12:04 PM

Originally Posted By: zeg33
I mean the zoom divisor, minvalue is 2 now

there integer value, not real. "0" or "1" have no sense, so "2" and more.

Originally Posted By: zeg33
the indicator on curve setting graph is raw value

yes, this right, you a see raw value and setup correct curve for this state raw.
Posted By: zeg33

Re: MMJoy - Build your own USB controller - 02/08/15 01:25 PM

curve apply after calibrate and invert, so I think the graph should show calibrated value ?
Posted By: zeg33

Re: MMJoy - Build your own USB controller - 02/08/15 01:56 PM

in my experience even set divisor to 2 is a bit too much, allow float point value (or add a multiplier?) will be better ...
Posted By: Euphoria

Re: MMJoy - Build your own USB controller - 02/17/15 05:02 PM

Mega_mozg, I like the idea of going back to single controller w/64 buttons. Perhaps keep the old version available for those who want more than 8 axes.

Side note: I have been writing up my worklog and will post a link to it very soon.
Posted By: tirta

Re: MMJoy - Build your own USB controller - 02/18/15 02:35 PM

Hi mega_mozg

Thanks for updating mmjoy2 with curves.

However, I am rather confused in setting it.
Can you give me some direction?

With hall sensor, it seems that my center is not really the center.

This is my center (vertical black line):

Can I move it slightly to the left, so it can be really centered?


this is my extreme left position:



and my extreme right position:


As you can see my left/right extreme positions are still somewhere in the middle,
can I move it to the edge?

And there are zoom, stop, trim, divisor, and reduction.
What number should I put in it?

And there are DZ low, center, high, dynamical.
What are these for?

Please advise.

PS. for me, 8 axis, 4 hats, 64 buttons is enough.
Posted By: Euphoria

Re: MMJoy - Build your own USB controller - 02/18/15 11:41 PM

Tirta, try setting Auto Calibration to without center and try again. This worked for me
Posted By: Red_Yeti

Re: MMJoy - Build your own USB controller - 02/19/15 05:11 PM

Tirta zoom, stop, trim are not additional parameters for the accuracy of the axis.
This are special functions which you can map to a button. The stop function would ignore the movement of the axis as along as the button is pressed.
Posted By: honcho12

Re: MMJoy - Build your own USB controller - 02/19/15 09:20 PM

Originally Posted By: mega_mozg_13

guys,
a have plans to remove second joystick support again, and I need your opinion:
I think more functions and supported sensors better than more axis/buttons.
one controller - one joystick - 8 axis, 4 hats, 64 buttons?



I would like to use 9 axis, would you be able to leave an old version available to do that?
Posted By: tirta

Re: MMJoy - Build your own USB controller - 02/20/15 06:34 AM

Originally Posted By: Red_Yeti
Tirta zoom, stop, trim are not additional parameters for the accuracy of the axis.
This are special functions which you can map to a button. The stop function would ignore the movement of the axis as along as the button is pressed.


Hi Euphoria & Red_Yeti,

Thanks for the replies.

The most important thing that I would like to know is how to really center my center.
The curve will be useless if my joystick center position is not in the center.

I hope mega_mozg can explain how to do it,
since this feature has not been explained in the readme.
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 02/20/15 06:46 AM

Originally Posted By: tirta

The most important thing that I would like to know is how to really center my center.
The curve will be useless if my joystick center position is not in the center.


Auto Calibration with center helps to you. when you connect to USB first 3 seconds DONT MOVE stick - firmware watch for "center" position.
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 02/20/15 06:47 AM

Originally Posted By: honcho12

I would like to use 9 axis, would you be able to leave an old version available to do that?

use old(current) version without updates as long as you wish =)
Posted By: tirta

Re: MMJoy - Build your own USB controller - 02/20/15 08:56 AM

Thanks mega_mozg.
I will try it.

Is DZ dead zone?
what is dynamical DZ?
Posted By: honcho12

Re: MMJoy - Build your own USB controller - 02/23/15 03:19 PM

Is it possible to set up MMJoy for collective controls with 2 sticks? This is how I want the controls to end up:



If MMJoy can't be set up like that, I'm planning on getting another arduino to change the signals.
Posted By: f15sim

Re: MMJoy - Build your own USB controller - 02/24/15 05:59 PM

Mechanically link the controls. That's how it's done in the real thing. smile

g.
Posted By: honcho12

Re: MMJoy - Build your own USB controller - 02/24/15 06:12 PM

I think doing it in SW would be a lot simpler, and leave room for my legs between the sticks...
Posted By: f15sim

Re: MMJoy - Build your own USB controller - 02/24/15 06:21 PM

You're not going to be able to do it in software at all - not realistically.

The cyclic and anti-torque pedals should be interconnected under the cockpit floor. The collective can share a common axle that runs behind the seats. A little magic with some bevel gears will even sync the twist throttle on the collective if that's how your sim is configured.

g.
Posted By: honcho12

Re: MMJoy - Build your own USB controller - 02/25/15 06:02 PM

I'm using hall effect sensors, so it would be as easy as averaging the voltages to get pitch and taking the difference to get yaw. I'd just have to rescale the pitch/yaw ranges because yaw would eat into my range for pitch or vice versa. same way for roll and heave. I've heard it's easy to set up with TARGET, but I've only got the arduinos.
Posted By: f15sim

Re: MMJoy - Build your own USB controller - 02/25/15 09:42 PM

You'll be better off in the long run tying the controls mechanically.

g.
Posted By: 453Raafspitty

Re: MMJoy - Build your own USB controller - 02/25/15 11:36 PM

Originally Posted By: f15sim
You'll be better off in the long run tying the controls mechanically.

g.

Yes I agree with that.Plus having mechanical means you can have the pots in a lot more convenient place for maintenance instead of diving head first into the middle of the pit.
Posted By: Sak75

Re: MMJoy - Build your own USB controller - 03/02/15 06:44 AM

Hello

First of all congratulations to MEGA_Mogz by Mmjoy project that I find amazing , I 'm hoping reach parts order online to start my project to make my own HOTAS joystick.

But I have several questions: between the buttons I've gotten have some illuminated with a small led inside, for push buttons i want to leave the led always on, but for switches would it be possible that Mmjoy configurator can on or off the led when press the button? As this affect the button matrix?.

My other question is about the analog axes , i thought to use potentiometer for the four axes that I want, but in the pictures I've seen that most people use hall sensors are they better ? more accurate maybe? they consume more than 5 V usb provide?

Thanks for this post which is being helpful.
Posted By: Sokol1

Re: MMJoy - Build your own USB controller - 03/02/15 05:03 PM

MMJoy LED controller is not for illuminate switch's, but for game output, eg monitor if landing gear is down, and depend on game output (so will work in some, not in others).

To use LED on you project, due limitation on USB cable amperage the ideal wold by use a independent power source for LED's, so the illuminated LED's can be always on (and toggled off if desired), and for toggle switchs if you use DPDT (duple circuit switch) switchs, one pole send the command for game, other turn on/off the LED.

You can use potentiometers in you project, there's not wrong with then - IF are good quality ones (what joysticks manufactures rarely use, so the potentiometers joystick "bad" fame).

CONS - Good potentiometers will cost more than DIY HALL sensors assembly* (look at Bourns, Spectrol, Alps... prices).

Probable you dont find for buy potentiometers with 60 degrees turn range used in joysticks (are custom made for joystick manufactures), most of you find is 270 degrees, this limit axis theoretical resolution because if you dont turn the potentiometer the expected 270 degrees you dont varies the voltage from 0 to 5 volts.

You can use gears to turn more the pot', but this make the assembly complicated and induce backslash.

Potentiometers wear with use and start cause spikes (The "high end" - at time - Cougar or G-940 can tell the history).

HALL (of similar sensor) advantages is his low cost cost* and easiness for use the axis full resolution (or varies from 0 to 5 volts).

CONS - Difficult to set the middle position relative to magnets due the his low size, making DIY assembly trickly.

* Low cost for sensor only - HALL sensor assembled like potentiometer, e.g. the ones used in automotive industry is expensive (~80$).






Posted By: Sak75

Re: MMJoy - Build your own USB controller - 03/03/15 08:47 AM

Many thanks Sokol1

Upon receipt of all materials shall begin testing, I have thought several Alps potentiometers used in the throttle or rudder , the issue of concern led me less , now I 'm circling like making structure for the x and y axes
Posted By: tirta

Re: MMJoy - Build your own USB controller - 03/03/15 12:17 PM

Hi Guys,

After using arduino leonardo for only about 3 months with no problem,
suddenly yesterday I found some of my joystick buttons do not work,
after further examination, I find the culprit is pin D0,
all the buttons that connected to this pin do not work.

first I thought might be bad connection or broken wires,
but I can not find it.

then I substitute D0 with another pin,
all the buttons work again.

so there must be something broken with this pin,
however, I can not find it.

I guess the quality of these arduino leonardo - chinese clone is not very good.
Anybody has similar experiences?
Posted By: tirta

Re: MMJoy - Build your own USB controller - 03/04/15 10:26 AM

latest version bug report for mega_mozg:

your bootloader button on your joysetup.exe does not work,

I have to use reset button on the arduino board,
or connect "reset" pin and "ground" pin
to get to bootloader.

but this works only if I use win7,
with xp I can not get to bootloader,
no matter how many times I press the reset button.
Posted By: tirta

Re: MMJoy - Build your own USB controller - 03/14/15 04:55 PM

Hi Guys,

With the latest mmjoy, testing under Joy-tester:



I have just noticed that both my X and Y axis, even after calibration,
both of them, after a while, can not reach their maximum output.


X axis value on the Joystick axes page:
middle 2068
low 380
high 3696

Y axis value on the Joystick axes page:
middle 2057
low 216
high 3960

I am using Auto calibration with center for both axis.
And I am not moving my joystick for the first 3 seconds since I plug the USB / reset.

I am using Allegro A1302 Hall Sensor.

Do you know what is wrong here?
Is this a bug?
Posted By: Bluedeath

Re: MMJoy - Build your own USB controller - 03/16/15 03:37 PM

Icannot see the pictures but the values seem to be good for 10 bits resolution what is the problem?
Posted By: tirta

Re: MMJoy - Build your own USB controller - 03/18/15 02:31 PM

the problem is:
if you look at the pictures carefully,
the value should reach the lowest and highest maximum number: 0 and 4096.

it does when I move the joystick in the beginning,
just after calibrating,


but after just a few moves,

the lowest and highest value start to diminish for some unknown reason.

If I unplug and replug the usb or restart, then calibrating it,
it is good again,
but after I move the stick some more, then the value start to diminish again.

Is this a bug?
I hope mega_mozg can clarify this.
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 03/22/15 05:23 PM

Hi to all.

Does anybody use special functions "Stop" and "Trim" a have plans to remove it.
Posted By: Euphoria

Re: MMJoy - Build your own USB controller - 03/23/15 03:28 AM

I do not use these functions. Thanks for all your work
Posted By: Sokol1

Re: MMJoy - Build your own USB controller - 03/23/15 04:36 PM

BTW - The idea of these function is:

ZOOM (or ZOOM out) - when a joystick button is pressed the related axis response is divided by a choose number, reducing the in game movement, can be useful for precise set a laser over target to lock.

STOP - when a button is pressed the axis stop to respond to joystick handle movement and retain the last position, the idea maybe is useful for helicopter trim (Ka-50 Black Shark). There a issue when the button is released the axis cursor will jump for the actual joystick handle position...

Probable anyone is using this.
Posted By: Sak75

Re: MMJoy - Build your own USB controller - 03/25/15 11:28 AM

Good morning , again I thank Mega for their work, but I have trouble getting my arduino pro micro recognize the components.

I'm trying to mmjoy2 20150121 and for example when I connect a potentiometer (eg throttle ) Arduino promicro recognize the change of voltage but within joystick configuration in Windows does not recognize it . The same happens with connecting a button with a diode to a row and column.

I think my problem (besides my little knowledge in electronics) is not assigned the port / cannel or communes and row properly. I have looked at all the pictures I have printed the pdf with the legend does not work , you can help me .

Upload a picture of how I think the names of the connectors are assigned within the mmjoy2 :


For example if I want to connect a potentiometer as in the picture , I understand that corresponds to F4


And both mmjoy2 would have to be like this:



its ok? i dont know what happens

thanks
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 03/25/15 11:49 AM

Sak75

Pins


Labels hepls to you (print and glue to the back side "promicro")

here

also, I don't see any USB at device list.
here USB list with joystick (also keyboard and mouse)

Posted By: Sak75

Re: MMJoy - Build your own USB controller - 03/25/15 12:42 PM

many thanks

im working and i take the pictures with the promicro disconected

at home will try this

thanks again
Posted By: Sokol1

Re: MMJoy - Build your own USB controller - 03/25/15 02:15 PM

Sak75

Quote:
but within joystick configuration in Windows does not recognize it


Maybe you have write the MMjoy2 firware - what make the PRO Micro a USB HID device - but after don't define the
"joystick" (Axis, buttons, HATS, PID/VID, name...) in Configurador and "Save set to device", then un-plug
and plug again to Windows recognize and show in Control Panel - Game Devices.



Posted By: Bluedeath

Re: MMJoy - Build your own USB controller - 03/25/15 02:39 PM

IS there any suggested card to do the conversion of a ch fighterstick keeping the original matrix of the stick handle?
Thanks in advance
Posted By: Sokol1

Re: MMJoy - Build your own USB controller - 03/25/15 05:10 PM

Any USB card will work if you "decode" how is the matrix in the stick handle, (if 4 x 5, 2 x 10, 3 x 7 ...) to hook the wires coming from handle to board lines and collumns according - this if not needed diodes, what is difficult to happen... smile

Or are not a firmware that recognize "PnP" the original CH matrix - like the MMJoy one that recognize the Tm Cougar/F22PRO* or Cobra M5 shifters circuit, or the Hempstick that recognize the Cougar/Warthog shifters.

I these cases (CH) I use the simple "brute force" method - Dremel the orignal PCB trials in HAT support and do my own matrix. biggrin

* Need some alteration in wires.
Posted By: Bluedeath

Re: MMJoy - Build your own USB controller - 03/26/15 11:42 AM

I would like to avoid to cut the traces and keep the original pcb by just reconnecting the cables to the newq card
Posted By: Sokol1

Re: MMJoy - Build your own USB controller - 03/26/15 04:51 PM

This guy did what you want - plug and play the cable that coming from joystick grip - for Suncom F-15.
But do do this need developer and assembly a new PCB and firmware.

http://theseger.com/projects/2014/04/converting-old-joysticks/

Posted By: tirta

Re: MMJoy - Build your own USB controller - 03/27/15 08:40 AM

I have totally rewired 2 CH joysticks.
First the Flightstick + Pro Throttle and Pedal.

then later, Combatstick, on this one I add two 4-way hat switches,
so that it becames "Fighterstick"

Also I have changed all the pots into HALL sensors.

True, it is rather time-consuming
but actually it is not that hard.
And the result is very satisfying.
Posted By: Bluedeath

Re: MMJoy - Build your own USB controller - 03/27/15 09:22 AM

@Sokol1 and Tirta, first of all thanks.

I alaready rewired (and hall modified) an f16 flcs + tqs combo, I undestand that the mmjoy is the same procedure of using a BU card, it was a lot time consuming, i'd rather avoid doing it again that way (where possible).
BTW does somenone know the color code of the F22pro/f16 flcs 5 wire cabling to compare it to the cougar one?
I've got a ch combo an TM f16 flcs an f22 pro and a tqs and a suncom F15 sfs + eagle that i d' like to convert and put in use in so i need to optimize time as much as possible.

Many thanks in advance.
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 03/27/15 09:43 AM

new supported digital angle sensor TLE5010/TLE5011.



PCB 42mm*13mm

PCB 30mm*10mm

pros : low cost (3$) + high accuracy + minimum size + low noise + digital
cons : 6 wires interface(4 wires can shared with another SPI sensors) + need to make PCB board

Defender Combra M5 with "promicro" + TLE5010



Posted By: Bluedeath

Re: MMJoy - Build your own USB controller - 03/27/15 09:52 AM

WOW
Posted By: tirta

Re: MMJoy - Build your own USB controller - 03/27/15 09:56 AM

Hi mega_mozg,

Thanks for the update.
Is this digital angle sensor TLE5010/TLE5011 better than HALL sensor?
more accurate?
Posted By: Bluedeath

Re: MMJoy - Build your own USB controller - 03/27/15 10:07 AM

@Sokol1 or anyone who knows that.
IS this the correct colo r code of the TM f16 flcs:

brown wire as +5V, green as ground, orange as clock, red as enable, and yellow as serial data out.

Is the same for the F22 pro?

@Mega mega_mozg_13 will this work with the settings used for the coufar or the VKB cobra defender pinout?

Thanks again inadvance
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 03/27/15 10:23 AM

Posted By: Bluedeath

Re: MMJoy - Build your own USB controller - 03/27/15 12:39 PM

that means that TM kept the same color code, Thanks this is really apreciated
Posted By: Sak75

Re: MMJoy - Build your own USB controller - 03/27/15 02:44 PM

yes sir it works ok !!!

Everything devia to poor welding, now I'm preparing the array of buttons.

thank you very much
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 03/28/15 04:54 AM

Added save calibration manually
The old auto calibration mode (run every time you turn the computer)is called "automatic with center"/"automatic without center"
The new save calibration manually is called "save with center"/"save without center"

Manual calibration is performed as follows:

1) select in the Configurator the desired calibration mode, save and reboot the device (MMjoy).
2) in the Configurator click "Reset Calibration"
3) if somewhere is set to "save with center" then put the handle / pedal in neutral
4) click "Start Calibration"
5) Wait one second or two to controller (MMjoy) find the neutral position, after move the joystick/pedal for maximum position (the controller will catches the extreme positions)
6) Then click "Save Calibration"
7) Reboot the device (MMjoy).

Added "AxisToButton"
The axis button looks like is for press a button with axis movement, for example at end of throttle axis course the button set for Afterburner or WEP is pressed.

In the 1st field select the button that will be pressed (1 - 96)
In the 2nd field select the axis that will make the press (1 - 8)

In the 3rd and 4rd fields define the minimum and maximum values that axis should reach for the press happen, for example 2900 - 3000, if the axis is in this interval the button will be pressed if is moved for bellow the minimum vale (or above the maximum) the button is released.

Thanks Sokol1 to translate from russian!!!
Posted By: tirta

Re: MMJoy - Build your own USB controller - 03/28/15 05:10 AM

Hi mega_mozg,

Thanks.
Where is the new version that have "save with center"?
The latest version that I can find in download page is still v20150121.
Posted By: tirta

Re: MMJoy - Build your own USB controller - 03/28/15 05:29 AM

is it the latest one in the beta section?
v20150325 ?
Posted By: tirta

Re: MMJoy - Build your own USB controller - 03/28/15 10:02 AM

after upload the latest firmware (v20150325 update 2),
all my joystick buttons do not work.

it seems that mega_mozg changes the button matrix configuration,
or it still has some serious bug.

all the axis work, though.
and "save with center" also works.

now I go back to v20150121 firmware,
all the buttons work again with this version.
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 03/28/15 03:59 PM

to all.
from old to v201503xx version just switch row and columns at configurator(we are found a bug in old firmware buttons reading).
Posted By: f15sim

Re: MMJoy - Build your own USB controller - 03/28/15 09:59 PM

I take it you just rotate a neodymium magnet in front of this sensor to interact with it?

g.
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 03/29/15 04:58 AM

Originally Posted By: f15sim
I take it you just rotate a neodymium magnet in front of this sensor to interact with it?



like this
Posted By: tirta

Re: MMJoy - Build your own USB controller - 03/29/15 07:44 AM

Hi mega_mozg,

Is this digital angle sensor TLE5010/TLE5011 better than HALL sensor?
more accurate?

Please let us know the difference.
Posted By: Sokol1

Re: MMJoy - Build your own USB controller - 03/29/15 06:06 PM

Originally Posted By: Bluedeath
IS there any suggested card to do the conversion of a ch fighterstick keeping the original matrix of the stick handle?


Since I have a gameport CH Fighterstick laying around for years, your question make me reminder them, so I decide investigate his matrix.

The plug coming from grip to original PCB has 11 wires - but only 9 are used, what means a 4 x 5 matrix = 20 buttons.
the dark blue and brown wires in the plug has no use.

The wire colors can be see in these PDF:
ftp://ftp.chproducts.com/pub/CHProducts_...ighterstick_PC/

What is strange is the fact that are used 8 diodes in HAT PCB's, one diode for each 4 HAT1 (the big china) individual wires (collumns) and one diode for each button (1-4), but no diode in HAT2, HAT3 and HAT4.

HAT1 - common wire = gray
HAT1 UP = white (diode)
HAT1 DOWN = red (diode)
HAT1 RIGHT = orange (diode)
HAT1 LEFT = green (diode)

HAT2 - common wire = yellow
HAT2 UP = white
HAT2 DOWN = red
HAT2 RIGHT = orange
HAT2 LEFT = green

HAT3 - common wire = purple
HAT3 UP = red
HAT3 DOWN = white
HAT3 RIGHT = orange
HAT3 LEFT = green

HAT4 - common wires = pink
HAT3 UP = red
HAT3 DOWN = white
HAT3 RIGHT = orange
HAT3 LEFT = green

Buttons - common wire = black
Button1 = blue (diode)
Button2 = orange (diode)
Button3 = white (diode)
Button4 = green (diode)

All diodes cathode (black list) point toward switchs.

I supposed that matrix collumns are:

Green
Orange
Red
White

Matrix rows

Black
Gray
Pink
Purple
Yellow

These colors are ones from the main board plug for top HAT's PCB,.
From HAT's PCB to button 1, 3, 4 and HAT 4 are used other wire colors but this is not relevant.

If you find I way to plug in some USB card matrix without alteration post here, I dont figure how...

In the time to trace these tiny PCB lines with a multimeter is possible convert two PCB's with the "Redneck force brute method". smile
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 03/30/15 06:30 AM

Originally Posted By: tirta
Is this digital angle sensor TLE5010/TLE5011 better than HALL sensor?


Tirta,
it is common advantage digital vs analog:
much quality of raw signal - less noise.
no signal interference up to 1-2 meters wires.
much more raw axis points.
no need to setup magnet/sensor positions.
no need to solder something else to setup sensitivity.

but I like use regular hall's to recovery pots(for secondary axis):



Posted By: tirta

Re: MMJoy - Build your own USB controller - 03/30/15 08:34 AM

Thanks mega_mozg.

how do you connect GEN, SCK, SC and MISO from TLE5010 board to Arduino Leonardo?
Posted By: Bluedeath

Re: MMJoy - Build your own USB controller - 03/30/15 09:36 AM

Thanks sokol
Posted By: f15sim

Re: MMJoy - Build your own USB controller - 03/30/15 05:36 PM

That's interesting. I've never seen disc magnets built like that - typically the poles of the magnet are the top & bottom surfaces of the disc, not splitting it vertically.

g.
Posted By: Brandano

Re: MMJoy - Build your own USB controller - 03/30/15 11:34 PM

I think these are the type of magnet used in "pancake style" pager motors, that you can find on a few cellphone.
[edit] I found a picture that explains what type of motors I mean:
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 03/31/15 04:40 AM

Originally Posted By: tirta
how do you connect GEN, SCK, SC and MISO from TLE5010 board to Arduino Leonardo?

sample how
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 03/31/15 04:43 AM

Originally Posted By: f15sim
I've never seen disc magnets built like that - typically the poles of the magnet are the top & bottom surfaces of the disc, not splitting it vertically.


diametrical polarization

Posted By: tityus

Re: MMJoy - Build your own USB controller - 03/31/15 04:14 PM

Originally Posted By: f15sim
That's interesting. I've never seen disc magnets built like that - typically the poles of the magnet are the top & bottom surfaces of the disc, not splitting it vertically.
g.


Hi Gene,

In the past, I've managed to acquire some from Supermagnetman, in Birmingham, Alabama. (... had them shipped to a friend in TX, who, when visiting, brought them to Brazil, where I live. Now, the company has international shipping)

They usually have an option of across diameter or across "thickness" for the disc magnets.
http://www.supermagnetman.net/product_info.php?manufacturers_id=&products_id=188
http://www.supermagnetman.net/product_info.php?products_id=187

Hope it helps.

BTW, how's that sensor bracket you were working on? Did you finish it?

t mais
tityus
Posted By: f15sim

Re: MMJoy - Build your own USB controller - 04/01/15 03:00 PM

Thanks for the info guys.

tityus, the project fell under a bus with "Overcome by events" printed on the side. I may nor may not get back to it. smile

g.
Posted By: nevo

Re: MMJoy - Build your own USB controller - 04/02/15 11:59 AM

this is nice and easy solution mega_mozg!


and I also found local store to supply this kind of magnets
NdFeB magnets ANNULAR RINGS - MAGNETIZED DIAMETRICALLY - PERPENDICULAR TO AN APPROPRIATE AXIS

whoohoo there is nothing what can stop me from building my own stick...

...except no free time pitchafit
Posted By: f15sim

Re: MMJoy - Build your own USB controller - 04/02/15 04:08 PM

Is the sensor used above one of the Allegro hall effect devices? (AC1302?)

g.

tnx.
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 04/02/15 06:14 PM

Originally Posted By: f15sim
Is the sensor used above one of the Allegro hall effect devices? (AC1302?)

yes. this is Allegro "A1324". also Honeywell "SS945" very good sensor.
Posted By: f15sim

Re: MMJoy - Build your own USB controller - 04/03/15 03:41 PM

Ok, thanks!

g.
Posted By: f15sim

Re: MMJoy - Build your own USB controller - 04/05/15 12:31 AM

I've done some digging and I can't find any diametrically polarized magnets that are 6mm in diameter. Only 10mm and larger. frown

g.
Posted By: beagleboy03

Re: MMJoy - Build your own USB controller - 04/05/15 01:34 AM

Gene
Give this link a shot.1/4 inch diametrically opposed magnets
1/4 inch so not quite 6mm but probably close enough. Is there an advantage to having the smaller magnet as opposed to a 1/2 inch variety?
Posted By: f15sim

Re: MMJoy - Build your own USB controller - 04/05/15 03:00 AM

When you're trying to put the whole thing into an enclosure like this:


You want the most compact parts you can find.
The case is 3D printed and the input shaft is a Bic pen body that's had 1/4-20 threads cut into it. There's Allegro hall effect sensor attached to a small PCB that's hot-glued into the opposite end. There's two 3mm diameter magnets bracketing the sensor as it passes into the center of the Bic pen body.

Thanks to the link you sent, I was able to find something that is pretty much exactly what I was after:
https://www.kjmagnetics.com/proddetail.asp?prod=D42DIA

Thanks! biggrin

g.
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 04/05/15 08:00 AM

Originally Posted By: Troll
What is the difference between Allegro A1324 and the A1302?

Sensitivity read datasheet
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 04/05/15 08:02 AM

next step of optimization firmware resources.
does anybody use relative mode for axis?
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 04/05/15 04:26 PM

MMJOY2 [v20150405] release
Posted By: Red_Yeti

Re: MMJoy - Build your own USB controller - 04/05/15 04:27 PM

I don't use it.
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 04/06/15 02:27 PM

Originally Posted By: Troll

I'm thinking about putting the Hall sensor inside the hole, like when usin a Bic pen body and two magnets...

very good solution.
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 04/06/15 02:29 PM


finished work quadrant + trimmer
Posted By: Red_Yeti

Re: MMJoy - Build your own USB controller - 04/06/15 04:07 PM

Hey cool!
Any other pictures from the right and front side?
Posted By: tirta

Re: MMJoy - Build your own USB controller - 04/07/15 04:30 PM

Originally Posted By: mega_mozg_13
Originally Posted By: tirta
how do you connect GEN, SCK, SC and MISO from TLE5010 board to Arduino Leonardo?

sample how


Hi mega_mozg,

The only one I can find on that page is this one:


is the pinout arrangement the same for arduino leonardo?
for example:

F4 & F5 for SPI-CS
BI for SPI-SCK
B3 for SPI-MISO
B6 for TLE5010-GEN ?

please advise.
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 04/10/15 06:41 AM

tirta,
"B6" for TLE5010-GEN - this pin are shared for all TLE5010/5011 sensors.
"B3" for SPI-MISO - this pin are shared for all "SPI" sensors (TLE5010/5011/kma200/mcp3201-3208).
"B1" for SPI-SCK - this pin are shared for all "SPI" sensors (TLE5010/5011/kma200/mcp3201-3208).
"SPI-CS" - you can connect as you like, and where you connect CS-pin need to setup at configurator. this pin are individual to sensor. (F4 & F5 - just a sample).

also additional data line "SPI-MOSI" shared for "SPI" sensors mcp3202-3208.
Posted By: doveman

Re: MMJoy - Build your own USB controller - 04/10/15 11:55 AM

Originally Posted By: Bluedeath
@Sokol1 or anyone who knows that.
IS this the correct colo r code of the TM f16 flcs:

brown wire as +5V, green as ground, orange as clock, red as enable, and yellow as serial data out.

Is the same for the F22 pro?


I recently wired my TM F-16 FLCS to a Teensy 3.1 with SPI. Had a bit of trouble getting the code working but got there in the end with some help. You might find some useful information in this thread http://forums.adafruit.com/viewtopic.php?f=8&t=62188. gerryk who helped me there also has a F22 which he wrote the code for, which is available here https://github.com/gerryk/USBJoystick

I want to replace the rather jittery pots with hall sensors next. Can anyone advise whether these magnets would be suitable please? http://www.ebay.co.uk/itm/15-of-1-4-Cube...=item588582c61b
Posted By: Bluedeath

Re: MMJoy - Build your own USB controller - 04/10/15 12:54 PM

They're the one i used in my flcs i glued them over a plastic hexagonal core (kindly "donated" form a pen)
Posted By: doveman

Re: MMJoy - Build your own USB controller - 04/10/15 01:46 PM

Originally Posted By: Bluedeath
They're the one i used in my flcs i glued them over a plastic hexagonal core (kindly "donated" form a pen)


Great, I'll get those then. It'll give me plenty of spares to mod anything else I fancy doing as well smile
Posted By: ender6

Re: MMJoy - Build your own USB controller - 04/11/15 07:07 AM

Hi...anyone around on this thread still? I have some questions about SolderMonkey's Thrustmaster mod.

1) This FCS has a Mac ADB connector. I cannot really see it in the pics, but did he say he spiced in a USB connector on the PC side (and a microUSB on the Pro Micro side which is in the photos).
2) SolderMonkey uses a diode on his Pro Micro board. I'm not a big electronics guy so where's the other end of this diode connect? And which direction is it supposed to go?
3) Aside from flashing the Pro Micro, what else does one need to do once it's wired up?

Thanks in advance.
Posted By: Sokol1

Re: MMJoy - Build your own USB controller - 04/11/15 06:12 PM

Ender6

If the FCS are previously Mac or PC dont matter because none of this original circuits/connectors are used.

In that conversions you are assembly a "new USB" stick with old FCS parts and potentiomters (or not if opt for use HALL sensor).

In that case are used a Diode in ground pin on PRO Micro board.

This ground pin are wired to all HAT and buttons:

http://simhq.com/forum/files/usergals/2014/11/full-38364-90920-img_2272.jpg


Diode are used to avoid "ghost"* buttons - a "collateral effect" in matrix wiring.
Since FCS has few buttons (4) only one diode are sufficient.

If the joystick have many buttons maybe will be necessary use one diode in each button or HAT connection.

* Matrix ghosting effect appear if more than 3 buttons are pressed simultaneous:
http://www.dribin.org/dave/keyboard/one_html/
Posted By: SolderMonkey

Re: MMJoy - Build your own USB controller - 04/19/15 04:42 PM

Ender, Believe it or not, the pro micro and MMJoy will let you work with the diode either way. You just need to reverse your switch rows and columns if they don't work. I soldered the diode with the stripe towards the board. Ended up with rows and columns switched versus what it was in my mind. Lesson learned. The diode just keeps current from feeding back through the lines and hopefully prevents one switch from firing multiple switches.

Connectors - use the existing cable if you can. This gives you a nice looking, stress relieved cable at the joystick. Who cares if there is a weird looking splice way down the cable. It's under the table right? By re-using the existing cable, you get a pretty and tough cable at the end you're going to be messing with it.


Cut off the original joystick port connector as far away from the joystick as you can get it. This will give you a very long cord. From there, buy a 3 foot standard micro USB cable. Cut the USB cord about a foot from the micro USB connector. Inside the microUSB cable, you'll find four colored wires and sometimes a bare ground wire. Red is 5 volt, black is ground and then white/ green are your USB data lines. You can wire black and ground together if you want. Find conductors in the original cable and match them up - Color1 to black, color2 to red and so on. Whatever colors you choose, just don't cross them. You want to make a straight up splice into the USB cable.


For splices that hold up and are fairly fast, take 2 or 3 zip ties, hold the wires together and zip tie off about 2 inches. From there, solder and heat shrink your individual wire splices. Cover the whole thing with heat shrink again, over the zip ties. I've never had a splice fail using this method.



Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 04/24/15 06:04 AM

Boys, does anybody have disassembled "Logitech G940 stick" fotos?
Posted By: Sokol1

Re: MMJoy - Build your own USB controller - 04/24/15 01:45 PM

Some pictures of stick here - surprisingly, ball bearings.eek

http://forums.logitech.com/t5/facebookfo...b/board/page/34

Inside grip:

http://forums.eagle.ru/attachment.php?attachmentid=89929&stc=1&d=1382536949
http://forum.il2sturmovik.com/uploads/monthly_01_2014/post-7156-0-90454800-1390372350.png
http://forum.il2sturmovik.com/uploads/monthly_01_2014/post-7156-0-29492200-1390372353.png

Throttle - the most problematic part (the infamous short wires):

http://simhq.com/forum/ubbthreads.php/topics/2973351/all/My_G940_Throttle_Has_Turned_In
http://simhq.com/forum/ubbthreads.php/topics/3323724/all/G940_MOD!_(Warning_large_pictu
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 04/24/15 01:52 PM

Sokol1, THANKS!!!
Posted By: tirta

Re: MMJoy - Build your own USB controller - 05/01/15 08:08 AM

Hi megamozg,

I have just updated my mmjoy from version v20150121 to the latest vesion v20150405.

However, with v20150405, my buttons are not detected correctly.

With v20150121, I get all of my 37 buttons detected correctly,
with v20150405, I get only 18 buttons.

I have tried to reverse the rows and columns,
but I get the same result.

These are the screenshots:


v20150121 - no error, everything works perfectly.





v20150405 - only 18 out of 37 buttons detected.
And if you look closely at button matrix (state), no 32 is always on.


What is different with the new version?
Why is it not compatible with the old version?
Please advise.

One more thing, the joystester page is also messed up.
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 05/03/15 04:56 AM

tirta
Posted By: tirta

Re: MMJoy - Build your own USB controller - 05/03/15 03:59 PM

Hi mega_mozg,

thanks for the reply.

the button 13 should be 14.
yes, I know the error, and I have already fixed it.

however, the problem remains,
I still get 18 buttons detected.
why is that?
do I need to reverse column and row?

now I have used v20150121 again,
with this version, there is no error and I get 37 buttons detected again.

Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 05/03/15 06:14 PM

tirta

my throttle control have 31 buttons(this not 37 but much more 18), no errors...
Posted By: Sak75

Re: MMJoy - Build your own USB controller - 05/04/15 10:48 AM

hello
I have a question , why did you use the encoder ?

I looked up and down the post but not so that you can use.

And its posible add a vumetro to a hall sensor (throttle) for indicate with leds the throttle?

thanks
Posted By: tirta

Re: MMJoy - Build your own USB controller - 05/04/15 01:13 PM

Hi mega_mozg,

out of curiosity, I try flashing v20150405 again.
however, even after reset and clear,

if I reverse column and rows,
the button no 32 is always on.



if not,
the button no 60 is always on.



with v20150121,
there is none.

can you please let me know what is different between these versions?
please help.
Posted By: Bolelas

Re: MMJoy - Build your own USB controller - 05/04/15 09:17 PM

About MaRS sensors (TLE5010 or TLE5011), does the board/software supports all the 8 axis with this type of sensor, or it is limited?
It also supports 6 rotary encoders? ( i was told that were only 4...)

Thank you very much for your work Mr MEGA_Mozg.
Posted By: zeg33

Re: MMJoy - Build your own USB controller - 05/05/15 03:58 PM

Hi mega_mozg

is there any way to use the magnetic analog stick in sony PS3 controler



Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 05/06/15 05:36 AM

Bolelas, no limits. But this is not MARS! "MARS" is VKB Njoy32 native sensor (also used at Defender Cobra M5).
zeg33, need a datasheet, I dont know how to use signal from "poles".
Posted By: Sokol1

Re: MMJoy - Build your own USB controller - 05/06/15 03:05 PM

I had no experience with SMD parts. Get some TLE5010, but is difficult find here the SMD components listed in TLE5010 PCB layout.

I notice that in assembled TLE5010 board is used 27(OHM) resistor instead 50(OHM), and one ceramic capacitor was omitted.
This difference is intentional, for different angle reading?
In this case what the value for the ceramic capacitor used?


20mb image hosting

Other than the size of board has inconvenient in use conventional components (resistor, capacitor) instead SMD? They are more easy to find here.


free uploader
Posted By: Bolelas

Re: MMJoy - Build your own USB controller - 05/06/15 05:46 PM

Yep, i was good if we could just place the sensor and drive those components connections to other place bigger, with bigger components.
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 05/07/15 06:06 AM

Sokol1.
"SMD1206" are biggest from SMD - not hard to solder, and don't need drilling holes...
TLE5010 pcb components:

R1-R4 - 10-100 OHM, optional. for protecive on long wires.
R5-R6 - 1-10 kOHM, required. need to hold up "data" and "select" digital lines.
C1 - 0.1uF (ceramic 104), required. used on all sorts of applications to decouple ICs from power supplies.
C2 - 10uF (tantal A), optional. these capacitor are great transient/surge suppressor.

also, TLE5010 and TLE5011 fully compatible, but better to use newest TLE5011.

boys, I have some commercial offer:
if you cannot assemble and solder PCB-TLE5010 I can help you.
1 pcs - 10$ + registered mail shipping (~5$).
Posted By: tirta

Re: MMJoy - Build your own USB controller - 05/08/15 03:07 PM

Hi mega_mozg,

If I use TLE5010 for X and Y axis,
and I have 5 other axis using HALL,
and I use arduino leonardo,
how many pins left for rows and colums for button?

how many buttons can I have?
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 05/11/15 05:24 AM

Originally Posted By: tirta

If I use TLE5010 for X and Y axis, and I have 5 other axis using HALL, and I use arduino leonardo,
how many pins left for rows and colums for button? how many buttons can I have?


Let's calculate, as-is without any optimization:
1) "Leonardo" have 20 pins.
2) "TLE5010-GEN" (pin B6) common for all TLE5010/TLE5011, balance (20-1)=19 pins.
3) "SPI-MISO" (pin B3) common for all SPI sensors, balance (19-1)=18 pins.
4) "SPI-SCK" (pin B1) common for all SPI sensors, balance (18-1)=17 pins.
5) "SPI-CS" (any pin) unique for each SPI sensor, balance (17-2)=15 pins.
6) "VCC" + "GND" - don't calculate
7) 5 pcs. halls (any pins with "AI" ADC), balance (15-5)=10 pins.
8) with 10 pins, you can build 5*5=25 buttons matrix.

with simple optimization added one "mcp3208" for halls:
1) "Leonardo" have 20 pins.
2) "TLE5010-GEN" (pin B6) common for all TLE5010/TLE5011, balance (20-1)=19 pins.
3) "SPI-MISO" (pin B3) common for all SPI sensors, balance (19-1)=18 pins.
4) "SPI-MOSI" (pin B2) common for all SPI sensors, balance (18-1)=17 pins.
5) "SPI-SCK" (pin B1) common for all SPI sensors, balance (17-1)=16 pins.
6) "SPI-CS" (any pin) unique for each SPI sensor, balance (16-3)=13 pins.
7) "VCC" + "GND" - don't calculate
8) with 13 pins, you can build 6*7=42 buttons matrix.
Posted By: mskurnik

Re: MMJoy - Build your own USB controller - 05/11/15 02:58 PM

Does MMJoy supports something like SparkFun Analog/Digital MUX Breakout - CD74HC4067 (http://www.digikey.com/product-detail/en/CD74HC4067M96/296-29408-2-ND/1507236)
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 05/12/15 08:15 AM


no
Posted By: mskurnik

Re: MMJoy - Build your own USB controller - 05/12/15 09:57 PM

Thanks. Are you guys planning on switching to GitHub or something else since Google Code is now defunct?
Posted By: Sokol1

Re: MMJoy - Build your own USB controller - 05/22/15 06:43 PM

Originally Posted By: zeg33
Hi mega_mozg

is there any way to use the magnetic analog stick in sony PS3 controler





Mega-Mozg,

On Arduino forum the guys say that this PS3 stick use HALL sensor "dual output" (think that X, Y axis), SENTRON 2SA-10, datasheet:

http://www.gmw.com/magnetic_sensors/sentron/2sa/documents/2SA10.pdf

If are suitable for use with MMJoy is good because these PS3 stick (with 2 sensor) is cheap on eBay, and ready to use including magnets.



Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 05/23/15 06:18 AM

analog stick in sony PS3 controler
now I understand, "2SA-10" like "KMZ60/KMZ41/TLE5010", so it must be usable with "mcp3202" ("KMZ60+MCP3202" at configurator sensor type).
Posted By: mskurnik

Re: MMJoy - Build your own USB controller - 05/27/15 04:47 AM

How would you go about creating a button matrix that contained a few switches that have a built-in LED? I have 3 safety toggle switches that light up and have power, acc, and ground. I can read the data fine if I only connect power (from the column) and ACC but once I connect the ground to the ground on the microcontroller, the state of the other buttons on that lock into the on position when I turn the switch off. I tried adding a diode to the ground but that didn't work. Does anyone have a wiring diagram on how to do this?
Posted By: Sokol1

Re: MMJoy - Build your own USB controller - 05/27/15 07:29 PM

Whit DPDT swith you use one pole for (game) button press and another pole to turn ON/OF the LED - connected in +5V and GDN.

https://www.google.com.br/url?sa=i&rct=j&q=&esrc=s&source=images&cd=&cad=rja&uact=8&ved=0CAcQjRw&url=http%3A%2F%2Fsimhq.com%2Fforum%2Fubbthreads.php%2Ftopics%2F3357605%2Fall%2FQuestions_regarding_making_a_s.html&ei=dBpmVZyTNcPSsAXRtoHwDw&bvm=bv.93990622,d.cWc&psig=AFQjCNGJcB8R_7YCI5gsRcPXLN0VNcjtYw&ust=1432841109230432
Posted By: mskurnik

Re: MMJoy - Build your own USB controller - 05/27/15 08:22 PM

The problem I have is the switch I have only has the 3 pins I mentions. I does not have a separate set of pins for the LED.

They are 3-pole SPST switches that I got when the store was going out of business. http://comingsoon.radioshack.com/12vdc-t...-U&tab=tab1
Posted By: Sokol1

Re: MMJoy - Build your own USB controller - 05/27/15 10:00 PM

Wrong switch for wiring in matrix...

Maybe using relay, see this "pulse" circuit, when the switch is closed (and in your case light the LED) the relay send a momentary press for controller.

http://desktopaviator.tripod.com/Articles/USB_Switches/index3_files/image013.gif
http://desktopaviator.tripod.com/Articles/sch.gif

http://desktopaviator.tripod.com/Articles/USB_Switches/index3.htm
Posted By: Bolelas

Re: MMJoy - Build your own USB controller - 05/28/15 11:21 PM

To Mr mskurnik:
The DPDT (double pole, double stroke) Switch are like twin switches side-by-side operated by the same lever. They are not electricaly connected, but it is as if theyr levers were welded. One Side for game (3poles), other for LED (3 poles). If one is ON, the othe is also ON.
With this type of switch (it has usualy 6 pins) you can also have one LED for ON, another for OFF (good for landing gear), even if you have only one button from the game. (of course you can connect 2 buttons from the game also).
Get a DPDT switch has Mr Sokol suggested, they are cheap and easy to find.
Posted By: f15sim

Re: MMJoy - Build your own USB controller - 05/29/15 04:16 PM

If you're not aware, a DPDT switch is essentially two separate switch mechanisms activated by the same mechanics. They're not electrically connected to each other inside the switch body.

g.
Posted By: mskurnik

Re: MMJoy - Build your own USB controller - 05/29/15 11:38 PM

F15Sim I was aware but I had these switches and they looked nice so I wanted to use them.

Funny thing is it turns out that I never checked which pins on my breadboard were rows and which were columns. I just assumed that I had plugged the column jumpers to the top of the board and the rows to the bottom. So I was plugging the power pole into the matrix's row instead of the matrix's column thus causing the row to ground itself and activate all of the switches.

Here is how I wired it.
Power -> 220 ohm resistor -> Column N
ACC -> Row N
Ground -> Ground
Posted By: Czary

Re: MMJoy - Build your own USB controller - 06/11/15 02:54 PM

Hello, and thank you for the great project !
What I would like to do, is to make my F16 FLCS/TQS work again using this setup (master/slave boards with Arduino Pro Micro). What I don't undertand is - as you put master board into stick base and slave into throttle - how do you connect both boards ? I can't see any connections between those two extension boards.
Best regards.

Originally Posted By: mega_mozg_13
and some pictures from me.
base joystick: Saitek X35-X36/Suncom F15.
electronics: MMjoy2 ProMicro, simple extension boards, Hall's Allegro A1324 (X/Y/Throttle).

handmade aluminum bearings mechanics:



ring magnets + Halls:


base for stick:


base for throttle:


stick assemble:



stick 'Saitek':


stick 'Suncom':



rubber pads:


extension board scheme:


firmware configuration:

Posted By: Sokol1

Re: MMJoy - Build your own USB controller - 06/11/15 03:26 PM

The throttle is connected to USB controller board inside joystick base with this multiply wires cable with yellow tape on connector, right of Arduino controller (the original gameport cable, I think):



You can fit a DB-15 connector in joystick case to plug/remove throttle if want, in this case reuse the TQS DB-15 connector - is need map the pins with multimeter.

In TQS you need 3 axis - 3 wires
+5V and GND - 2 wires


If TQS gameport cable has 15 internal wires (in some gameport sticks the cable dont have), you have 10 remaining wires to combine in matrix for handle the TQS 14 buttons (if use a HAT in thumb control), e.g a 4x4 matrix (3x5...).

Or, if want fit a mini-stick (PS2 style) in place of the thumb controller in TQS (a pressure device that probable dont work with analog USB controller, and anyway work bad even in brand new TQS):

5 wires for axis (3 TQS, 2 mini-stick)
2 for +5V and GND
10 buttons

So you have 8 wires for combine in matrix for control the buttons. 3x4 = 12 (4x4...)

In this CH Combatstick + CH PRO Throttle (Bu0836), due the need of 20 wires for throttle I use 2 cables between stick and throttle:

http://i62.tinypic.com/i74lyu.jpg

Or, if you dont plan play old games of fly in FPS games (BF...) as they have joystick restrictions, ones recognize only 1, fit one controller (MMjoy) inside each controller and avoid this cable mess. wink
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 06/12/15 08:11 PM

MMJoy2 + TQS/FLCS = just work in prigress!!!
http://forum.il2sturmovik.ru/topic/3027-mmjoy2-i-thrustmaster/
Posted By: Starfighter

Re: MMJoy - Build your own USB controller - 06/14/15 10:05 PM

Hey guys, I have a quick question. Is it possible to rebind an axis as digital inputs? In other words, if I want to rebind analog thumb stick to be a 4 way digital hat, is there a way to do that?

Edit: Ok, just noticed Axis To Button for the first time, but I'm not sure how to use it - the values aren't labeled in the app.
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 06/15/15 02:27 AM

Originally Posted By: Starfighter

Axis To Button for the first time, but I'm not sure how to use it - the values aren't labeled in the app.


try translate from russian
https://forum.warthunder.ru/index.php?/topic/64234-mjoy-mjoy8-mjoy16-mmjoy/page-39#entry4231024
Posted By: Sokol1

Re: MMJoy - Build your own USB controller - 06/15/15 03:24 AM



1 - Button that will be pressed with the axis of movement, eg. button 33
2 - Axis that will press the button, eg. axis 6
3 and 4 - Minimum and maximum vale of axis band that will be converted in button press, eg. 0 and 48%

Then set other Axis to Button using the same axis:
1 - Button 34
2 - Axis 6
3 and 4 - 52% and 100%

So moving the axis 6 up and down (or left and right...) will be press respectively button 34 (up) and button 33 (down), in the middle (49-5-51%) of axis no button is pressed.

As you can create 4 button press with the Axis to Button function and the mini-stick has 2 axis, you can set then as 4 way HAT.
Posted By: Starfighter

Re: MMJoy - Build your own USB controller - 06/15/15 03:53 AM

Still having trouble, going to experiment a bit more.

Edit: Is it a % or a set value, eg 0-1023 for 10 bit?
Posted By: Sokol1

Re: MMJoy - Build your own USB controller - 06/15/15 03:59 PM

Axis value is not in % (I use for reference), is in resolution points, look in this picture:

https://forum.warthunder.ru/uploads/monthly_03_2015/post-15009-0-16818800-1426868202.jpg

MMjoy is 12 bytes = 4096 points. Try with 0-1000 and 3096-4096.
Posted By: FlyerZ

Re: MMJoy - Build your own USB controller - 06/22/15 12:37 AM

Hi mega_mozg,

Many thanks for developing the mmjoy2 software.

I'm using V20150121 on an Arduino Leonardo R3 (ATMEGA32U4), to make an autopilot/nav radio controller for X-Plane.
I will be using more than 48 buttons including six rotary encoders for the job.
I will only be using three of the available internal analogue inputs, so I have plenty of input pins available.

What are the recommended values for 'Buttons debounce (ms)' and 'Pulse length (ms)'?
I have noticed that if 'Buttons debounce' is set to more than just a couple of milliseconds, that the encoder outputs become irregular/unreliable.

The rotary encoders give 20 pulses/rev, and output a 2-bit gray code.
I notice that the later version of your software don't have the debounce and pulse length settings options available.

Many thanks,
Steven.
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 06/28/15 06:36 AM

FlyerZ and all
new update MMJOY2 [v20150626] https://sites.google.com/site/mmjoyproject/fajly-dla-skacivania
here 64 buttons + 6 encoders, plus new features "Timers" for encoders try from 16-32ms, also new "Shift" button.
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 06/30/15 07:49 PM

MMJoy2 + WarThunder = RGB LED output
https://www.youtube.com/embed/Cxp79iZQJGw
Posted By: Euphoria

Re: MMJoy - Build your own USB controller - 06/30/15 08:17 PM

Very nice work Mega_mozg!

Can you explain how to use "Shift" function? When I assign shift to a toggle switch, and configure buttons to use Shift 1, both unshifted and shifted buttons activate.



Posted By: FlyerZ

Re: MMJoy - Build your own USB controller - 06/30/15 11:17 PM

Originally Posted By: mega_mozg_13
FlyerZ and all
new update MMJOY2 [v20150626] https://sites.google.com/site/mmjoyproject/fajly-dla-skacivania
here 64 buttons + 6 encoders, plus new features "Timers" for encoders try from 16-32ms, also new "Shift" button.


Many thanks mega_mozg.

I will try a 16-32ms pulse length for the encoders.

Steven.
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 07/01/15 06:21 AM

Originally Posted By: Euphoria

Can you explain how to use "Shift" function?
When I assign shift to a toggle switch, and configure buttons to use Shift 1, both unshifted and shifted buttons activate.

Yes it is right by buttons intergnal politics:
"button 1" work only from "hw.button 1" without any other conditions;
"button 9" work with "hw.button 1"(main) + "hw.button 13"(shift);

so you need switch shift with 3 positions "on-off-on" and add second shift to "button 1".

sample, Combra M5:



Posted By: Sokol1

Re: MMJoy - Build your own USB controller - 07/01/15 03:31 PM

If I understand, the shift is a "mode" selector, like in X-52 or Defender Cobra M-5.

Allow each physical button press 1(?) virtual button if "shift" are ON.

Posted By: Jaylo

Re: MMJoy - Build your own USB controller - 07/13/15 03:43 PM

Amazing work mega_mozg!

This is really helping me with my custom racing cockpit as well as some hand controls I'm building for a friend of mine who's son is disabled and needs hand controls.

I am struggling a bit with getting my pots to work. I've tried several and can't get them to show up as an axis.

The other issue I'm having is with rotary encoders. It seems they only recognize every 4th pulse in either direction.

One last question - is there a way to cause a switch to act as a momentary press? I.E. when switch is "on" show as a button press, then when the button changes state to "off" show as press again? I tried an on-off switch in all different modes, but none seemed to replicate the action I was looking for.

I have the latest version, updated on July 9th. I hadn't tried any other versions of the software, as this one seems to be the latest and has the encoder timer function which I find I need.

Thank you so much for this config utility. It is really great. I have a friend travelling to Russia next week - I'm so thrilled I could send her to hug you!

Thanks,
Jason
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 07/14/15 05:19 PM

hi to all,
does anybody use 32 or more buttons?
Posted By: Euphoria

Re: MMJoy - Build your own USB controller - 07/14/15 09:51 PM

On my throttle base, I use 62 buttons, including rotary encoders
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 07/17/15 06:20 PM

update MMJOY2 [v20150717]



now mmjoy is a composite device joystick + mouse (3 buttons + 2 axis) + keyboard (mapping up to 10 any keys)
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 07/17/15 06:21 PM

sorry for russian texts on pictures winkngrin
Posted By: xaoslaad

Re: MMJoy - Build your own USB controller - 07/18/15 12:36 AM

Can this be used to set up rotary encoders? Is there anything special to it? I wanted to give a try just setting up a controller with three rotary encoders, maybe with an Arduino Leonardo, but I am very new to this stuff.

Thanks in advance for any help/response!
Posted By: Sokol1

Re: MMJoy - Build your own USB controller - 07/18/15 03:27 AM

Look in the picture (posted above), bellow left side, just above the button "Windows Joystick". wink

http://simhq.com/forum/files/usergals/2015/07/full-37484-105241-mmjoy2combram5.png

BTW - Read the first post to see what are the compatible Arduino boards.
Posted By: xaoslaad

Re: MMJoy - Build your own USB controller - 07/18/15 05:19 AM

Thank you for the hint. I think I am starting to understand and will manage to make it work if I put my mind to it. I might have some questions, but I watched some tutorials about connecting encoders to an Arduino:

https://www.youtube.com/watch?v=HQuLZHsGZdI

which had somewhat different wiring from:

https://www.youtube.com/watch?v=p18UayMMIWk
https://www.youtube.com/watch?v=FGxLXqzPe3Q

But I see from the second that the capacitors they both used are probably a good idea to protect against bounce?

Anyway, I'll have some fun/frustration tinkering when the stuff arrives, I am sure. If I can get it working on a breadboard like this I'll look to make a smaller and more permanent version and boxing it up pretty.
Posted By: Sokol1

Re: MMJoy - Build your own USB controller - 07/18/15 02:39 PM

Remember that MMJoy firmware for (some) Arduino boards is for joystick controller, encoder should be connected in this way, using diodes (1N4148...) - to avoid "ghost" press:

http://simhq.com/forum/files/usergals/2014/08/full-37484-85623-pins_common.png

In the linked videos I dont know the purpose of encoder, maybe are for use in audio volume control, or steep motor control...

So, depends of intended use maybe MMjoy firmware is not suitable for your purposes.
Posted By: Czary

Re: MMJoy - Build your own USB controller - 07/20/15 10:53 AM

Originally Posted By: mega_mozg_13
MMJoy2 + WarThunder = RGB LED output
https://www.youtube.com/embed/Cxp79iZQJGw


Awesome ! jawdrop Now I see that my hope for building Hurricane gear indicator may come true whoohoo
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 07/20/15 01:16 PM

Czary.
not only gear.
srart warhunder go to fly, and open browser http://127.0.0.1:8111/state or http://127.0.0.1:8111/indicators
here a lot data from game.
Posted By: Vindicore

Re: MMJoy - Build your own USB controller - 07/20/15 08:14 PM

Hi all - some really impressive work in this topic!

I am interested in using MMJoy2 to add a couple of thumbsticks and extra buttons to my cheap Thrustmaster Hotas X (cant afford an off the shelf better Hotas) to make it better. I initially followed this old guide to add a single one of these thumbsticks to the throttle but now I want more and that little guide will no longer help, so I have simply switched to MMJoy2 which was much easier to set up and get working. I am a novice when it comes to electronics so I likely have some pretty basic questions.

First question: if you look at that guide I have used a GND, VCC, A3 and A2 pins for the thumbstick which works just fine with MMJoy2 if I want to add a second thumbstick I would use A1 and A0, but do I simply connect that to VCC in parallel with the original thumbstick I put in?

Second question(s): I only want to add at most 8 buttons so I presume that I do not need a button matrix? Looking at SolderMonkeys set up on page 14 that seems to be the case. If that is true do I simply connect the buttons from the left hand side numbered pins on the Pro Micro through to the RX B(D2) pin? Do I need a diode to connect them to that D2 pin to prevent ghost clicks?

Third question: if I wanted to use some toggle switches instead of momentary push buttons what extra work would it require?

As I say I am just getting started so thanks in advance; really excited to give this more of a go.
Posted By: Dplus12

Re: MMJoy/MMjoy2 - Build your own USB controller - 07/22/15 01:03 PM

After lurking on this thread for awhile, I finally got everything set up for my X36/X35T... and besides issues with the original DB15 connector (new one is coming in the mail), I'm having issues with the MCP 3208 and setting up the axes...

I'm only getting a couple to show up, and they are not on the channel they are supposed to be (Joystick X, and Y are both showing on channel 1, Throttle is showing up on channel 2 instead of 4, etc), is my MCP3208 damaged? Also, all the documentation I can find for setting up curves and all the hundreds of settings for the axes are from Google-translated Russian, so I'm having a hard time figuring out if there is something else I should tweak. I'm by no means an electrical engineer so this has all been a great learning experience.

Thanks all!
Dplus12
Posted By: Sokol1

Re: MMJoy - Build your own USB controller - 07/22/15 04:53 PM

Originally Posted By: Vindicore

First question: if you look at that guide I have used a GND, VCC, A3 and A2 pins for the thumbstick which works just fine with MMJoy2 if I want to add a second thumbstick I would use A1 and A0, but do I simply connect that to VCC in parallel with the original thumbstick I put in?



Each "thumbstick" has 2 axis inputs plus +5V (VCC) and GND pins.

In MMJoy each axis need a exclusive input, but the +5V VCC and GND can be shared with all axis used.

Quote:

Second question(s): I only want to add at most 8 buttons so I presume that I do not need a button matrix? Looking at SolderMonkeys set up on page 14 that seems to be the case.


Depends on how many buttons is need press at same time the ghost eventually can happen.

Do a test, if ghost appear, add diodes - is simple and cheap.

Quote:

Third question: if I wanted to use some toggle switches instead of momentary push buttons what extra work would it require?


No, but for work in games as ON and OFF will be need a keymapper software with function "mapped key on press" and "mapped key on release" because games are in general designed for momentary commands only and most functions are mapped for press a button to engage, press the same button again to disengage.

Without the software will be need toggle switch ON to - for example - turn ON navigation lights and turn the toggle switch OFF and ON again to turn OFF the navigation lights... awkward and spoil the visual feedback of ON/OFF state of the switch.

If the game allow map one key/button for toggle the lights ON and other to toggle OFF using a DPDT toggle switch you get the correct operation expected for the the toggle switch: Up ON, down OFF.

Or by adding a extra hardware with optocouplers/relay/condenser to translate the ON and OFF states of toggle switch in momentarily key press. Some USB controller cards do this in firmware, example Desktop Aviator ones, the old Mjoy16 too for some inputs.
Posted By: Vindicore

Re: MMJoy - Build your own USB controller - 07/22/15 05:22 PM

Awesome thanks Sokol; I am part way through adding the second thumbstick now! Edit: Completed and working great, just need to get it off the breadboard and sort out the cables...

Also got a bunch of diodes just in case I need them when I add the buttons.

Regarding the toggle switches I may just get some of the momentary style ones... not as satisfying though.
Posted By: Vindicore

Re: MMJoy - Build your own USB controller - 07/27/15 11:18 PM

Can anyone recommend a type of encoder for me to use; my local stores have nothing sadly so I need to order some?
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 07/28/15 03:58 AM

Originally Posted By: Vindicore
Can anyone recommend a type of encoder for me to use; my local stores have nothing sadly so I need to order some?


Hi, I use regular rotary encoder from china.
http://www.ebay.com/itm/10pcs-12mm-Rotar...=item1e90852a00
Posted By: xaoslaad

Re: MMJoy - Build your own USB controller - 07/28/15 06:44 AM

Are encoders supposed to appear as two buttons or as an axis? For me they show as two buttons. That surprised me some, but thinking about it I could guess why it might be necessary, although then I wonder why the special configuration...
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 07/28/15 07:15 AM

Originally Posted By: xaoslaad
Are encoders supposed to appear as two buttons or as an axis? For me they show as two buttons. That surprised me some, but thinking about it I could guess why it might be necessary, although then I wonder why the special configuration...

with 3 buttons you can build "virtual axis" (1 button - axis step up, 2 buttton - axis to center, 3 button - axis step down).
encoder with push just give to you 3 buttons.
Posted By: xaoslaad

Re: MMJoy - Build your own USB controller - 07/28/15 05:33 PM

What am I doing wrong with configuring the encoder?

As soon as I add the buttons to the encoder list it stops working whether I put them in the list on the right. I get three buttons but I can only activate the push button.

If I remove the encoder settings I get three buttons and as I turn the rotary I see both of the switches make contact in order. either 2 3 or 3 2 depending on which way I turn it.

I don't think the wiring is screwed up, just my software configuration.




Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 07/29/15 02:49 AM

xaoslaad
1) check buttons with VKB_BtnTester (with "Show log" option)
2) try to add delay timer for encoder
Posted By: xaoslaad

Re: MMJoy - Build your own USB controller - 07/29/15 03:46 AM

Thanks!!! The timer was the missing piece. I could see in the show log section it was working as expected, without the timer I guess it was just too instantaneous to light up in windows or do anything in the game.
Posted By: Czary

Re: MMJoy - Build your own USB controller - 07/29/15 08:26 AM

Hello ! I've just started using my scratch build rudder with ProMicro and TLE5010 sensor. Rudder works perfect (the 12bit sensor resolution is awesome thumbsup), but I need to solve two things :

1. Rudder freezes every time I restart the system and I need to unplug and plug it back in to work.

2. As I send firmware to rudder controller for the first time I've forgot to change its name. Later as I set everything up as needed, I also changed the name to TLE5010 Rudder. It reports with correct name at Devices and Printers, but at the Game Controler properties or WT controls the name is MMjoy2 (If I build another device, I'm afraid of conflicts as controllers will use the same name).



Posted By: xaoslaad

Re: MMJoy - Build your own USB controller - 07/29/15 10:52 AM

I made the same mistake at first. I think all it took was the clear registry button on the firmware page and to remove it and plug it back in.
Posted By: xaoslaad

Re: MMJoy - Build your own USB controller - 07/29/15 11:27 AM

mega_mozg_13,
Thanks again, as buttons the encoder works great!

I was playing with it as a virtual access before you showed me the Timer piece and managed to get that working, however it bounces pretty crazily, as I would pretty much expect if it's not configured to account for it being an encoder. But when I configure the buttons as an encoder they seem to stop working for the axis. I'm just trying to learn the ins and outs of both configurations before settling on either one. Thanks again for the great software!

Is there a way to get rid of the bounce with the virtual axis too? Thanks!
Posted By: xaoslaad

Re: MMJoy - Build your own USB controller - 07/30/15 12:12 AM

This is what I have working:
https://www.youtube.com/watch?v=KZSS8IY-dxE

Looks like I need to find a 3d printer. I designed a case to attach to the back of my throttle, that is pretty close. Need to do a print and make any minor adjustments and I should be all set!
Posted By: Czary

Re: MMJoy - Build your own USB controller - 07/30/15 06:12 AM

Thank you very much - now the name is correct.
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 07/30/15 03:20 PM

Originally Posted By: Czary

1. Rudder freezes every time I restart the system and I need to unplug and plug it back in to work.

Dzien dobry. Did you test this error with "20150727" firmvare?
Posted By: xaoslaad

Re: MMJoy - Build your own USB controller - 07/30/15 04:31 PM

mega_mozg_13,
With some more playing around I got the encoders to work as virtual axes.

I was toying with the idea of adding a toggle switch to shift them from behaving as axes and buttons.

It only sort of works. The buttons only work if the toggle is flipped and shift 1 is on, but the virtual axis work either way. Is there a possibility of adding an optional shift state to the virtual axis as well?



Thanks!
Posted By: Czary

Re: MMJoy - Build your own USB controller - 07/30/15 05:51 PM

Zdrastvujtie !
I've used "20150727" version only. But my concern is the firmware tab - I havent touch anything and left it default, which looks like this :

Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 07/31/15 05:28 AM

Czary, "ED tracker" working as USB-HID or USB-CDC(com port)?
"COM1" not a arduino bootloader.
try this - "start bootloader" click "COM Port list" while you see second "COMyy" port. and manual write "COMyy" to "Port(arduino)".
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 07/31/15 09:30 AM

Originally Posted By: xaoslaad

Is there a possibility of adding an optional shift state to the virtual axis as well?

right now - no way. need a time to thinking.
Posted By: Czary

Re: MMJoy - Build your own USB controller - 07/31/15 08:52 PM

Hope this helps- these are screens from USBDeview, for EDtracker, then TLE5010 Rudder before and after unplug/plug proceedure. I see that ED tracker works as USB-Communication device.





And after "Start bootloader" and "COM Port List" i see 2 of them - COM1 and COM5.
Posted By: Czary

Re: MMJoy - Build your own USB controller - 08/01/15 09:20 AM

Now I see that I might have done all wrong : first I use this type of Pro Micro :

as you can see on the PCB it's a Pro Micro but using a bigger PCB- it's wider and uses Mini USB connector.

Then I missed this step compeletly :
http://www.geneb.org/mmjoy2/pro-micro-instructions.pdf

In the end, when I use "Start bootloader" in MMJoy2 and look at the Device Manager on COM ports, I see it reports as "Pro Micro 5V" without any "Arduino Leonardo Bootloader COMXX" device. Yet before I've disconected the EDTracker so that's why COM5 is missing now on the COM port list.
Posted By: Czary

Re: MMJoy - Build your own USB controller - 08/01/15 10:24 AM

And this is what happens when I start bootloader and try to upload firmware :
Posted By: Sokol1

Re: MMJoy - Build your own USB controller - 08/01/15 03:41 PM

A colleague had problems with these (eBay) "clone" PRO Micro, seem that some don't come with bootloader, in Aliexpress page someone suggest use the Sparkfun procedures and files for write the firmware, what he did with success.
Posted By: xaoslaad

Re: MMJoy - Build your own USB controller - 08/07/15 06:20 PM

This is how my custom controller mod ended up smile

I may add more rotaries, buttons, or switches in time. I left the enclosure big with the intention of just printing a new cover in the future when I decide to add more.

Posted By: hunter1

Re: MMJoy - Build your own USB controller - 08/09/15 06:37 PM

Sorry , i'm very noob and have a very old joystick zykon joyrider pro 4in1 whit gameport DB15 . it's possible connect a DB15 port on arduino pro micro and know the right connections pin to to pin to use the joystick to the usb ? Thank you
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 08/09/15 06:59 PM

Originally Posted By: hunter1
Sorry , i'm very noob and have a very old joystick zykon joyrider pro 4in1 whit gameport DB15 . it's possible connect a DB15 port on arduino pro micro and know the right connections pin to to pin to use the joystick to the usb ? Thank you

Hello. can you make fotos? Better open case and search where cable connects directly to pots/buttons or connect to MCU...
Posted By: hunter1

Re: MMJoy - Build your own USB controller - 08/09/15 07:57 PM

Originally Posted By: mega_mozg_13
Originally Posted By: hunter1
Sorry , i'm very noob and have a very old joystick zykon joyrider pro 4in1 whit gameport DB15 . it's possible connect a DB15 port on arduino pro micro and know the right connections pin to to pin to use the joystick to the usb ? Thank you

Hello. can you make fotos? Better open case and search where cable connects directly to pots/buttons or connect to MCU...

Thank you for your response , but can't use arduino pro micro like a universal joystick adapter ? gameport to usb ? DB 15 port have only 15 pins , we need only a universal gameport adapter whir 3 axis , 1 throttle , one hat switch and some buttons....

Posted By: Sokol1

Re: MMJoy - Build your own USB controller - 08/10/15 03:18 PM

With a Gameport to USB adapter, you still having the limitations of the old joystick, the potentiometers wired as resistance, more "noise", few buttons, probable 4 bits of resolution...

Wiring the old joystick "mechanics" in a new USB controller, you improve the resolution to 12 bits, can replace the pot' with HALL sensor, can use more buttons, axis, filters...and can end with a better joystick than these low cost that you can buy.

Anyway the best Gameport>USB adapter is Rockfire, for the price dont worth building your own:

http://www.amazon.com/game-Adapter-Rockfire-RM-203-gameport/dp/B004HAX7OU

Posted By: hunter1

Re: MMJoy - Build your own USB controller - 08/10/15 06:57 PM

Thank you , Sokol . But i have already buy a adapter gameport to usb whit no lucky . I need know how to wired a DB15 gameport on arduino pro micro . It's a zykon joyraider pro joystick 4 in 1 , very versatile joystick .
Posted By: Sokol1

Re: MMJoy - Build your own USB controller - 08/10/15 10:04 PM

Quote:
I need know how to wired a DB15 gameport on arduino pro micro


Instead do this, is better you know how wire pot, buttons, HAT on Arduino matrix without use the gameport, creating a "new" joystick, so you can use all potential of the new controller. wink

What I do in these case are remove all circuits/wires from the gameport joystick - only leaving the wires that are in the tube between the base and the grip because is difficult pass wires there. Make a new wire accord the new circuit.

I guess that you joystick is this:

http://s16.postimg.org/ifazkykcl/1_4_10075255.jpg

With these few buttons/HAT will be easy rewire internally. smile

I know a guy that buy one these FUSBA USB adapter (>100$) for use with Suncom SFS throttle and Suncom F-15 joystick.
For the throttle the adapter work OK, but for the josytick only 4 buttons are recognized - like the original gameport joystick-
the other buttons and HAT need be programmed via keyboard emulation - like the original gameport joystick.

But to do this is required a PS2 keyboard, PS2 keyboard adapters, and a computer
with PS2 input... All this obsolete and unused in actual days.








Posted By: Debolestis

Re: MMJoy - Build your own USB controller - 08/11/15 03:50 AM

Hi, great work mega_mozg_13!

I just got FLCS, can you tell me where to connect 5 wires from shift registers? I have pro micro.

Also is it possible to use use registers in link below in joystick? I couldn't find any schematics of shift registers in FLCS.

Thank you!

[url=http://www.ebay.co.uk/itm/Dual-Shift-Register-Breakout-Board-x2-74HC595-Arduino-Picaxe-Raspberry-Pi-/261969014221?hash=item3cfe91edcd][/url]
Posted By: hunter1

Re: MMJoy - Build your own USB controller - 08/11/15 11:45 AM

Originally Posted By: Sokol1
Quote:
I need know how to wired a DB15 gameport on arduino pro micro


Instead do this, is better you know how wire pot, buttons, HAT on Arduino matrix without use the gameport, creating a "new" joystick, so you can use all potential of the new controller. wink

What I do in these case are remove all circuits/wires from the gameport joystick - only leaving the wires that are in the tube between the base and the grip because is difficult pass wires there. Make a new wire accord the new circuit.

I guess that you joystick is this:

http://s16.postimg.org/ifazkykcl/1_4_10075255.jpg

With these few buttons/HAT will be easy rewire internally. smile

I know a guy that buy one these FUSBA USB adapter (>100$) for use with Suncom SFS throttle and Suncom F-15 joystick.
For the throttle the adapter work OK, but for the josytick only 4 buttons are recognized - like the original gameport joystick-
the other buttons and HAT need be programmed via keyboard emulation - like the original gameport joystick.

But to do this is required a PS2 keyboard, PS2 keyboard adapters, and a computer
with PS2 input... All this obsolete and unused in actual days.









it's is http://troca-se.pt/informatica/110422-joystick-joyrider-pro.html
a MS sidewinder freestyle gamepad and a MS sidewinder force feedback joystick . I have buy this adapter http://www.ebay.com/itm/USB-to-DB-15-DB1...e-/310909678467 and this http://www.pccables.com/images/USB_to_Gameport_DB15_Adapter_Microsoft_Sidewinder.jpg whit no lucky , becouse my Windows 7 32 bit show only the adapter .
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 08/11/15 06:51 PM

Originally Posted By: Debolestis

I just got FLCS, can you tell me where to connect 5 wires from shift registers? I have pro micro.

load last update from
https://sites.google.com/site/mmjoyproject/fajly-dla-skacivania
and check file [Shift_register]_Thrustmaster Warthog_Cougar.jpg

Originally Posted By: Debolestis

Also is it possible to use use registers in link below in joystick? I couldn't find any schematics of shift registers in FLCS.
[url=http://www.ebay.co.uk/itm/Dual-Shift-Register-Breakout-Board-x2-74HC595-Arduino-Picaxe-Raspberry-Pi-/261969014221?hash=item3cfe91edcd][/url]

no
Posted By: Vindicore

Re: MMJoy - Build your own USB controller - 08/12/15 09:07 AM

Quick question - if I just want to use a single encoder to I simply connect up the three pins to power, ground and a button terminal?
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 08/12/15 09:56 AM

Originally Posted By: Vindicore
Quick question - if I just want to use a single encoder to I simply connect up the three pins to power, ground and a button terminal?


"encoder to power and ground" no way!!!
Posted By: Sokol1

Re: MMJoy - Build your own USB controller - 08/12/15 01:56 PM

Power and Ground wires are used for axis, plus the axis signal input of each one.

Encoder are two buttons for the controller , so need be wired like the buttons, in the matrix inputs:

http://simhq.com/forum/files/usergals/2014/08/full-37484-85623-pins_common.png
Don't reinventing the wheel. wink

Mix the things and probable result in "chip barbecue", with his peculiar "agreeable" smell. biggrin
Posted By: Vindicore

Re: MMJoy - Build your own USB controller - 08/12/15 02:15 PM

Sorry guys, instead of power I meant VCC - and then the buttons to the relevant ones... looking at this guide it seems to be so: http://www.loiph.in/2014/09/arduino-leonardo-atmega32u4-based-usb.html ?
Posted By: Debolestis

Re: MMJoy/MMjoy2 - Build your own USB controller - 08/12/15 03:16 PM





Question.

I understand where to connect GND, VCC, MISO.

Does SPI-SCK goes to SCLK?

Where with SPI-CS? To MOSI?

Can I connect button matrix and shift registers together?

Thank you!
Posted By: Sokol1

Re: MMJoy/MMjoy2 - Build your own USB controller - 08/12/15 03:35 PM

Originally Posted By: Vindicore
Sorry guys, instead of power I meant VCC - and then the buttons to the relevant ones... looking at this guide it seems to be so: http://www.loiph.in/2014/09/arduino-leonardo-atmega32u4-based-usb.html ?


Power, +5V (or 3,5v), VCC are the same thing.

In the link the encoder are used for sound volume control, is a different project than MMjoy2, with different firmware.
If you are build a similar controller, follow the link orientation.

MMjoy2 is for control joystick, is a computer HID device, the encoder is used for simulate button press. Don`t mix the projects. smile
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 08/12/15 07:40 PM

Originally Posted By: Vindicore
Sorry guys, instead of power I meant VCC - and then the buttons to the relevant ones... looking at this guide it seems to be so: http://www.loiph.in/2014/09/arduino-leonardo-atmega32u4-based-usb.html ?

nothing changes, pin from encoder "push" / "gray code" with MMJoy firmware work only via button matrix.
Posted By: mega_mozg_13

Re: MMJoy/MMjoy2 - Build your own USB controller - 08/12/15 08:05 PM

Originally Posted By: Debolestis

I understand where to connect GND, VCC, MISO.
Does SPI-SCK goes to SCLK?
Where with SPI-CS? To MOSI?

"MISO" not used at shift register.
"Pins_Sparkfun[promicro].PNG" helps to you.
"SPI-CS" any pin, and this pin name need to set at "shift register".

Originally Posted By: Debolestis

Can I connect button matrix and shift registers together?

better don't use. but SCK/MISO/MOSI can be used for SPI and button matrix with some "magic".
Posted By: mega_mozg_13

Re: MMJoy/MMjoy2 - Build your own USB controller - 08/13/15 10:44 PM

"glam" cougar throttle with TLE5011 and WS2811 as backlight
Posted By: hunter1

Re: MMJoy/MMjoy2 - Build your own USB controller - 08/14/15 11:14 AM

Can anyone help me ?
Posted By: mega_mozg_13

Re: MMJoy/MMjoy2 - Build your own USB controller - 08/14/15 12:58 PM

Originally Posted By: hunter1
Can anyone help me ?

and again, and again...
Old midi-gameport joysticks may be work in "Analog" or "Digital" modes. I don't know wich mode at your...
Posted By: Debolestis

Re: MMJoy/MMjoy2 - Build your own USB controller - 08/14/15 06:49 PM

Shift registers work, but only in version v20150626. In all others there is this:



All buttons are pressed.

Can you explain how shift function works because I don't know how to set it up.

Thank you!
Posted By: hunter1

Re: MMJoy/MMjoy2 - Build your own USB controller - 08/14/15 07:33 PM

http://www.reocities.com/Eureka/Promenade/1849/joy2.jpg and http://www.reocities.com/Eureka/Promenade/1849/joy1.jpg and if connect whit a usb adapter , show only the adapter . It's digital ? like MS sidewinder FF ?
Posted By: mega_mozg_13

Re: MMJoy/MMjoy2 - Build your own USB controller - 08/14/15 08:16 PM

Originally Posted By: Debolestis
Shift registers work, but only in version v20150626.

translate from russian updates page https://sites.google.com/site/mmjoyproject/novosti-i-obnovlenia
from "v20150701" changed connection method, "SPI-MISO" replaced to "SPI-MOSI".
Posted By: Debolestis

Re: MMJoy/MMjoy2 - Build your own USB controller - 08/15/15 02:34 PM

Thank you! It works now.

I don't understand shift function.

When I press button+shift there is original button and shifted button.

See here:



Can you explain how shift works.
Posted By: mega_mozg_13

Re: MMJoy/MMjoy2 - Build your own USB controller - 08/16/15 05:16 PM

try this
"button 1" will be active when HW7=ON and HW4=ON(shift 1 mode "on")
"button 2" will be active when HW7=ON and HW4=OFF(shift 2 mode "off")
Posted By: Aqua

Re: MMJoy/MMjoy2 - Build your own USB controller - 08/17/15 03:44 PM

First of all I wanna say a big thank you to mega_mozg_13. This is a great tool.

Now I wanna ask what is the proper way to set up a three-way on/off/on toggle switch. How do I make the center(off) position be recognized as a button?
Posted By: Debolestis

Re: MMJoy/MMjoy2 - Build your own USB controller - 08/17/15 05:29 PM

Buy on-off-on toggle switch. It is just 2 switches in one. spdt is ok.
Posted By: mega_mozg_13

Re: MMJoy/MMjoy2 - Build your own USB controller - 08/17/15 05:52 PM

Originally Posted By: Aqua

Now I wanna ask what is the proper way to set up a three-way on/off/on toggle switch. How do I make the center(off) position be recognized as a button?

sorry, no way...
Posted By: AndyB

Re: MMJoy/MMjoy2 - Build your own USB controller - 08/17/15 06:37 PM

Don't know if it's any help but you could do it with a 2 input NOR gate, but that starts going in to logic gate chips.

Basically, connect each input of the gate to one of the ON connections on the switch. The output of the gate is logic "1" (+5v) UNTIL one of the inputs goes high (logic "1") and then the output drops to logic "0" or 0 volts.

That's just a rough description of how it works. You also need to supply +5 volts and ground for the chip itself.

Hope this helps,

Andy
Posted By: Aqua

Re: MMJoy/MMjoy2 - Build your own USB controller - 08/17/15 09:15 PM

Originally Posted By: AndyB
Don't know if it's any help but you could do it with a 2 input NOR gate, but that starts going in to logic gate chips.

Basically, connect each input of the gate to one of the ON connections on the switch. The output of the gate is logic "1" (+5v) UNTIL one of the inputs goes high (logic "1") and then the output drops to logic "0" or 0 volts.

That's just a rough description of how it works. You also need to supply +5 volts and ground for the chip itself.

Hope this helps,

Andy


I am familiar with how the basic logic gates work and this seems like my best bet atm since that function cannot be supported by the software. Thanks for the help, I'm gonna order some and try this out.

Edit: Would you mind making a simple circuit diagram for a 3way switch and a nor gate because I'm not entirely sure how that would tie in with the columns and rows setup of MMJOY?
Posted By: Sokol1

Re: MMJoy/MMjoy2 - Build your own USB controller - 08/17/15 09:28 PM

Originally Posted By: Aqua
[quote=AndyB]... that function cannot be supported by the software.


For some DCS planes you can achieve button press on toggle switch OFF position editing LUA files.
In other games using SVMapper or HIDMacros can map functions on press (ON) and released (OFF) of swtiches.

Depends on use of this " three-way on/off/on toggle switch" you can wire a always on connection for middle pins of DPDT switch.

Anyway Desktop Aviator have some boards that do this in hardware (send button press in ON and OFF).
Posted By: Aqua

Re: MMJoy/MMjoy2 - Build your own USB controller - 08/17/15 09:46 PM

Originally Posted By: Sokol1
Originally Posted By: Aqua
[quote=AndyB]... that function cannot be supported by the software.


For some DCS planes you can achieve button press on toggle switch OFF position editing LUA files.
In other games using SVMapper or HIDMacros can map functions on press (ON) and released (OFF) of swtiches.

Depends on use of this " three-way on/off/on toggle switch" you can wire a always on connection for middle pins of DPDT switch.

Anyway Desktop Aviator have some boards that do this in hardware (send button press in ON and OFF).





I'll look into that if I cannot get it done with NOR gates
Posted By: CyBerkut

Re: MMJoy/MMjoy2 - Build your own USB controller - 08/18/15 12:12 AM

It would seem that a 3 way On-On-On switch would be a better choice.

Examples:

http://bestbassgear.3dcartstores.com/3-Way-Switch--Chrome-On-On-On-Mini-Switch_p_29.html

http://bestbassgear.3dcartstores.com/3-Way-Switch--Gold-On-On-On-Mini-Switch_p_28.html

http://bestbassgear.3dcartstores.com/3-Way-Switch--Black-On-On-On-Mini-Switch-flat_p_30.html
Posted By: Debolestis

Re: MMJoy/MMjoy2 - Build your own USB controller - 08/18/15 06:50 AM

Sorry Aqua, I completely misunderstood your question.

You can do it with on-on-on switch. I draw this picture, I think it should work. Please let us know if it works for real.

Posted By: Aqua

Re: MMJoy/MMjoy2 - Build your own USB controller - 08/18/15 07:56 AM

Originally Posted By: Debolestis
Sorry Aqua, I completely misunderstood your question.

You can do it with on-on-on switch. I draw this picture, I think it should work. Please let us know if it works for real.


I'm sure it will work with the DPDT switches which I have ordered, but I already have an spdt on-off-on switch that I wanna use plus I want to rewire the mode selector on the G940 throttle which acts like an on-off-on switch.

To make the latter work I am thinking of two ways:

1) make it work through the MMjoy software. I will do it this way: Let's call the positions of the 3way switch a-b-c, a then corresponds to button 1 and c to button 2. b is the off switch so it isn't a button. What I'll do then is make a button 3 that activates when the switch moves away from the a position(=button 1 turns off) AND a button 4 that activates when the switch moves away from the c position(=button 2 turns off). So essentianly the b position will correspond to BOTH button 3 and 4 and will have to be bound twice in my game. This is not optimal but it will get the job done.

2) use NOR logic gates. If I can make this work it will be a perfect solution, but I have no experience with them and I haven't figured out exactly how the circuit should be set up so that the output of the gate gets recognised as a button (if someone can draw a circuit of how it should be set up, it would help me immensely). Nevertheless I have ordered some, so I will at least try to make it work this way.
Posted By: AndyB

Re: MMJoy/MMjoy2 - Build your own USB controller - 08/18/15 09:33 AM

Hi,
Here's a quick diagram using a NOR gate.

Andy
Posted By: Aqua

Re: MMJoy/MMjoy2 - Build your own USB controller - 08/18/15 11:01 AM

Originally Posted By: AndyB
Hi,
Here's a quick diagram using a NOR gate.

Andy



That's an OR gate a NOR gate would be

but what I am not clear on is where the (3)line should go to? Should it go to a row? If yes, what will be the column for that row?
Posted By: AndyB

Re: MMJoy/MMjoy2 - Build your own USB controller - 08/19/15 07:17 PM

Hi Aqua,
Sorry, bad labels. I didn't mean you'd get an output while both inputs were on. I was just labelling them as three different outputs that could be "ON".

I don't think the logic based system would work directly with a column/row setup.

You could use the +5v output to switch small relays each of which was across a different column/row combination, but that's making it a lot more complicated.

Cheers,

Andy
Posted By: AndyB

Re: MMJoy/MMjoy2 - Build your own USB controller - 08/19/15 08:10 PM

Hi Aqua,

I've drawn up a wee circuit in case you want to go ahead with the switches you have.


The component values shown are approximates but should work. Diodes across the coil of the relays are to protect them.

Transistors are just cheapy switching ones.

I've built similar circuits to this in my own pit and they seem to be quite stable.

C1, R1, R2 and R3 would be the column and rows on your interface board.

Hope this helps you along.

Cheers,

Andy
Posted By: Sokol1

Re: MMJoy/MMjoy2 - Build your own USB controller - 08/19/15 09:56 PM

Too much complication...

I think the issue is: in G-940 the MODE switch is a slider switch ON-ON-ON, so need be replaced with a toggle switch ON-ON-ON, not a ON-OFF-ON.

And, since the G-940 was be modded with another controller, what is expected from this MODE switch?

In Cobra M5 the MODE switch just change the 7 joystick buttons number:

MODE 1 = Buttons 1 - 7
MODE 2 = Buttons 8 - 15
MODE 3 = Buttons 16 - 22

Or is to became a kind of "shift1", "shift2", "shift3" button?

Posted By: Vindicore

Re: MMJoy/MMjoy2 - Build your own USB controller - 08/20/15 08:08 PM

Hey guys I have my encoder all wired up correctly (I think!) however whenever I rotate it in a single direction it comes up as both button presses?

Also I do not understand what to do with the encoder section of the software which may have something to do with my problem!

Edit: It's because I forgot to put the diodes in, isn't it? *Sigh*
Posted By: Sokol1

Re: MMJoy/MMjoy2 - Build your own USB controller - 09/02/15 05:05 PM

This video (from WT forum) is how configure virtual axis on encoder.

https://www.youtube.com/watch?t=73&v=tU2-3HQWUZ0
Posted By: Debolestis

Re: MMJoy/MMjoy2 - Build your own USB controller - 09/03/15 11:13 AM

What is DZ low and high? Is it like Dead zone and saturation in DI Viewer?
What is Spec. Functions in Joystick axes?

Also is it possible to make things bigger, MMjoy2 screen is to small. This is how it looks at my computer:



I would like to translate MMjoy2 to Croatian language. Do I need to translate .lng file?

Thank you!
Posted By: Sokol1

Re: MMJoy/MMjoy2 - Build your own USB controller - 09/03/15 12:18 PM

Quote:
I would like to translate MMjoy2 to Croatian language. Do I need to translate .lng file?


Yes, just translate this file (from one language available, Russian, English...) and save as Croatian.lng
Posted By: mega_mozg_13

Re: MMJoy/MMjoy2 - Build your own USB controller - 09/03/15 04:49 PM

Originally Posted By: Sokol1
Quote:
I would like to translate MMjoy2 to Croatian language. Do I need to translate .lng file?


Yes, just translate this file (from one language available, Russian, English...) and save as Croatian.lng

and send it to me =)
Posted By: Bosk666

Re: MMJoy/MMjoy2 - Build your own USB controller - 09/12/15 07:32 AM

First of all I wanna say a big thank you to mega_mozg_13.

This is a great tool to build diy controllers.

Installing the drivers of the arduino boards was easy. updating the firmware was a little bit tricky smile.


joysetup 20150606 is running fine. i tried newer version but when i want to load the config from the device i get
errors. crc ....

i am using win7


i found a solution.
date of firmware and date of software must be the same. now everything is working


Posted By: Debolestis

Re: MMJoy/MMjoy2 - Build your own USB controller - 09/13/15 02:35 PM

Anybody get this to work? PS3 hall sensor thumbstick.



I can send one to you mega_mozg_13, so that you can see how to connect it.

I also finished Croatian translatio for MMJoy2, where shall I send it?
Posted By: Sokol1

Re: MMJoy/MMjoy2 - Build your own USB controller - 09/13/15 04:08 PM

On Arduino forum is said this PS3 mini-stick maybe use SENTRON 2SA10 HALL sensor, dual analog output (X, Y) axis, what can explain the extra pin.

The question is, in this mini-stick this 2 axis are wired in parallel? What probable require specific firmware to be read...

"Note 5: When the analog output pins X_OUT and Y_OUT are used in differential mode (i.e. Vx=X_OUT-CO_OUT)"

http://www.gmw.com/magnetic_sensors/sentron/2sa/documents/2SA10.pdf

There the guy use 2 hall sensor placed at 90 degrees, to get better linearity on Racing Wheel - but need make change on controller firmware:

http://tinyurl.com/nlbp34q
Posted By: mega_mozg_13

Re: MMJoy/MMjoy2 - Build your own USB controller - 09/14/15 11:59 AM

Originally Posted By: Debolestis

Anybody get this to work? PS3 hall sensor thumbstick.
I can send one to you mega_mozg_13, so that you can see how to connect it.

you can try to link it with MCP3202 and select "KMZ60+MCP3202" type sensor.
Posted By: Debolestis

Re: MMJoy/MMjoy2 - Build your own USB controller - 09/14/15 01:32 PM

I sent one thumstick to mega_mozg_13.
Let's hope he'll figure it out. It would be great if we could use it in our builds.
Posted By: Czary

Re: MMJoy/MMjoy2 - Build your own USB controller - 09/14/15 05:34 PM

Hello again ! Finally my TLE5010 Rudder works like a charm. Thank you mega_mozg_13 once again. I really appreciate your work.
Next thing that interests me a lot - is it possible to drive small servo or tiny stepper motor using values from War Thunder output or any other sim ?
Best regards.
Posted By: mega_mozg_13

Re: MMJoy/MMjoy2 - Build your own USB controller - 09/16/15 03:49 AM

Originally Posted By: Czary

Next thing that interests me a lot - is it possible to drive small servo or tiny stepper motor using values from War Thunder output or any other sim ?


next step is output data to "MAX7219 7-segment 8-Digits" link



"small servo" or "tiny stepper" maybe later =)
Posted By: Bromius

Re: MMJoy/MMjoy2 - Build your own USB controller - 09/19/15 02:00 AM

Is it possible to implement I2C in the firmware? In particular for supporting Wii nunchuck. $10 nunchuck gets you a 3 axis accellerometer, 2 axis analog stick, and 2 buttons. As it sits, I think I need to build a bridge with a second mcu.
Posted By: Czary

Re: MMJoy/MMjoy2 - Build your own USB controller - 09/20/15 09:54 AM

Hello, i was happy for first day of using my rudder. Now I have freezeing axis problem again- I need to restart the device in MMjoy2 to work. This time everything went ok, with firmware upload and settings.
Posted By: mega_mozg_13

Re: MMJoy/MMjoy2 - Build your own USB controller - 09/21/15 07:29 AM

Originally Posted By: Czary
Now I have freezeing axis problem again- I need to restart the device in MMjoy2 to work.

fixed. wait for next update(few days).
Posted By: mega_mozg_13

Re: MMJoy/MMjoy2 - Build your own USB controller - 09/21/15 07:30 AM

Originally Posted By: Bromius
Is it possible to implement I2C in the firmware? In particular for supporting Wii nunchuck. $10 nunchuck gets you a 3 axis accellerometer, 2 axis analog stick, and 2 buttons. As it sits, I think I need to build a bridge with a second mcu.

no. nunchuck link with Bluetooth to PC...
Posted By: Bromius

Re: MMJoy/MMjoy2 - Build your own USB controller - 09/21/15 01:39 PM

Originally Posted By: mega_mozg_13
no. nunchuck link with Bluetooth to PC...


The Wii Remote connects to PC via bluetooth. But the Nunchuck is an accessory that connects to the Wii Remote and communicates with it using I2C.



couple places make a breakout board for the connector but the Nunchuck sells for like $10 so getting one to cut the cord open is no big thing either. It's only 4 wired to deal with anyway; Voltage, Ground, SCL, and SDA.

I think it would make a nice supplemental thruster control for Elite: Dangerous for landing or whatever, or a dedicated map control. I'm pretty sure I can use an old arduino pro mini or an ATtiny chip if I can get it to talk SPI to MMjoy and I2C to nunchuck at same time.

Couple projects along this line...

Posted By: loopingz

Re: MMJoy/MMjoy2 - Build your own USB controller - 09/25/15 08:44 PM

Hi there,

The other day, I did some experiments with MMJoy2 20150727 and a Arduino Leonardo (from Itead). After a while I was able to understand and test a 2x2 matrix using directly some 1n4148.
Today I wanted to go further and I am back some steps.
I can see the stuff from MMjoy. I can load the programmed set. I can save the programmed set. Sometimes I have a error message like that: mmjoy error write config_hid.[A device attached to the system is not functionning]
Sometimes I dont have it.
My matrix is
D4 D1
D2 D3
Button 1 2 3 4 declared as ----
After the restart if for exemple by 1N4148 is between D4 and D2 (Arduino D4 -|<|- Arduino D0), then 1 is red in MMjoy, anyway it is not red as a button input and not blanked when I unplug it.
I dont see any refresh like if it was crashing on first state at boot.


What I am doing wrong? How can I troubleshoot that?
Thanks.

Edit: reboot windows and work go figure.
Posted By: mega_mozg_13

Re: MMJoy/MMjoy2 - Build your own USB controller - 09/26/15 09:39 AM

loopingz
maybe mistake - "D4" "D1" "D2" "D3" are you read from arduino pcb? - this is wrong. mmjoy use native ATMEL port names, look for "Pins_Arduino[leonardo]" from "pictures" subfolder.
Posted By: loopingz

Re: MMJoy/MMjoy2 - Build your own USB controller - 09/26/15 11:07 AM

Hey mega_mozg_13,

Thanks for taking the time to answer.
Anyway the reboot solved my issue. I was trying previously to do revive a pro micro and I guess I kind of crashed the arduino driver.
Yes I know the correspondance between arduino pins and MMjoy/atmel pins. I took me a while on the first day. Maybe you should use these picture directly in the Mmjoy soft or being able to see both arduino and atmel in the soft.

One other thing I was thinking about is about having some analog as multiple switch with no ghosting. I understand that there is already more switch than most will need but I was thinking about something like that:

Which would be no ghosting for sure 4 switch easy more is possible but then you need to check with the adc resolution and the noise.
It might work better than the classic:

Maybe it is already there and I missed it.
Let me know your thoughts.
Posted By: mega_mozg_13

Re: MMJoy/MMjoy2 - Build your own USB controller - 09/28/15 05:53 AM

Originally Posted By: Czary
Now I have freezeing axis problem again- I need to restart the device in MMjoy2 to work.

Hi, update "MMJOY2 [v20150928]". check, and tell me is freezeing is solved?
Posted By: Bosk666

Re: MMJoy/MMjoy2 - Build your own USB controller - 09/29/15 12:44 PM

Hi,

MMJOY2[v20150928] : there is no freezing right now. i am using 3 internal inputs a1302 hall sensor.

Jens
Posted By: Sokol1

Re: MMJoy/MMjoy2 - Build your own USB controller - 09/29/15 04:30 PM

Bosk,

What filter value you are using in axes for A1302 HALL?
Posted By: Bosk666

Re: MMJoy/MMjoy2 - Build your own USB controller - 09/29/15 05:08 PM

Hi Sokol1
i use 10 bit and filter value 2.

Without a filter the values were jumping around.

i use the controller with diy pedals for car racing.
Posted By: Debolestis

Re: MMJoy - Build your own USB controller - 09/30/15 08:12 PM

Is it possible to add more buttons in "mouse and keyboard" emulation. Now it is possible to add 15 emulated buttons. Can this be 24? Shift registers from thrustmaster sticks support up to 24.

Thank you!
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 10/01/15 06:17 AM

Originally Posted By: Debolestis

Is it possible to add more buttons in "mouse and keyboard" emulation. Now it is possible to add 15 emulated buttons. Can this be 24?

no. not enough free space for saving configuration at eeprom.
Posted By: Cory

Re: MMJoy - Build your own USB controller - 10/04/15 01:00 PM

Does anyone know the best way to find pin-numbers with cloned boards? I have a Pololu A-Star 32U Mini RV and so far I have figured out the MMJoy labelling for the analogue inputs. However I am trying to set up a 4x4 push button matrix and it's a little harder to do it by trial and error. Is there an easy way of testing pins without saving and restarting the device?

Here's the diagram for the board, I have had some success using the labelling of the Arduino mini as reference but not for the matrix.



Currently my matrix is hooked up as follows:

Rows are on 0,1,2,3 and columns are pins 4,5,6,7.

Any help would be greatly appreciated, I'll be trawling the thread here and looking about for more info in the mean time.

Cheers,

Cory.

Edit: Decided not to be lazy and look at the schematics myself, will dig them out now.

Edit 2: Didn't need the ATmega32U4 schematics as the pin-out schematics are accurate, I just haven't had my breakfast.
Posted By: Bromius

Re: MMJoy - Build your own USB controller - 10/04/15 11:12 PM

Seems like you found it out but there's a lot of info on that diagram you can just throw away. Like a story problem in math class that gives you a whole lot of info you don't need to find out when those damn trains will hit the kid playing on the tracks or whatever...

Just look at the Arduino analog and digital pin numbers and go from there.
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 10/05/15 04:46 AM

Cory

just sample 3 axis + 3*3=9 buttons
Posted By: Sokol1

Re: MMJoy/MMjoy2 - Build your own USB controller - 10/05/15 05:56 PM

Originally Posted By: Bosk666
Hi Sokol1
i use 10 bit and filter value 2.

Without a filter the values were jumping around.


I ask because I have problem with Honeyweel SS495A1 (3.125mVg), only with 10x filter they flotation in readings are reduced to tens numbers.

By "accident" (broken one sensor leg...) I replace then with Allegro A1302 and this became stable with only 2x filter, only reveled a little more trick to set the magnet, is need place the magnet more close to sensor possible. The result is very good. smile
Posted By: Coluck

Re: MMJoy/MMjoy2 - Build your own USB controller - 10/10/15 11:54 PM

hi everyone,
I'm new to this website have an hi electronic background and want to start some personal project for controllers for star citizen and got a couple of questions because i find this tread very interesting and that a lot of job that i want to be done is mostly covered here.

i look MMjoy2 and was asking myself how many different device work with it because i think my setup will need at least 2 or 3 device if working.

i'm thinking using xbox 360 joystick as controller and want to know if any of you have use some so i know if there a bad side to them?

i was thinking of using arduino leonardo before seen they where not any more produce by them and want to know if you think supporting the zero or the due anytime?

and the last onne do your interface accept toggle switch?

those are my question atm i just start my project atm i'm at the first phase of dev. and prefer know a bit more of past experience before starting to buy my gear.


already done micro controller programming and pcb conception so i know where i'm going but don't know you coding and windows interfacing so could be nice to have some light on it.

Thanks
Coluck
Posted By: mega_mozg_13

Re: MMJoy/MMjoy2 - Build your own USB controller - 10/11/15 06:31 AM

Originally Posted By: Coluck

i look MMjoy2 and was asking myself how many different device work with it because i think my setup will need at least 2 or 3 device if working.

mmjoy accept to setup any VID/PID, so you can connect different devices as you wish.
(0000 0000 / FFFF FFFF - 4294967295)

Originally Posted By: Coluck

and the last onne do your interface accept toggle switch?

accept, and more - all of buttons can be as toggle switch.

other questions do not relate to MMjoy2...
Posted By: Bosk666

Re: MMJoy/MMjoy2 - Build your own USB controller - 10/13/15 06:26 AM

HI,

is there a way to connect the hx711 loadcell amp modul ? https://github.com/sparkfun/HX711-Load-Cell-Amplifier

loadcells are often used for pedals eg brake

thanks

bosk
Posted By: Czary

Re: MMJoy/MMjoy2 - Build your own USB controller - 10/13/15 05:14 PM

Originally Posted By: mega_mozg_13
Originally Posted By: Czary
Now I have freezeing axis problem again- I need to restart the device in MMjoy2 to work.

Hi, update "MMJOY2 [v20150928]". check, and tell me is freezeing is solved?


New version tested for last couple of days - no freezing axis found. Thank you again, mega_mozg_13. Best regards !
Posted By: mega_mozg_13

Re: MMJoy/MMjoy2 - Build your own USB controller - 10/14/15 06:08 AM

Originally Posted By: Bosk666
HI,
is there a way to connect the hx711 loadcell amp modul ? https://github.com/sparkfun/HX711-Load-Cell-Amplifier
loadcells are often used for pedals eg brake

If you send to me samples, I try to add support...
Posted By: Jokeri

Re: MMJoy/MMjoy2 - Build your own USB controller - 10/18/15 01:10 PM

Hello!

Has someone got this working as wireless HID game controller?
Posted By: mega_mozg_13

Re: MMJoy/MMjoy2 - Build your own USB controller - 10/20/15 04:42 PM

Originally Posted By: Jokeri
Has someone got this working as wireless HID game controller?

no. only wired USB connection.
Posted By: mega_mozg_13

Re: MMJoy/MMjoy2 - Build your own USB controller - 10/20/15 05:37 PM

Originally Posted By: Debolestis

Anybody get this to work? PS3 hall sensor thumbstick.


here tests of this thumbstick:

connected two poles and assigned to two axis, so you see a mirored signal.

this no like sin/cos sensors TLE501x/KMZ60/KMZ41.



try to use any pole as regular analog.

Posted By: Jokeri

Re: MMJoy/MMjoy2 - Build your own USB controller - 10/21/15 01:01 PM

Originally Posted By: mega_mozg_13
Originally Posted By: Jokeri
Has someone got this working as wireless HID game controller?

no. only wired USB connection.


Can you make it wireless? What parts do you need?
Posted By: mega_mozg_13

Re: MMJoy/MMjoy2 - Build your own USB controller - 10/21/15 06:42 PM

Originally Posted By: Jokeri
Originally Posted By: mega_mozg_13
Originally Posted By: Jokeri
Has someone got this working as wireless HID game controller?

no. only wired USB connection.

Can you make it wireless? What parts do you need?

parts here a very small trouble few arduinos and few Bluethooth's. big trouble is developing this...
so answer "no".
Posted By: tirta

Re: MMJoy/MMjoy2 - Build your own USB controller - 10/30/15 07:33 AM

Hi Debolestis

where do you get the ps3 hall sensor?




I find this on ebay:
http://www.ebay.com/itm/2-Game-Replacement-Controller-3D-Joystick-Axis-Sensor-Module-for-PS3-Accessorie-/141347615260?hash=item20e8f9721c:g:UGQAAOSwGzlTw52r
does this also use hall sensor?
Posted By: Debolestis

Re: MMJoy/MMjoy2 - Build your own USB controller - 10/30/15 02:34 PM

That is it. They have 4 pins on each "pot".

I bought mine on eBay.
Posted By: Sokol1

Re: MMJoy/MMjoy2 - Build your own USB controller - 10/30/15 03:13 PM

And how this mini-stick work in analog mode (3 pins). Is good?
Posted By: Debolestis

Re: MMJoy/MMjoy2 - Build your own USB controller - 10/30/15 03:38 PM

I've been busy so didn't try yet.
Posted By: tirta

Re: MMJoy/MMjoy2 - Build your own USB controller - 10/31/15 03:11 AM

Thanks for the reply Debolestis.
On the listing, they did not say that this is hall sensor.

How do you know that it is using hall sensor?
Posted By: Debolestis

Re: MMJoy/MMjoy2 - Build your own USB controller - 10/31/15 08:26 AM

I think I saw data sheet somewhere. Did you saw entire post? It should be there.
Posted By: tirta

Re: MMJoy/MMjoy2 - Build your own USB controller - 10/31/15 10:38 AM

what post?
can you give me the link?
Posted By: Debolestis

Re: MMJoy/MMjoy2 - Build your own USB controller - 10/31/15 12:05 PM

Sorry, differnet forum.

http://forums.eagle.ru/showthread.php?t=138821&page=16
Posted By: Vindicore

Re: MMJoy/MMjoy2 - Build your own USB controller - 11/01/15 09:38 AM

Hey all, I have used MMJoy2 to attach a rotary encoder, analogue joystick and toggle switch to my existing throttle which I use for Star Citizen and Elite Dangerous.

Everything works just fine in Elite, yet in Star Citizen it appears that the button presses from both the rotary encoder and toggle switch (if I use the toggle in switch mode rather than just as a button) are too quick and the game does not recognise the button press.

Is there any way to add a delay to the button being unpressed via MMJoy2? If not is there any other way to sort it out?

Thanks.
Posted By: mega_mozg_13

Re: MMJoy/MMjoy2 - Build your own USB controller - 11/01/15 09:45 AM

Originally Posted By: Vindicore

Is there any way to add a delay to the button being unpressed via MMJoy2? If not is there any other way to sort it out?

show your configuration.
Posted By: Vindicore

Re: MMJoy/MMjoy2 - Build your own USB controller - 11/01/15 12:57 PM

Here is the config (not got it connected to the PC at the moment though, but this is the file that is saved to the device).

Posted By: Sak75

Re: MMJoy/MMjoy2 - Build your own USB controller - 11/01/15 03:06 PM

Hi Mega_morg.

I saw that with mmjoy we can use a PS3 hall sensor thumbstick. my question is what about this?

http://www.aliexpress.com/item/High-Quality-Left-Right-3D-Button-Analogue-Analog-Joystick-Button-Control-Stick-Repair-Parts-for-PSV/32473059647.html?spm=2114.01020208.3.10.4D3Zes&ws_ab_test=searchweb201556_1_71_72_73_74_75,searchweb0_0,searchweb201560_9

Can be use like a hat?

Thanks
Posted By: mega_mozg_13

Re: MMJoy/MMjoy2 - Build your own USB controller - 11/02/15 01:54 PM

Originally Posted By: Vindicore
Here is the config

Enable "Timer ON" to ~16ms, and set "Timer OFF" = YES.

Originally Posted By: Sak75
I saw that with mmjoy we can use a PS3 hall sensor thumbstick. my question is what about this?

Why not, this is simple analog:
Interface: Dual 10K potentiometers with common ground and power

Posted By: tirta

Re: MMJoy/MMjoy2 - Build your own USB controller - 11/02/15 02:13 PM

Originally Posted By: Debolestis


thanks Debolestis.
according to my friend who play ps3,
ps3 sensor is good enough, it is better than ps2 or psp/ psv.

but why don't you try ps4 sensor?
should ps4 sensor better than ps3?
Posted By: Sokol1

Re: MMJoy/MMjoy2 - Build your own USB controller - 11/02/15 02:31 PM

Tirta,

The PS4 replacement mini-stick on eBay looks a analog device (potentiometers).

The high model number name does not necessarily mean use of better components. smile
Posted By: Sokol1

Re: MMJoy/MMjoy2 - Build your own USB controller - 11/02/15 02:36 PM

Originally Posted By: Sak75

my question is what about this?

http://www.aliexpress.com/item/High-Quality-Left-Right-3D-Button-Analogue-Analog-Joystick-Button-Control-Stick-Repair-Parts-for-PSV/32473059647.html?spm=2114.01020208.3.10.4D3Zes&ws_ab_test=searchweb201556_1_71_72_73_74_75,searchweb0_0,searchweb201560_9


A similar thing is used in Warthog (HALL) and X-55 (resistance) "slew control" and the users hate. smile
Posted By: tirta

Re: MMJoy/MMjoy2 - Build your own USB controller - 11/03/15 08:06 AM

Originally Posted By: Sokol1
Tirta,

The PS4 replacement mini-stick on eBay looks a analog device (potentiometers).

The high model number name does not necessarily mean use of better components. smile


Hi Sokol1,

you are correct.
looking at ebay, the ps4 sensor has only 3 pins.
that's very disappointing. frown
Posted By: Sak75

Re: MMJoy/MMjoy2 - Build your own USB controller - 11/03/15 12:08 PM

Hello

In my diy joystick I want a hat to move on games menus with the right thumb finger. I made a five buttons for the hat and i'm thinking to put a ps3 o psv mini stick. the model of psv is more slim to setup in the top of the joystick.
Posted By: Sokol1

Re: MMJoy/MMjoy2 - Build your own USB controller - 11/03/15 06:20 PM

Both models are suitable, for the PS3 the ideal is replace the "thump" pad with concave (stadium) HAT, like in Russian fighters/heli, that make easy control mouse (or camera).

http://www.aviaavtomatika.ru/image/production/work.018.4.jpg?ndj39e

But since are analog devices, is need two axis an 1 button, not five buttons.

Posted By: Vindicore

Re: MMJoy/MMjoy2 - Build your own USB controller - 11/03/15 10:33 PM

Originally Posted By: Sak75
Hi Mega_morg.

I saw that with mmjoy we can use a PS3 hall sensor thumbstick. my question is what about this?

http://www.aliexpress.com/item/High-Quality-Left-Right-3D-Button-Analogue-Analog-Joystick-Button-Control-Stick-Repair-Parts-for-PSV/32473059647.html?spm=2114.01020208.3.10.4D3Zes&ws_ab_test=searchweb201556_1_71_72_73_74_75,searchweb0_0,searchweb201560_9

Can be use like a hat?

Thanks


I have used that exact thumbstick on my set up, just connect it up as Mega_mozg has shown you and it works great. Soldering onto the tiny pins is damned difficult though - or at least was for me! I have 4 of them as one was messed up and simply didn't go back tot he center on one of the axis and I was inteding on mounting three in total on my hotas, although may stop at 2 now that I am actually putting it together.

I have not tried but MMJoy has a section to make 'axis to button' so I imagine you could set it up as a hat (something I should do myself). I also intend on adding texture to the top of mine (eg witch hat, castle hat) using various things to make them easier to control.
Posted By: tirta

Re: MMJoy/MMjoy2 - Build your own USB controller - 11/05/15 06:45 AM

Originally Posted By: Sokol1
Both models are suitable, for the PS3 the ideal is replace the "thump" pad with concave (stadium) HAT, like in Russian fighters/heli, that make easy control mouse (or camera).

http://www.aviaavtomatika.ru/image/production/work.018.4.jpg?ndj39e

But since are analog devices, is need two axis an 1 button, not five buttons.



Hi Sokol1,
that is a nice thump pad
where do you get it?
do you have the links?
Posted By: Sokol1

Re: MMJoy/MMjoy2 - Build your own USB controller - 11/06/15 01:24 AM

This is for military use, probably cost hundreds of dollars, I use only for illustrate the "concave" HAT. smile

http://www.aviaavtomatika.ru
Posted By: tirta

Re: MMJoy/MMjoy2 - Build your own USB controller - 11/06/15 09:02 AM

that is too bad.

btw do you know what happens to splashonebandit.com ?
I have tried to contact them however there is no reply.

do you know other similar stores?
Posted By: Debolestis

Re: MMJoy/MMjoy2 - Build your own USB controller - 11/06/15 09:47 AM

What do you need? Hat switches?
Posted By: tirta

Re: MMJoy/MMjoy2 - Build your own USB controller - 11/06/15 12:16 PM

yes, I need 4 way hat switches
Posted By: Debolestis

Re: MMJoy/MMjoy2 - Build your own USB controller - 11/06/15 12:30 PM

Cheapest soloution in my experience is to find on eBay CH flightstick pro (1 hat), combat stick (2 hats) or fighterstick (4 hats), old gameport versions. CH has very good hat switches. Or you can find TM flcs or F22. TM switches are also OK but I like CH more. Flightstick pro or combatstick can be found for 1$,,. Even with postage it is still the cheapest solution. Fighterstick is rare on eBay, FLCS and F22 are usually more expensive. APEM I think, sells switch same as CH for 30$ on digikey.

I also sent email to Splash One bit no response.
Posted By: Sokol1

Re: MMJoy/MMjoy2 - Build your own USB controller - 11/06/15 12:33 PM

Originally Posted By: tirta

btw do you know what happens to splashonebandit.com ?


Probable get "out of business" due low profit, their products despite affordable, are focused basically in the "DJaV" F-16 grip... For a "niche in a niche"...

Unless one "China" HAT for civil aviation in Aircraftspruce and one CH (Now Apem) like HAT in Digikey, looks that nobody sold HAT's.

http://www.aircraftspruce.com/catalog/elpages/infinitygripaccess5.php
http://www.digikey.com/product-detail/en/500-526/679-2289-ND/2063280

BTW - Digikey has some industrial (?) models, but the prices start around 100$.

The way is make a mold of the caps from ones you have and cast new samples with resin. Like this knobs:

http://aviationsimulationgroup.sharepoint.com/Pages/F16KnobSet.aspx

For electric part use the 4/5 way navigation switch for today electronic gadgets.

http://www.digikey.com/product-detail/en/JS5208/EG4561-ND/1739634



Posted By: Vindicore

Re: MMJoy/MMjoy2 - Build your own USB controller - 11/08/15 09:44 PM

Originally Posted By: mega_mozg_13
Originally Posted By: Vindicore
Here is the config

Enable "Timer ON" to ~16ms, and set "Timer OFF" = YES.


Thanks - works like a charm. Now have one of those thumbsticks a rotary dial and three toggle switches extra on my hotas, now to add a few more pieces... smile
Posted By: lamal

Re: MMJoy/MMjoy2 - Build your own USB controller - 11/09/15 11:18 AM

Hello, Thanks for the great work.

I just finish wire 49 button, however, i found that window 7 only support 32 button, and i can't map 33-49 keys on the game.

is it possible to make win 7 recognize more than 32 keys? I read the first post saying keymapper? can i have more information on this tool?

Thanks a lot.

Posted By: Sokol1

Re: MMJoy/MMjoy2 - Build your own USB controller - 11/09/15 11:48 AM

Iamal

Windows Direct Input limit per device (joystick, throttle, etc) is is:

32 buttons + 8 way HAT
8 Axis

For Buttons up to 32 is need use a kyemapper, I suggest the freewares:

SVMapper (allow map toggle switch in ON and OFF).

Xpadder 5.3 (allow set pause between press)

Shareware (~10$)

JoyToKey - (allow up four 3 keys sequences per button)

XPadder 5.7 (allow map toggle switch in ON and OFF, timed press)

Bonus of the above softwares: use low computer resources, can be started after the game, configured/reconfigure "on the fly" and dont cause BSOD like "HOTAS" software. smile

If user are comfortable with scripts are Autohokey (freeware), very powerful.
Posted By: lamal

Re: MMJoy/MMjoy2 - Build your own USB controller - 11/09/15 01:25 PM

Thank you so much for your quick reply and come with links.

SV MAPPER cant open rar report error.

Xpadder 5.3 not work on win 7

JoyTokey has trail version, thats great, but seeems only support 32 key, i cant add more than 32 key in Option Tab.

Xpadder 5.7 because seems no website for more information and tutorial, dont want to buy in this stage.

Autohotkey, too complicated for me. ^^

am I doing somthing wrong on JoyTOKEY to make it unable to set more than 32 keys. Thanks again Sokol1
Posted By: Sokol1

Re: MMJoy/MMjoy2 - Build your own USB controller - 11/09/15 02:19 PM

Xpadder 5.3 work in Win7/64 bits, I have here. Recognize buttons above 32, and can handle axis as buttons. wink



Sometimes became confuse with Windows version - above see as XP, bellow as Vista, but work. smile



Run XPadder "as administrator". BTW - run all keymapper soft in this mode.

Not aware that Joy2key have this 32 buttons limitation. frown

SVMapper - link OK, just tested, too recognize buttons above 32. This don't handle axis, only buttons.

http://www.derekspearedesigns.com/technical-guide.html
http://www.derekspearedesigns.com/download/SVMapper1.0.0.59.zip

SVmapper video test with toggle switch ON/OFF in il-2'46 in function that have only "toggle" option - the same key for ON and OFF lights.

https://www.youtube.com/watch?v=V1qVL93JH5Y




Posted By: lamal

Re: MMJoy/MMjoy2 - Build your own USB controller - 11/09/15 08:12 PM

Thanks again.

I think that 32 limitation is for some game only. friend of mine test more than 32 keys in DCS is fine. but in BMS only for 32 Key.

really appreciate for your help.
Posted By: lamal

Re: MMJoy/MMjoy2 - Build your own USB controller - 11/09/15 08:50 PM

Can "two joysticks per one board" function helps? but i cant see this function on v20150928.
Posted By: Sokol1

Re: MMJoy/MMjoy2 - Build your own USB controller - 11/09/15 09:09 PM

Well help, in that case use previous firmware.

But the sim/game has to support multiples controllers (e.g. for il-2'46 the limit is 4), don't know BMS (what engines is old).
Some games with "flight things", e.g. BF see only 1 controller.
Posted By: lamal

Re: MMJoy/MMjoy2 - Build your own USB controller - 11/10/15 06:05 AM

BMS can handle 521 DX buttons, this mean either 16 separate divce without shifted layers,......

information from "BMS Key File Manuel.pdf"..


Anyway thanks for everything, Sokol1.
Posted By: Sokol1

Re: MMJoy/MMjoy2 - Build your own USB controller - 11/10/15 12:49 PM

Joy2key is really limited to 32 buttons, I confirm there with 48 buttons controller.
Since this soft' was done for gamepads it's understandable. A pity as it is very practical.
Posted By: dabonetn

Re: MMJoy/MMjoy2 - Build your own USB controller - 11/10/15 08:37 PM

Quick question, I'm trying to use this firmware to interface Apple ][ and Radioshack coco joysticks.

On the coco joystick pushing the button takes it to gnd (0).
On the apple joystick pressing a button takes it to +5 (1).
So since I can't use the button matrix, is there another option just to use the inputs directly?
Rewiring the joysticks isn't an option, since I'm just making a adapter to use original joysticks.

I can throw a 7404 in the circuit to swap either the apple or the coco so everything is the same either high or low.

There will be a total of 6 buttons in this design.

Thank you.

Later,
dabone (tn)...
Posted By: lamal

Re: MMJoy/MMjoy2 - Build your own USB controller - 11/11/15 12:20 AM

= FIXED =


when i save set to device, error message popup: "error write config.[data error(cyclic redundancy checkk} "

did I burn the card. ^^ how can i fix this.

Thanks!
Posted By: lamal

Re: MMJoy/MMjoy2 - Build your own USB controller - 11/11/15 01:13 AM

Because i used different firmware and MMJOY config editor
Posted By: HippyDruid

Re: MMJoy/MMjoy2 - Build your own USB controller - 11/11/15 01:14 AM

Hi,

Just signed up to say thanks to mega_mozg_13, Sokol1 and you other helpful people for all the awesome information and software in this thread.

I have recently finished my G940 anti-hysteresis project.
This involved rewiring the G940 Throttle, rotaries, rudder and toe axes to the cheap Pro Micro I bought on eBay.
I have no prior soldering experience, so it could've been a bit tidier, but works as intended. Also no one sees it when the cover goes back on anyway. biggrin

The results are simply brilliant! The unit no longer spikes and is enjoyable to use.
This thread made is seem like a fairly simple (yet time consuming) procedure. And it was. So Thankyou!


Now, I have a few questions.

Axis names. Can they be renamed so they will show up in the Windows joy.cpl application?
For example can I have HippyX, HippyY etc.

Auto-Calibration. It seemd logical to use with the Rudder, but what exactly are the differences between Auto w/centre, Saved w/centre etc.

Dead Zone/Stopper. I tried playing with the curves in MMJOY2 to create for example a 10% dead zones at the start and ends of some of the potentiometers. But I couldn't quite achieve what I wanted here. I assume this is possible?

The manual for MMJOY? I'm guessing it would answer most of my queries. I must've missed it?


Cheers,
Hippy.

thumbsup
Posted By: mega_mozg_13

Re: MMJoy/MMjoy2 - Build your own USB controller - 11/11/15 06:51 AM

Originally Posted By: dabonetn

Quick question, I'm trying to use this firmware to interface Apple ][ and Radioshack coco joysticks.
On the coco joystick pushing the button takes it to gnd (0).
On the apple joystick pressing a button takes it to +5 (1).

lnly shift register helps to you:
CD4021 - tested and work very good (Thrustmaster grips/Defender Cobra M5)
74HC165 - testing now...
Posted By: mega_mozg_13

Re: MMJoy/MMjoy2 - Build your own USB controller - 11/11/15 06:58 AM

Originally Posted By: HippyDruid

Axis names. Can they be renamed so they will show up in the Windows joy.cpl application?
For example can I have HippyX, HippyY etc.

when you reset axis names (rename, add or remove), change VID/PID to new state.

Originally Posted By: HippyDruid

Auto-Calibration. It seemd logical to use with the Rudder, but what exactly are the differences between Auto w/centre, Saved w/centre etc.
Dead Zone/Stopper. I tried playing with the curves in MMJOY2 to create for example a 10% dead zones at the start and ends of some of the potentiometers. But I couldn't quite achieve what I wanted here. I assume this is possible?
The manual for MMJOY? I'm guessing it would answer most of my queries. I must've missed it?

translate from russian
Posted By: Debolestis

Re: MMJoy/MMjoy2 - Build your own USB controller - 11/11/15 09:56 AM

Hi! I made this. I works great, and I found a bug.








This is the bug, I wanted to add SPDT toggle switch on shift registers' CS cable, and basically double the number of switches. But when I add second shift register and only when I press switch 8 it activates all switches in second shift register.

Posted By: dabonetn

Re: MMJoy/MMjoy2 - Build your own USB controller - 11/11/15 12:31 PM

Quote:
lnly shift register helps to you:
CD4021 - tested and work very good (Thrustmaster grips/Defender Cobra M5)
74HC165 - testing now...


I ended up using a cd4066 with a 7404, I had them laying around already.
Max of 4 buttons per 4066, but that's do able.

I'm using this as a interface for 1 apple joystick and 2 coco joysticks, so 4 buttons total, and I can slap another 4066 in for more buttons if needed.

Thank you for this wonderful firmware/program.

Later,
dabone (tn)
Posted By: Sokol1

Re: MMJoy/MMjoy2 - Build your own USB controller - 11/11/15 10:44 PM

MMjoy2 + Honeywell SS495A1 HALL sensor in CH PRO Pedal.

Original pot support was used for "BIC HALL pot", with ball bearing in axis. R/C Helicopter ball-join in connections with fiber glass push rod.

The switch for reset MMjoy2 is accessible on the underside of the pedal by inserting a pin.


image upload no size limit

The nylon sewing thread is just as additional security. smile


Sensor in brakes:


image post


Posted By: lamal

Re: MMJoy/MMjoy2 - Build your own USB controller - 11/18/15 07:38 AM

Hi guys.
I would like to use ATMEGA32U4 to make a RPM Gauge. I have searched Google but no luck. Does any here got information or link related to how to use ATMEGA32U4 to make a Gauge? Thanks a lot.



FOUND : https://www.arduino.cc/en/Guide/Introduction
Posted By: mega_mozg_13

Re: MMJoy/MMjoy2 - Build your own USB controller - 11/18/15 11:59 AM

Originally Posted By: lamal
I would like to use ATMEGA32U4 to make a RPM Gauge.

I have plans to do this with mini servo:
(russian forum) http://forum.warthunder.ru/index.php?/topic/159447-virtualnaia-pribornaia-panel/?p=4943442
Posted By: lamal

Re: MMJoy/MMjoy2 - Build your own USB controller - 11/18/15 12:09 PM

I want to do that, but dont know how to partything


Posted By: mega_mozg_13

Re: MMJoy/MMjoy2 - Build your own USB controller - 11/18/15 01:31 PM

Originally Posted By: lamal
I want to do that, but dont know how to

if you want back to live real devices:
www.letiaga.ru
www.avsim.su #1
www.avsim.su #2
Posted By: lamal

Re: MMJoy/MMjoy2 - Build your own USB controller - 11/19/15 12:18 AM

Those gauge is not "real device" (maybe the cover is "real"), but inside is use a piece of PRO-MICRO-ATMEGA32U4 and stepper motor.
Posted By: Czary

Re: MMJoy/MMjoy2 - Build your own USB controller - 11/24/15 08:48 AM

Originally Posted By: lamal
I want to do that, but dont know how to partything




For a WW2 simmer, MMJoy2 with RC model servo or stepper control would be heaven biggrin
Posted By: lamal

Re: MMJoy/MMjoy2 - Build your own USB controller - 11/25/15 09:30 AM

indeed, but i even dont know how to connect stepper to my little Pro Micro ATmega32U4 yet. Hard to find informatio on line. nope
Posted By: Debolestis

Re: MMJoy/MMjoy2 - Build your own USB controller - 11/25/15 01:53 PM

Mega_mozg, can you add saturation?
Posted By: mega_mozg_13

Re: MMJoy/MMjoy2 - Build your own USB controller - 11/26/15 04:03 AM

Originally Posted By: Debolestis
Mega_mozg, can you add saturation?

please tell me more details about this, or show working sample.
Posted By: Debolestis

Re: MMJoy/MMjoy2 - Build your own USB controller - 11/26/15 10:41 AM

In Diview there is calibration, dead zone and satutation

https://www.neurobs.com/pres_docs/html/0...ystick_axes.htm
Posted By: mega_mozg_13

Re: MMJoy/MMjoy2 - Build your own USB controller - 11/26/15 02:42 PM

Originally Posted By: Debolestis
In Diview there is calibration, dead zone and satutation

https://www.neurobs.com/pres_docs/html/0...ystick_axes.htm

this is DeadZone LOW + DeadZone High ?
Posted By: Sokol1

Re: MMJoy/MMjoy2 - Build your own USB controller - 11/26/15 03:18 PM

Yes, looks like "Saturation" - Min and Max - in DView is equals DeadZone Low and High.

Both limit the axis response in ends of axis course.
Posted By: Sak75

Re: MMJoy/MMjoy2 - Build your own USB controller - 12/02/15 08:44 AM

hello I leave a video of my diy joystick but even this process works, is totally handmade pieces unused old joystick.

https://www.youtube.com/watch?v=oLX2eLNLtbk
Posted By: mega_mozg_13

Re: MMJoy/MMjoy2 - Build your own USB controller - 12/02/15 12:19 PM

Originally Posted By: Sak75
hello I leave a video of my diy joystick but even this process works, is totally handmade pieces unused old joystick.

can you make fotos of your grips (stick and throttle)? and what is it material made?
Posted By: Sokol1

Re: MMJoy/MMjoy2 - Build your own USB controller - 12/02/15 01:34 PM

Sak75,

Well done, nice "Franken'stick". biggrin
Posted By: Sak75

Re: MMJoy/MMjoy2 - Build your own USB controller - 12/02/15 02:00 PM

I'm big, It's a franken'stick for my frankenhand biggrin biggrin
Posted By: Sak75

Re: MMJoy/MMjoy2 - Build your own USB controller - 12/02/15 02:05 PM

Originally Posted By: mega_mozg_13
Originally Posted By: Sak75
hello I leave a video of my diy joystick but even this process works, is totally handmade pieces unused old joystick.

can you make fotos of your grips (stick and throttle)? and what is it material made?


Hi mega, photos in a few days, material: wooden and epoxy putty (like milliput) this putty can be model like clay and when is dry you can cut, sand and paint.
Posted By: Debolestis

Re: MMJoy/MMjoy2 - Build your own USB controller - 12/02/15 04:06 PM

What gimbal do you have?
Posted By: Sokol1

Re: MMJoy/MMjoy2 - Build your own USB controller - 12/02/15 08:22 PM

Looks the gimbal is DIY with ball bearing and 4 expansion springs. smile
Posted By: HippyDruid

Re: MMJoy/MMjoy2 - Build your own USB controller - 12/03/15 11:09 PM

I need some help!
And as you guys are very clever and creative I thought this was the perfect place to ask.

I am revisiting my g940. I plan on some further improvements to my wiring etc.

On the g940 there are various "white plugs" of different pin sizes. Does anybody know specifically what kind of plugs these are? Are they custom made for logitech or some Picoblade or MicroJst type?

I have a bunch of 2.54mm XH plugs of varing pin sizes, they're close but not the right size.

Here is a picture (not mine, borrowed from the internetz). Does anyone know what they might be?

Posted By: Sak75

Re: MMJoy/MMjoy2 - Build your own USB controller - 12/04/15 02:52 PM




Hello i made a photo with the cell, and i made a small plane of the joystick. in a few day photos and a plane of the throttle.
Posted By: mega_mozg_13

Re: MMJoy/MMjoy2 - Build your own USB controller - 12/04/15 04:00 PM

Sak75
WOW

a device for accurate fine-tuning smash ?
Posted By: Sak75

Re: MMJoy/MMjoy2 - Build your own USB controller - 12/04/15 04:26 PM

Ja ja ja. of course.
Posted By: zenPanda

Re: MMJoy - Build your own USB controller - 12/04/15 10:47 PM

I am trying to find information on how rows and columns for buttons are determined in MMjoy2. I am trying to get a button to work with a teensy2 where the button is on pin D2 and B5.

In MMjoy2 what determines which is the row and which is the column? Does it matter?

I have tried multiple combinations and none has worked. Below is what I have now. The Pot works, he button does not.

Thanks in advance for responses.




Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 12/05/15 05:48 AM

zenPanda
1) do you apply settings with button "save sets to device"?
2) remove diode and button, just check B5+D2 connect/disconnect? (maybe you have broken diode/button)
Posted By: zenPanda

Re: MMJoy - Build your own USB controller - 12/05/15 07:34 AM

mega_mozg_13

Thanks for the suggestion. I shorted the pins directly and finally got some life from the indicator. I should have thought to try this, but was convinced it was something I was doing wrong in the software.

Thanks for your help...and for this great piece of software! I look forward to seeing how much I can accomplish with it.
Posted By: Sokol1

Re: MMJoy - Build your own USB controller - 12/05/15 03:55 PM

Originally Posted By: zenPanda






Looks the diode in this lay are in wrong direction, need be toward the switch, not the controller.

http://deadfrogstudios.com/warthogpit/im...atrixSchema.png
http://api.ning.com/files/-lcw-RpPXUOoP1...IFwT6T/MJOY.jpg
Posted By: Bosk666

Re: MMJoy - Build your own USB controller - 12/05/15 09:02 PM

Hi mega_mozg_13,

yesterday i tried the new version MMJOY2 [v20151118] with my 3 pedal setup.

i flashed the new firmware
now there is i think your old setup.

i made my setup and saved the data. after rebooting the usb device is gone. even using another usb slot did not help.

i reflashed the older version.
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 12/06/15 03:45 PM

Bosk666, no fotos and no screenshots. not possible to replicate trouble. how I can help to you?
Posted By: Bosk666

Re: MMJoy - Build your own USB controller - 12/07/15 02:04 PM

hello, again i tried the firmware update. this time everything is fine.
i dont know what was happening last time.
Posted By: Kallisto

Re: MMJoy - Build your own USB controller - 12/09/15 05:38 PM

hi guys can you tell me please on which arduiono board can i connect the most buttons
i have already a Arduino Mega 2560 r3 will mmjoy work with this?
Posted By: sahem

Re: MMJoy - Build your own USB controller - 12/09/15 10:08 PM

Hi, Kallisto. Here is the list of compatible boards: mmjoy2 wiki on github

Unfortunately, no Mega among them. On the bright side, Chinese clones of arduino micro/pro-mirco/Leonardo are cheap and easy to get.
Posted By: Kallisto

Re: MMJoy - Build your own USB controller - 12/10/15 02:38 PM

Quote:
Hi, Kallisto. Here is the list of compatible boards: mmjoy2 wiki on github

thanks

if i understand this correct
Quote:
MMJoy supports up to 8 axis and up to 96 buttons (64 buttons organized as 8x8 matrix and 4 hat switches). It can be configured to suit individual needs to contain only necessary controls (only buttons; or only axis)

then it should be possible to make a matrix with 96 buttons and 8 axis
it seems only the teensy ++ 2 can realise 96 and 8axis is that righht?
Posted By: Sokol1

Re: MMJoy - Build your own USB controller - 12/10/15 03:22 PM

Yes, the maximum of buttons depends o Arduino board pinnout, e.g. PRO Micro have limited pins available, what don't allow use 8 axis and 96 buttons. What help little is if you dont want 8 axis can use this pins for buttons.

Posted By: Kallisto

Re: MMJoy - Build your own USB controller - 12/10/15 11:51 PM

Quote:
what don't allow use 8 axis and 96 buttons.

But if i use the Teensy ++ 2.0 then i can use 96 buttons and 8 axis, right?
i mean you have posted already a picture from a teensy++2.0 with a 8*12 matrix and 8 axis at the same time
Posted By: Sokol1

Re: MMJoy - Build your own USB controller - 12/11/15 02:21 AM

Well, I am not sure about number of buttons supported be firmware actually - this may was changed over time, to add other features.

Better wait Mega_Mozg confirm. smile
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 12/11/15 04:10 AM

firmware have a 96 buttons + 10 axis
possible to use for joystick: 64 buttons + 2 hats(8 buttons) + 8 axis
possible to use for mouse emulation: 3 buttons + 2 axis
possible to use for keyboard emulation: 12 buttons (or 15 without "mouse")

if you want to take more and use less pins of you MCU:
for axis - MCP3208, 8 channel 12 bit ADC (minus 4 pins, plus 8 analog axis sources)
for buttons - shift register 74HC165 or 4021B (minus 3 pins, plus UNLIMIT button sources)
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 12/11/15 09:14 AM

Originally Posted By: Kallisto
Arduino Mega 2560 r3 will mmjoy work with this?

not work. this MCU do not have USB inside.
Posted By: Kallisto

Re: MMJoy/MMjoy2 - Build your own USB controller - 12/12/15 07:32 PM

for my switch panel i will use the Arduino micro (not promicro). so that i can use all 96buttons
and all potentially possible axis so i think i have to use two "mcp3208" so i have enough pins to
make a matrix with 96 buttons without using shift register 74HC165 or 4021B to realise 96 buttons.

i need the axis only for mixture, water radiator, oil radiator, light dimming and so on
therefore i think for this purpose it is not so important that the mcp3208 to get a stable 5v via an external 12v supply for getting the highest sampling rate.
please correct if i am wrong



btw: stunning piece of software wink
sry for my bad englsih
Posted By: mega_mozg_13

Re: MMJoy/MMjoy2 - Build your own USB controller - 12/13/15 06:05 AM

Kallisto
mcp3208:
1) with power supply higher 5.5v it will be dead http://ww1.microchip.com/downloads/en/DeviceDoc/21298c.pdf
2) you are lost a "CS line" - individual to each mcp3208
matrix:
1) limits matrix rows = 10 and columns = 10
Posted By: Kallisto

Re: MMJoy/MMjoy2 - Build your own USB controller - 12/14/15 03:37 AM

is it possible to connect mcp3208 for more axis and 74HC165 for more buttons both on the arduino


would i realise 96 buttons with 74HC165 then i need 4 of them, because each 74HC165 offers 4 Pins for axis.
therefore i need 5 74HC165 to get 20 Pins to make a matrix with 96 buttons (8 Lines x12 Columns)
Are my thoughts correct?

Have you or somebody a circuit layout with multiple 74HC165, i have not really an idea how to build a matrix with 74HC165.
Posted By: mega_mozg_13

Re: MMJoy/MMjoy2 - Build your own USB controller - 12/14/15 06:58 AM

[quote=Kallisto
would i realise 96 buttons with 74HC165 then i need 4 of them, because each 74HC165 offers 4 Pins for axis.
therefore i need 5 74HC165 to get 20 Pins to make a matrix with 96 buttons (8 Lines x12 Columns)
Are my thoughts correct?
[/quote]
better stop all of this, and search something "ready to use"...
you have an error in the understanding of the axes and buttons. matrix of buttons and shift registers.
http://blog.komar.be/how-to-make-a-keyboard-the-matrix/
http://pcbheaven.com/wikipages/How_Key_Matrices_Works/
https://www.arduino.cc/en/Tutorial/ShiftIn
https://learn.sparkfun.com/tutorials/shift-registers
Posted By: sahem

Re: MMJoy - Build your own USB controller - 12/14/15 02:58 PM

All hail mega_mozg!:) No, seriously, thanks to the engineering guy behind all our creations.

I made my Gametrix ECS-based custom build with mmjoy inside


Euphoria, if you still read this forum, have my "thank you" as well - your work inspired me to do my own.
The build process is described in this imgur album: http://imgur.com/gallery/5BcCI
Posted By: Sokol1

Re: MMJoy - Build your own USB controller - 12/14/15 05:43 PM

Wow! Nice done, great look, and very clear "how to". thumbsup
Posted By: CyBerkut

Re: MMJoy - Build your own USB controller - 12/14/15 06:09 PM

Very nicely done, sahem! yep
Posted By: Debolestis

Re: MMJoy - Build your own USB controller - 12/14/15 06:33 PM

Great work. Beautiful!!!
Posted By: Sak75

Re: MMJoy - Build your own USB controller - 12/15/15 11:34 AM

uff very nice and professional, my hotas seem made by a child ha ha ha !!!!
Posted By: AceofPengwins

Re: MMJoy - Build your own USB controller - 12/17/15 05:08 PM

Hey, i have a question. I'm trying to use an arduino pro micro i purchased from ebay (china). I'm trying to follow the instructions, but i never see anything in COM ports. When i plug in the arduino, it shows up in device manager as ATmega32U4 (with unknown device symbol) and a solid green light shows on the arduino. i can install the driver by pointing windows to the driver folder from MMJoy download, then it shows up like this:

But when i connect the gnd and rst pins together to make it enter bootloader mode, nothing appears in com ports (also there is nothing there to start with.) the device does disappear from device manager when i do this, but then when i release them it comes back but only under libusb-win32 devices, nothing under COM ports. Does anyone know what i might be doing wrong?

edit: it's possible these pro micros were not flashed with any bootloader beyond the stock DFU bootloader? (based on the fact that in linux it shows up as atmega32u4 DFU bootloader when i run lsusb)

edit2: got it, had to use dfu-programmer in ubuntu to load the .hex, now it's detected as an input device so i think we're all set.
Posted By: Kallisto

Re: MMJoy/MMjoy2 - Build your own USB controller - 12/19/15 08:59 AM

can anyone please take a look on these pictures
12x CD 4021B for 96 buttons
2x MCP 3208 for 10 axis
what value should the resistors have? in case of the CD4021B arduino.cc seem using resistors with 10k in their tutorial



Posted By: Debolestis

Re: MMJoy/MMjoy2 - Build your own USB controller - 12/19/15 09:34 AM

Try with resistor networks, easier to solder and more compact. They are used in TM shift registers.
Posted By: AndyB

Re: MMJoy/MMjoy2 - Build your own USB controller - 12/19/15 06:24 PM

Hi Kallisto,

Hard to say accurately without the circuit diagram, but they look like "pull down" resistors and in this case 10K should be fine.
Posted By: Kallisto

Re: MMJoy/MMjoy2 - Build your own USB controller - 12/20/15 12:17 PM

Thanks for the hint with resistor networks i used them once or twice before
Therefore the question are those the right resistor networks?
resistor networks 10k 9pins

thanks AndyB i will try to make a clear Circuit diagram unfortunately my electronic knowledge is not really good
Posted By: Sokol1

Re: MMJoy/MMjoy2 - Build your own USB controller - 12/20/15 02:41 PM

The electrical diagram is not this from Arduino.cc?

http://www.arduino.cc/en/uploads/Tutorial/ShftInExmp1_Schem.png

The resistor net is this on like, in Tm F22 PRO is used a similar (and same Shift Register mc).
Posted By: Kallisto

Re: MMJoy/MMjoy2 - Build your own USB controller - 12/20/15 03:08 PM

Quote:
The electrical diagram is not this from Arduino.cc?


yes i used that as a template
mega_mozg_13 posted me some links among others an example with cd4021b from arduino.cc
Posted By: AndyB

Re: MMJoy/MMjoy2 - Build your own USB controller - 12/20/15 05:23 PM

Hi Kallisto,

Just a personal thing, but I don't like buying from China. You can get similar from CPC:

http://cpc.farnell.com/bourns/4609x-101-103lf/resistor-network-10k-2/dp/RE05350

Cheers,

Andy
Posted By: Bucic

Re: MMJoy/MMjoy2 - Build your own USB controller - 12/20/15 09:54 PM

Hi!

I have just started with Arduino (Pro Micro clone) and MMJoy2. For my previous project I've used a controller tken from an old Logitech joystick. And the problem seems to be the same - the actual usable resolution.

I have hooked up a test circuit with the following:
1. a 100k potentiometer
2. Allegro A??? + two small neod magnets

Now, the maximum number of steps I could get from mmjoy2 was:
ad.1. 1024 steps for the entire 270 degrees of its rotation range
ad.2. 100 steps for a 30 deg range

How do I get a 1024 resolution across a pre-defined rotation range using mmjoy2?
I'm pretty sure I'm not supposed to use a 1:10 gearing for the pot and ten times stronger magnets for the Hall sensor smile
Posted By: mega_mozg_13

Re: MMJoy/MMjoy2 - Build your own USB controller - 12/21/15 04:17 AM

Originally Posted By: Bucic

Now, the maximum number of steps I could get from mmjoy2 was:
ad.1. 1024 steps for the entire 270 degrees of its rotation range
ad.2. 100 steps for a 30 deg range

How do I get a 1024 resolution across a pre-defined rotation range using mmjoy2?


1) try use more powerfull magnet and minimum distance hall-magnet.
2) mcp3201/3208 12Bit ADC(4096 point), x4 vs 10Bit internal ATmega ADC. 100*4 = 400 point for a 30 degs =).
3) goto digital sensor TLE5011 have 21000 points for 360 deg, 1740 points for 30 deg.
3.1) kma200 have 8196 for 180 deg, 1350 points for 30 deg.
Posted By: mega_mozg_13

Re: MMJoy/MMjoy2 - Build your own USB controller - 12/21/15 04:20 AM

Originally Posted By: Kallisto

mega_mozg_13 posted me some links among others an example with cd4021b from arduino.cc

I never build hand made PCB or scheme for cd4021b(used only builtin from Thrustmaster/Defender Cobra M5). sorry I can't help. you will be first pathfinder here =)/
Posted By: Bucic

Re: MMJoy/MMjoy2 - Build your own USB controller - 12/21/15 07:11 AM

Originally Posted By: mega_mozg_13
Originally Posted By: Bucic

Now, the maximum number of steps I could get from mmjoy2 was:
ad.1. 1024 steps for the entire 270 degrees of its rotation range
ad.2. 100 steps for a 30 deg range

How do I get a 1024 resolution across a pre-defined rotation range using mmjoy2?


1) try use more powerfull magnet and minimum distance hall-magnet.
2) mcp3201/3208 12Bit ADC(4096 point), x4 vs 10Bit internal ATmega ADC. 100*4 = 400 point for a 30 degs =).
3) goto digital sensor TLE5011 have 21000 points for 360 deg, 1740 points for 30 deg.
3.1) kma200 have 8196 for 180 deg, 1350 points for 30 deg.


So it is hard-coded? There is no way to tell mmjoy2: 'here's a 100k pot; divide its 0 through 30 deg range into 2014 steps'?

Could you tell me how? If I hook up 10k, 50k and 100k pots mmjoy2 will assign 1024 steps across 270 deg of pot rotation. So it doesn't assign steps per voltage/resistance variation but... I don't know. There's no way it knows what potentiometer (resistance range and rotation range) is connected.

I was thinking about using the first ~20 degress of a 1 megaohm potentiometer to get higher resolution but this won't seem to work due to the behavior described above.
Posted By: Vindicore

Re: MMJoy/MMjoy2 - Build your own USB controller - 12/21/15 09:14 AM

My progress so far, 4 rotaries, 4 toggle switches and an analogue thumbstick added and working:

Posted By: mega_mozg_13

Re: MMJoy/MMjoy2 - Build your own USB controller - 12/21/15 09:42 AM

Originally Posted By: Bucic

So it is hard-coded? There is no way to tell mmjoy2: 'here's a 100k pot; divide its 0 through 30 deg range into 2014 steps'?

calibration auto or manual.

Originally Posted By: Bucic

Could you tell me how? If I hook up 10k, 50k and 100k pots mmjoy2 will assign 1024 steps across 270 deg of pot rotation. So it doesn't assign steps per voltage/resistance variation but... I don't know. There's no way it knows what potentiometer (resistance range and rotation range) is connected.

I was thinking about using the first ~20 degress of a 1 megaohm potentiometer to get higher resolution but this won't seem to work due to the behavior described above.

google it "how ADC works", it does not measure the resistance.
Posted By: Sokol1

Re: MMJoy/MMjoy2 - Build your own USB controller - 12/21/15 02:48 PM

Quote:

1. a 100k potentiometer

Now, the maximum number of steps I could get from mmjoy2 was:
ad.1. 1024 steps for the entire 270 degrees of its rotation range


1024/270*30 = 113...

Solution (if not gears): Use a "joystick" potentiometer - this model has the resistive trail only in ~30 degress (e.g. Saitek use 32 degrees models) will read 0 ~5v in 30 degrees = ~1024.

Problem, this model is made for industry only, maybe in AliExpress find a source - of low quality ones... smile

Or try with voltage amplifier. See this solution for the same problem (replace joy'pot with conventional 270 degress type):

http://www.rcgroups.com/forums/showthread.php?t=2007556

Dont know about the possible electrical "noise" of this solution.

But in today "contactless sensor days", use pot'? smile

Quote:

2. Allegro A??? + two small neod magnets
ad.2. 100 steps for a 30 deg range


If this Allegro is A1302 (for strange reason is most "recommended" in sim foruns...), depends on magnet position can be need ~180 degrees of magnet movement to read 0 - 5 v (as work in analog mode). See:

http://simhq.com/forum/ubbthreads.php/topics/3225807/all/DIY_hall_sensor.html

In theory with this above assembly - "Bic HALL pot" (magnets far from sensor) - can be achieve: 1024/180*30 = ~170...

But I use this model A1302 (and PRO Micro MMjoy2) in brakes of the CH PRO pedal show in this thread and achieve better resolution than 100 (the brakes dont need 1024), the brake pedal movement is very limited, probable less than 30, the trick is leave the gap at minimum possible, less than 1mm.

For something similar you want, a "PnP" solution: "here's a 100k pot; divide its 0 through 30 deg range into 2014 steps"? is need programmable sensor, e.g. Melexis MLX90333 digital sensor and compatible controller, e.g. MFG SiMM8Rge. wink

Or, as Mega_Mozg suggest, use TLE5011 for improve the practical resolution.
Posted By: Kallisto

Re: MMJoy/MMjoy2 - Build your own USB controller - 12/21/15 03:39 PM

Quote:
I never build hand made PCB or scheme for cd4021b(used only builtin from Thrustmaster/Defender Cobra M5). sorry I can't help. you will be first pathfinder here =)/


np i will report about it if i am successful
Posted By: Bucic

Re: MMJoy/MMjoy2 - Build your own USB controller - 12/21/15 10:25 PM

@mega_mozg_13
@Sokol1

Let's put workarounds for too low resolution aside for now, please. External ADCs, 2-ton magnets, 13.7 deg potentiometers, epicyclic gearing... I would really appreciate if either of you could simply explain to me why. MMJoy2 takes a valuable resource which is the resolution of 1024 steps and wastes it by spreading it over 270 degrees of potentiometer rotation range. Why is that?

Especially that both the Allegro A-series as well as potentiometers are analog devices i.e. providing infinite resolution. The resultant resolution in an actual application is only limited by controller used.


@mega_mozg_13
But calibration only works by picking a part of the 1024 range, right? So for a potentiometer granted 1024 steps for the entire 270 deg I only put e.g. 400/450/500 (min/center/max) in the calibration fields.

I do know how ADCs work but not much beyond that. smile
Posted By: Sokol1

Re: MMJoy/MMjoy2 - Build your own USB controller - 12/22/15 12:40 AM

smile

Posted By: mega_mozg_13

Re: MMJoy/MMjoy2 - Build your own USB controller - 12/22/15 04:10 AM

Originally Posted By: Bucic
Why is that?

short ADC:
1) have a reference voltage (0v-5v for a ATmega).
2) have a precission (10Bit/1024 points for a ATmega).
3) and calculate sensors voltage with this conditions.
no more. against the laws of physics can not do anything. if you sensor send only "2.0v - 2.5v - 3.0v" what to do?

want more points.
1) try decrease "reference voltage" - mcp3204/mcp3208 accept it(differential mode).
2) increase "precission" - mcp320x 12Bit/4096 points.
3) make more powerfull signal from sensor. mcp601 - electrical amplifier. gears - kinematics amplifier.

tle5011 cost ~4$, and dont want try calculate another solutions price.
Posted By: Bucic

Re: MMJoy/MMjoy2 - Build your own USB controller - 12/22/15 11:14 AM

Originally Posted By: mega_mozg_13
Originally Posted By: Bucic
Why is that?

short ADC:
1) have a reference voltage (0v-5v for a ATmega).
2) have a precission (10Bit/1024 points for a ATmega).
3) and calculate sensors voltage with this conditions.
no more. against the laws of physics can not do anything. if you sensor send only "2.0v - 2.5v - 3.0v" what to do?

want more points.
1) try decrease "reference voltage" - mcp3204/mcp3208 accept it(differential mode).
2) increase "precission" - mcp320x 12Bit/4096 points.
3) make more powerfull signal from sensor. mcp601 - electrical amplifier. gears - kinematics amplifier.

tle5011 cost ~4$, and dont want try calculate another solutions price.

ad.1) So that's the culprit! This is what I expected initially - 0V through 5V reference voltage. Hence my question mentioning 'hardcoding'. OK, this explains it.

BUT!
What about different potentiometer values? With 10k, 50k and 100k all being 270 deg, does mmjoy2 read all three of them as providing 0-5V variation? I only have 100k pots at hand so I can't tell.

As for the other solutions. Are there separate wiring diagrams and instructions on how to integrate:
a) "mcp3204/mcp3208 (differential mode)"
b) external ADC
c) (most importantly) TLE5011 sensor

BTW, mega_mozg_13. Having you around I would like to thank you for your work with mmjoy2 as well as for hanging around here, answering questions. I would also like to take the opportunity to ask whether there are plans to opensource mmjoy2?
Posted By: mega_mozg_13

Re: MMJoy/MMjoy2 - Build your own USB controller - 12/22/15 12:09 PM

Originally Posted By: Bucic

c) (most importantly) TLE5011 sensor

from folder "MMJoySetup" subfolder "PCB", open here "MMJoy2_TLE5010". just solder and it ready to use...
Posted By: Sokol1

Re: MMJoy/MMjoy2 - Build your own USB controller - 12/22/15 04:07 PM

Quote:
BUT!
What about different potentiometer values? With 10k, 50k and 100k all being 270 deg, does mmjoy2 read all three of them as providing 0-5V variation? I only have 100k pots at hand so I can't tell.


This 10k... 100k is the capacity of resistance variation across the potentiometer trail, some circuits, e.g the old joystick gameport work with this resistance measure and not voltage variation like joystick USB Controllers. The pot' can read resistance and voltage variation.

In other forum a guy say that in general terms a low resistance pot (e.g. 1-10k) take more Amperage from USB circuit, what can be issue if many pot' are used and a high value (e.g. 50-100k) is more prone to pick "noise" in the signal, so, as "Rule of the Thumb" for use in joystick USB controllers pick one between 10-50, but no harm try with 100k.

What matter here is: use potentiometer Type B* = linear response, and working angle = joystick makers use low angle pot (30~40, NOT 270 degrees!!!

HOTAS Cougar use this CTS model: CTS251B15F104B2NB - Look at datasheet for see the working angle.

* This code may varies in countries.

BTW - A cheap source for low reading angle potentiometer.

Just assembly in a way that make easy replace, they don't last longer... wink

Quality potentiometers cost more than contact less sensors, besides the above "complications".
Tm/Saitek adopt HALL sensor in his HOTAS not because is "better for sim'ers" but because is cheap solution,
but the last still saving some cents using ~0,10$ pot in some axis...

HALL sensor assembled like a pontentiometer (15$): http://www.bitechnologies.com/pdfs/6120.pdf

Notice that the Electrical Angle can be, depends on model 35 to 360.

If I pick a 360 model and hook in BU0836A... and turn only 30 degrees no way to achieve 12 bits resolution, without some "workaround".
Posted By: Rabso

Re: MMJoy/MMjoy2 - Build your own USB controller - 12/29/15 06:50 AM

Hi Every one,

first, big thanks to mega_mozg for his great work and efforts.


I am planning to do my own project and I have read all this topic to understand MMjoy2. however, I have some questions:

1. I need to use a magnetic angle sensors, in this topic I saw people using TLE5010/5011. does TLE5012 will works with MMjoy2?

2. regarding the TLE501x PCB, in your folder I saw the PCB .lay6 but when I opened the file I saw several layout design, is any once can be used? for example I like this simple one:


3. Last, does any one know about Sensors 2GO from Infineon? does this will work direct with the computer or how?

thanks
Posted By: robv

Re: MMJoy/MMjoy2 - Build your own USB controller - 12/29/15 08:53 AM

Hey guys, if you want to use a cheap solution for Hall Effect sensors, get a few of these A1302 Linear hall effect sensors from ebay, and a batch of rare earth magnets. It takes some DIY to mount them properly but these IC's give an analog value and act exactly like a normal 3-pin potentiometer (5v, GND, signal).

I'm using a few of these in my DIY joystick and rudder controller and it works like a charm.
Posted By: mega_mozg_13

Re: MMJoy/MMjoy2 - Build your own USB controller - 12/29/15 02:02 PM

Originally Posted By: Rabso

1. I need to use a magnetic angle sensors, in this topic I saw people using TLE5010/5011. does TLE5012 will works with MMjoy2?

TLE5010 TLE55011 only.

Originally Posted By: Rabso

2. regarding the TLE501x PCB, in your folder I saw the PCB .lay6 but when I opened the file I saw several layout design, is any once can be used? for example I like this simple one:


this design only prototype for T.Warthog (not tested).

Originally Posted By: Rabso

3. Last, does any one know about Sensors 2GO from Infineon? does this will work direct with the computer or how?

I dont know nothing about "2GO"...
Posted By: Sokol1

Re: MMJoy/MMjoy2 - Build your own USB controller - 12/29/15 02:48 PM

Originally Posted By: Rabso

2. regarding the TLE501x PCB, in your folder I saw the PCB .lay6 but when I opened the file I saw several layout design, is any once can be used? for example I like this simple one:
http://dc743.4shared.com/download/33R4BMVnce/TLE5010_PCB.jpg


In PCB what matter is the electrical connections, the "layout" or the design/form of the board can assume any practical form. Obvious short connections between components is more desirable than long. smile

Respecting this you can change the layout form/dimensions to fit in your project.

But the above layout don't show the components (resitor, capacitor) present in the electrical circuit - or they are in the other side of the board?

Posted By: mega_mozg_13

Re: MMJoy/MMjoy2 - Build your own USB controller - 12/29/15 03:01 PM

Originally Posted By: Sokol1

But the above layout don't show the components (resitor, capacitor) present in the electrical circuit - or they are in the other side of the board?

Resistors possible to place on the controller side. Capacitor will be placed to the connectors (VCC/GND)...
Posted By: AceofPengwins

Re: MMJoy/MMjoy2 - Build your own USB controller - 01/01/16 10:48 PM

Hmm, I'm having kind of a weird issue. I've connected a 10K potentiometer (actually i tried this with two different 10K pots, one rotary and one slide) to the arduino pro micro with mmjoy2 [v20151118] framework installed. I selected X axis and selected the correct pin, and when I spin the pot, the mmjoysetup displays the correct value (currently 8bits precision selected, so the value is 0-255). However, when i use direct input viewer or the windows joystick tool, the output shows as kind of shifted. If i have the pot near the center position, the value is either 0% or 100%. Moving "up" goes from 100% down to 51% at the extreme top, and moving "down" goes from 0% up to 50% at the extreme bottom. Obviously this behavior isn't very helpful, but I'm not sure what I'm doing wrong.

Does that make sense? Anyone encounter this before?
Posted By: sahem

Re: MMJoy/MMjoy2 - Build your own USB controller - 01/02/16 07:33 PM

I have seen something like that occasionally, but was not able to reproduce it reliably. Try to retrieve the setup from the controller, then check if it is correct, and write it to device once again. Let's see if this will make any difference
Posted By: AceofPengwins

Re: MMJoy/MMjoy2 - Build your own USB controller - 01/02/16 08:29 PM

Thanks for reply. smile So, I tried that now and it still seems to be doing the same thing, i've also tried using different pins for the input. I uploaded a couple of pictures just to verify that i'm not setting it up weird or something (i haven't changed much of the default values).

this is the setup screen:



and this is the result of moving the potentiometer from the minimum value to the maximum value:
Posted By: krysnic

Re: MMJoy/MMjoy2 - Build your own USB controller - 01/03/16 05:24 PM

Hello everyone, thats my throttle for WW2 aircrafts. Electronics from mega_mozg_13, mechanics from DVik.
Throttle dimensions 220x176mm. Throttle has:
- 6 digital axes TLE 5010
- 22 buttons
- 5 encoders
- 6 toggle switch
- 8 RGB led diodes(for warthunder)
it's not the finished version
More photos
Posted By: AceofPengwins

Re: MMJoy/MMjoy2 - Build your own USB controller - 01/07/16 02:37 AM

Hmmm... yeah there is definitely something I'm not getting, i tried loading the firmware onto a teensy as well just to make sure it wasn't something about the pro micro and i get exactly the same behavior.
Posted By: sahem

Re: MMJoy/MMjoy2 - Build your own USB controller - 01/09/16 08:55 AM

Let's try basic troubleshooting:
1. Is your potentiometer connection correct?
2. Have you tried a different pot?
3. Have tried setting auto calibration on?
Posted By: mega_mozg_13

Re: MMJoy/MMjoy2 - Build your own USB controller - 01/10/16 09:21 AM

Originally Posted By: AceofPengwins
Hmmm... yeah there is definitely something I'm not getting, i tried loading the firmware onto a teensy as well just to make sure it wasn't something about the pro micro and i get exactly the same behavior.

make photos of your crazy potentiometer.
Posted By: Megapit

Re: MMJoy/MMjoy2 - Build your own USB controller - 01/11/16 01:54 PM

sorry for annoying with my first post

Is the source from this wonderful project still OpenSource? I didn't find an link. All old links are dead

greets Peter
Posted By: Sokol1

Re: MMJoy - Build your own USB controller - 01/11/16 02:01 PM

Links in first page are OK.
Click in "Download" for firmware.
Posted By: Megapit

Re: MMJoy - Build your own USB controller - 01/11/16 02:15 PM

Maybe I have not expressed myself correctly frown
I'm looking for the firmware source code of the AtMega32U4.
Is this part of the project closed source?
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 01/11/16 04:03 PM

Megapit
it is free but no more "open source". if you want I can help with some parts of algorytm/code.
Posted By: Megapit

Re: MMJoy - Build your own USB controller - 01/11/16 04:54 PM

OK! Thanks mega mozg for your answer.

Let me explain what i'm trying to do. Maybe its already in the code and i'm only to dumb to use it smile

I have a CH Figterstick and a CH Throttle. Both USB-Version. For Elite Dangerous i want to use a rudder pedal. But the CH rudder look ugly and uncomfortable to me. The two footrests are to close together. And it is also hard to find used and to expensive new. So i plan to build my own or maybe modify a cheap gameport version of any rudder from ebay.

But I want to link some controls of the rudder together with the stick in the CH-Control manger. With an Pro mini Atmega32U4 (i already had here) i tried to fake the CH-Manager by using the original VID and PID from the Ch Pedals.
But the CH Rudder use the name "CH PRO Rudder USB". This is two letters to much for the description in MMJoy. I thing you limit this description because of no free eeprom. Thats why i asked for the soure. If I had found it, i would hard code this section smile

But without source i throw away my plan by configure it completely in CH-Manager and do it with your software.
Or do you have an other Idea?

By the way: Fine Work!

Greets Peter
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 01/12/16 01:50 PM

Megapit, wait for the next update and I give +5 symbols to device name.
Quote:
uint8_t usb_disc_dev_rep[15];

now is 15.
Posted By: Megapit

Re: MMJoy - Build your own USB controller - 01/12/16 03:36 PM

kneeldown

Thanks!
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 01/14/16 03:19 PM

guys, is there somebody from the UK?
Posted By: Marrond

Re: MMJoy - Build your own USB controller - 01/20/16 06:40 AM

Is there any chance you will port MMJoy to work with Cortex M4? (Teensy 3.2 board).

Originally Posted By: mega_mozg_13
guys, is there somebody from the UK?


I'm currently residing in the UK, Shropshire, what's the matter?


Originally Posted By: krysnic
Hello everyone, thats my throttle for WW2 aircrafts. Electronics from mega_mozg_13, mechanics from DVik.
Throttle dimensions 220x176mm. Throttle has:
- 6 digital axes TLE 5010
- 22 buttons
- 5 encoders
- 6 toggle switch
- 8 RGB led diodes(for warthunder)
it's not the finished version

Looks like something that should be sold commercially as a standalone device (maybe VKB will wake up and expand their offer with something similar to pair with their upcomming Gunfighter stick). Excellent work. May I ask what do you mean when you wrote "mechanics from DVik"? I tried to google it but nothing making sense comes up.

I'm trying to figure out my own throttle device at the moment but FreeCAD isn't as intuitive as I would like to wink
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 01/20/16 08:22 AM

Originally Posted By: Marrond
Is there any chance you will port MMJoy to work with Cortex M4? (Teensy 3.2 board).

I have plans goto ARM. but it will be not early one year, maybe two...
Posted By: DVik

Re: MMJoy - Build your own USB controller - 01/20/16 08:30 AM

Originally Posted By: Marrond

Looks like something that should be sold commercially as a standalone device (maybe VKB will wake up and expand their offer with something similar to pair with their upcomming Gunfighter stick). Excellent work. May I ask what do you mean when you wrote "mechanics from DVik"? I tried to google it but nothing making sense comes up.



Probably it means that mechanics is designed and manufactured DVik
Posted By: Marrond

Re: MMJoy - Build your own USB controller - 01/20/16 10:04 AM

Originally Posted By: DVik

Probably it means that mechanics is designed and manufactured DVik

When I googled your nickname all I've got was this thread and the rest of results were... car mechanics smile


Where can I see what exactly you're manufacturing? smile (potential customer)


Originally Posted By: mega_mozg_13

I have plans goto ARM. but it will be not early one year, maybe two...

Well, I'll keep fingers crossed for one year tops then.
Posted By: Sokol1

Re: MMJoy - Build your own USB controller - 01/20/16 12:44 PM

Originally Posted By: Marrond

May I ask what do you mean when you wrote "mechanics from DVik"?


Is a laser cut metal parts axis support, with ball bearing, adjustable friction, for assembly contactless sensor, potentiometers... in throttle quadrant:

http://forum.il2sturmovik.ru/uploads/monthly_06_2015/post-31247-0-56627100-1433310014.png
http://forum.il2sturmovik.ru/topic/3037-kvadrant-zheleznyj-plagiat-sajteka/page-5#entry340597





Posted By: DVik

Re: MMJoy - Build your own USB controller - 01/20/16 03:22 PM

Originally Posted By: Marrond

Where can I see what exactly you're manufacturing? smile (potential customer)


I make small and great mechanics ("serial").

Small - http://forums.eagle.ru/attachment.php?attachmentid=121913&d=1443423129
Also makes the individual tools and devices.

Sokol1 thx for info smile


And sorry for my Google English
Posted By: Marrond

Re: MMJoy - Build your own USB controller - 01/20/16 07:23 PM

May I ask how do you adjust frictiion? I could use like... 6 of these O.O
Posted By: DVik

Re: MMJoy - Build your own USB controller - 01/21/16 01:02 AM

Friction is adjusted by two screws. And it has created with felt.
Posted By: Muthax2001

Re: MMJoy - Build your own USB controller - 01/24/16 01:35 AM

Wizards of MMJoy2!

After reading this forum and the MMJoy2 wiki instructions, I'm still at a loss regarding Shift Function toggle activation.

Is it possible to activate a Shift Function with an SPST in a toggle on, stay on, (Shift buttons in effect). Press SPST to deactivate Shift Function toggle?

Thank you,

-M-
Posted By: Debolestis

Re: MMJoy - Build your own USB controller - 01/24/16 03:34 PM

It is possible, i asked before same thing just go back in this thread
Posted By: Muthax2001

Re: MMJoy - Build your own USB controller - 01/24/16 10:16 PM

Thank you but I believe you're incorrect.

MMJOY-20151118 ver, with the settings as your post describes, still only results in the Shift Function buttons being activated when press and holding SPST button.




I'm inquiring if a toggle ON/OFF with SPST button is possible, not a flip switch.

thoughts?

Thank you,
-M-
Posted By: Debolestis

Re: MMJoy - Build your own USB controller - 01/25/16 06:10 AM

Isn't that same thing? Sorry maybe I misunderstood something.
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 01/26/16 04:37 PM

Originally Posted By: Muthax2001
Thank you but I believe you're incorrect.

MMJOY-20151118 ver, with the settings as your post describes, still only results in the Shift Function buttons being activated when press and holding SPST button.




I'm inquiring if a toggle ON/OFF with SPST button is possible, not a flip switch.

thoughts?

Thank you,
-M-


there are bug! just add "timer". next release will be fixed this.
Posted By: Muthax2001

Re: MMJoy - Build your own USB controller - 01/27/16 04:22 AM

Thank you mega_mozg_13 and Debolestis! I appreciate the response smile

Has anyone been able to get a trackball working with MMJoy2? Generally speaking, I believe an optical trackball is 2 quadrature encoders, to create an enclosed plane.

Nothing would make me happier than to discover this is possible.

Cheers,

-M-
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 01/27/16 12:17 PM

Originally Posted By: Muthax2001
Thank you mega_mozg_13 and Debolestis! I appreciate the response smile

Has anyone been able to get a trackball working with MMJoy2? Generally speaking, I believe an optical trackball is 2 quadrature encoders, to create an enclosed plane.

Nothing would make me happier than to discover this is possible.

Cheers,

-M-


connect encoders. activate encoders buttons, and bind 2 Virtual axes with those buttons.
Posted By: iwik

Re: MMJoy/MMjoy2 - Build your own USB controller - 02/08/16 05:33 PM

Help,
Can not seem to get correct response from my axis input. Looking at the raw value it shows 0 to 255.
But when looking at windows or vkbtester it showing the pot as 0 in mid position.
I am obviously missing something. All I have set is :Insens-f7-8bit-y. The above problem
exist with this setting. Appreciate any help.
Big thank you to Mega-Mozg for this great software.
Regards
Les
P.S Realized my error, set to 8 bit but should be at least 10 bit.
Posted By: liliyahq

Re: MMJoy/MMjoy2 - Build your own USB controller - 02/18/16 03:46 PM

I want to modify the cougar throttle with this MMjoy2 mod,and need some advise here:
Which sensor can provide 14bit or more resolution(work like the warthog hotas throttle ),can MMjoy2 support such resolut?
Does tle5011 better than "MCP3202+KMZ60"?
thx so much~
Posted By: mega_mozg_13

Re: MMJoy/MMjoy2 - Build your own USB controller - 02/19/16 03:54 AM

Originally Posted By: liliyahq

Does tle5011 better than "MCP3202+KMZ60"?

much better, try it.
http://forum.il2sturmovik.ru/topic/3027-mmjoy2-i-thrustmaster/
Posted By: liliyahq

Re: MMJoy/MMjoy2 - Build your own USB controller - 02/19/16 02:54 PM

Originally Posted By: mega_mozg_13
Originally Posted By: liliyahq

Does tle5011 better than "MCP3202+KMZ60"?

much better, try it.
http://forum.il2sturmovik.ru/topic/3027-mmjoy2-i-thrustmaster/

thank you&#65374;It's very hlepful
Posted By: Niphiz

Re: MMJoy - Build your own USB controller - 02/19/16 05:33 PM

hey,im trying to build an overhead panel for an airplane Simulator,im totally NEW to electronics but I know the basics.I have a clone pro micro,but my problem is settting up the programm to save the tabs to the device.I have set rows and collumns buttons and have given a name but the option to save sets to device is faded and doesnt allow to do it.Just save to a file.Is there any screenshots for the NEW version that show how to set it up maybe?thank you guys smile
Posted By: Sokol1

Re: MMJoy - Build your own USB controller - 02/19/16 06:17 PM

"Save sets to device" are faded probable because you don't select the correct device - the one named "MJ-Reset" - in JoySetup USB list (upper left).





Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 02/20/16 07:31 AM

Niphiz
https://github.com/MMjoy/mmjoy_en/wiki
Posted By: Sak75

Re: MMJoy - Build your own USB controller - 02/22/16 10:35 AM

Hi Mega_mozg.

I have two questions to see if together we can solve everything. If you want to create a steering wheel with mmjoy, the type of assignment you have to configure? May be Rudder?.

Second, I have an hotas configured with 4 sensors and for the new steering wheel I want to use another Arduino promicro. When I set up a sensor in the steering wheel and connect the first (hotas) the same sensor dont work in hotas. It is normal?.

a greeting.
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 02/24/16 03:39 PM

Sak75
make unique PID/VID for your devices.
Posted By: Sak75

Re: MMJoy - Build your own USB controller - 02/24/16 04:16 PM

f**k is true, I'm idiot. Sorry!!!
Posted By: Psylence

Re: MMJoy - Build your own USB controller - 03/02/16 04:22 AM

I'm just starting to try and wrap my head around all of this. It's a lot to take in for someone who can, quite literally, just solder things together. I'm not very proficient with the idea of setting up circuit boards and inputs, etc. That said, I don't plan to stop learning and building till I get it right.

So, as I said, I'm new to this, but I love the idea of using this software to try and work up a full set of controls. The big question that I have right now, is what about a load cell and strain gauges for the inputs on the joystick? I understand the general concept of how to wire it up, you have a surface the joystick presses into which creates a bending force - even slight - to the metal which registers as a change in resistance.

I'm looking at this thread as a general reference on how it gets wired together:
http://forums.eagle.ru/showthread.php?t=53887
And if I understand that right, I would be going for #14 on that strain gauge list which means I would wire it like the diagram on the right-side of that list and place them so that each takes up approximately 1/4 the circumference. Those, if I understand this right, would go into some sort of bridge box... but that's where it loses me. Do I need a bridge box and how does that then wire into the rest of it? And does the MMJoy software even support that method?
Posted By: Euphoria

Re: MMJoy - Build your own USB controller - 03/02/16 02:43 PM

Psylence, (clever name btw)

I have recently completed a load cell joystick "gimbal", using two 10kg load cells arranged in opposite axes of each other. Cells are fed into an INA125 load cell amplifier and outputs to the mmjoy2 board. It's my first version, but it works great for Star Citizen. Here's a few pics. http://imgur.com/a/02lyK
Posted By: Psylence

Re: MMJoy - Build your own USB controller - 03/03/16 08:29 PM

Euphoria, (Thanks. Your name is fitting considering it must be to fly with that setup)

If I'm right, you're using something like this?
https://www.sparkfun.com/products/13330

I was thinking of trying something a bit more scaled down. Something more like:
http://uk.rs-online.com/web/p/strain-gauges/0632168/

But I'm still trying to work through it all still and I'm not set on anything. Funny as it is, my setup would be for Star Citizen as well and I'm also starting with a Cougar HOTAS. I'm guessing that what I do is attach those to say, a pipe which is fitted about the Cougar stick with a slight gap(to give me let's say 1/8 inch of play all the way around), then the gauges which are spaced about on X+, X-, Y+, Y- axes, run into an amplifier and outputs to my board(I'm thinking of using a flashed Pro Micro). That's where I'm a bit at a loss though, how do I set up the amplifier properly and how would I output to the board properly?

Again, if I understand this right, I would combine them into 2 sets of 2 sensors(1 set X, 1 set Y) and wire them to say a load sensor combinator to make it easy for me:
https://www.sparkfun.com/products/13281
Where each set of 2 would share one wire that would go to the R(Excitation) and the other two would go to W(Output +) and B(Output -). That would then connect to a load cell amplifier:
https://www.sparkfun.com/products/13230
Which would wire to my board VCC -> 5v, CLK -> Digital pin, DAT -> Different Digital Pin, and GND -> GND. Is that right?
Posted By: Niphiz

Re: MMJoy - Build your own USB controller - 03/04/16 02:03 PM

I have founf out that the mmjoy firmware wasnt uploaded to the Board,due to a problem in the bootloader mode.

When I enter COM port it goes green and I can do the upload even though without success,

when I put it in bootloader mode it goes off like its not recognized and doesnt allow me to do the install at all.

It is inverted with few words,is anyone able to help on this?
Posted By: Sokol1

Re: MMJoy - Build your own USB controller - 03/06/16 04:53 PM

Any of the compatible boards models (link in OP topic).

Based on connections with Arduino Leonardo PRO Micro - the model with less pins there:

http://simhq.com/forum/ubbthreads.php/topics/4118815/Re:_MMJoy_-_Build_your_own_USB#Post4118815

The TLE501x connections, as are done in digital mode share 3 pins on board, plus 1 pin for each axis input (8) = 11 pins.

This leave you with 9 pins for set the matrix, e.g 4x5 = 20 buttons

5 encoders will take 10 buttons positions, so can wire up to 10 buttons/switches more.

Teensy ++2.0 have more pins available and can reach 64 buttons (8x8 matrix) - remember that Windows see up to 32.

I suggest buy Teensy or Sparkfun boards due their better build quality over Chinese clones - despite these work OK (I use 3).
Posted By: Sokol1

Re: MMJoy - Build your own USB controller - 03/07/16 06:13 AM

PJRC is OK or www.sparkfun.com.

In this Arduino Boards, the mc ATMEGA32u4 have a 10 bits ADC for analog axis (pot/sensor) inputs.

The TLE501x have build in ADC 12 bits and send signal for board in digital way, in this case his resolution prevail.



Posted By: Sokol1

Re: MMJoy - Build your own USB controller - 03/07/16 06:31 PM

Yes, 12 bits but get the TLE5011 (last model).

A practical way to connect is use 2.54"connector header bar (female, 40 pins), then cut* in appropriated size and solder the wires in this bar pins - can use heath shrink to reinforce/protect the solders and looks nice - and plug the bar in Teensy connectors. Result "PnP". BU0836 include this connectors.

* Or buy in appropriated size (4, 8, 10...)

Sample: http://core-electronics.com.au/0-100-2-54-mm-female-header-1x16-pin-straight.html

BTW - Combining with the male header bar can make nice connector plugs (not for Teensy, but for other use).

http://core-electronics.com.au/header-40-pin-male-long-centered-pth-0-1.html?___SID=U

Dont make solder direct in Teensy pins, the temperature and current transients of solder iron can kill then.

I am not fan of breadboard (other for experimentation), this result in a mess of wires that can induce electrical noise.

Since Teensy is tiny what can help is make a support PCB with more pins. But for your project is not really needed.

For cables is recommend the "pig tail" type (multi copper wires with Teflon like insulation) used in telephony. Dont know the technical name - never see one. smile

See in Mega_MOZG pictures: http://simhq.com/forum/files/usergals/2015/03/full-37484-99124-dscf5909.jpg







Posted By: Sokol1

Re: MMJoy - Build your own USB controller - 03/08/16 06:07 AM

Well, is "newer". smile

I assumed that you would mount the sensor PCB, but as are getting ready to use don't bother with this detail. wink

BTW - Take a look in this use of GVL-224 "mexanika" parts.

http://forums.eagle.ru/showpost.php?p=2704884&postcount=267

Sample of support board with extra connection pins for MMjoy2.

http://i172.photobucket.com/albums/w37/debolestis/IMG_20160304_132604_zpspn1msv8n.jpg





Posted By: Sokol1

Re: MMJoy - Build your own USB controller - 03/08/16 05:48 PM

This support board model don't include button matrix, just expand the Arduino board pins, e.g. instead share +5V pin for all axis inputs you have one pin for every axis, etc.

If you will use few buttons, e.g. ~10, is more practical just put the diode in one pin of every switch.











Posted By: Sokol1

Re: MMJoy - Build your own USB controller - 03/08/16 10:44 PM

Is simple, e.g. a 2x2 matrix (lines and columns pins in controller board) handle 4 buttons.

Mean that every line is shared with 2 buttons and in same way every column is shared with 2 buttons.


upload image online free

The diodes, as explained in the link is for avoid keyboard ghosting with 3 or more buttons pressed simultaneous.

They made the current flow only in one direction.







Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 03/09/16 03:21 PM

Originally Posted By: Troll
I think I read it earlier, but as I understand it, it's possible to have MMJoy send one pulse when a switch is turned on, and then one pulse when i'ts switched of again. Correct?

Mode "Switch" one pulse when "on to off" or "off to on".
Posted By: abbas

Re: MMJoy - Build your own USB controller - 03/09/16 10:05 PM

hi sokol.i dont upload frimware mycomputer i need a vedio from upload frimware arduino leonardo.tnx wave
Posted By: Sokol1

Re: MMJoy - Build your own USB controller - 03/10/16 04:44 PM

Abbas,

Sorry don't know any video with instructons.
But it's so simple that video is not needed if follow this instructions:

https://github.com/MMjoy/mmjoy_en/wiki/Firmware-upload
Posted By: abbas

Re: MMJoy - Build your own USB controller - 03/11/16 04:33 PM

Success!! yeah
I can program it successfully now. thumbsup
It could be possible settings mmjoy2(20151118) for 4-axis and 4 encoder and 10 button give me
Posted By: abbas

Re: MMJoy - Build your own USB controller - 03/12/16 08:33 PM

I need Leonardo schematic like pic below

can you help me?
Posted By: Sokol1

Re: MMJoy - Build your own USB controller - 03/12/16 11:54 PM

This?


http://simhq.com/forum/ubbthreads.php/topics/3994326/Re:_MMJoy_-_Build_your_own_USB#Post3994326
Posted By: abbas

Re: MMJoy - Build your own USB controller - 03/13/16 08:14 AM

yes.
Which button column and Which button row?
tanks for your answer. salute
Posted By: Sokol1

Re: MMJoy - Build your own USB controller - 03/13/16 12:56 PM

Originally Posted By: Troll
I'm trying to understand how I should make a prototype board so I can have two pins for every button...
Have a look at this:
https://www.dropbox.com/s/ebir2uo5tup971r/6X6%20Button%20Matrix.pdf?dl=0

The triangle is the diode...


Is OK, but in this arrange will result in ~185x45 mm board, difficult to fit inside a "joystick":

http://s24.postimg.org/50mdwwfvp/Matrix2.jpg

Here a more compact 6x6 matrix: 94x40 mm - PCB easy to do with toner method (1 mm trails) and less bridges (blue):

Posted By: Sokol1

Re: MMJoy - Build your own USB controller - 03/13/16 03:22 PM

Yes, if want I can send the files (.PDF) for Laser print, or Gerber files to order the PCB in some online shop.*

Laser metod - or better "Toner transfer method" is: https://www.youtube.com/watch?v=bk6WJpGyc4I

* Can be the fast and cheaper option, e.g.if you dont have all tools needed do make the PCB, e.g. 0,8mm drill for make holes, a Dremel... bu less fun. smile

Posted By: Sokol1

Re: MMJoy - Build your own USB controller - 03/13/16 06:11 PM

I use Sprint Layout, simple but easy.

This USB controller, the MJoy8 - "Gran Papa" of MMJoy2, I DIY with toner transfer method.

http://i41.tinypic.com/da7vs.jpg

In the picture are receiving firmware.

But try draw with Fritzing, they have PCB make service: http://fritzing.org/services/

You find several others online, and very cheap ones in China.

Quote:
Imagine a pcb that has the teensy in the middle, and header pins for 32 buttons and 8 sensors...


Yes, but are penalty in board size, thehe above matrix with pins for fit a Arduino PRO Micro, increase the board size considerable:

http://s7.postimg.org/72mysjp5n/Matrix3.jpg

You can save some space using double side layout, but this add complication to draw and specially for make - not impossible but much more difficult for DIY.

If size is issue, there option to use Shift Register board with CD4021B instead matrix, each handle 8 buttons connection, fo 32 buttons will be needed four.

Sample: https://forum.warthunder.ru/uploads/monthly_03_2016/post-1315853-0-04810700-1457723067_thumb.jpg
The guy sold this boards ready to use, if I understand correct one board include all options.
https://forum.warthunder.ru/index.php?/topic/64234-mjoy-mjoy8-mjoy16-mmjoy/page-109

BTW - In this drawing how wire a matrix (4x2) without use PCB.

http://s16.postimg.org/s5jexmkat/Matrix.jpg



Posted By: Sokol1

Re: MMJoy - Build your own USB controller - 03/13/16 08:24 PM

LOL. MMJOy2 "pirate".

http://world.taobao.com/item/520508841650.htm?spm=a312a.7700714.0.0.0kvtmH#detail
Including CD4021 Shift Register board and TLE5010.

biggrin
Posted By: Sokol1

Re: MMJoy - Build your own USB controller - 03/14/16 03:33 PM

The matrix looks OK, for TLE5010 plug you need connection for SCK pin.

https://mmjoy.googlecode.com/svn/wiki/CobraM5/DSCF5915.jpg

Teensy++2.0 support with 6x6 matrix - 105x58 mm:

EDIT - See revised layout below.

Highlighted connection for analog axis (up) and TLE5010/11 (down) - not sure about this connection (if SPI-CS is MOSI?)...

Posted By: Sokol1

Re: MMJoy - Build your own USB controller - 03/14/16 06:35 PM

Based on this text, shared connections for TLE5010/11

GEN
MISO
SCK
Gnd
+5V

Individual (F4, 5....) pins - that can be used for analog axis input.

CS

In the above arrange you can connect analog axis in 3 pins from left.
Or digital (TLE5010/11) using all 6 pins - if pins used in Teensy++2.0 are correct.

Quote:
Where are the pin headers and the diodes?

Read more: http://simhq.com/forum/ubbthreads.php/topics/4208488#ixzz42u76rzcx
Follow us: @SimHQ on Twitter | SimHQ on Facebook


The pins header and diode in the above matrix, diode can be assembled on vertical (bellow) - or used SMD diode, or horizontal (up), or combine both options - for this need change in layout (not finished).
Blue are bridge on back side of board. All this optimized for DIY methods. For double layer, SMD, the layout can be more compact.


free picture upload


Edit - Think that now are correct:







Posted By: mega_mozg_13

Re: MMJoy/MMjoy2 - Build your own USB controller - 03/15/16 09:43 AM

Posted By: Sokol1

Re: MMJoy/MMjoy2 - Build your own USB controller - 03/15/16 03:20 PM

Is a resistor (1k), for replace the 5 eliminated in TLE5010 board.
But if you get TLE5010 board assembled with resistors, dont need add this in matrix.

OK, can be used diode and resistor SMD (0805) or pass through:



BTW - I try drawing with Fritizing, but this thing is PITA! In Sprint Layout is like draw in MS Paint. wink



Posted By: Sokol1

Re: MMJoy/MMjoy2 - Build your own USB controller - 03/19/16 05:45 PM

Looks OK and compact. Just invert the matrix pins vertically or the USB cable end above some pins connection.

Good idea in use diodes as jumpers, save some solder. smile

Cooper background fill is good for DIY, because mean less area to corrode. wink

For make in PCB shop don't matter - and some can optimize the layout before make.


Posted By: Sokol1

Re: MMJoy/MMjoy2 - Build your own USB controller - 03/20/16 03:01 PM



Yes, now make or order - draw this is addictive, you can end wasting time drawing and not building (me). smile
Posted By: Sokol1

Re: MMJoy/MMjoy2 - Build your own USB controller - 03/23/16 04:03 PM

Based on this drawing for encoder diode are pointed for pins (contrary for buttons):

http://simhq.com/forum/files/usergals/2014/08/full-37484-85623-pins_common.png

A bit confuse what are row and what are column in the drawing - seems "to the next..." are inverted. smile




Posted By: Miraculix

Re: MMJoy/MMjoy2 - Build your own USB controller - 03/25/16 05:21 PM

Hi all,

I have set up a Pro micro with an 8x8 button matrix (not all connected yet) and when I press the button it is also recognized by MMJoy2 (numbers turn red in the tool).
Where I now have the problem is to do use it in a game (DCS/War Thunder). Do I have to assign a "Key" to each button (in the field "H/W button") or should it be recognized as Vjoy_btn_xyz?

Btw: Great work so far!
Posted By: Sokol1

Re: MMJoy/MMjoy2 - Build your own USB controller - 03/25/16 07:07 PM

8x8 matrix = 64 buttons

Windows and games see only 32 (DInput limit).

In Windows Game Controler (type: joy.cpl in start box) you should see and test the buttons up to 32.

For butons above #32 you need use keymapper (press button to send key press for games), eg. Joy2Key, XPadder, SVMapper, Autohotkey...






Posted By: Cariddi

Re: MMJoy/MMjoy2 - Build your own USB controller - 03/26/16 08:35 AM

Thanks everyone!
Thanks to this forum I built a throttle with 20 buttons using a pro-micro and MMjoy2.

I'm not going to upload pictures, though, because those are my frist weldings cool

Edit
Click to reveal..

biggrin
Posted By: Sokol1

Re: MMJoy/MMjoy2 - Build your own USB controller - 03/26/16 02:56 PM

Troll,

I think you can find the answer with practical tests. wink

Cariddi,

That post need pictures. smile
Posted By: Sokol1

Re: MMJoy - Build your own USB controller - 03/30/16 10:58 PM

Yes, the first time is need install the COM drivers - for the next MMJoy2's is not needed.

Help tick the field "Auto-start upload firmware when COM port is active" due the 8 seconds that this port remain open.
Posted By: Sak75

Re: MMJoy - Build your own USB controller - 03/31/16 02:22 PM

Hello everyone. I have a question, I will redesign the joystick and thought was put into one of the sticks a dial axis as the link:

http://es.aliexpress.com/item/Free-Shipping-2PCS-LOT-Dual-axis-XY-Joystick-Module/2016825722.html

And use the axis as buttons. Mmjoy recognizes me well, I assign axis 1 and 2 and in the section axis button to select these axes. My question is on the percentage to be put?.
Posted By: Sokol1

Re: MMJoy - Build your own USB controller - 03/31/16 10:54 PM

If you are referring to "Axis to button" and assuming that you goal is use this mini-stick as 4 way "HAT".

Try - for example - 0 to 45% of axis X press button 1 and 55 to 100% press button 2.

The 45 and 55% value will define how much is need move the mini-stick for press the button. Test with different values.

Same in Y axis.
Posted By: Sak75

Re: MMJoy - Build your own USB controller - 04/01/16 01:07 PM

Sorry is axis to button (the traslator software) i try with 0%-40% 60%-100% but the button is like always press. i think that maybe select the button like encoder? not?

Many thanks
Posted By: Sokol1

Re: MMJoy - Build your own USB controller - 04/02/16 02:48 AM

..."but the button is like always press."

This behavior is common to all press buttons, stay ON until release the button - or axis in case.

For example using a joy HAT (that is 4 micro switches), if you move the HAT for left the left corner button is ON until release the HAT.
Posted By: mega_mozg_13

Re: MMJoy/MMjoy2 - Build your own USB controller - 04/05/16 03:43 PM

big throttle, first steps:



Posted By: Sokol1

Re: MMJoy - Build your own USB controller - 04/05/16 08:35 PM

Originally Posted By: Troll

The Teensy 2.0 and the ++2.0 have different chips..! When I choose the AT90USB1286 for firmware and chip, everything worked! Still never got a COM port, or entered one... Not needed for Teensy..?


If I remember correctly is not need install COM port for Teensy, as is need for PRO Micro.

But you could write the firmware?

BTW - My Teensy 2.0 has ATMEGA32U4 mc, see in the picture (in il-2). smile






Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 04/06/16 06:00 AM

Troll
you are need a "Teensy Loader Application" from here https://www.pjrc.com/teensy/index.html
Posted By: Sokol1

Re: MMJoy/MMjoy2 - Build your own USB controller - 04/07/16 05:45 PM

Originally Posted By: Troll

Now I have to figure out how to connect the encoders to my fantastic PCB, which is designed only for switches... duh


Maybe:


how do you print screen
Posted By: Sokol1

Re: MMJoy/MMjoy2 - Build your own USB controller - 04/07/16 06:53 PM

I don't know what is Row and Columns in your PCB, but if are like in the above sketch the encoder are connected to two different Columns.
In this positions reserved for encoder place thee diode inverted, pointed to encoder pins.

Or use a wire bridge (bold black line) and solder diodes in encoder pins with strip pointed for pins (as drawn).

1 Row is common for both encoder connections, and can be common for other encoders.
Posted By: UKPete

Re: MMJoy/MMjoy2 - Build your own USB controller - 04/09/16 11:00 AM

Hi Everyone.
And a big thanks to Mega_Mozg for making MMJOY it's brilliant!!
But i could do with some help, I have gone through the all the 72 pages of posts a few times and have the Images of the Pro Microboard people have posted but don't understand where to connect the TEL5011 to the Pro Micro board, I have got buttons and Potentiometers to work ok but need some help with what goes where with the Hall sensor.
Here is an image of the PCB I had made and soldered up (the PCB was made by http://www.seeedstudio.com 6 for 10!).
Any help would be much appreciated.
Pete.

Posted By: UKPete

Re: MMJoy/MMjoy2 - Build your own USB controller - 04/09/16 02:04 PM

Hi Troll. PERFECT!!
Thanks so much for taking the time to reply It Works!
I can't believe i made something that works Haha I owe you a drink!
I moved the MISO (DAT) and SCK and set the MMJOY2 to use D4 and BINGO!! :-)
I don't know what MISO, MOSI or SPI mean which was my problem probably.
May I ask one more question regarding adding another sensor for the Y AXIS.
GND and VCC(5v) is ok I understand this.
B6 Shared for all TLE5010/11 Sensors so I understand.
CS goes to go to D7 for example (with D4 for the X axis)
B3 share with X axis?
B1 share with X axis also?.

Thanks in advance.
Pete.
Posted By: UKPete

Re: MMJoy/MMjoy2 - Build your own USB controller - 04/09/16 02:37 PM

Thanks Troll.
I will make another one PCB up and try.
I have to mount the one I have done now as i'm only waving a Diametricall magnet in front of the sensor by hand.
I will let you know if it works.
Thanks once again!.

Pete.
Posted By: mega_mozg_13

Re: MMJoy/MMjoy2 - Build your own USB controller - 04/11/16 05:01 AM

Originally Posted By: UKPete



WOW, Peter this is greatest egoism level?(nothing about Infenion TLE5010 and MMJOY project)
also TLE5010/TLE5011 is not "hall" sensor, read about "Giant Magneto Resistance"...
Posted By: Debolestis

Re: MMJoy/MMjoy2 - Build your own USB controller - 04/11/16 10:07 AM

Mega_mozg do you have schematics for 4021 shift registers?
Posted By: mega_mozg_13

Re: MMJoy/MMjoy2 - Build your own USB controller - 04/11/16 10:42 AM

Originally Posted By: Debolestis
Mega_mozg do you have schematics for 4021 shift registers?

No, I use "74HC165".
Posted By: Sak75

Re: MMJoy/MMjoy2 - Build your own USB controller - 04/11/16 12:31 PM

Hi i donwload the last version of mmjoy2. In "axis assignment" there is no throttle, rudder, etc. I understand that rotary axis (rX, rY or RZ) cant be used like thats. true?

And when use a simple pot. dont work fine. star in the middle and when up. fill the level bar and back to the start and fill to the middle.

Thanks
Posted By: Debolestis

Re: MMJoy/MMjoy2 - Build your own USB controller - 04/11/16 05:05 PM

Originally Posted By: mega_mozg_13
Originally Posted By: Debolestis
Mega_mozg do you have schematics for 4021 shift registers?

No, I use "74HC165".


Ok, do you have schematics for 74hc165? If you have can you please post it?

Thank you!
Posted By: UKPete

Re: MMJoy/MMjoy2 - Build your own USB controller - 04/13/16 06:14 PM

Sorry Mega_Mozg_13!
On the next board i will put credits to you and MMJOY2 on the PCB etc sorry if anyone took offence that it's not there!.
I was in a hurried excited state on making this! It's not egoism I was watching a youtube tutorial on how to design a pcb and just followed this guy who put his name and revision number on his pcb and thought that was a good idea!
I would share the drawing for the board board design if anyone wants it? (needs some work to make it better)

Pete.
Posted By: Sokol1

Re: MMJoy/MMjoy2 - Build your own USB controller - 04/13/16 10:45 PM

UKPete

You can eliminate the resistors R1 to R4 in TLE5010/11 PCB, see there:

http://simhq.com/forum/ubbthreads.php/topics/4239992/Re:_MMJoy/MMjoy2_-_Build_your_#Post4239992

For conveniente leave R5, if not make a support board for MMjoy.
Posted By: buccaneer89

Re: MMJoy - Build your own USB controller - 04/14/16 12:48 PM

Hey guys,
I've been reading for a couple of hours this post and haven't seen anything like a list of components needed.

Would any of you be able to put a full list of components of what you need to for example create a 6 axis (yaw, pitch, roll, throttle, mix, propeller pitch) and then something like 32 buttons.

At the moment I have the following list:

-Arduino Micro

-Breadboards for prototype
-Cables for prototype

-32 switches
-Shift Register IC 74HC165 How many?

-6 Hall sensors (What type)
-6 External ADC MCP3208 One for each axis?

Posted By: Debolestis

Re: MMJoy - Build your own USB controller - 04/14/16 01:26 PM

You can eliminate diodes if workng with shift registers. Diodes are only for button matrix. What exactly are you making, any drawings? What sort of mechanism?

I am working on shift register PCB, I'll upload it on OSH park where you can make pro PCB cheaply. You need a sensor for each axis, hall or potentiometer or similar.
Posted By: buccaneer89

Re: MMJoy - Build your own USB controller - 04/14/16 01:34 PM

Originally Posted By: Debolestis
You can eliminate diodes if workng with shift registers. Diodes are only for button matrix. What exactly are you making, any drawings? What sort of mechanism?

I am working on shift register PCB, I'll upload it on OSH park where you can make pro PCB cheaply. You need a sensor for each axis, hall or potentiometer or similar.


Thanks.

Well, I am thinking of doing a full joystick setup.
The column stick, rudder, engine controls and then a pletora of buttons and switches for a WW2 plane. Therefore nothing extra fancy is needed.

I have found that Allegro A1302 can be used for the Joystick Axis.
Posted By: Sokol1

Re: MMJoy - Build your own USB controller - 04/14/16 02:19 PM

Originally Posted By: buccaneer89

-Breadboards for prototype
-Cables for prototype


Use this only for test, for final assembly make a PCB - order online or DIY.

Quote:

-32 switches
-Shift Register IC 74HC165 How many?


Each 74HC165 handle 8 buttons, so you need four (no limit in numbers).

Quote:

-6 Hall sensors (What type)


Honeywell SS495A-1 or Allegro A1324, they are more sensitive.

A1302 work but require almost 180 degrees of magnet turn, what will limit the axis resolution.
Movement in joystick gimbal is tipycally 20~25 degrees.

But instead HALL use Magneto Resistor sensor TLE5011, more easy to setup.

Quote:

-6 External ADC MCP3208 One for each axis?


You need MCP3208 (12 bits) for axis that plan use above 10 bits - ATMEGA32u4 native ADC resolution - typically for X, Y, rudder axes. IMO - Are much hype about need of big resolutions, although this help to deal with axis movement limitation, e.g. use 14 bits for reach practical 10/12 bits.

Each MCP3208 has 8 inputs. So one fill you needs.

If use TLE5010/11 MPC3208 is not need, this sensor has internal (14 bits) ADC.




Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 04/15/16 01:42 PM

"promicro" shield + shift reg's + tle5010
from CAPITANBLOOD http://forum.warthunder.ru/index.php?showuser=1330428
https://forum.warthunder.ru/index.php?/topic/64234-mjoy-mjoy8-mjoy16-mmjoy/?p=5518167
https://forum.warthunder.ru/index.php?/topic/64234-mjoy-mjoy8-mjoy16-mmjoy/?p=5507534
Posted By: Sokol1

Re: MMJoy - Build your own USB controller - 04/16/16 01:22 AM

After all, resistor in TLE5010/111 board are needed or not?
In the boards draw by CAPIAINBLOOD this resistors are placed.

In ENCODER board are resistors and capacitors, but their values are not informed.
Posted By: Repvez

Re: MMJoy - Build your own USB controller - 04/18/16 07:13 PM

Can someone explain or collect to what do I need for my TM F 16 FLCS+TQS ?
Which panel , program , firmware ect.
Can I use Hall sensor A1302.
Which part can I use the original elektronic? What is the shift register or TLE 5010?
Posted By: Sokol1

Re: MMJoy - Build your own USB controller - 04/18/16 08:05 PM

This joy & throttle combo need a USB controller with at least 5 axis: 2 for joy X, Y, 1 for throttle, 1 anthena, 1 for range.

Or 7 if you plan use a PS2 mini-stick (2 axis) for replace the "IBM" mouse under thumb in throttle leaving the TQS like Cougar TQS.

For the 1st case the Arduino PRO Micro is sufficient, for the 2nd you need a board that allow more axes input (PRO Micro is limited to 6), e.g. Teensy 2.0.

Or use one PRO Micro inside the joy and one inside the TQS, leaving the controllers independent. Samples: http://forums.eagle.ru/showpost.php?p=2725761&postcount=4

Firmware is MMjoy2 - link for the last revision available in first topic of this thread.

Read two post above your the inconvenient of A1302 HALL sensor.

The only part of original electronics that you will reuse is the Shift Register board inside F22 grip.
Remove the other circuit boards but leave buttons, HAT, wires and his connector in place.

TLE5010 is contactless sensor (for automotive industry), in practical terms work in joystick similar to HALL sensor, reading a magnet field, but is more easy to setup. Need assembly in small PCB with resistors and capacitors.

Sample, installed in Cougar TQS: http://forum.il2sturmovik.ru/topic/3027-mmjoy2-i-thrustmaster/page-2#entry322826




Posted By: Repvez

Re: MMJoy - Build your own USB controller - 04/19/16 08:18 AM

So If I understand well. If I use 2 pro micro each device and I don't want to use drivers or mmjoy2 program then It works plug and play whith directx buttons?
And can I use in same time both device in one game If they connect different USB port?
The pro micro has 5 analoge axis? So I can use PS2 mini stick in the throttle and I can connect to joy one plusz rudder with toe break?
The F16 FLCS shift regiszter is same as the F22? I don't have to modify in the original grip if I use this ?
Does the mmjoy2 program use macros or pinkyshift button ?

Where can I find the original connecting shematic because I cut out my wire in the grip.

I could replace only the original potmeter with TLE5011 ? A such device where I only change the potmeter ? Becouse normal pot has 3 wire TLE5011 has 5 If I see well.

Unfortunately,I can't see the pictures on the russian web page on the cougar TQS or other . I don't understand russian languages and I 'm not sign up on those page.
Posted By: Sokol1

Re: MMJoy - Build your own USB controller - 04/19/16 04:17 PM

Originally Posted By: Repvez
So If I understand well. If I use 2 pro micro each device and I don't want to use drivers or mmjoy2 program then It works plug and play whith directx buttons?


Yes, but first ou need use the MMJoy2 JoySetup program one time, to define device name (e.g. Repvez TQS) wink , VID/PID, how many axis, buttons, encoders (optionally)... will use in each controller, after the controller became PnP and use Windows HID drivers.

Quote:

And can I use in same time both device in one game If they connect different USB port?


Yes, each require a USB port, and based in VID/PID set is seem by Windows/Games as Joy1, Joy2, etc...

Quote:

The pro micro has 5 analoge axis? So I can use PS2 mini stick in the throttle and I can connect to joy one plusz rudder with toe break?


PRO Micro has pins for 6 axis inputs - can be more if you use a external ADC, eg. MCP3208 plugged in PRO Micro, this allow use 8 axis (8 axis is Windows limit per USB Controller), other Arduino boards has pins for 8 axes inputs.

Quote:

The F16 FLCS shift regiszter is same as the F22? I don't have to modify in the original grip if I use this ?


Yes, you use the grip in his original form, just plug the 5 wires cable that come from grip in PRO Micro board.

For the throttle you need use one diode in one pin of each buttons/HAT.
Or assemble other Shift Register board using CD4021B or 74HC165 mc, is need board with 2 mc, each control 8 buttons.
TQS has 10 buttons.

Quote:

Does the mmjoy2 program use macros or pinkyshift button ?

No, for program macros you need a external keymapper program, e.g. Joy2Key, Xpadder, SVMaper...

MMjoy2 JoySetup allow you set a "Shift" button. Not sure on how this work..., but with Cobra M5 3 position slider switch this allow NAV, BVR, VIS modes.

Other MMjoy2 firmware feature is possibility to set a joy button to generate a keyboard keypress instead a DX button, e.g. button 10 = LShift.

Quote:

Where can I find the original connecting shematic because I cut out my wire in the grip.


In MMjoy2 package are a picture of Tm Shift Register board with cables description. It was posted somewhere in this topic.

Quote:

I could replace only the original potmeter with TLE5011 ? A such device where I only change the potmeter ? Becouse normal pot has 3 wire TLE5011 has 5 If I see well.


Yes and is high advisable replace, as pot's wear and Tm pot's are far for "stellar".
TLE5010/11 is PCB that you fix in front a magnet fixed in position like a port read.

TLE5010/11 has 5 wires because work in digital mode (less subject to interference).
Like the HALL sensor in Warthog/TM.16000M, X-55/56, or magnet resistor sensors in MFG Crosswind, Slaw pedals, VKB joy/pedal.

Pot's use 3 wires because work in analog mode.
HALL Sensor (Allegro A1324, Honeyweell SS495A1...) work in analog mode.
GVL224 "MagRez" sensor work in analog mode.

Quote:

Unfortunately,I can't see the pictures on the russian web page on the cougar TQS or other . I don't understand russian languages and I 'm not sign up on those page.


Some there. The TLE5010/11 PCB glued in (Cougar) TQS pot support:



The circular diametrical magnet fix in TQS axis:



Both in place:



As you see the thing is flexible to assembly, in the example glued with Epoxy putty, you can use hot glue, or better bolt the board.

Sample of flexibility allowed by TLE5010/11, in this PCB Mega-MOZG assembly the sensor over the box (11x11mm) of original Tm HOTAS X pot, the pot axis turn the magnet bellow the sensor:



The new "pot'sensor" installed in joy gimbal, in the same place of original pot. In gimbal axis was installed ball bearings to reduce axis play.



BTW - To access IL-2 Russian forum use the same password created in English forum (www.il2sturmovik.com). wink








Posted By: Repvez

Re: MMJoy - Build your own USB controller - 04/19/16 06:18 PM

Thank you for detailed answer.

I have more question if I could.
What does the MCP3208 do and MCP3202+KMZ60? Those only use if I want connect analoge pot's on the board or when I want increase the axis bit resolution?

So ,Where connect the 5 wire of tle 5011 ? That's way this doesn't replace analog pot, if I only change pot's in another original joy?
"5V" ang "gnd" go same place on pro micro but other 3 are individual each from tle 5011 chip?
the tle5011 chip counts that which side (front/back) or orientation has toward the magnet.
The most of pics I saw horizontal assembly but there is verticaly.

Very interesting the "pot'sensor" with this modification could be replace the antenna elevation pot too.
How looks like this PCB?
Posted By: Sokol1

Re: MMJoy - Build your own USB controller - 04/19/16 07:43 PM

Originally Posted By: Repvez

What does the MCP3208 do and MCP3202+KMZ60? Those only use if I want connect analoge pot's on the board or when I want increase the axis bit resolution?


The reason for use MCP3208 is has more two axis input than the allowed in PRO Micro, and use more resolution (12 bits), than the 10 bits native in PRO Micro ATMEGA43u4 mc.

The sensors plugged in MCP3208 can work in digital or analoge mode, in the same way that is allowed the ones plugged in PRO Micro only.

Additionally, as MCP3208 free some pins in PRO Micro, this pins can be used for more buttons inputs, so instead use 32 buttons can use more... up to 64 -is need use keymapper for buttons above #32 - Windows limit.

KMZ60 is "magnet resistor" sensor but was became obsolete by TLE5010/11. His PCB require more additional components.

Quote:

So ,Where connect the 5 wire of tle 5011 ? That's way this doesn't replace analog pot, if I only change pot's in another original joy?


The 6 wires of TLE5010/11 was connected in specific pins in PRO Micro, 3 of this pins (+5v, Gnd, Axis input) can be used to connect a analog device - pot or HALL sensor.

You are not limited to use one or other type, can use sensor in digital mode in more sensible axis, e.g. X, Y, throttle, rudder and pot' or HALL sensor in analog mode in secondary axis like brakes, anthena, range, mini-stick...

Quote:

"5V" ang "gnd" go same place on pro micro but other 3 are individual each from tle 5011 chip?


+5V, Gnd, Miso, Sck... are shared for all axes, only the axis input pin is individual for each axis.

Quote:

the tle5011 chip counts that which side (front/back) or orientation has toward the magnet.
The most of pics I saw horizontal assembly but there is verticaly.


Dont know if this matter but most assembly is with chip horizontally positioned with his "front" toward the magnet.
In vertical operation probable is matter of position the magnet N/S orientation properly.
In case need invert axis direction is need flip the magnet N/S orientation, when this is not possible set the reverse in JoySetup (most of actual "flight games" allow this too).

Quote:

Very interesting the "pot'sensor" with this modification could be replace the antenna elevation pot too.
How looks like this PCB?


Download the MMJOY package, in PCB folder are layout to assembly the TLE5010/11 in this "pot/sensor" way.
Use the SprintLayout Viewer to open the file.







Posted By: Repvez

Re: MMJoy - Build your own USB controller - 04/20/16 08:30 PM

I registered the russian web page, but unfortunately I can't see the most of the pics or attachment there.

As I can see , the pro micro has 2 version , schould I buy the 5v version?
The chinese ardunio panel + TLE5011+ shift register are good? everything is one place, any other place where can we buy this?
The chinesian webshop is scary. Aliexpress could be better.
Posted By: Sokol1

Re: MMJoy - Build your own USB controller - 04/20/16 10:27 PM

Yes, get the 5 volts version of Arduino - most of HALL sensors work better with this voltage.

In Eagle forum a guy buy this assembled Chinese bards in Taobao:

http://forums.eagle.ru/showpost.php?p=2736643&postcount=14

The guy that make this is "flight simmer".

Or buy the components through eBay and assemble you own, this is the spirit of "DIY". smile





Posted By: UKPete

Re: MMJoy/MMjoy2 - Build your own USB controller - 04/23/16 03:48 PM

Originally Posted By: Sokol1
UKPete

You can eliminate the resistors R1 to R4 in TLE5010/11 PCB, see there:

http://simhq.com/forum/ubbthreads.php/topics/4239992/Re:_MMJoy/MMjoy2_-_Build_your_#Post4239992

For conveniente leave R5, if not make a support board for MMjoy.


Thanks for the Info Sokol1!
Posted By: Repvez

Re: MMJoy - Build your own USB controller - 04/27/16 07:11 AM


I ordered my pro micro boards each one for in FLCS and the TQS, And plus ordered some TLE5010 chip so i'm ready to the conversion.
What else do I need more?
Posted By: buccaneer89

Re: MMJoy - Build your own USB controller - 04/27/16 01:56 PM

Originally Posted By: Sokol1
Originally Posted By: buccaneer89

-Breadboards for prototype
-Cables for prototype


Use this only for test, for final assembly make a PCB - order online or DIY.

Quote:

-32 switches
-Shift Register IC 74HC165 How many?


Each 74HC165 handle 8 buttons, so you need four (no limit in numbers).

Quote:

-6 Hall sensors (What type)


Honeywell SS495A-1 or Allegro A1324, they are more sensitive.

A1302 work but require almost 180 degrees of magnet turn, what will limit the axis resolution.
Movement in joystick gimbal is tipycally 20~25 degrees.

But instead HALL use Magneto Resistor sensor TLE5011, more easy to setup.

Quote:

-6 External ADC MCP3208 One for each axis?


You need MCP3208 (12 bits) for axis that plan use above 10 bits - ATMEGA32u4 native ADC resolution - typically for X, Y, rudder axes. IMO - Are much hype about need of big resolutions, although this help to deal with axis movement limitation, e.g. use 14 bits for reach practical 10/12 bits.

Each MCP3208 has 8 inputs. So one fill you needs.

If use TLE5010/11 MPC3208 is not need, this sensor has internal (14 bits) ADC.





Thanks man.

Would this be the same as the TLE5011

http://ie.farnell.com/honeywell/2ss52m/sensor-magnetoresistive-3-8-30vdc/dp/3111519


So recaping if I want 5 axis and 32 buttons. Would this list be enough to get everything working?

32 switches/ buttons

4 Shift Register IC 74HC16

5 TLE5011

1 Arduino Micro

Cables

Breadboard for prototype, to be PCBd when final.



Do I need any kind of resistors or capacitors for the TLE5011 or is it a straight connection to the Arduino Micro?

Also what is the resolution of the TLE5011, I have found mentions to 360 degrees, but not the resolution, as in what is the minimum amount it can mesure? 0.1 degree, 0.01 degree?
Posted By: Sokol1

Re: MMJoy - Build your own USB controller - 04/27/16 02:03 PM

Ring Neodimium magnets or cicular diametrically magnetized - they attract others by sides.

For TLE5010 PCB you need - preferable in SMD 1206 format, not too small to solder manually and avoid the use of 0,6mm drill case use pass through components:

R1-R4 - 10-100 OHM, optional. For protection on long wires.
R5-R6 - 1-10 kOHM, required. Need to hold up "data" and "select" digital lines.
C1 - 0.1uF (ceramic 104), required. Used on all sorts of applications to decouple ICs from power supplies.
C2 - 10uF (tantal A), optional. These capacitor are great transient/surge suppressor.
Posted By: Repvez

Re: MMJoy - Build your own USB controller - 04/27/16 06:37 PM

I downloaded the sprint layout program but the *.lay6 file didn't open it . Why or what is the methods?
I tried rename the extension simple *.lay but didn't work And one more question. For the pro micro panel to flash firm need spec cable or I use a normal micro USB?
Posted By: Sokol1

Re: MMJoy - Build your own USB controller - 04/27/16 10:47 PM

.lay6 open only in SprintLayout 6.0 - there a demo and a viewer in their site, that allow print the file.

To flash PRO Micro is only need the USB cable and JoySetup software (MMjoy2 package).
Posted By: buccaneer89

Re: MMJoy - Build your own USB controller - 04/28/16 04:08 PM

Hi guys,
I am reading tons of info on the components that I should be buying and trying to understand how to connect everything.

I am having problem on the wiring of the Shift Register 74HC165 to the Arduino.

I don't know where I should connect the PL(green), CP(orange) and Q7(yellow) poles, I pressume that I can connect them to any BM available input on the Arduino like A0 to A5 on the Micro and then once in the software you select which inputs are being used.

Am I right?




As a side note has anyone found the 74HC165 for Fritzing. I found some but none of them could be succesfully imported.
Posted By: Repvez

Re: MMJoy - Build your own USB controller - 05/01/16 04:26 PM

I found it.It is similar to shift register I think, but it use only 4 wire at te end of process.
On PCB there are two I2C expanders MCP23017 connected with Arduino with joystick library

Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 05/02/16 06:07 AM

Originally Posted By: Repvez
I found it.It is similar to shift register I think, but it use only 4 wire at te end of process.
On PCB there are two I2C expanders MCP23017 connected with Arduino with joystick library

MMjoy2 are not Arduino sketch, and don't use arduino librarys.
"I2C" protocol not supported. Only variants of SPI.
Posted By: Repvez

Re: MMJoy - Build your own USB controller - 05/02/16 03:43 PM

I didn't know that. I thought MMjoy2 use same protokol because there use same ardunio panel or chip.
Posted By: Sokol1

Re: MMJoy - Build your own USB controller - 05/02/16 06:41 PM

Arduino boards have many "flavors" with different micro controllers. smile

Since you choose other way (than MMjoy2) maybe this help, is done with generic Arduino HID code, but probable you need write the code for the I2C protocol, as in this case the guy simple reuse the original Shift Register board with CD4021B.

http://forum.arduino.cc/index.php?topic=271306.0
Posted By: Bosk666

Re: MMJoy - Build your own USB controller - 05/02/16 06:55 PM

Hi,

is there a way to connect mmjoy2 to a ps4 ?

Jens
Posted By: Repvez

Re: MMJoy - Build your own USB controller - 05/02/16 08:29 PM

No, it isn't my joy and board. I just found on internet.

My choise is ready for MMjoy2.
It is a well described device and it has every file , program etc..
You and others are very helpfull so what should I have to more? smile2
Posted By: buccaneer89

Re: MMJoy - Build your own USB controller - 05/03/16 10:24 PM

Guys,
I have a strange occurrence.

I have a Teensy 2.0

1. I connect it the first time through USB, it starts flashing but doesn't appear in the Device Manager as something obvious nor the Driver Updates automatically and when I find the actual profile on the Device Manager and update the driver it is already updated.
2. I open MMJoy2.exe and upload the firmware, it says COM1 despite not being COM1
3. When restarted the Teensy it appears in MMJoy2.exe as VID:8888 PID:8888 MMJoy2 (MMJoy2-20151118)
4. I go to Joystick Buttons and put B2 and B3 as matrix columns as I have a single button connected to those for testing.
5. The button number 1 turns red when I press it.
6. The MMJoy2 appears as Game Controller in the Devices and Printers. However there is no calibration or anything like that.
7. I start War Thunder and try to set up Engine On by pressing the button.
8. Nothing happens.

Am I missing something? Even if I close MMJoy2.exe and disconnect and reconnect the Teensy War Thunder doesn't recognize the buttons.
Do I have to set up in normal working mode?
Posted By: Sokol1

Re: MMJoy - Build your own USB controller - 05/03/16 10:55 PM

After set the column and row for buttons you use the "Save settings do device"?

If you don't set axis for the new "joystick" no calibration is available in Game Controllers.

You can use the VKB Button Tester - in lower JoySetup toll bar - to test buttons, work with any joystick.
Posted By: buccaneer89

Re: MMJoy - Build your own USB controller - 05/04/16 08:51 AM

Yes, I save the settings to the device.
However when using the VKB Button Tester only my other Joystick, T16000M appears. And if I disconnect the other Joystick not options are available on the VKB Button Tester
Posted By: Sokol1

Re: MMJoy - Build your own USB controller - 05/04/16 01:13 PM

As is detected in Game Controllers, the joystick are OK, the issue is in button settings.

Can you post a screenshot of JoySetup tab buttons?

Posted By: buccaneer89

Re: MMJoy - Build your own USB controller - 05/04/16 07:33 PM




The red boxes are what the computer detects. But on the button tester nothing is detected.

The connection for the two testing buttons is as follows.

Cable from B2 to pole 1 to button 1
Cable from B3 to pole 2 to button 1

Cable from F4 to pole 1 in button 2
Cable from F5 to pole 2 in button 2

The button in MMJOY2 is red as I am pressing on the button 2 of the breadboard
Posted By: Sokol1

Re: MMJoy - Build your own USB controller - 05/04/16 08:00 PM

In "used buttons" is show 0...

You need set below the box "Clear settings" that "Joystick button 1" will use "W/H.button" 4, etc for every used button.

Click in ---- and select in drop down menu the number.

Then save settings to device and re-plug.

Posted By: buccaneer89

Re: MMJoy - Build your own USB controller - 05/04/16 08:32 PM

Thank you very much.
You guys are amazing.
Posted By: Debolestis

Re: MMJoy - Build your own USB controller - 05/08/16 09:36 AM

Mega_mozg is it possible to add third shift register in switches tab?
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 05/08/16 01:49 PM

Originally Posted By: Debolestis
Mega_mozg is it possible to add third shift register in switches tab?

make it at one line.
Posted By: Sak75

Re: MMJoy - Build your own USB controller - 05/09/16 08:41 AM

Hi all,

I am redesigning my hotas joystick and changing the type of spring, pot, buttons, etc. I also plan to use two arduino pro micro plates for more axes and buttons. My question is because i'm thinking of using two positions Toggle Switches and with a led indicate me which position is on.
I've been doing several tests but can not get the signal to turn on the LED, we know electronics are not a wonder What do I want it's possible?.

Thank you
Posted By: erichos

Re: MMJoy - Build your own USB controller - 05/10/16 06:02 PM

Hello everybody!

Firstly I want to thank to mega_mozg_13 for great work on MMJoy2 software and Sokol1 and others for help.

I decided to repair and connect together 2 saitek quadrants and 1 saitek switch panel that does not work for IL-2 Sturmovik 1946. I replaced old pots with hall sensors Allegro A1302 in both quadrants and connect to one board ProMicro, that works fine. But switch panel has switch lever for switching gear with 3 Bi-color LEDs (Red/Green)that was problem. I wanted to keep them. I made it at small PCB 25x58mm same size like was inside saitek switch panel. Here is my solution in pictures:



Scheme:


MMJoy2 settings:



Without so amazing soft like MMJoy2 I would not solve that, thank you very much mega_mozg_13. When I completed all I post here some other pictures.


Posted By: Repvez

Re: MMJoy - Build your own USB controller - 05/17/16 03:46 PM

I recived my pro micro board. huh this is realy micro.I tought it's is bigger.
I 'm even waiting the TLE 5010 chips and I begin the work with my joy.
I have to find a chep opportuniti to make PCB for pro micro base and the TLE 5010 .
Posted By: Debolestis

Re: MMJoy - Build your own USB controller - 05/17/16 07:17 PM

Originally Posted By: Repvez
I recived my pro micro board. huh this is realy micro.I tought it's is bigger.
I 'm even waiting the TLE 5010 chips and I begin the work with my joy.
I have to find a chep opportuniti to make PCB for pro micro base and the TLE 5010 .


I recomend OSH park. I made a few PCB with them, good thing is that they accept Eagle CAD files, no need for gerbers.
look here for example

http://forums.eagle.ru/showthread.php?t=120049&page=9
Posted By: Debolestis

Re: MMJoy - Build your own USB controller - 05/17/16 07:55 PM

Mega_mozgg can you explain please. TLE5010 and Leonardo pro micro.





I understand where to connect ground and power.
GEN to B6?
SCK to B1?
SC to B5, F4,F5,F6 and F7?
MISO to B3?

GEN, SCK and MISO are shared?
Is that correct?

Thank you!
Posted By: Sokol1

Re: MMJoy - Build your own USB controller - 05/18/16 05:13 PM

The answer in Eagle forum (for people who don't use that forum):

Quote:


TLE5010/5011---------->Controller ProMicro(AtMega32u4)
1) 4Mhz clock----------->Pin B6 - Generator 4Mhz
2) SPI-SCK------------->Pin B1 - SPI-SCK
3) SPI-CS--------------->Any free pin
4) SPI-Data------------->Pin B3 - SPI-MISO
5) TST1----------------->To Ground
6) VDD------------------>To Power (VCC)
7) GND------------------>To Ground
8) TST2----------------->To Ground

All pins except "SPI-CS" shared.


Posted By: buccaneer89

Re: MMJoy - Build your own USB controller - 05/19/16 03:50 PM

After some research and a lot of prototypying I believe I have the full schematics of what I want to build.

However I have a few questions.

1. The Shift Register 74HC165 has 3 pins that have to be connected, CS, SCK and MISO. In the MMJOY2 you can select the pins of CS and MISO. Does that mean that SCK will go to the AE/BM/SPI-SCK pin of the board? Pin B1 in the Arduino Micro.

2. The Joystick axis has only one configurable pin in MMJOY2, I suppose that those are the SPI-CS, in my image the orange cables that go to B5, B4, E6, D7, C6 and D4 on the top part of the Arduino Micro. Am I right?



Can you guys check if there is something wrong in general. I would really appreciate it. If the schematics are good they can be use in the main page if mega_mozg_13 wants

The six IC chips on top are TLE5011 and the Shift Registers are 74HC165
Posted By: Forsaken_joystick

Re: MMJoy - Build your own USB controller - 05/19/16 04:10 PM

Hello, I'm new here. First things first, mega_mozg_13 for your great work and Sokol1 for making this post!

My goal is yo re-wire a TM F16 FLCS + TQS + gameport CH Pro Rudder. And actually I'm stucked at the axis sensor election. I have some UGN3503 halls (olds for testing) and I bought (still waiting deliver) some A1302 and A1321. Also TLE5011. Not to mention key matrix... I had some issues back with Mjoy16, didn't try yet with this new firmware.

My question is: What PCB should I do for using TLE5011? MMJoy2_TLE5010.lay6 or MMJoy2_SHIELD_REG.lay6.

I'm not good with electronic stuff, but I'm following tutorials..lol. I've made Mjoy16 once... but the lack of time and some errors made me leave the project for sometime.

Thank you for your time.

P.S. I'm still gathering components to make it happen. I have Sparkfun ProMicro board, and I plan to buy a 2 more.... it's a shame here where I live it isn't easy to get components..
Posted By: Sokol1

Re: MMJoy - Build your own USB controller - 05/19/16 06:26 PM

Originally Posted By: Forsaken_joystick

My goal is yo re-wire a TM F16 FLCS + TQS + gameport CH Pro Rudder. And actually I'm stucked at the axis sensor election. I have some UGN3503 halls (olds for testing) and I bought (still waiting deliver) some A1302 and A1321. Also TLE5011. Not to mention key matrix... I had some issues back with Mjoy16, didn't try yet with this new firmware.


F16FLCS has Shift Register inside grip, so you can't need use diode matrix there, just plug 5 wires.

In TQS are a already made matrix (3x4 I think), so just matter to plug in MMJoy2 rows and columns - plus 3 axis.
Not sure if that "eraserhed" thing work as button or as axis - this is a pressure transducer...

My question is: What PCB should I do for using TLE5011? MMJoy2_TLE5010.lay6 or MMJoy2_SHIELD_REG.lay6.

For TLE501x is MMjoy2-TLE5010.tay6.

The other is a optional connector shield for place the PRO Micro.
Posted By: Sokol1

Re: MMJoy - Build your own USB controller - 05/19/16 06:32 PM

Originally Posted By: buccaneer89
After some research and a lot of prototypying I believe I have the full schematics of what I want to build.
http://i.imgur.com/jhTKIuh.jpg


What is this PCB in upper part of your layout with IC and some resistors?

Posted By: buccaneer89

Re: MMJoy - Build your own USB controller - 05/19/16 09:23 PM

Sorry, forgot to mention it.

TLE5011.

I have tried today the shift register side of the set and it works perfectly.



What is a good size for the diametrically magnets?

Will something like this be enough?

http://www.first4magnets.com/circular-di...-3kg-pull-p3517
Posted By: Forsaken_joystick

Re: MMJoy - Build your own USB controller - 05/19/16 11:58 PM

Originally Posted By: Sokol1

F16FLCS has Shift Register inside grip, so you can't need use diode matrix there, just plug 5 wires.

In TQS are a already made matrix (3x4 I think), so just matter to plug in MMJoy2 rows and columns - plus 3 axis.
Not sure if that "eraserhed" thing work as button or as axis - this is a pressure transducer...

My question is: What PCB should I do for using TLE5011? MMJoy2_TLE5010.lay6 or MMJoy2_SHIELD_REG.lay6.

For TLE501x is MMjoy2-TLE5010.tay6.

The other is a optional connector shield for place the PRO Micro.


Thank you for clarifying me about the TLE501X, seems that no other component is needed!!! Great!.

Question, how far can a hall sensor can be connect from ADC?

Well I'd have to repair the shift register because when I planned to use MJoy16 I basically cut some tracks on the shift register pcb. Thought it was garbage... and few years later I find that a genius made them work...lol. I need to know C2 value and try to make some soldering on the tracks... duh or connect it with matrix anyway.
I really hate the gimbals mechanics on this thing... How many degrees of movement does it have?? 20?

Thank you again!
Posted By: Sokol1

Re: MMJoy - Build your own USB controller - 05/20/16 03:15 AM

For HALL sensor think that 15 cm is safe, but is matter of experiment, with shielded cables.
Or put a MC3204 near the HALL and send the signal for controller in digital mode.
With TLE50x as they work in digital mode you can use more length wire.

Make other Shift Register board is simple and cheap.

Debolesis draw some PCB's: http://forums.eagle.ru/showthread.php?t=120049&page=5

Yes, F22PRO gimbal is bad - although not bad as Cougar one made in more soft metal - and they springs dammed heavy.

I try disassemble one for try with soft springs, ball bearings... but one bolt refuse to leave this place, even broken one Allen wrench, after use WD-40, heat the place... I shelved then.
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 05/20/16 10:43 AM

tuning F22Pro


Posted By: Sokol1

Re: MMJoy - Build your own USB controller - 05/20/16 02:22 PM

Mega-Mozg,

What kind of spring you will use in this gimbal?
Posted By: Forsaken_joystick

Re: MMJoy - Build your own USB controller - 05/20/16 04:25 PM

Thank you guys for the info. I'll do my best. Until components arrive I try to do a new gimbal. Maybe one 3d printed since a friend has a 3d printer.

Another question, would it be good if I can make 360 degrees with gears + TLE5011 and 10bit adc? Or is it a waste of points?

Nice F22Pro modification Mega-Mozg
Posted By: Sokol1

Re: MMJoy - Build your own USB controller - 05/20/16 04:52 PM

Maybe this guy share the files of their CAM 3D printable gimbal - done for Warthog:

http://forums.eagle.ru/showpost.php?p=2712811&postcount=13





Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 05/20/16 05:18 PM

Originally Posted By: Sokol1
Mega-Mozg, What kind of spring you will use in this gimbal?

without any metall spring, used only original ribbon cover - very softy joystick.
Posted By: robv

Re: MMJoy - Build your own USB controller - 05/20/16 08:10 PM

I'd like to share my 3D printed joystick/gimbal design. It works with a centering disk and spring which might not be the best solution, but for my setup it works good enough.

Thingiverse gimbal and throttle mechanics
Posted By: Forsaken_joystick

Re: MMJoy - Build your own USB controller - 05/20/16 09:27 PM

Originally Posted By: robv
I'd like to share my 3D printed joystick/gimbal design. It works with a centering disk and spring which might not be the best solution, but for my setup it works good enough.

Thingiverse gimbal and throttle mechanics


Thank you Robv!! Will be very helpful indeed!!! biggrin
Posted By: KeyCat

Re: MMJoy - Build your own USB controller - 05/20/16 09:41 PM

Thanks for sharing may come in handy.

Note to self: Get off your lazy a** and fix the Cougar spring mod first biggrin

/KC
Posted By: Repvez

Re: MMJoy - Build your own USB controller - 05/21/16 07:02 PM

I would like to use this PCB, but I modify a little bit to use same wire order in every connection.
If I ask someone check this that is good:
http://simhq.com/forum/files/usergals/2016/05/full-20746-121923-teszt.jpg
Don't need any other to work the digital axes more than 10 bit?

What is the different between the reg and dig connection?
The led connection how many leds handled , how can I connect to use ,the normal leds are only 2 wire there is 3 pin .
Can I control more than one led individual?
I can connect the normal pots the digital axes place only GRD, VCC and for example D0?


I design my gimbal too, but even more work on it. I would like to use adjustable central spring bottom:
http://simhq.com/forum/files/usergals/2016/05/full-20746-121924-joy.jpg

there is make a hole on The red circle and one axis for handle axis. I plan to compatible with cougar handle so the top of the axis have an M36x2 thread
Posted By: robv

Re: MMJoy - Build your own USB controller - 05/22/16 10:19 AM

Originally Posted By: Repvez

I can connect the normal pots the digital axes place only GRD, VCC and for example D0?



I'm not sure what you are trying to say, but you if you connect a pot to a digital pin, it isn't going to work. You need one of thr analog pins for that.
Posted By: Forsaken_joystick

Re: MMJoy - Build your own USB controller - 05/24/16 09:23 PM

I started with press buttons soldering (matrix). And I'll go for a detachable stick with this connector that I found at work http://i.ebayimg.com/images/g/bioAAOSwyQtVwRzL/s-l1600.jpg , but I'm still thinking if the plastic of the grip would resist... dizzy
Posted By: Sokol1

Re: MMJoy - Build your own USB controller - 05/25/16 09:24 PM

Originally Posted By: Repvez
I would like to use this PCB, but I modify a little bit to use same wire order in every connection.
If I ask someone check this that is good:
http://simhq.com/forum/files/usergals/2016/05/full-20746-121923-teszt.jpg
Don't need any other to work the digital axes more than 10 bit?


This PCB looks for early MMJoy version and has stranges connections, better use a more recent layout.

For digital axis, if use TLE501x GMR sensor nothing more is needed - besides the components in tehir PCB - for potentiometers or HALL sensor is need a external ADC chip, eg. MPC3208.

Quote:

I design my gimbal too, but even more work on it. I would like to use adjustable central spring bottom:
http://simhq.com/forum/files/usergals/2016/05/full-20746-121924-joy.jpg


Thrustmaster X models use similar gimbal design, with compression spring under the gimbal, adjustable turning a nut.

Quote:

I can connect the normal pots the digital axes place only GRD, VCC and for example D0?


Using ConTrollR shield PCB as example, notice that CS (or SC) pin (dark blue) can be the axis input both for potentiometer or TLE501x.


screen shot pc

BTW - This PCB is for Teensy++ 2.0 but for PRO Micro is the same principle.

Your other questions is related with the linked PCB picture - that I dont understand. smile



Posted By: Repvez

Re: MMJoy - Build your own USB controller - 05/26/16 03:35 PM

http://simhq.com/forum/files/usergals/2016/05/full-20746-122214-1teszt1.jpg

So I try to explain understandable what I want.

This board If it good for the base PCB. I use one pro micro only.
from FLCs comes shift register and X, Y axis (with TLE5010) wire. If I count well there are 8 wires if share the same function wire across the DB15 connector

there is Z axis (with TLE5010) and ANT and range axis and mini joy with normal pots and the buttons In the throttle.

The questions:
The ANT and Range and mini joy pots how connect this PCB?
The handle grip uses one shift register but the throttle buttons how connect, because there isn't shift register.

there are 3 led pin how connect the led there and how many leds can I use individual in same time?
Posted By: SolderMonkey

Re: MMJoy/MMjoy2 - Build your own USB controller - 05/26/16 10:04 PM

Can someone convert the .lay6 files to Gerber files?

Where are you guys getting your boards etched? ITEAD? Batchpcb? SeeedStudio?

Mega Mozg and Sokol - can you post an exploded view of the parts you're throwing together for throttle friction and the TLE5011 magnet attachments in your monster throttles? I'm curious how you're implementing friction.

Tnx! 73

SM
Posted By: Sokol1

Re: MMJoy/MMjoy2 - Build your own USB controller - 05/26/16 11:36 PM

Although I have used SprintLayout several times for DIY PCB's they are made in Toner method, so need only PDF file, no idea about Gerber files generation... smile

For order PCB people are using OSPark https://oshpark.com/users/sign_in has free shipping for minimum order, think 10$.

I don't make throttles, only rewire some old Suncom SFS, Tm TQS, WCS, CH PRO Throttles, this mechanics that you see in pictures across this topic is metal parts done with laser cut by GVL224 or Divk - see announces in Buy/Sell/Trade.

But friction in then is simple, example Divik mechanics:


gif hosting

Be adjust the bolts pointed be red arrows you make the felt pad press more or less the axis lever.

The additional bolt in right upper side is just for lever stop, in the left side the bolt that act as sensor support stop the lever.


Posted By: Sokol1

Re: MMJoy - Build your own USB controller - 05/26/16 11:54 PM

Originally Posted By: Repvez

The ANT and Range and mini joy pots how connect this PCB?


In TQS the ANT is just a conventional pot, require 3 wires +5V, Gnd, signal.

The Range pot is double stacked pot - 2 pots in one axis - I think for overcome gameport limitations, for have a center position - dont see why use then in USB circuit, think that will need some experimentation. Maybe the two are wired in serie in one axis, dont remember...

The mini joy in TQS - a kind of IBM laptop like mouse - is a different device, is a transducer that work (bad) under pressure.

Don't know if this device are wired in TQS in analog of digital inputs or how wire in MMJoy2.
Maybe is better replace then with a analog mini-stick (PS2 like, as in Cougar) or with conventional HAT (what I did in one TQS).

This thing work bad, erratic in F16/F22 HOTAS and are abandoned in Cougar.

The others connections are one HAT (COMM) and some press or toggle switches, just require buttons inputs, and as they are few can be wired with diode matrix (row x columns), e.g. 2x5.

Quote:

there are 3 led pin how connect the led there and how many leds can I use individual in same time?


I know that MMjoy2 can handle LED's but with games exported values, e.g. War thunder, for example to replicate in game landing gear light status, not for light when some switch are turned ON. F16 or TQS have LED?

I can't help with this "3 led pin"...

Look at this led/switchs usage (page anterior).

http://s19.postimg.org/yhqb106rn/mmjoy2_Pro_Micro_Gear_Switch_Bi_LED_schem.png

BTW - Communication between F16 and TQS.

If place the MMJOy2 inside TQS will be required for F16
+5V
Gnd
X input
Y input
4 other TLE501x inputs - can be shared between 2 axis.
3 inputs for Shift Register, besides the shared +5V, Gnd
Total of 11 wires.

If MMJoy2 is placed on F16:
+5v
Gnd
Throttle input
Range input
Ant input
X in mini-stick if used
Y in mini-stick if used
10 buttons - 2 x 5 matrix = 7 wires
Total 14 wires

or if not used mini-stick but HAT - 3x5 matrix = 8 wires
Total 13 wires



Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 05/27/16 04:08 AM

few days, and I show you my mod's:
1) Thrustmaster Elite Rudder - add bearings, and two brake axis.
2) Thrustmaster TQS - add three mini DVIK's axis, rebuild buttons grip.
3) Thrustmaster FLCS - metall gimbal, add buttons at base.
Posted By: Forsaken_joystick

Re: MMJoy - Build your own USB controller - 05/27/16 10:04 AM

I'll be waiting for those pics mega_mozg_13!! rofl

Would you post your metall gimbal blueprints? winkngrin

Originally Posted By: mega_mozg_13
few days, and I show you my mod's:
1) Thrustmaster Elite Rudder - add bearings, and two brake axis.
2) Thrustmaster TQS - add three mini DVIK's axis, rebuild buttons grip.
3) Thrustmaster FLCS - metall gimbal, add buttons at base.
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 05/27/16 11:09 AM

Forsaken_joystick
here step by step https://drive.google.com/open?id=0B2zIeYwbAIHOTTdodXZab3FBdG8
Posted By: Forsaken_joystick

Re: MMJoy - Build your own USB controller - 05/27/16 11:29 AM

thumbsup thank you mega_mozg_13 !
exitstageleft
Posted By: SolderMonkey

Re: MMJoy - Build your own USB controller - 05/30/16 05:19 AM

I've already got an account open with a PCB shop that needs Gerber files. I've tried sending them the .LAY6 files and they say they can't read them. Any takers on a file conversion?

Sokol - thanks - that's pretty much what I was looking for on the friction settings.
Posted By: Sak75

Re: MMJoy - Build your own USB controller - 05/30/16 07:50 AM

WOOOOOOOW very good pics and design Mr Mega!!!!!
Posted By: Forsaken_joystick

Re: MMJoy - Build your own USB controller - 05/30/16 12:07 PM

Originally Posted By: Sokol1

[...]
The Range pot is double stacked pot - 2 pots in one axis - I think for overcome gameport limitations, for have a center position - dont see why use then in USB circuit, think that will need some experimentation. Maybe the two are wired in serie in one axis, dont remember...
[...]

Hi, yesterday I was making the matrix for my FLCS and TQS, and I'm afraid your wrong about the Range pot. the one near the shaft is actually a switch. The one at the bottom is the pot. actually. See the switch has 2 terminals and the other 3.

I'm still waiting for my halls and TLE5011 to arrive. I'm thinking of using the originals pots until they arrive. Do you have any recommendation? Should I add a resistor in series?

Thank you!
Posted By: Sokol1

Re: MMJoy - Build your own USB controller - 05/30/16 01:52 PM

Originally Posted By: Forsaken_joystick
Originally Posted By: Sokol1

[...]
The Range pot is double stacked pot - 2 pots in one axis -

Hi, yesterday I was making the matrix for my FLCS and TQS, and I'm afraid your wrong about the Range pot. the one near the shaft is actually a switch. The one at the bottom is the pot. actually. See the switch has 2 terminals and the other 3.



That's right, my bad, is possible see the pins in this picture in Cougar spare parts list:



This make things more easy. smile

Quote:

I'm still waiting for my halls and TLE5011 to arrive. I'm thinking of using the originals pots until they arrive. Do you have any recommendation? Should I add a resistor in series?


No problem in use pot, and a principle no resistor needed, just wire like any pot, the central pin is axis input, outside ones is for +5V and Gnd, invert then invert the pot response (CW, CCW).
Posted By: Forsaken_joystick

Re: MMJoy/MMjoy2 - Build your own USB controller - 05/30/16 02:48 PM

I'd like to do something like this... (Lazy mod on) https://www.fichier-pdf.fr/2011/05/10/uni-stick/ or http://www.jpfiles.com/hardware/uni_stick.pdf (same file). It's a pdf. And his idea really feels rock solid!!! biggrin
Posted By: Forsaken_joystick

Re: MMJoy/MMjoy2 - Build your own USB controller - 05/30/16 02:52 PM

Lol Sokol__1 you're every where.!!! Nice!!!
Posted By: Repvez

Re: MMJoy/MMjoy2 - Build your own USB controller - 05/30/16 09:22 PM

does everyone want make a uniform PCB for F-16 FLCS+TQS uses with one pro micro.
F16FLCS
1 Shift regiszter
2 TLE5010/11 pot for x-y

One auxilary PCB to collect this wires in FLCS base and to send via DB15 connector.
aux PCB for FLCS base

TQS

one main PCB for connect pro micro and every other wires like a Njoy_ adapter.lay6 panel.

2 TLE5010/11 for z and ruddel
4 normal pots for PS3 ministick(not erase head) and ANT, RNG
and buttons


DO We make together to plane such a modify kitt for FLCS+TQS users?
So it is more ease to help each other if someone have a problem in setup or programing

Posted By: Sak75

Re: MMJoy/MMjoy2 - Build your own USB controller - 06/03/16 07:49 AM

Hi

I'm redesigning my joystick , the first step has been to make the lowest gyroscope and the second to add a LED bar to the throttle stick. a little video.

https://youtu.be/JILm48wQbb0

bye
Posted By: robv

Re: MMJoy/MMjoy2 - Build your own USB controller - 06/03/16 11:52 AM

Love it!
Posted By: Wolf77

Re: MMJoy/MMjoy2 - Build your own USB controller - 06/03/16 02:49 PM

Hello to all,
first of all, like many others, I'd like to praise Mega_Mozg's remarkable work and support giving with Mr. Sokol1 to others on this forum. I just started to tinker my Thrusmaster T.Flight HotasX, thoroughly red this thread and will probably ask some questions later. I would also like to say hi to all SC backers here :-).

To add my little bit to this great mixture of informations, I have a tip for noobs like me.

I recently bought original Arduino Micro, but had serious problems to get to the bootloader to flash it with MMJoy2. All over the Internet, everybody says "press reset". Even Mega_Mozg, who suggest to be patient and try several times, what I did. Even on official Arduino pages is "press reset". I tried several times, even tried to press it with Micro disconnected and hold pressed while connecting. Hold pressed while connected and still was not able to get that other COM port and bootloader. Then I remind myself, that someone, I think Sokol, sugested for other board to short-circuit RST and GND pins twice. And voila ... after fast double-pressing reset button I got what I wanted - bootloader with correct COM.

Hopefully this will help at least someone.
Posted By: mega_mozg_13

Re: MMJoy/MMjoy2 - Build your own USB controller - 06/03/16 03:33 PM

Wolf77
https://drive.google.com/folderview?id=0B2zIeYwbAIHOS2lCMXhIN1BZMG8&usp=sharing
https://drive.google.com/folderview?id=0B2zIeYwbAIHORVo4UXB0QmloMXM&usp=sharing
Posted By: Wolf77

Re: MMJoy/MMjoy2 - Build your own USB controller - 06/03/16 04:15 PM

Thank you very much for inspiration and images, so I can see what to expect before I will disassemble the throttle :-). Speaking about this, my first plan was just to get rid of Joystick and revire it's buttons,hat and axles into the throttle with original electronics and some new parts. Just wanted to make it better standalone throttle. First I attached wires from joy pots to analog thumbstick with push button and it works well, but did not tested it thoroughly. My right hand joystick is Cobra M5 and playing Star Citizen I tried whole HotasX as a left hand device (switching between throttle and stick), but then decided to use just small stick on throttle for strafing. I planned to leave bottom part of joy to keep there joy's PCBs and maybe add PCB from an old gamepad with it's analogs and buttons and make it a button box :-))) ...

Then I found out, that there are other options, like Leo Bodnar's boards ready for easy connections and direct use. I was a little bit confused by their different types and asked their suport to explain. Within few days they just advised me to read their products data sheets (which I did before, but did not understand too much). Then I ended up here, opting for Arduino, which is available here quite fast (I had it within 90minutes after order). Thanks god I was so lucky that I red at least something and did not buy Arduino UNO rev. 3 in some "Starter kit" :-)

Future plans:
1) Make hotasX throttle as good as possible and as fast as possible to be able to play again.
2) Build some throttle from a scratch including handle and so on. Here I am researching about materials, appropriate boxes, technologies as CNC, laser cut atc. Picking also some knowledge about molding, modelling, shaping to get things where I wish them to have.

So that was kinda little introduction of a new member :-)
W77
Posted By: abbas

Re: MMJoy/MMjoy2 - Build your own USB controller - 06/03/16 06:01 PM

hello to all
I'm going to restore my Leonardo bootloader arduino .
Who can help me?
I tried following ways but I encounter the following error
https://learn.sparkfun.com/tutorials/installing-an-arduino-bootloader

error
avrdude: Expected signature for ATmega32U4 is 1E 95 87
Double check chip, or use -F to override this check.
Wrong microcontroller found. Did you select the right board from the Tools > Board menu
Posted By: robv

Re: MMJoy/MMjoy2 - Build your own USB controller - 06/03/16 06:05 PM

Originally Posted By: abbas
hello to all
I'm going to restore my Leonardo bootloader arduino .
Who can help me?
I tried following ways but I encounter the following error
https://learn.sparkfun.com/tutorials/installing-an-arduino-bootloader

error
avrdude: Expected signature for ATmega32U4 is 1E 95 87
Double check chip, or use -F to override this check.
Wrong microcontroller found. Did you select the right board from the Tools > Board menu

It looks like you don't have an Arduino Leonardo. That signature is for a 328p based board. Did you select the correct COM port? Do you have other connected USB devices maybe?
Posted By: LuseKofte

Re: MMJoy - Build your own USB controller - 06/03/16 06:21 PM

Hi this is VERY basic, I am familiar with USB controllers and such, and how and where to connect. But in any tutorial I have searched there is no one that explain the basics of a Hall sensor. So here is a drawing of what I think I understand





If the sylinder in this picture Rotate, will it be registered as a hotas movement by the USB card? Do you need two magnets


Posted By: Wolf77

Re: MMJoy - Build your own USB controller - 06/03/16 08:44 PM

Yes, you are right, but the circle magnet must be diametrally magnetised. You can also use diametral disc magnet and place Hall under it with top Near the magnet. I also saw variant with two magnets on sides and rotating Hall attached to the axle. I have no personal experience which one is Best. I just know it is important to have strong neodymium magnets an keep Hall as close as possible.
Posted By: Sokol1

Re: MMJoy - Build your own USB controller - 06/04/16 01:29 AM

You can use 2 square magnets placed opposite, can be no the best setup but work.

The drawing scheme is similar to "Bic HALL":

http://simhq.com/forum/ubbthreads.php/topics/3225807/DIY_hall_sensor.html

Today are accessible HALL sensor assembled like a pot - that make DIY uninteresting in some cases.

http://www.bitechnologies.com/pdfs/6120.pdf

http://uk.farnell.com/bi-technologies-tt...0deg/dp/2319661

Posted By: Wolf77

Re: MMJoy - Build your own USB controller - 06/04/16 07:08 PM

Thanks for clarify the things. But as I can see, these pre asembled Hall pots have 180 degree rotation. Couldnt this be kinda problem? I mean with final resolution... (i mean precision)?
Posted By: Sokol1

Re: MMJoy - Build your own USB controller - 06/04/16 10:11 PM

Bi-Tech 612x series have models with 30 to 300 degrees of rotation - look at their datasheet.

The one I use in Cougar TQS are 60 degrees, the throttle axis in TQS don't turn all this, but around 40 degrees, the USB controller used, TUSBA are 14 bits, so the final resolution is somewhat 11 and 12 bits, more than sufficient for good throttle control.

BTW - Bi-Tech 612x have different axis diameter (OD) - for joystick application 1/8" will be more easy to use.
Posted By: Debolestis

Re: MMJoy - Build your own USB controller - 06/05/16 09:42 AM

You need

TT-Electronics-BI 6127V1A60L.5

http://www.digikey.com/product-search/en?mpart=6127V1A60L.5&vendor=987

6127 means that it is wider shaft version

V1 is voltage range, take v1 only, even better would be vO but I couldn't find them.aaa

A60 is angular range, 60 degrees here

L.5 is shaft shape I think.

This is excelent sensor, I installed it in CH joystick and it works without any issues. This is best mod for CH products, imho, because sensor shape is somewhat simillar to CH potentiometer, and you'll get sensor simillar to one installed in expensive Cougar mods.
Posted By: Wolf77

Re: MMJoy - Build your own USB controller - 06/06/16 05:06 AM

Ah, I see. I missed that. Thanks.
Posted By: Wolf77

Re: MMJoy - Build your own USB controller - 06/06/16 08:45 PM

It's here. I would like to ask about wiring analog thumbstick push button. I have analog thumbstick assembled on it's own little PCB with 5-pin connector (Vcc, Xout, Yout, BTN, GND). Axes and button have common ground on the PCB. By my opinion, it is designed to work with individual Arduino projects using the connector or on a breadboard. The button works against the ground, if I understand the point.
I red this thread thoroughly and understood, that ALL buttons in MMJoy MUST be part of a matrix or shift registers. It is not possible to connect individual button directly to Arduino. Am I correct?
If yes, I think I will have to interrupt ground trace of the mini-joy button and wire it directly into the matrix. Is this correct? Or is there any way how to use preassembled connector with MMJoy?
Thanks in advance,
W77
Posted By: Sokol1

Re: MMJoy - Build your own USB controller - 06/07/16 12:08 AM

Originally Posted By: Wolf77

If yes, I think I will have to interrupt ground trace of the mini-joy button and wire it directly into the matrix. Is this correct? Or is there any way how to use preassembled connector with MMJoy?


Well, I will not try "reinvent the wheel" to made MMjoy2 compatible with this PCB.
As you suggest just cut the PCB trails that go for button pins an wire two pins in MMjoy Matrix or Shift Register, as MMjoy2 expect. wink

In this micro switches 2 pins in one side are interconnected internally - probable for redundance - select one fin from each side.



Posted By: Wolf77

Re: MMJoy - Build your own USB controller - 06/07/16 07:42 AM

Yep,I know about it. It is also obvious from PCB trails. BTW It was first thing about microswithches I was curious about "Why the heck, this plain switch has 4 contacts :-D. Anyway, thanks for confirmation and if I can, I have some further question about ministicks: Some people here asked about PS3 magnetic thumbsticks, but just about their use. Unfortunatelly I did not find any output if they are better than pot ones and if they are worth of buying. Do you know something about them?
Yesterday I connected 2x4 matrix, 2 thumbsticks and a pot on a breadboard. There were some problems, so I am now going to start reading this thread from start again to find solutions :-).
Posted By: Debolestis

Re: MMJoy - Build your own USB controller - 06/07/16 10:26 AM

I forgot to mention, I just forgot, there is one big issue with ps3 thumbstick. It has low resolution, Like voltage output on each axis is low. It doesn't go from 0 to 5v, but from 2,4 to 2,6. It needs an amplifier board for full voltage range. It can be calibrated and it works, but I'd like to make it better. I designed a small pcb with opamp, I'll post it soon on OSH Park.

Good thing is that pcb is very small and can be installed easilly inside any grip.
Posted By: Wolf77

Re: MMJoy - Build your own USB controller - 06/07/16 10:35 AM

Thanks for info, so It would be easier and better for now use classic thumbsticks with potentiometers, no matter they are not so good too. Am I right? Honestly, with these I do not need much precision.
Posted By: Debolestis

Re: MMJoy - Build your own USB controller - 06/07/16 11:35 AM

Originally Posted By: Wolf77
Thanks for info, so It would be easier and better for now use classic thumbsticks with potentiometers, no matter they are not so good too. Am I right? Honestly, with these I do not need much precision.


If you don't need precision instal ps3 thumbstick and set precision 14bit and calibrate. It works fina I just think it can be better with small amplifier.
Posted By: Wolf77

Re: MMJoy - Build your own USB controller - 06/07/16 12:09 PM

OK, I think I will try normal with pots first, simply because I have them. Then will think about next steps if not sufficient. Thank you again.
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 06/07/16 04:39 PM

Originally Posted By: Troll
Ok... I have a strange problem.

show the real pictures from configurator
Posted By: Sokol1

Re: MMJoy - Build your own USB controller - 06/07/16 08:32 PM

Originally Posted By: Wolf77
OK, I think I will try normal with pots first, simply because I have them. Then will think about next steps if not sufficient. Thank you again.


Pot' is not necessarily "less precise" than contactless sensors - theoretically they have infinite resolution, and dont' has linearity issue, the thing the pot wear with use and really good pot cost several times more than simple HALL sensor. smile

Is fine you use pot' or PS3 like mini-stick with pot in your project, just make they assemble in a way that make easy replace then, because sooner or later will "spike".
Posted By: Eddie123

Re: MMJoy - Build your own USB controller - 06/08/16 04:22 AM

Hello.

I am trying to convert some old CH Pro Pedals to work with a new PC, and I got the
Arduino Pro Micro for this.

I have managed to get all the drivers etc installed, and the Pro is flashed with the MMjoy bootloader.

Here is my question. THe CH Pro pedals only use 2 wires for each of the 3 potentiometers. Will this work, or do
I have to rewire to 3 wire ? Especially the break potentiometers seems to be hard to get acces to ...

Thank you

Vegard
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 06/08/16 05:32 AM

Troll you are have "Link errors" red fields. this is no good.
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 06/08/16 05:36 AM

Originally Posted By: Eddie123

Here is my question. THe CH Pro pedals only use 2 wires for each of the 3 potentiometers.

MMjoy's ADC need three wires(power, ground and signal) for each potentiometer/hall.
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 06/08/16 07:48 AM

Troll
disconnect everithing, and step by step check one each sensor. there no "link errors".
if you still have errors may be damaged senosors or bad PCB or bad scheme.
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 06/08/16 08:26 AM

Troll
try 12/14bit. maybe 10 bit and autocalibration do errors..
Posted By: Eddie123

Re: MMJoy - Build your own USB controller - 06/08/16 03:22 PM

Hello.-

I am thinking of building a radio stack for microsfot flight simulator.

On thi sit would be cool to have a rotary encoder, to tune frequency up and down.

But reading up on the encoders, I am getting confused.

How do they work with MMJoy2 ? How do I need to wire them up ?

Hope someone can help.

Thank you

Vegard
Posted By: Eddie123

Re: MMJoy - Build your own USB controller - 06/08/16 03:39 PM

Hei !

For the benefits of others, I will use English wink

Yes, I have buildt button matrixes before.

I am about to order these encoders :

http://www.ebay.com/itm/151753076315

Not decided on knobs yet, not sure what to search for, since the shaft is "D" shaped, not round or knurled ...

Just cant et my head around how to connect them, is it like normal buttons ? How do they actually work ?

Any help appreciated wink

Vegard
Posted By: Eddie123

Re: MMJoy - Build your own USB controller - 06/08/16 04:36 PM

Ok, I think I get it. I see in MMJoy that there is an entry called Encoders. The numbers in there, corresponds with the numbers in Matrix ?
I am not still clear on the difference between the reference that is on "Joystick", and the numbers selected in the pulldown.....

Let me try to explain how I think :

In the matrix, each buttons get a number. This number is inserted in the appropriate place under "Joystick", "Encoder", "HAT", etc, is
that correct ? Only use each entry from the matrix in one place ?

Oh, also, I dont see where to input delay ?


Vegard
Posted By: Eddie123

Re: MMJoy - Build your own USB controller - 06/08/16 08:08 PM

I am running a older version of MMJoy2 than you, and I cant find the one you have, or any version newer than 2015.

The newest version I found, is 20150405, and that one doesnt have any delay settings etc.

Can you direct me to download link ?

Vegard
Posted By: Eddie123

Re: MMJoy/MMjoy2 - Build your own USB controller - 06/08/16 08:52 PM

Ok, thank you, after I wrote the last message, then I found the same version as you so kindly posted a link to. I have downloaded it,
but havent installed the new firmware yet.

I have been busy, just finished converting a old set of CH Pro Pedals from gameport to USB; working like a charm now !

Next job, maybe convert the old CH Yoke, also from gameport to USB. Must dissasemble and check what is needed to convert
inside it.

So, you have an non-official version of MMJoy ? wink How do you get that ? wink

Vegard
Posted By: Sokol1

Re: MMJoy/MMjoy2 - Build your own USB controller - 06/08/16 10:18 PM

He is "Beta Tester". smile
Posted By: Eddie123

Re: MMJoy/MMjoy2 - Build your own USB controller - 06/09/16 06:08 AM

Great, thanks, I will wink

Question :

What is the best way to create a mixed matrix, using buttons and encoders ?

Reason I ask, I am trying to build a interface using the full capabilities of the MMJOy and a Micro Pro card. I dont
want to start messing with shift registers etc...

Here is what I have in mind :

I have a CH Pro yoke and pedals set. Pedals are 3 axis, yoke is 5 axis ( rudder, elevator, throttle quadrant).

So, that means I have 8 analog inputs, leaving me 10 for the matrix. That leaves me with max 25 buttons, in a 5x5 matrix.

I am trying to build a easy matrix interface board on a perfboard, and want to try to make it as clean as possible. With the diodes going the
opposite way for encoders, I see a lot of possibilities for confusion ...

Any hints and ideas ?

Also considering getting a secondary Micro Pro, but havent decided yet. Maybe that makes it easier, if I can separate maybe axis and buttons on
2 different controllers.

Vegard


Posted By: mega_mozg_13

Re: MMJoy/MMjoy2 - Build your own USB controller - 06/09/16 06:16 AM

Eddie123
you can use any diodes.

sample from Vladimir@"China":
Posted By: Eddie123

Re: MMJoy/MMjoy2 - Build your own USB controller - 06/09/16 06:36 AM


Thanks for the answer.

Not sure my question came out right.

My consern is when I look at the pictures on your site, on how to connect buttons and encoders,
the diodes for the encoders point the opposite way of how they are connected to buttons.

Do I have to take this into consideration when building the matrix printboard, or is that just
a matter of how I connect the wires from the matrix to the encoders / buttons ?

Thank you

Vegard
Posted By: mega_mozg_13

Re: MMJoy/MMjoy2 - Build your own USB controller - 06/09/16 07:04 AM

hardware no matter what you connect to "point" - button, switch, encoder channel a or b. all differencs starts at firmware and configuration setup.
for "point" I mean one input pin of shifts reg, or one intersection row/columns button matrix.
Posted By: Eddie123

Re: MMJoy/MMjoy2 - Build your own USB controller - 06/09/16 07:07 AM



Ok, think i get it.

Just have to solder the matrix board, and then wait for my encoders to arrive wink
Posted By: Sak75

Re: MMJoy - Build your own USB controller - 06/09/16 10:40 AM

Originally Posted By: Sak75
Hello everyone. I have a question, I will redesign the joystick and thought was put into one of the sticks a dial axis as the link:

http://es.aliexpress.com/item/Free-Shipping-2PCS-LOT-Dual-axis-XY-Joystick-Module/2016825722.html

And use the axis as buttons. Mmjoy recognizes me well, I assign axis 1 and 2 and in the section axis button to select these axes. My question is on the percentage to be put?.


Hi everyone, i found the number
Posted By: Eddie123

Re: MMJoy - Build your own USB controller - 06/10/16 08:44 AM

Hello.

Looking into connecting loads of buttons using shift registers.

So far I think I have figured out that the main difference between the 74HC165 and the 4021 is that one is
active high, the other low, right ?

So, I presume the MMJoy converts this automatically, so there is really no difference which I use ?

Do anyone have a proper draeing of how to connect up the shift registers ? What do I need besides pullup resistors, etc?

Thank you

Vegard
Posted By: robv

Re: MMJoy - Build your own USB controller - 06/10/16 08:58 AM

Originally Posted By: Eddie123
Hello.

Looking into connecting loads of buttons using shift registers.

So far I think I have figured out that the main difference between the 74HC165 and the 4021 is that one is
active high, the other low, right ?

So, I presume the MMJoy converts this automatically, so there is really no difference which I use ?

Do anyone have a proper draeing of how to connect up the shift registers ? What do I need besides pullup resistors, etc?

Thank you

Vegard

I use the gammon pages a lot.

Switches, pullups
http://www.gammon.com.au/forum/?id=11955

Shift registers
http://www.gammon.com.au/forum/?id=11979
Posted By: Eddie123

Re: MMJoy - Build your own USB controller - 06/10/16 09:04 AM


Hello.

Thank you for your reply, what I read from the posts you posted is more or less what I have read before.

But now I am confused. In those posts, it refers to both pull-up and pull-down resistors. Which is best, or is
there one type I need specifically to use with MMJoy ?

What about other components, do I need anything else ?

Vegard
Posted By: robv

Re: MMJoy - Build your own USB controller - 06/10/16 09:09 AM

If your switches are connected directly to the arduino, you can use the internal pull up resistors so you do not need external components or resistors.
If you use other parts like shift registers, external resistors may be needed but you need to read the datasheets of these components. For example, an mcp23017 IO expanders has pullups, but a 74hc595 shift register does not.

Pullup is easier than pull down, because you only need a ground signal.

I am not familiar with mmjoy, sorry.
Posted By: Forsaken_joystick

Re: MMJoy - Build your own USB controller - 06/10/16 12:13 PM

Hello all. I've recieved some halls from China. I supposedly being A1321EUA... They have G321 540 part number stamped on them. They go from 11 to 995 at 10 bit res. But they aren't stable. Without a magnet it flickers from 510~530, they get stable with a filter of x14. Should I use them anyway?.
I have old Allegro UGN3503 and they are rock steady without filter but they go from 200 up to 800. What would be best to use?

Thank you all.

Ps: waiting for tle5011... Bought to china too, I guess they will be fake copy too. 1st time buyer incompetency. screwy
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 06/10/16 12:23 PM

for shift registers mmjoy need a pull-up.
Posted By: Eddie123

Re: MMJoy - Build your own USB controller - 06/10/16 12:55 PM


Hello.

Does anyone here have some layout ( Gerber) files for shift register circuits for MMJoy ?

Or maybe someone has some spare cards, maybe I can buy them ? wink

If I only get the files, are there any cheap manufacturers of small quantities of circuit boards ?

Thank you

Vegard
Posted By: Debolestis

Re: MMJoy - Build your own USB controller - 06/10/16 01:18 PM

You can buy shift registers here:

https://oshpark.com/profiles/Debolestis

There are Shift register 8, 16, 24 and 32 bit. You can order PCB and solder everything later. It takes 3-4 weeks for PCB to arrive with free shipping.

You can see photos here:

http://forums.eagle.ru/showthread.php?t=120049&page=9
Posted By: Eddie123

Re: MMJoy - Build your own USB controller - 06/10/16 02:53 PM


Thank you for that !

I might order some cards, to see how they work.

If I buy 32bit card, do I have to put chips in all places, or can i build out as required ?

Thank you

Vegard
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 06/10/16 03:58 PM


f16-flcs
Posted By: Sokol1

Re: MMJoy - Build your own USB controller - 06/10/16 04:41 PM

Other option of Shift Register board layout (done in SprintLayout) for make PCB was in previous Mega_Mozg post.
Is 24 bits, can be chained with other, is compatible with Warthog/Cougar, VKB and MMjoy controllers.
The PCB in picture was ordered from China manufacturer and assembled by owner.


Plugged in Cougar or Warthog controller.

But for DIY Debolesis version is more friendly for make, as use conventional components instead SMD. wink



http://forums.eagle.ru/showpost.php?p=2780923&postcount=89

Posted By: Repvez

Re: MMJoy - Build your own USB controller - 06/10/16 06:08 PM

Can you show the PCB board or shematic? Do you use it TQS too or just FLCS?

And , do you use same gimbal like F22 or it is different one.
Could you show about more pics?
Posted By: Wolf77

Re: MMJoy - Build your own USB controller - 06/10/16 06:11 PM

Hi all,
Does anybody know, if Windows button limit is 32 + 4 for the hat switch? Or is it 32 including hat?
Thanks, w77
Posted By: Wolf77

Re: MMJoy - Build your own USB controller - 06/10/16 06:29 PM

Silly me, easy to Google it. It's 32 plus hat.
Posted By: buccaneer89

Re: MMJoy - Build your own USB controller - 06/10/16 06:58 PM

Hey guys,
so I advanced with my Joystick.
At the moment buttons work.
I have received the TLE5011 and wired it but I am not sure what I am doing wrong that the sensor doesn't produce any value.

Bear in mind that it is a #%&*$# breadboard test.



Link: http://i.imgur.com/0oSi5Zp.jpg

Any idea of what I might be doing wrong?

The capacitor is a 10uf rated for 6V
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 06/10/16 07:19 PM

buccaneer89, all seems to be ok. check your soldering, or damaged tle5010.
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 06/10/16 07:22 PM

Repvez
"FLCS" there no PCB, everything connected directly to the ProMicro. Two lines TLE5010, one line "4021"Shifts-Reg from grip and one line "74HC165"Shifts-Reg from base.



"TQS" will be later.
Posted By: Eddie123

Re: MMJoy - Build your own USB controller - 06/10/16 09:57 PM



Looks like a grat conversion !!

Why do you use 2 different types of shift registers ?

Vegard
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 06/13/16 06:22 AM

Originally Posted By: Eddie123

Why do you use 2 different types of shift registers ?

"4021" are original PCB from grip.
"74HC165" ease to buy at my location, and less price.
Posted By: capitanblood

Re: MMJoy - Build your own USB controller - 06/14/16 02:36 PM

Originally Posted By: Sokol1
Other option of Shift Register board layout (done in SprintLayout) for make PCB was in previous Mega_Mozg post.
Is 24 bits, can be chained with other, is compatible with Warthog/Cougar, VKB and MMjoy controllers.
The PCB in picture was ordered from China manufacturer and assembled by owner.


Plugged in Cougar or Warthog controller.



Hi, guys! This are the project files of this shift register board and more on the MMJOY2 project in LAY6 format.
Posted By: sewares

Re: MMJoy/MMjoy2 - Build your own USB controller - 06/14/16 06:44 PM

Hello.
Is this connection correct?
I have problem.
Connection works

Connection works

Does not work

What is wrong?. Not responding. Picture 3. Sorry my english.
Thanks.
Posted By: mega_mozg_13

Re: MMJoy/MMjoy2 - Build your own USB controller - 06/15/16 01:34 PM

sewares
set "Timer OFF" = YES.
run "VKB_BtnTester" switch on "Show log" and start rotate encoders.

Translate from Russian:
https://forum.warthunder.ru/index.php?/topic/64234-mjoy-mjoy8-mjoy16-mmjoy/?p=3937609
https://forum.warthunder.ru/index.php?/topic/64234-mjoy-mjoy8-mjoy16-mmjoy/?p=4626784
Posted By: sewares

Re: MMJoy/MMjoy2 - Build your own USB controller - 06/15/16 04:30 PM

Thanks!Thanks!Thanks!Thanks!Thanks!Thanks!Thanks!
band
Posted By: mega_mozg_13

Re: MMJoy/MMjoy2 - Build your own USB controller - 06/16/16 12:28 PM

Originally Posted By: sewares
Thanks!Thanks!Thanks!Thanks!Thanks!Thanks!Thanks! band

is it works?
Posted By: sewares

Re: MMJoy/MMjoy2 - Build your own USB controller - 06/16/16 04:39 PM

Hi.
I had the problem that I did 6x1 matrix and how I recorded it in Arduino. I then I made a 6x2 matrix, but not I reset the Arduino, I just added another line. And it made the problem. It helped me yours Timer OFF.
I deleted the settings and set up all over again and have it work
burnout
Posted By: Forsaken_joystick

Re: MMJoy/MMjoy2 - Build your own USB controller - 06/16/16 07:05 PM

Hello, I have doubt about some IC I got from China. Can anyone tell me if it's legit?

TLE5011


A1321
Posted By: Eddie123

Re: MMJoy/MMjoy2 - Build your own USB controller - 06/21/16 06:40 PM

Hello.

Is there ever a chance that MMJoy will include some of the functionality that Link2FS has, like the possibillity of including
a LCD screen, for displaying radio frequency etc ?

Thank you

Vegard
Posted By: buccaneer89

Re: MMJoy/MMjoy2 - Build your own USB controller - 06/21/16 08:04 PM

Originally Posted By: Eddie123
Hello.

Is there ever a chance that MMJoy will include some of the functionality that Link2FS has, like the possibillity of including
a LCD screen, for displaying radio frequency etc ?

Thank you

Vegard

As far as I remember you have a module that allows you to do that.

There are videos on youtube showing ammo in a 7 segment LCD screen.
Posted By: buccaneer89

Re: MMJoy/MMjoy2 - Build your own USB controller - 06/21/16 08:08 PM

I finished my buttons box and everything is working bar the enconders.

I believe I might have done something wrong.

The enconders work the following way.

Pole A goes to one input, pole B(central) goes to ground and pole C goes to the other input

When going right I get the following signals as I keep turning

Pole A 5v > Pole C 5v > No voltage on poles > Pole A 5v > Pole C 5v > No voltage on poles > .......


When going left I get the following signals as I keep turning

Pole C 5v > Pole A 5v > No voltage on poles > Pole C 5v > Pole A 5v > No voltage on poles > .......


I tried to put this unsuccesfully in MMJOY2. I can see the hardware presses on the left but the configuration doesn't translate into actions.


Posted By: Eddie123

Re: MMJoy/MMjoy2 - Build your own USB controller - 06/21/16 08:09 PM



Originally Posted By: buccaneer89
Originally Posted By: Eddie123
Hello.

Is there ever a chance that MMJoy will include some of the functionality that Link2FS has, like the possibillity of including
a LCD screen, for displaying radio frequency etc ?

Thank you

Vegard

As far as I remember you have a module that allows you to do that.

There are videos on youtube showing ammo in a 7 segment LCD screen.


Hey.

I have never found any videos showing that. And what do you mean by module ?

Vegard
Posted By: buccaneer89

Re: MMJoy/MMjoy2 - Build your own USB controller - 06/22/16 02:38 PM

Originally Posted By: Eddie123


Hey.

I have never found any videos showing that. And what do you mean by module ?

Vegard


This is the video I mentioned earlier.

https://www.youtube.com/watch?v=7yiP5VwXbKs

My russian is close to 0 so I won't be able to help you much. But mega_mozg should be able to help you with that.
Posted By: Eddie123

Re: MMJoy/MMjoy2 - Build your own USB controller - 06/22/16 04:45 PM


Hello.

Great, thanks for that.

Mega_mozg, any inputs on this ? I am looking to incorporate radio stack in the MMJoy,
and was hoping maybe there is soem documentation on this feature with the 8 led display ?

Looking to use 2 of them.

Thank you

Vegard
Posted By: buccaneer89

Re: MMJoy/MMjoy2 - Build your own USB controller - 06/22/16 06:27 PM

Originally Posted By: Troll
Originally Posted By: buccaneer89
I finished my buttons box and everything is working bar the enconders.


Try setting "timer off" to yes.

I've tried this and it didn't work.
The moment I put the physical buttons in the encoder part of the program I don't get any more virtual button presses.

I have the encoder connected as a normal button so that means with resistors. That might be a problem but I don't see how it is in this case since this encoder is a level encoder, not a pulse encoder.

So from what I understand there are two types of encoders.

-Pulse encoders will give you a pulse during a few milliseconds every time you rotate to the left on one of the poles, and every time you rotate to the right on the other pole.
-Level poles will have 3 levels: no voltage on any pole, rotate to the left and one pole will get voltage, rotate again and the other pole gets voltage, rotate again and no voltage on any pole.

My encoders are level encoders which if I don't assign anything they work perfectly on the hardware buttons. But once I configure them they don't work. So I presume something I am doing in the configuration is wrong.

Additional notes
I am using shift registers.
And this are the schematics used.
http://i.imgur.com/jhTKIuh.jpg

So the encoder is connected to ground on the common central pole and as buttons on the side poles.
Posted By: erichos

Re: MMJoy/MMjoy2 - Build your own USB controller - 06/25/16 04:44 PM

to buccaneer89:



1) set "timer off" to yes and "Save sets to device"
2) use "VKB button tester" for checking right function of encoders
3) by the way - better timer delay for encoders is 100-150ms
Posted By: Strikeman

Re: MMJoy/MMjoy2 - Build your own USB controller - 07/01/16 07:45 PM

I just wanted to drop in and say a big thanks to mega_mozg_13, for MMJoy and all the help he has provided on these forums. I recently did a Suncom F-15E stick conversion and it works like a charm.

I used Pro Micro, with a 3x4 button matrix with diodes. Everything works great despite my jittery pots. Ill try to put some pics up in the SFS conversion forum.

Im considering doing a hall sensor retrofit, Does anyone have any live image links to DocFlyers hall sensor replacement for the F-15 stick? All my searching on the internet has come up with mostly dead links.
Posted By: Sokol1

Re: MMJoy/MMjoy2 - Build your own USB controller - 07/01/16 08:45 PM

Quote:
...DocFlyers hall sensor replacement for the F-15 stick? All my searching on the internet has come up with mostly dead links.


Here in SimHQ are a topic of Doc.Flyer Suncom F-15 Hall conversion.
The images are now gone due Imageshack "kidnapping". smile

At some time I print a similar page with this instructions in local forum (Portuguese language), so I a able to "translate" (add some notes) and make a PDF with Doc.Flyer instructions. Download the PDF from there:

https://www.wetransfer.com/downloads/2cf...02160729/cca2e2





Posted By: Strikeman

Re: MMJoy/MMjoy2 - Build your own USB controller - 07/02/16 06:45 PM

Originally Posted By: Sokol1
Quote:
...DocFlyers hall sensor replacement for the F-15 stick? All my searching on the internet has come up with mostly dead links.


Here in SimHQ are a topic of Doc.Flyer Suncom F-15 Hall conversion.
The images are now gone due Imageshack "kidnapping". smile

At some time I print a similar page with this instructions in local forum (Portuguese language), so I a able to "translate" (add some notes) and make a PDF with Doc.Flyer instructions. Download the PDF from there:

https://www.wetransfer.com/downloads/2cf...02160729/cca2e2



That is awesome.

Muito obrigado
Posted By: Eddie123

Re: MMJoy/MMjoy2 - Build your own USB controller - 07/09/16 03:22 PM


Thanks for the reply.

I got the displays now, but I got some doubts. Will this work with FSX ? Only video I have seen, shows it
with fighter simulator.

Vegard

Originally Posted By: buccaneer89
Originally Posted By: Eddie123
Hello.

Is there ever a chance that MMJoy will include some of the functionality that Link2FS has, like the possibillity of including
a LCD screen, for displaying radio frequency etc ?

Thank you

Vegard

As far as I remember you have a module that allows you to do that.

There are videos on youtube showing ammo in a 7 segment LCD screen.
Posted By: mega_mozg_13

Re: MMJoy/MMjoy2 - Build your own USB controller - 07/11/16 02:45 PM

Originally Posted By: Eddie123
I got the displays now, but I got some doubts. Will this work with FSX ?

Now we are have support olny "Warthuder" and "IL-2 Sturmovik". next DCS and FSX on plans...
If you know "how to" I can share something like API (program methods how to send data to controller).
Posted By: Eddie123

Re: MMJoy/MMjoy2 - Build your own USB controller - 07/11/16 03:17 PM


No, I dont know anything about that.

Well, maybe I can use those displays in a different project ...
Posted By: kuabi

Re: MMJoy/MMjoy2 - Build your own USB controller - 07/15/16 11:20 AM

Originally Posted By: buccaneer89
Originally Posted By: Troll
Originally Posted By: buccaneer89
I finished my buttons box and everything is working bar the enconders.


Try setting "timer off" to yes.

I've tried this and it didn't work.
The moment I put the physical buttons in the encoder part of the program I don't get any more virtual button presses.

I have the encoder connected as a normal button so that means with resistors. That might be a problem but I don't see how it is in this case since this encoder is a level encoder, not a pulse encoder.

So from what I understand there are two types of encoders.

-Pulse encoders will give you a pulse during a few milliseconds every time you rotate to the left on one of the poles, and every time you rotate to the right on the other pole.
-Level poles will have 3 levels: no voltage on any pole, rotate to the left and one pole will get voltage, rotate again and the other pole gets voltage, rotate again and no voltage on any pole.

My encoders are level encoders which if I don't assign anything they work perfectly on the hardware buttons. But once I configure them they don't work. So I presume something I am doing in the configuration is wrong.

Additional notes
I am using shift registers.
And this are the schematics used.
http://i.imgur.com/jhTKIuh.jpg

So the encoder is connected to ground on the common central pole and as buttons on the side poles.


Hi, I'm doing much the same, adding buttons and encoders to a collective. Also using 74hc165 shift registers. Like you, buttons are working and to a point so are the encoders but even with timers set i'm getting major bouncing. Have you managed to get your emcoders working?
Posted By: erichos

Re: MMJoy/MMjoy2 - Build your own USB controller - 07/16/16 09:51 PM

@ kuabi and buccaneer89
Maybe your problem with encoders is that you did not define columns and rows in MMJoy2 software and diodes are not properly oriented.

Try to connect encoder like this:


MMJoy2 settings:


Some other pictures:





I hope that help you.
Posted By: kuabi

Re: MMJoy/MMjoy2 - Build your own USB controller - 07/17/16 11:50 AM

@erichos
Many thanks, that worked for me. I can now put together a small matrix to handle 4 encoders to work alongside my 3 shift registers.
Posted By: mega_mozg_13

Re: MMJoy/MMjoy2 - Build your own USB controller - 07/18/16 04:04 AM

firmware allow to use button matrix / shift reg. 74HC165 / shift reg. 4021B - with any variants.
first firmware layer just read hardware (buttons matrix/shift reg's and axis sensors), calculate encodres this is second firmware layer - program all the same where and how they are connected.
Posted By: kuabi

Re: MMJoy/MMjoy2 - Build your own USB controller - 07/20/16 03:23 PM

I am trying to get my head around the button matrix. I'm using a promicro clone and will have 3 x 74hc165's daisy chained together. At the moment I have one working on my breadboard which I'm happy with. This has used pins (b1, d2 and d3). I wish to have 4 x rotary encoders and up to 6 buttons. At the moment I have the rotary encoders working using 8 columns (pins e6, b4, d7, c6, d4, d0, d1, b2, b6) and row b5. These show as encoders 1 to 8 which is great. My problem seems to be when I add another row. Only 1 encoder works and 1 works on one button only. Are there set pins for rows and columns and do they need to be used in a certain order?

Posted By: Euphoria

Re: MMJoy/MMjoy2 - Build your own USB controller - 07/20/16 04:18 PM

Set the option next to "74HC165" to 3. That setting is for the number of shift registers.
Posted By: kuabi

Re: MMJoy/MMjoy2 - Build your own USB controller - 07/20/16 04:32 PM

Sorry I didn't explain myself fully. I know how to add more registers it's the matrix that's confusing me.
Posted By: kuabi

Re: MMJoy/MMjoy2 - Build your own USB controller - 07/20/16 06:25 PM

Finally got it working. I was looking at it in totally the wrong direction. Cleared out all the settings and started on the matrix first. All that is needed now is to test with all 3 shifts and wire into my collective. This really is one great program :-)
Posted By: Snagov

Re: MMJoy/MMjoy2 - Build your own USB controller - 07/20/16 07:55 PM

In MMJoy2, there are any posibility to use one interruptor (on/off) to work like a push button?

I want use this:




Now, i have 3 pulsations on 4,5 and 6 button of MMjoy, but, permanent, not like a pushbutton.

I need 3 positions like FW190 in DCS Series,

Magnetos:
1 position: off
2 position: magneto 1
3 position: magneto 2

Thanks....
Posted By: mega_mozg_13

Re: MMJoy/MMjoy2 - Build your own USB controller - 07/21/16 04:21 AM

Originally Posted By: kuabi

I am trying to get my head around the button matrix.My problem seems to be when I add another row. Only 1 encoder works and 1 works on one button only. Are there set pins for rows and columns and do they need to be used in a certain order?

kuabi
buttons are dynamically numbered sequentially. first goes button maxtrix(BM). second - shift registers(SR).

so if you earlier had BM 1*8, SR bind starts from "9" position.
when you increase BM to 2*8, SR goes to "17" position.
more, BM reading algorytm:

loop_for_colunms
set column to high state
loop_for_rows
read row state
end_loop_rows
clear column high state
end_loop_columns

every time when you change button's sources you are need to reset encoder/joystick buttons.
Posted By: mega_mozg_13

Re: MMJoy/MMjoy2 - Build your own USB controller - 07/21/16 06:04 AM

Originally Posted By: Snagov

In MMJoy2, there are any posibility to use one interruptor (on/off) to work like a push button?
Magnetos:
1 position: off
2 position: magneto 1
3 position: magneto 2

possible. set "MODE:SwitchON"+"TimerON" for each button(position), it is give only one short click when you switch position.
Posted By: kuabi

Re: MMJoy/MMjoy2 - Build your own USB controller - 07/21/16 11:23 AM

Many thanks mega_mozg for that clear explanation.
Posted By: Snagov

Re: MMJoy/MMjoy2 - Build your own USB controller - 07/21/16 02:19 PM

Thansks Mega_MOGZ!, WORKING GREAT!
Posted By: Wolf77

Re: MMJoy/MMjoy2 - Build your own USB controller - 07/22/16 08:48 AM

Hello MegaMozg,
I just checked again your pictures of HotasX rebuild and noticed, that you probably did not use diodes. Am I correct? Was it due to using original buttons with their PCBs with common ground? I suppose you used this common ground as a ROW without diodes. Is it true?
Thanks W77
Posted By: mega_mozg_13

Re: MMJoy/MMjoy2 - Build your own USB controller - 07/22/16 08:52 AM

Originally Posted By: Wolf77
Hello MegaMozg,
I just checked again your pictures of HotasX rebuild and noticed, that you probably did not use diodes. Am I correct? Was it due to using original buttons with their PCBs with common ground? I suppose you used this common ground as a ROW without diodes. Is it true?
Thanks W77

74HC165

https://github.com/MMjoy/mmjoy_en/wiki/C...shift-registers

HEF4021B
http://forums.eagle.ru/showpost.php?p=2780923&postcount=89
Posted By: Wolf77

Re: MMJoy/MMjoy2 - Build your own USB controller - 07/23/16 07:40 AM

Eh, I see now. Thanks.
Posted By: Vindicore

Re: MMJoy/MMjoy2 - Build your own USB controller - 07/25/16 03:22 PM

Talking of HOTAS X rebuilds:



I added 4 rotary dials with push functions, 3 toggle switches, an analogue thumbstick, a big toggle switch with missile cap. I also got rid of the home, SE and ST buttons and put in their place a 3 position slide switch and a couple of simple push buttons.

I separated the throttle from the joystick tether. And I added grip to avoid it feeling like plastic crap. Please ignore the mess around the thumbstick; I used the wrong glue at first and it got a bit melty...

Working on the stick now.
Posted By: Sokol1

Re: MMJoy/MMjoy2 - Build your own USB controller - 07/25/16 03:50 PM

Mega_MOZG,

With PRO Micro is possible use 8x4 as matrix format instead of suggested 6x6?

Because if possible will be convenient for Suncom SFS connector, in 8 x 3 format.

https://s31.postimg.org/o75dwnfdn/SFS.jpg
Posted By: mega_mozg_13

Re: MMJoy/MMjoy2 - Build your own USB controller - 07/25/16 04:29 PM

Originally Posted By: Sokol1
Mega_MOZG,

With PRO Micro is possible use 8x4 as matrix format instead of suggested 6x6?

Because if possible will be convenient for Suncom SFS connector, in 8 x 3 format.

https://s31.postimg.org/o75dwnfdn/SFS.jpg


as you wish, up to 10*10 =)
Posted By: triggahappy

Re: MMJoy/MMjoy2 - Build your own USB controller - 07/26/16 08:11 PM

Hello,

It has been a while since I did any modding however ever since I have modded my Logitech 3D pro I was always thinking of getting saitek x35/36 and modding it. Ofc with my luck I could not get it in reasonable price but finally i did.

So what's the plan? Well.... nothing too fancy, throttle and joystick with twist rudder (yes I like twist rudder smile.
I'll be using x35 and franken joystick that is an old CH Fligstick combined with Logitech Wingman Attack.
Since I'll be using Pro Micro I am trying to save pins and wires between throttle and joystick.
I have not decided on buttons yet but will have 7 axis for sure and I am not planning to use button matrix in throttle only shift register.

I made a simple schematic af what I am planning. Could you have a look at it and tell me if I got it right?




Cheers

Posted By: mega_mozg_13

Re: MMJoy/MMjoy2 - Build your own USB controller - 07/27/16 09:40 AM


shift-reg line "data(old name miso/mosi)" connect to any controller unused pin(not to miso or miso).
tle5010 line "cs" connect to any controller unused pin(not to analog input ADC MCP3208).
Posted By: triggahappy

Re: MMJoy/MMjoy2 - Build your own USB controller - 07/27/16 11:40 AM

Thank you Mega_Mozg smile

I did not know that mcp3208 is analog to digital, shame frown.

For tle5010/11 "cs" you mean any pin on pro micro that can be used for internal/external axis?

In mmjoy2_20151118 shift register MISO field I can use any unused pin, it does not have to be MISO than?



Cheers
Posted By: Sokol1

Re: MMJoy/MMjoy2 - Build your own USB controller - 07/27/16 03:46 PM

Originally Posted By: triggahappy


I did not know that mcp3208 is analog to digital, shame frown.

For tle5010/11 "cs" you mean any pin on pro micro that can be used for internal/external axis?


The case is that TLE501x have internal ADC converter (16? bits), so don't need be plugged in another ADC converter (MPC3208).

You use MPC3208 to send pot' signal for Arduino in digital format, useful if use long cables, or due PRO Micro pin restriction need use more axis inputs than the six ADC pins available in PRO Micro, as MPC3208 has 8 analog inputs.

TLE501x "CS" is the "axis" output and need goes for one of six ADC (axis) input available in PRO Micro. This require individual pin for each sensor.

Curiosity: Why your X-36 stick has 4 axis? Is X, Y, twist rudder and the 4rt?
Posted By: mega_mozg_13

Re: MMJoy/MMjoy2 - Build your own USB controller - 07/27/16 04:02 PM

Originally Posted By: Sokol1

TLE501x "CS" is the "axis" output and need goes for one of six ADC (axis) input available in PRO Micro.

wrong, "CS" goes to any unused pin (there is no dependencies with internal ADC).
Posted By: erichos

Re: MMJoy/MMjoy2 - Build your own USB controller - 07/27/16 07:03 PM

Sorry I am confused guys. Which pin I have to use for shift register? In PCB folder is scheme fo 74HC165 and there is pin MOSI but in MMJoy2 software is pin MISO for shift register setting ?! Which one is right please? On ProMicro board are both pins - MISO and MOSI.
Thanks

EDIT: I tested it and it doesn`t matter. I can use any pin for MISO(MOSI) and CS for shift registers and pins that I use I have to set in MMJoy2. That`s all. Thx.
Posted By: triggahappy

Re: MMJoy/MMjoy2 - Build your own USB controller - 07/27/16 08:11 PM

Thank you for your help guys.

@Sokol
I am going to use x35 as a throttle with additional ps3 thumbstick but I am not going to use x36.
For the joystick I am making franken mod. CH Flighstick base/gimbal and Logitech Wingman Attack handle.
Why 4th axis? X,Y,Rudder and 4th axis is the oryginal CH Flightstick throttle. Its already there so why not to use it, perhaps one day it will come handy.

Btw. Has anyone tried to mod CH or Saitek pots (x,y axis)into halls keeping the trim function?

Cheers
Posted By: Sokol1

Re: MMJoy - Build your own USB controller - 07/27/16 09:07 PM

Originally Posted By: mega_mozg_13
Originally Posted By: Sokol1

TLE501x "CS" is the "axis" output and need goes for one of six ADC (axis) input available in PRO Micro.

wrong, "CS" goes to any unused pin (there is no dependencies with internal ADC).


What I call "ADC" is pins F5, F6, F7, F8... they don't can be used as input for "CS" for TLE501x as in this case they are not used for "Internal ACD"?

I say "ADC" pins labels because this scheme: smile

http://s16.postimg.org/fw3kh4s9h/PROMicro.jpg

Quote:
Btw. Has anyone tried to mod CH or Saitek pots (x,y axis)into halls keeping the trim function?


In Debolesis CH Combatstick - pictures in this thread - he maintain the mechanical trim, but the Bi-Tech 6127 HALL sensor used have similar format to original pot's.

Anyway this mechanical trim has not much use, they still in CH stick as legacy of DOS era, as all in this joystick is from 1990 decade of the last century. In CH-Hangar their guru Bob Church don't advise use this trim under Windows. biggrin

Today even in R/C transmitter, from where this kind of trim was copied, use "digital" trim.






Posted By: triggahappy

Re: MMJoy - Build your own USB controller - 07/28/16 01:10 AM

Quote:
I say "ADC" pins labels because this scheme: smile

http://s16.postimg.org/fw3kh4s9h/PROMicro.jpg


I think that is the old layout of pins that we could not change. We had to use pins F4 F5 F6 F7 B5 B6 as ADC.
But now in newer ver of mmjoy2 we can choose the pins.

I dont think I will ever use trim but if I was to use allegro 1324 instead of tle501x than I could mod CH pot into bic-hall and use trim mechanism for fine tuning the position of hall sensor and magnets.... I think it should work.

Bi-Tech 6127 HALL - nice sensor but bloody expensive

Btw this is the franken joystick that one day will work smile



There is your 4th axis and the big silver button will be replaced with 2 5-way switches acting as povs and other switches but I have not decided yet what where and how as I am waiting for more parts.
Posted By: Sokol1

Re: MMJoy - Build your own USB controller - 07/28/16 02:24 AM

Your idea make sense, I think in something similar, but not with their trim but a way to turn the BIC section externally.

CH bases are a bit "flimsy", what I think help their pot's last long, but for fit HALL is PITA, even the weight of your hand over the base flex then and then the magnets off center.

Other detail is that CH pot axis is part of gimbal, if remove then the gimbal fall apart. smile

Did this in one Combastick.

img

The pot axis has the tip diameter reduced a bit in lathe to allow Bic tube fit tight, so for "tuning" the Bic section can be turned slight. Ideally is if this can be done externally.

Plan eventually replace this with TLE501x.

Interesting your POV HAT solution in Logitech grip. smile

Quote:
Bi-Tech 6127 HALL - nice sensor but bloody expensive


Yes, but one cost less than two CH pot sold as replacement.

In HOTAS Cougar "King of the Hill" times people used pay more than 100$ in similar Midori HALL Sensor - even today some continue to pay. smile



Posted By: triggahappy

Re: MMJoy - Build your own USB controller - 07/28/16 12:09 PM

Quote:
CH bases are a bit "flimsy", what I think help their pot's last long, but for fit HALL is PITA, even the weight of your hand over the base flex then and then the magnets off center.


Plastick gimbals they are all flimsy and have some loose movement. Compared to Logitech 3D and others similar CH gimbal feels great.
Additionally I am using 0.15mm teflon tape and a bit of capton tape to eliminate loose movement.



Your hall is much better idea of what I was thinking, I simply overcomplicated it:). After openig the pot I think it's just not worth the effort to keep the trim. I dont have a lathe so will have to use something else than bic pen or diametrically magnetised magnets

What is that? A LEGO piece?:)



As for POV. 2 5-way will fit for sure, with a bit of luck 3rd one will fit as well




Posted By: Sokol1

Re: MMJoy - Build your own USB controller - 07/28/16 01:41 PM

Originally Posted By: triggahappy


Don't remember from where this plastic "tube" come, but he fit over the pin that are in this place in gimbal and allow the 1/8 screw fit inside. Was fit only for test, after the pin place was bored and the screw bolted in the wall.

If you have a powered hand drill can reduce the pot axis tip with sand paper for metal, the pot axis is brass, relatively soft (will take some time) for fit the Bic tube. Bic tube easy the things due the ~parallel sides.

A guy fit bearings in this CH gimbal, to reduce their play:



The metal tube is for upper part, a twist rudder mechanism from some Logitech stick.
Posted By: triggahappy

Re: MMJoy - Build your own USB controller - 07/28/16 02:21 PM

Quote:
Don't remember from where this plastic "tube" come, but he fit over the pin that are in this place in gimbal and allow the 1/8 screw fit inside. Was fit only for test, after the pin place was bored and the screw bolted in the wall.


I was wondering why you did not drill the wall :P

Quote:
If you have a powered hand drill can reduce the pot axis tip with sand paper for metal, the pot axis is brass, relatively soft (will take some time) for fit the Bic tube. Bic tube easy the things due the ~parallel sides.


Thanks for letting me know that it is brass smile Power drill and a file here I come smile
Just had a quick look at bic and pot shaft, there is not that much material to remove smile aprox 0.4mm.

Other option is to use acrylic tube OD 10mm ID 6mm. With 2mm wall thikness there is enough material to file a grove for magnets. If done properly hall sensor (4mm wide) would be sitting between 2 magnets with 1mm room on each side.

Bearings fited into gimbal that's lovely smile but without proper tools like stand press drill with vice I am not going to even think of doing it.

Thanks for the ideas smile
Posted By: Snagov

Re: MMJoy/MMjoy2 - Build your own USB controller - 07/30/16 08:04 AM

Originally Posted By: mega_mozg_13
Originally Posted By: Snagov

In MMJoy2, there are any posibility to use one interruptor (on/off) to work like a push button?
Magnetos:
1 position: off
2 position: magneto 1
3 position: magneto 2

possible. set "MODE:SwitchON"+"TimerON" for each button(position), it is give only one short click when you switch position.



This is my button box, working as i wanted!





Thanks again!
Posted By: Debolestis

Re: MMJoy/MMjoy2 - Build your own USB controller - 07/30/16 08:40 AM

Snagov that is nice work! Where did you find box?
Posted By: Snagov

Re: MMJoy/MMjoy2 - Build your own USB controller - 07/30/16 09:59 AM

I did it.....it`s simple....wood and carbon fiber viniyl winkngrin
Posted By: Sokol1

Re: MMJoy - Build your own USB controller - 07/31/16 08:52 PM

Originally Posted By: mega_mozg_13

Labels hepls to you (print and glue to the back side "promicro")

here


Mega_MOZG, you can attach this labels again, the above link is broken now.
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 08/01/16 03:53 AM

Originally Posted By: Sokol1
Mega_MOZG, you can attach this labels again, the above link is broken now.

old "downloads" https://drive.google.com/folderview?id=0B2zIeYwbAIHOMFlzSkNPZ1NXV1k&usp=sharing
Posted By: Forsaken_joystick

Re: MMJoy/MMjoy2 - Build your own USB controller - 08/01/16 02:26 PM

Hello all. mega_mozg_13 may I ask you if is it possible to use your sorftware with the old MJoy16, I have one, original design. And if it's possible would you tell how to use mmjoy soft?

PS.: I don't have a pc with serial port nor parallel. How do I burn the hex?
Posted By: Sokol1

Re: MMJoy/MMjoy2 - Build your own USB controller - 08/01/16 02:56 PM

Forsaken,

Only early versions of MMjoy is compatible with Mjoy8/16 due the different mc - the slow and obsolete ATMEGA8 & 16 used in this versions.
Think the last firmware with support for this mc is v20140528.

For Arduino you don't need serial or parallel port or programmer cable/board - but this is need for MJoy8/16.

Then you need buy a USB AVR Programming Cable, better leave this old boards as is. smile
Posted By: Forsaken_joystick

Re: MMJoy/MMjoy2 - Build your own USB controller - 08/01/16 09:23 PM

I just wanted to give that board some use and try the configuration program made by Mega_mozg... Thank you for your advice Sokol1!

My 2 Micro pro boards are at my country's customs. Tomorrow I'll get them, if I'm lucky... dance
Posted By: Sokol1

Re: MMJoy/MMjoy2 - Build your own USB controller - 08/01/16 11:04 PM

Some motherboards although dont have connector for LPT on back panel, have pins for this connector inside, check in manual.
If are, is just matter to plug some cables there to use the old DIY LPT programmer for Mjoy.


BTW - Mjoy16 based "device". wink

https://www.youtube.com/watch?v=8f7LryGqqrU
Posted By: Sokol1

Re: MMJoy - Build your own USB controller - 08/02/16 08:36 PM

Originally Posted By: triggahappy

Bearings fited into gimbal that's lovely smile but without proper tools like stand press drill with vice I am not going to even think of doing it.


No press drill option for bearings. wink

Posted By: Snagov

Re: MMJoy/MMjoy2 - Build your own USB controller - 08/03/16 10:07 AM

Hi again.....

which is the value of potentiometers can be used? 500k is posible?

This board can be used?
Deal Extreme Pro Micro 32U4
Posted By: triggahappy

Re: MMJoy/MMjoy2 - Build your own USB controller - 08/03/16 10:37 AM

@Sokol1
Quote:
No press drill option for bearings. wink


I think you guys have been building/rebuilding sim gear for years and no matter what I ask you will just come up with a solution to a problem smile

Just wish I had enough time to do it all. At the moment bloody job is preventing me from doing any moding at all.

Cheers
Posted By: mega_mozg_13

Re: MMJoy/MMjoy2 - Build your own USB controller - 08/03/16 11:24 AM

more "No press drill option for bearings."
Posted By: mega_mozg_13

Re: MMJoy/MMjoy2 - Build your own USB controller - 08/03/16 11:29 AM

Originally Posted By: Snagov
which is the value of potentiometers can be used? 500k is posible?

linear type "B" label. 1.5k - 100k, best 10k.
Posted By: Sokol1

Re: MMJoy/MMjoy2 - Build your own USB controller - 08/03/16 02:27 PM

Originally Posted By: mega_mozg_13


Like this... "spade" grip. smile
Posted By: Sokol1

Re: MMJoy/MMjoy2 - Build your own USB controller - 08/03/16 02:31 PM

Originally Posted By: Snagov

This board can be used?
Deal Extreme Pro Micro 32U4


Looks Ok, what you should pay attention:

ATMEGA32u4 mc
5V - 16mhz

Some guys are buying 3,5V versions what seems no firmware compatible and prevents use HALL sensor, as most require 5V.

I advise this PRO Micro - because their USB connector is Mini (and not Micro) with 4 solder points on PCB instead 2, so more strong.

http://www.ebay.com/itm/Pro-Micro-ATmega32U4-5V-16MHz-Replace-ATmega328-Arduino-Pro-Mini-/400988209614?hash=item5d5cc281ce:g:TJkAAOSwu4BV5Xso



Posted By: triggahappy

Re: MMJoy/MMjoy2 - Build your own USB controller - 08/03/16 08:34 PM

@Sokol1

3x 5way switches. 2 will be used as povs and the third one as just a 4 way switch. I will not be using "press down" as it is much harder to press down than to press in any direction. The bottom switch will be installed slightly lower to avoid getting in the way and will have to find some button caps.

Posted By: Sokol1

Re: MMJoy/MMjoy2 - Build your own USB controller - 08/03/16 10:39 PM

Looks this 5 way switches is good solution. smile

In Debolesis Shapeways you print some "HAT" covers.

http://www.shapeways.com/shops/debolestis

But probable caps for PS3/SBox like joypads fit better, as have less high.

Posted By: mega_mozg_13

Re: MMJoy/MMjoy2 - Build your own USB controller - 08/04/16 01:16 PM

Originally Posted By: Troll

I'm having trouble with my ConTrollR setup...I have no idea what to do?

have idea, look for pull-up resistor(resistor's) at "MISO" line. and you know my skype...
Posted By: mega_mozg_13

Re: MMJoy/MMjoy2 - Build your own USB controller - 08/05/16 10:49 AM

beta...
http://rgho.st/private/7xV8sJSc9/dbb1a1b2fe3eebc61a263a11d00dfa25
Posted By: Sokol1

Re: MMJoy/MMjoy2 - Build your own USB controller - 08/05/16 01:37 PM

RGHOST download is blocked by Chrome and Edge... frown

Not issue for me, but people with some AV will have problems. smile

I guess that MMjoy2 PANEL is for War Thunder LED outputs only?

Is not possible 'talk" with IL-2 CLiffs of Dover Devicelink outputs?

http://theairtacticalassaultgroup.com/fo...ull=1#post65995





Posted By: Wolf77

Re: MMJoy/MMjoy2 - Build your own USB controller - 08/07/16 10:57 AM

Hello Guys,
I searched the forum because I know some people had same problems before me, but I did not find the answer for my situation. MMJoy correctly detects my buttons i.e. if I press a button, it lits up red in MMJoy. I also sat up Joystic virtual buttons to HW buttons. I checked orientation of diodes and assignment of pins and everything seems to be correct. Even so, Windows control panel does not detect button presses - same in VKB button tester. I am testing it with just a shorted 2 pin connector, not with real buttons yet and here comes the interesting thing - If I quickly wiggle with connector slightly touching onboard female contacts, it sometimes, from time to time, very quickly blinks that button in Win Controll panel. Once I insert the connector like button is firmly pressed, nothing happens in win cpl.

This is kinda frustrating, I must be doing some stupid mistake. Could anybody help please? Thanks!

Version used: v20151118
Windows 10

EDIT: Now I did some further experiments with different modes and timers and I made some conclusion:
When no timer is set, MMJoy, even showing physical button is pressed, just presses and releases the virtual button very quickly, so it can't be seen in Windows control panel. If 500ms delay is set, i can see the button pressed for half a second in Windows. The "soft switch" mode works too - pressed once, it lits up in windows, pressed again - it shuts off in win.

So MMJoy somehow can't keep the virtual button pressed as long as I hold the physical button. Now my question is ... Is it an error, or a feature? :-)
Posted By: Wolf77

Re: MMJoy/MMjoy2 - Build your own USB controller - 08/07/16 02:59 PM

Oh no man ... THAT easy?! biggrin ... Yes it is. Thanks a lot! I do not know why I thought that there has to be something selected... something like you have to bind virtual buttons to hw ones. Strange that it did not came to my mind to try it withou selection.
Posted By: Sokol1

Re: MMJoy/MMjoy2 - Build your own USB controller - 08/07/16 04:51 PM

Some weeks a guy ask the same thing in other forum, and the ---- is the answer. wink
Posted By: Wolf77

Re: MMJoy/MMjoy2 - Build your own USB controller - 08/07/16 08:11 PM

LOL ... I spent a lot of time today with searching the forum and experimenting before I asked ... instead of soldering and solving how to fit all wanted stuff inside the handle of HotasX throttle. Next time I'll ask right away... Next time I will think even of less possible options. ----- it's like "none" for me. None means no function. Thanks again guys for your real and "psychological" (Troll) support. Anyway, this all is great bag of fun ;-)
Posted By: mega_mozg_13

Re: MMJoy/MMjoy2 - Build your own USB controller - 08/08/16 11:04 AM


you are crazy boys!!! new firmware have "button(normal)" instead "----------"
Posted By: Sokol1

Re: MMJoy/MMjoy2 - Build your own USB controller - 08/08/16 02:53 PM



Other changes in the last Beta firmware - MMJOY2[20160801]. (GT)

Quote:

1) Removed keyboard and mouse emulation to reduce processor workload and increase firmware speed.
2) Buttons support increased up to 128. SPECIAL buttons (encoders, toggle switches, timers, etc.) can be only the first 32, above this number is simple momentary buttons.
3) Optimized TLE5011 communication protocol, sensor communication times is about 30% less.
4) Optimized shift register protocol reading.
5) Optimized accuracy of mathematics calculation for TLE5011, is now 40.000 a full rotation of 360 degrees is 40'000 (21'000 was), removed auto-tuning by a magnet (if during the course of the axis have values somewhere pass through 0-40.000 or 40.000 put a tick "displacement of the magnet"). Means TLE5011 now have 40.000 samples (about 15 bits) on 360 degrees rotation angle ~ 111 samples per degree. (1)
6) Added inverted mode button (for normally closed switches).
7) Added "Raznotyaga" * mode for double throttles (button activated, duplicate axis data in the second throttle, making axies move match 100%).
8) For determine USB correct device must now be undecided (?)devices when applying the new configuration.


* Ask GT what mean this... biggrin

(1) Typical joystick gimbal move about 20+20 degrees, so in practice you get ~4.400 samples or ~12 bits using TLE5011.




Posted By: mega_mozg_13

Re: MMJoy/MMjoy2 - Build your own USB controller - 08/08/16 03:01 PM

"Raznotyaga" thumbsup
this is spec.function for double grip throttle's:

for a sample "Saitek x55" have internal optical button when lock throttle, you can bind this button and firmware copy data axis 1 to axis 2. this remove nonlinear sensors errors, mechanical errors and etc...
Posted By: Sokol1

Re: MMJoy/MMjoy2 - Build your own USB controller - 08/08/16 03:04 PM

Originally Posted By: mega_mozg_13
"Raznotyaga" thumbsup


Google images point that is somewhat related to airplanes.

https://www.google.com.br/search?q=%D0%A0%D0%B0%D0%B7%D0%BD%D0%BE%D1%82%D1%8F%D0%B3%D0%B0&espv=2&biw=1600&bih=755&source=lnms&tbm=isch&sa=X&ved=0ahUKEwiP-Z2vi7LOAhXGgZAKHc14CEwQ_AUIBigB

So... is this. biggrin

EDIT - By X-55 throttle example, is a kind of "axis response synchronization". smile
Posted By: Wolf77

Re: MMJoy/MMjoy2 - Build your own USB controller - 08/08/16 04:28 PM

MegaMozg: Hopefully my lack of fantasy will help many others :-). Anyway, I think making things foolproof, will save you some work here in the forum. This addition may be only a kind of polishing, but it is a good addition. Thank you very much. There are not so many developers who are willing to do such small things like changing names in menus on single user request.
Posted By: erichos

Re: MMJoy/MMjoy2 - Build your own USB controller - 08/10/16 08:22 PM

Hi mega_mozg_13,
after installing last version of firmware (MMJoy2-20160801), problem with shifting buttons occured, in version MMJoy2-20151118 was working OK. I used the same connection on two boards with different versions. For shifting I used toggle switch on-off-on, button is normal.
Look at pictures please:




Thank you very much.
Posted By: mega_mozg_13

Re: MMJoy/MMjoy2 - Build your own USB controller - 08/11/16 04:46 AM

erichos
yes, there shifts errors(always on).
Posted By: mega_mozg_13

Re: MMJoy/MMjoy2 - Build your own USB controller - 08/11/16 02:01 PM

MMJOY2[20160811]
next beta, fixed (maybe) shifts error
http://rgho.st/private/6CwmB6gYx/45fa8c0acd5fbf84d2cc0acad69cedb8
Posted By: erichos

Re: MMJoy/MMjoy2 - Build your own USB controller - 08/11/16 04:56 PM

Thank you very much mega_mozg_13.
Now is OK except new added Shift 4. But first 3 shifts are working good.



You are great guy, thanks.
Posted By: mega_mozg_13

Re: MMJoy/MMjoy2 - Build your own USB controller - 08/12/16 03:31 PM

MMJOY2[20160812]
http://muonium.rgho.st/private/6rCbKTJYr/54484af91428498bf4c1ed80664529d6
fixed 4th Shift work. cosmetic changes setup Delay Timers "ON" or "ON+OFF" mode.
Posted By: Wolf77

Re: MMJoy/MMjoy2 - Build your own USB controller - 08/12/16 06:52 PM

Hi MegaMozg,
I know it was discussed here a while ago, but with no usable result. So my question is ... If MMJOY2 allows to use more than 32 buttons, how to use them? How to overcome HID limit and use full number of MMJOY buttons which is well behind 128 DirectInput button limit? Maybe I am just missing something? I red somewhere on the net that if the game uses DInput instead of hid, it supports 128 DX button limit. Is that true? And what if not? Can I somehow overcome the 32 limit? I searched the web and vJoy (virtual joy driver) supports 128 buttons, but it is problem to feed it, because for example UJR does not recognise more than 32 buttons. I also checked JoyToKey and there is the same problem. The creator told me by e-mail it can feed virtual driver with 128 buttons, but can not read from physical stick more than 32... Any help here?
Thanks a lot.
Posted By: Sokol1

Re: MMJoy/MMjoy2 - Build your own USB controller - 08/13/16 02:02 AM

As you say this is limited by Windows/Games.

DCS recognize up to 128 buttons. Tested there with MMjoy on old Mjoy16 board:

how to screen capture

Think the Payware FSUIP interface for FSX too, but not sure.

Other games limited to 32 buttons because they still using old DInput DLL.

A way to use this buttons is through keyboard emulation - that dumb "press joy button to press keyboards keys to do commands in games" that TARGET users love. smile

The Freeware SVMapper allow you use buttons above 32 to send keypress for games, but dont't recognize axis.

http://www.derekspearedesigns.com/technical-guide.html

HidMacros too can be used for this.

http://www.hidmacros.eu/

Both programs are no longer developed/supported software, but work in Win10/64.

Always start keymapper with "Run as Administrator" in shortcut or games maybe not see the key press.
Posted By: Wolf77

Re: MMJoy/MMjoy2 - Build your own USB controller - 08/13/16 08:39 AM

Thank you very much for your inputs. I will check them once finished with my build. I decided to simply add more buttons and decide later how/if to use them. So if I understand well, 32 limit is mostly problem of older games/sims? So supposingly Star Citizen and Elite:Dangerous may support up to 128 btns?
Posted By: Sokol1

Re: MMJoy/MMjoy2 - Build your own USB controller - 08/13/16 05:16 PM

Star Citizen, Elite:Dangerous I don't know.
"Kosmosimov" xwing is not my "beach".


Other "Flight Game" that support more than 32 buttons is IL-2 Battle of Stalingrad.

img hosting

But as this game have only "toggle" options (press a key to turn something ON, press the same key to turn OFF) - "to be accessible for new players" - so SVMapper/Hidmacros can be useful for example use ON/OFF latch switch (SPST) to turn OF and OFF cockpits lights... etc.
Because SVMapper/Hidmacros can send keys commands on PRESS and in RELEASE of this switch.

If don't use SVMapper or similar will be limited to use DPST switch and wire both poles on same button, or optocoupler ic/relays circuits.
Posted By: mega_mozg_13

Re: MMJoy/MMjoy2 - Build your own USB controller - 08/16/16 09:35 AM

auto-pedals -> plane-rudder
https://sites.google.com/site/mmjoyproject/avto-pedali
(need translate from russian)
Posted By: Sokol1

Re: MMJoy/MMjoy2 - Build your own USB controller - 08/16/16 06:42 PM

Images with text translated:

https://www.wetransfer.com/downloads/c6a...16182837/52cce2

I have this pedals there - disassembled, if I find the parts do a try. smile

I remember that for use this pedals in Mjoy16 a guy in X-Simulator.de did this circuit:

https://www.xsimulator.net/community/attachments/ch-rudderadder-gif.4485/
Posted By: Euphoria

Re: MMJoy/MMjoy2 - Build your own USB controller - 08/18/16 09:57 PM

Hey guys, I just finished this controller as a gift for a friend to play Star Citizen!


Imgur album here: http://imgur.com/a/ZzeTF

Many thanks to mega_mozg_13 for MMJoy2!
Posted By: Sokol1

Re: MMJoy/MMjoy2 - Build your own USB controller - 08/18/16 11:05 PM

Nice, good use of TQS. thumbsup
Posted By: SoulhunterTR

Re: MMJoy/MMjoy2 - Build your own USB controller - 08/18/16 11:50 PM

Hi there... im going nuts... cant really made shift register to work with teensy2.0++ with mmjoy2... i connect miso pin to serial output pin cs pin to shift/load pin SCK pin to CLK pin and do connect ground and 5v pins to shift register and put a ground vire to CE pin put no joy... i use sparkfun breakout board for shift register and i really need help since this is my first electronics project..
https://www.sparkfun.com/products/11733

(random buttons turns red in mmjoy even if i dont move a switch or the one switch i connected as button 1 is flickering red and white at screen cant solve it)
Thanks
Posted By: mega_mozg_13

Re: MMJoy/MMjoy2 - Build your own USB controller - 08/19/16 04:17 AM

SoulhunterTR, make foto hardware and MMJoySetup set.
i think you are forget pull-up resistors. Download last beta, and in "PCB" folder check demo boards with SR...
Posted By: Snagov

Re: MMJoy/MMjoy2 - Build your own USB controller - 08/20/16 08:24 AM

Hi Megamega_mozg_13, two questions....

In this new version (20160801) you included MMJoyPanel.exe, that can be used in Il2 Sturmovik......but.....Il2 Sturmovick Battle of Stalingrad or Cliffs Of Dover?

and....there is no posibility an english version?

Thanks....
Posted By: Sokol1

Re: MMJoy/MMjoy2 - Build your own USB controller - 08/20/16 03:29 PM

I think MMjoyPanel work only with War Thunder.

IL-2 BoS is definitively not supported - this game don't export data (maybe in future).

IL-2 CloD export, but in Devicelink format (same for IL-2:46)

BTW - there's new version of MMjoy2 - adding Shift to HAT

MMJOY2 [v20160818] - https://sites.google.com/site/mmjoyproject/fajly-dla-skacivania
Posted By: Snagov

Re: MMJoy/MMjoy2 - Build your own USB controller - 08/21/16 09:59 AM

Hi again....

Im making a new project: 3 encoders, 3 rotary switch, 3 axis, 6 toggle switch (on-off-on) and 18 buttons.
I will make a 9x8 matrix, but i must be doing something wrong with encoders....


If i make one matrix with 1 row and 6 columns, the Encoders working well, but, if add one row more, Encoders not working.

working 6 encoders:



Nothing work:



And, i need 9x8 matrix!


Thanks....
Posted By: mega_mozg_13

Re: MMJoy/MMjoy2 - Build your own USB controller - 08/21/16 01:40 PM

Originally Posted By: Snagov
Hi again....

Im making a new project: 3 encoders, 3 rotary switch, 3 axis, 6 toggle switch (on-off-on) and 18 buttons.
I will make a 9x8 matrix, but i must be doing something wrong with encoders....


If i make one matrix with 1 row and 6 columns, the Encoders working well, but, if add one row more, Encoders not working.


http://simhq.com/forum/ubbthreads.php/topics/4280538/Re:_MMJoy/MMjoy2_-_Build_your_#Post4280538
Posted By: Snagov

Re: MMJoy/MMjoy2 - Build your own USB controller - 08/21/16 09:51 PM

Originally Posted By: mega_mozg_13
[quote=kuabi]


every time when you change button's sources you are need to reset encoder/joystick buttons.



Where i reset encoder/joystick buttons?.....


I have not changed the sources of the buttons, just add 1 row and stops working.

EDIT:
Originally Posted By: sewares
Hi.
I had the problem that I did 6x1 matrix and how I recorded it in Arduino. I then I made a 6x2 matrix, but not I reset the Arduino, I just added another line. And it made the problem. It helped me yours Timer OFF.
I deleted the settings and set up all over again and have it work
burnout


I deleted everything, cleaning EEPROM, and made a 6x2 matrix like Sewares, but, my problem continues.....any idea?. If i, delete one row (6x1 matrix), encoder working well.
Posted By: mega_mozg_13

Re: MMJoy/MMjoy2 - Build your own USB controller - 08/22/16 12:30 PM

Originally Posted By: Snagov

I deleted everything, cleaning EEPROM, and made a 6x2 matrix like Sewares, but, my problem continues.....any idea?.

show your new "MMJoySetup" settings.
Posted By: Snagov

Re: MMJoy/MMjoy2 - Build your own USB controller - 08/22/16 10:12 PM

Originally Posted By: mega_mozg_13
Originally Posted By: Snagov

I deleted everything, cleaning EEPROM, and made a 6x2 matrix like Sewares, but, my problem continues.....any idea?.

show your new "MMJoySetup" settings.




it will not be necessary, after several flashing eeprom and firmware work correctly... now I have a 9x8 matrix, 72 buttons working properly

Thx
Posted By: kutayxx

Mmjoy2 button and encoder problem - 08/23/16 12:28 PM

Hi everyone, im just trying to make a throttle grip for using with Logitech 3d pro.

Im using arduino leonardo and, potentiometers work very well. But i cant figured out how to use buttons and encoders. They seem to work on mmjoy but, on Windows Game Controllers, they just seem to pressed all the time.(red lighted)

Can you guys make a scheme for me on Fritzing about how to connect rotary encoder(including it's internal button) and a couple of buttons together to connect Leonardo. And mmjoy settings please

I would really happy ifi you guys help smile and sorry for my english.
Posted By: Wolf77

Re: MMJoy/MMjoy2 - Build your own USB controller - 08/28/16 12:30 PM

@Snagov: What do you use for or how do you map buttons over 32 in Windows? Thanks
Posted By: Sokol1

Re: MMJoy/MMjoy2 - Build your own USB controller - 08/28/16 02:05 PM

SVMapper or Hidmacros do the trick, and perhaps Autohotkey (need write code).

Posted By: Snagov

Re: MMJoy/MMjoy2 - Build your own USB controller - 08/28/16 08:47 PM

Originally Posted By: Wolf77
@Snagov: What do you use for or how do you map buttons over 32 in Windows? Thanks



I do not need Windows recognize more than 32 buttons , I just need to do the simulators ( dcs , IL2 , ..... ). More than 32 buttons, it is a limitation of DirectX, but, if you use "VKB Button Tester" you can see all buttons



Posted By: Crawling_Chaos

Re: MMJoy/MMjoy2 - Build your own USB controller - 09/01/16 09:06 PM

First of all, I would like to thank Mr. Naydentsev for the great effort in bring us the MMJoy2. Superb work!

Second, I am about to mod an old Suncom F15e Hawk (the model without HAT). However, I didnt decided myself what to do and various possibilities are open. But one thing is worrying me: the infamous Suncom straight potentiometer. I searched for references about how to change it to a Hall effect sensor, but I found very few. The most relevant one, from DocFlyer, dont have pictures anymore (they were hosted on Imageshack). With the photos gone, I dont have any clue on how to retrofit this pot.

Anyway, I already bought an Arduino PRO Micro board, some neodymium magnet (5x5x5mm), some A3144 Hall sensors, and PS3 thumbsticks. Also, I found that the Suncom F15e Hawk stick PCB has the mounting places of the tactile keys for the castle and HAT switches.
I would appreciate if Sokol1 could point me places in Brazil to buy the necessary parts for the mod.

Best regards,
Crawling Chaos
Posted By: Sokol1

Re: MMJoy/MMjoy2 - Build your own USB controller - 09/01/16 11:53 PM

Frederico,

The only know HALL installation in Suncom F-15 gimbal is "Doc.Flyer 100% Solution". smile

I have a PDF of this original topic with pictures (in English and Portuguese).

In Suncom conversion topic in X-Plane forum years ago the guy allegedly install HALL, but refuse to say how and post pictures when I ask...

I have mixed feedback of Doc.Flyer solution from 3 different guys, none conclusive. So is case to try.

I suggest you go in www.gavca.com - recently other guy decided modify his Suncom and we are discussing possibilities, in the topic are has address for buy basic electronics components locally.

Although the "Saturn Ring" Suncom gimbal has good kinematics and their feel are appreciated at time - don't mix X,Y forces or have "stiction" like Warthog "piston" gimbal - was done be specific type of potentiometer, that seems no longer available.

The most practical seems make a new gimbal (aluminum profiles, ball bearings) he will try a Mega_MOZG design, but
with more length springs. Preliminary sketch:

https://s4.postimg.org/lwnsd1y0d/Suncom_Gimbal_Uber_MM.jpg

We think too in use CAM (in laser cut metal) for have a clear center, but dont know how calculate one. smile Their principle seems based on Involute Circle.

Will be easy install a HAT in place or "Red lamp" in your Hawk. wink





Posted By: Crawling_Chaos

Re: MMJoy/MMjoy2 - Build your own USB controller - 09/03/16 02:02 AM

Hi Sokol1, glad to finally reach you.

If you have the Doc.Flyer pictures, please send them to me. I think they could help me a lot.

If I don't manage a way of using the Hall sensor in the original place of the potentiometers, I am planing to change the entire gimbal.

Best regards
Frederico
Posted By: vparez

Re: MMJoy/MMjoy2 - Build your own USB controller - 09/10/16 01:29 PM

Hi Megamozg,

thanks for this great tool man!

One question: if I have a permanent ON-OFF-ON switch (as T7-T8 on the TQS) with 3 pins, is it possible to program it with an additional virtual button for the OFF position? Physically, when this switch is in the middle position, neither the T7 nor the T8 buttons are pressed. So is it possible to create a virtual button which will be active when two hardware buttons are inactive?
Posted By: Sokol1

Re: MMJoy/MMjoy2 - Build your own USB controller - 09/10/16 02:15 PM

If not you can replace the switch by DPDT ON-ON-ON

http://www.mouser.com/ds/2/60/7000toggle-965377.pdf
Posted By: Snagov

Re: MMJoy/MMjoy2 - Build your own USB controller - 09/10/16 05:54 PM

....And here it is my second creation, in this model, i configure:

- 18 buttons
- 6 toggles ON-OFF-ON
- 3 Encoders
- 3 Slide potentiometers
- 3 Traditional potentiometers



Posted By: mega_mozg_13

Re: MMJoy/MMjoy2 - Build your own USB controller - 09/10/16 06:58 PM

Originally Posted By: vparez
Hi Megamozg,
One question: if I have a permanent ON-OFF-ON switch (as T7-T8 on the TQS) with 3 pins, is it possible to program it with an additional virtual button for the OFF position?

look here, use this idea with "Button(invert)" mode
https://sites.google.com/site/mmjoyproject/nastrojka-v-defender-cobra-m5-treh-rezimov-bvr-nav-vis
Posted By: vparez

Re: MMJoy/MMjoy2 - Build your own USB controller - 09/12/16 08:35 AM

@Sokol1,

yeah I know, but the body of a 6-pin is much larger which means I have to change the internal supports of the TQS and I dont want to do that.

@Mega_Mozg,

Thanks for the tip, but I didn't really understand what you do there; I am not very electronically savvy.

I am trying also to program a button in a SWITCH mode but it gives no response at all, no matter which mode I chose. I am using the latest build v20160818upd1 and the button works normally in the norm and invert modes. Any idea what am I doing wrong?
Posted By: mega_mozg_13

Re: MMJoy/MMjoy2 - Build your own USB controller - 09/13/16 05:47 AM

Originally Posted By: Troll
@mega_mozg_13

Is it possible to map a switch to give repeat signals?

I'm thinking about the EJECT command in DCS. If you assign this command to a switch, that switch must be activated three times in order to eject.

I would like to have one button or switch giving three (or more) "presses" when I close the switch. Is this possible in MMJoy?


add "Timer" and "ON+OFF" mode
Posted By: mega_mozg_13

Re: MMJoy/MMjoy2 - Build your own USB controller - 09/13/16 05:50 AM

Originally Posted By: vparez

I am trying also to program a button in a SWITCH mode but it gives no response at all, no matter which mode I chose. I am using the latest build v20160818upd1 and the button works normally in the norm and invert modes. Any idea what am I doing wrong?

to small delay between "ON" and "OFF" status add "Timer", and check buttons via "VKB_BtnTester"...
Posted By: vparez

Re: MMJoy/MMjoy2 - Build your own USB controller - 09/13/16 07:47 PM

Originally Posted By: mega_mozg_13
Originally Posted By: vparez

I am trying also to program a button in a SWITCH mode but it gives no response at all, no matter which mode I chose. I am using the latest build v20160818upd1 and the button works normally in the norm and invert modes. Any idea what am I doing wrong?

to small delay between "ON" and "OFF" status add "Timer", and check buttons via "VKB_BtnTester"...


Thanks man! MMJoy works perfectly; well done!
Posted By: SolderMonkey

Re: MMJoy/MMjoy2 - Build your own USB controller - 09/15/16 04:13 PM

OK, I've been playing around with an old Thrustmaster TQS. Buttons and Pots are all fine. Anybody got a pinout for the Pressure Transducer? I've got a setup that works in X/Y axis but when I supply 5 volts, the total throw for the axis is .2 Volt (2/10). That seems really low for an axis throw. Barring that, Can anyone recommend a replacement? I've tried fitting a couple of xbox and playstation style thumb sticks and they are too big for the volume available.
Posted By: Orka45

Re: MMJoy/MMjoy2 - Build your own USB controller - 09/15/16 04:57 PM

Hi MMJOY2 experts!

Im in the process of modifying an old Logitech Stick and the last thing i have to do now is flashing the MMJOY firmware on my Arduino Leonardo clone

This however is making trouble... I have tinkered now for 6 hours and dont know why it wont work for me.
This is giving me a headach, i expected it to be almost plug and play smile
I hope it is just some minor issue that i have overlooked and please forgive me for not reading 100 if this is repeatly asked.


The Problem:
I have "sucessfull" flashed my chip with a test firmware mapping one Axis.
The Device is Listed in Device Manager in the HID collum as HID-compliant vendor-definded device (just like in the Tutorial on Github
The Device does also appear as USB-Input device in the HID collum.
The Device does not get recognized by Windows as Gamecontroller
Windows does not ask me to Install Drivers for the Device
Windows does says the Drivers are up to Date
The Device is no longer shown as a Serial COM Port in the Serial collum, In Bootloader mode however it is still visible and has a com port attached

The Device is shown in the List in the MMJOY2 Softwrae as MMJ-reset
The Device is shown in Settings -> Device and Printer as MMJ-reset

any ideas whhat i #%&*$# up, gentleman?
Posted By: Forsaken_joystick

Re: MMJoy/MMjoy2 - Build your own USB controller - 09/15/16 07:52 PM

I've installed a ps2 thumbstick in there... It isn't pretty but it is functional
Posted By: Sokol1

Re: MMJoy/MMjoy2 - Build your own USB controller - 09/15/16 09:46 PM

Originally Posted By: Orka45

I have "sucessfull" flashed my chip with a test firmware mapping one Axis.

The Device is shown in Settings -> Device and Printer as MMJ-reset...

any ideas whhat i #%&*$# up, gentleman?


Looks that you don't set the "joystick" already. The firmware flash make the Arduino a HID device, but not a "joystick".

Open the JoySetup, select the device "MMJ reset" and set the joystick:

Their name
VID/PID numbers (eg. 0001/0001 make the new joystick the first for Windows/Games).
Number, resolution, names for axis, etc.
Matrix or Shift Register for buttons, set buttons "names" (their numbers). Can leave this for do latter.

Save for device. When reboot the new joystick will appear in Joy Setup testing tools or Windows Control Panel > Games Controllers

Originally Posted By: Forsaken_joystick
I've installed a ps2 thumbstick in there... It isn't pretty but it is functional


Is the solution adopted by Thrustmaster for Cougar. smile

You can order a 3D printed proper cover for the mini-stick:

Early F-16 TQS: http://www.shapeways.com/shops/debolestis
Latter F-16 "Block" TQS: http://www.shapeways.com/product/ARG8VEB84/f16-cursor-knob?optionId=59097861

Posted By: Orka45

Re: MMJoy/MMjoy2 - Build your own USB controller - 09/15/16 11:00 PM

Originally Posted By: Sokol1
Originally Posted By: Orka45

I have "sucessfull" flashed my chip with a test firmware mapping one Axis.

The Device is shown in Settings -> Device and Printer as MMJ-reset...

any ideas whhat i #%&*$# up, gentleman?


Looks that you don't set the "joystick" already. The firmware flash make the Arduino a HID device, but not a "joystick".

Open the JoySetup, select the device "MMJ reset" and set the joystick:

Their name
VID/PID numbers (eg. 0001/0001 make the new joystick the first for Windows/Games).
Number, resolution, names for axis, etc.
Matrix or Shift Register for buttons, set buttons "names" (their numbers). Can leave this for do latter.

Save for device.
When reboot the new joystick will appear in Joy Setup testing tools or Windows Control Panel > Games Controllers


Thank you!
I overlooked that menue Point and thought after configuring i have to flash the Firmware on the Stick.
I knew it had to be something easy biggrin
I feel stupid now !6! HOURS of overlooking that Button biggrin

Ok, The Arduino now gets recognized as a Joystick in Windows!
Too bad its already 1 AM, i think i can finally finish that Stick mod tomorrow (feels like an eternity)
I will Post a Picture in here when it is finally assembled
Posted By: SolderMonkey

Re: MMJoy/MMjoy2 - Build your own USB controller - 09/15/16 11:14 PM

Yeah, I just left it alone for now. I'll order some PS2 or PSP sticks. Sokol1 came through with a very detailed set of info on the transducer. I'm not wiring op amps and a second atmel into a joystick just for a couple of axis. Very easy conversion. Thanks guys!
Posted By: vparez

Re: MMJoy/MMjoy2 - Build your own USB controller - 09/16/16 12:37 AM

Hi guys,

I finished my F22+TQS conversion with a single arduino micro and it works very well. Thx again to MegaMozg!
I do have a little problem; I manage to make 7 assignments to switch ON or switch OFF function in the virtual button list, and no more. If I try another, the selection reverts to a normal button. Is there a limit to the number of switches?

Edit: actually, I cant edit anything else in the button list; cant set any more timers or shifts or encoders. I can still assign buttons to a virtual button but cant change any other options for it. I don't know yet at which exact moment this starts to happen.
Posted By: Forsaken_joystick

Re: MMJoy/MMjoy2 - Build your own USB controller - 09/16/16 05:51 PM

Question, my MMJOY2 Micro Pro arduino clone is acting wierd. It has 2 potentiometers (TM FLCS original ones) so far it's working great, not spiking with x4 filter. But, from time to time one axis is moving the other... Could it be a current problem since I'm using standard motherboard usb ports?
Posted By: Crosswind

Re: MMJoy/MMjoy2 - Build your own USB controller - 09/17/16 04:01 PM

Hi mega_mozg_13,

it's weird when I try to run the latest MMJOY2[v20160818upd1] in win10 or XP, it pops up this error message:




am I missing some language files? I download from your google sites Could you pls help me out of this?
Posted By: Sokol1

Re: MMJoy/MMjoy2 - Build your own USB controller - 09/17/16 04:36 PM

Looks language issue. Try:

Open the file MMJoySetup.ini and change

Code:
[Main]
Translate=P??????(Russian)


To

Code:
[Main]
Translate=English


Anyway no issue there, Win10/64 - I always start MMjoySetup "Run as administrator".
Posted By: Crosswind

Re: MMJoy/MMjoy2 - Build your own USB controller - 09/17/16 06:07 PM

Problem is there are not any language files in the folder. I tried copied the lng file from previous version into this folder but unlucky, the same error.
Posted By: mega_mozg_13

Re: MMJoy/MMjoy2 - Build your own USB controller - 09/18/16 06:39 AM

Originally Posted By: Crosswind
Hi mega_mozg_13,

it's weird when I try to run the latest MMJOY2[v20160818upd1] in win10 or XP, it pops up this error message:




am I missing some language files? I download from your google sites Could you pls help me out of this?

start "DXDiag" and save diagnostic to file "DxDiag.txt", send it to me...
Posted By: Crosswind

Re: MMJoy/MMjoy2 - Build your own USB controller - 09/18/16 08:16 AM

I sent the dxdiag.txt to your gmail, pls check.

Thank you!
Posted By: vparez

Re: MMJoy/MMjoy2 - Build your own USB controller - 09/18/16 09:30 AM

Ok, so only the first 32 buttons + HAT can be set to anything other than button (norm), afterwards in the list your buttons can only be norm without any modifiers.
Posted By: mega_mozg_13

Re: MMJoy/MMjoy2 - Build your own USB controller - 09/18/16 11:55 AM

Originally Posted By: Crosswind
I sent the dxdiag.txt to your gmail, pls check. Thank you!

China Windows error...
Posted By: Crosswind

Re: MMJoy/MMjoy2 - Build your own USB controller - 09/18/16 02:12 PM

how to fix this? I have to change to a English Win? is there any other solution?
Posted By: Forsaken_joystick

Re: MMJoy/MMjoy2 - Build your own USB controller - 09/18/16 10:36 PM

Setting Windows English region?
Posted By: mega_mozg_13

Re: MMJoy/MMjoy2 - Build your own USB controller - 09/19/16 06:05 AM

Originally Posted By: Crosswind
how to fix this? I have to change to a English Win? is there any other solution?

no solution.
Posted By: Sak75

Re: MMJoy/MMjoy2 - Build your own USB controller - 09/20/16 07:14 AM

A virtual machine with English win version?.
Posted By: vparez

Re: MMJoy/MMjoy2 - Build your own USB controller - 09/20/16 10:00 AM

Hi Mega_Mozg,

As I wrote before I can't change any features for virtual buttons after button 32. Is there a solution for this?

Thanks!
Posted By: mega_mozg_13

Re: MMJoy/MMjoy2 - Build your own USB controller - 09/20/16 10:49 AM

Originally Posted By: vparez
Hi Mega_Mozg,

As I wrote before I can't change any features for virtual buttons after button 32. Is there a solution for this?

Thanks!

no, only first 32.
Posted By: Crosswind

Re: MMJoy/MMjoy2 - Build your own USB controller - 09/20/16 06:19 PM

Originally Posted By: Forsaken_joystick
Setting Windows English region?


tried, failed.....
Posted By: Crosswind

Re: MMJoy/MMjoy2 - Build your own USB controller - 09/20/16 06:22 PM

Originally Posted By: Sak75
A virtual machine with English win version?.


tried, failed....

mmjoy2 can run on the VM, but VM can't recognize the arduino board.....

seems I have to install a second OS for English windows in my old XP laptop.
Posted By: Forsaken_joystick

Re: MMJoy/MMjoy2 - Build your own USB controller - 09/21/16 12:46 AM

What's your not unicode program setting?.. what language?
Posted By: Crawling_Chaos

Re: MMJoy/MMjoy2 - Build your own USB controller - 09/22/16 03:29 AM

Hey Sokol1, I am having trouble finding some components here in Brazil. Even online there are some pieces very difficult to find. Living here, in the same State than me, can you give me any clues on where to find TLE5011 and diametrical polarized magnets?

BTW, I bought another Suncom stick and I think I will have to retrofit the gumbal of both of them...

Best regards
Crawling Chaos
Posted By: Sokol1

Re: MMJoy/MMjoy2 - Build your own USB controller - 09/22/16 04:08 AM

Locally difficult you find TLE5011 and proper magnets. Farnel is not here anymore.

Your best option is buy in China, through eBay or Aliexpress. Unfortunately our local bureaucracy makes this very slow option, it will take ~3 months to get in your hands, although arrive from China in 2/3 weeks.
Posted By: Crawling_Chaos

Re: MMJoy/MMjoy2 - Build your own USB controller - 09/22/16 01:10 PM

I will try to buy in Mouser and ask someone to bring me. I have a bunch of friends living in USA and Canada.

[]s
Crawling Chaos
Posted By: tityus

Re: MMJoy/MMjoy2 - Build your own USB controller - 09/22/16 10:45 PM

Hi Crawling Chaos,

I'm not sure if you know https://supermagnetman.com/
They have a good selection and I've bought from them in the past without problems.

I don't know how often you have courier coming to Brazil, but I'm here in Sao Paulo and I have used a "middleman" in the past. I'm not sure if the guy is still active, but it worked like a charm in the past. Drop me a line PM if you think that may work for you.

t mais
Posted By: Crawling_Chaos

Re: MMJoy/MMjoy2 - Build your own USB controller - 09/23/16 12:38 AM

Tanks for the advice, tityus (serrulatus or bahiensis?), But I will not need a middle-man, for my brother is going this month to USA. I will buy the stuff I need and get it delivered in his friends place. Since all parts are very small, bring them in the lugage will not be a problemas for him.

Oh, yes, I am aware of the supermagnetman.net. I will buy the magnets there, some componentes at Mouser, and some cables at Markertek.

[]'s
Crawling Chaos
Posted By: Sokol1

Re: MMJoy/MMjoy2 - Build your own USB controller - 09/23/16 12:52 AM

Take a look in Servocity, with CNC parts from there you can build a new gimbal for Suncom easy. Samples:

https://www.servocity.com/90-hub-mount-bracket-a
https://www.servocity.com/0-250-1-4-bore-flat-bearing-mount
https://www.servocity.com/1-50-channel
Posted By: tityus

Re: MMJoy/MMjoy2 - Build your own USB controller - 09/23/16 11:05 PM

Originally Posted By: Crawling_Chaos
(...) my brother is going this month to USA.

That's the best resource. Good choice.


Originally Posted By: Crawling_Chaos
(...) tityus (serrulatus or bayensis?)

Despite the facts that those are more diffuse and that I personally find quite interesting the bad ass look of the black ones, to remain faithful to my original concept I have to reply to you: tityus paulistorum

BTW, you get extra cleverness points for the insight. HPL would be proud :-)

Good luck with the construction. Keep us posted.

t mais
tityus
Posted By: Deeps

Re: MMJoy/MMjoy2 - Build your own USB controller - 10/04/16 04:20 PM

I always hate for my first post to be asking for help but after few days of messing around I capitulated trying to find solution on my own.

I'm in a process of building custom controller and I got stuck trying to get exis to report properly to windows.
I stripped everything to and just left one axis just to keep it simple and MMJoy reads it fine with values 0 to max 255 with 127 center. But anything outside of MMjoy sees the axis in the following way:
Center 127
(center to forward) MMJoy 127 to 0 windows 127 to 0
(center to back) MMjoy 127 to 255 windows ... this is the fun part 127, -127, -126 all the way to -1 at full move.

I tried all 4 way of Auto-calibration, no calibration pretty much same result.

The following is how I have it configured.
Any help would be appreciated !

Posted By: mega_mozg_13

Re: MMJoy/MMjoy2 - Build your own USB controller - 10/04/16 05:40 PM

Deeps, switch precision to 10bits.
I know this old bug, and new versions do not have step-down precision setup.
Posted By: Deeps

Re: MMJoy/MMjoy2 - Build your own USB controller - 10/05/16 02:50 AM

Originally Posted By: mega_mozg_13
Deeps, switch precision to 10bits.
I know this old bug, and new versions do not have step-down precision setup.


That was it ! Thank you
Posted By: Crawling_Chaos

Re: MMJoy/MMjoy2 - Build your own USB controller - 10/06/16 03:25 AM

Well, I bought another Suncom. This time a F-15E Raptor. This new (old) one certainly has some potentiometer issues. After calibration the cross-hair keeps moving with some electric noise. But this hardly matters as I will dump the original pots and gimbal anyway.

By the way, I sketched the setup I intend to use, but I could use some help reviewing it to look for errors. Can anyone point me if I am in the right direction?

[img]https://lh3.googleusercontent.com/jzG-KD...Z=w1036-h537-no[/img]

The thing will have 3 axis with TLE5011 and I will use a PS3 joypad in a HAT. A 4x4 button matrix completes the setup.

I will appreciate any help.

Thanks
Crawling Chaos
Posted By: mega_mozg_13

Re: MMJoy/MMjoy2 - Build your own USB controller - 10/06/16 10:44 AM

Crawling_Chaos, make better resolution, Im cant read promicro pins.
Posted By: Crawling_Chaos

Re: MMJoy/MMjoy2 - Build your own USB controller - 10/06/16 09:29 PM

Sorry, let me place a close up of the chip.



Best regards
Crawling Chaos

PS: Do I need to place any additional components on around the TLE5011, like caps and resistors?
Posted By: Crawling_Chaos

Re: MMJoy/MMjoy2 - Build your own USB controller - 10/07/16 03:21 AM

Another one:



Best regards
Crawling Chaos
Posted By: Forsaken_joystick

Re: MMJoy/MMjoy2 - Build your own USB controller - 10/07/16 11:49 AM

Hi Troll, only those resistors?.. what about caps?

PS: I still need to use my TLE, they're still sleeping in their envelope... hahaha
Posted By: Crawling_Chaos

Re: MMJoy/MMjoy2 - Build your own USB controller - 10/07/16 05:29 PM

One resistor for each TLE, or one for all TLEs?

Best regards
Crawling Chaos
Posted By: mega_mozg_13

Re: MMJoy/MMjoy2 - Build your own USB controller - 10/07/16 05:39 PM

Posted By: Sokol1

Re: MMJoy/MMjoy2 - Build your own USB controller - 10/07/16 05:40 PM

One for all, see (manual drawings):

EDIT - Picture removed for don't cause confusion, the above scheme is more updated. wink

Notice too that you dont need more 4x 1k restistor in TLE501x PCB, as in most layouts.

But if convenient, this (1k) resistor can be leaved in TLE501x PCB, between MISO - VCC, will make the same effect.

Posted By: Euphoria

Re: MMJoy/MMjoy2 - Build your own USB controller - 10/07/16 05:56 PM

Mega_mozg_13,

Any plans to add higher bit ADC (14 bit?) to the mmjoy2 firmware?
Posted By: mega_mozg_13

Re: MMJoy/MMjoy2 - Build your own USB controller - 10/07/16 06:04 PM

Originally Posted By: Euphoria
Mega_mozg_13, Any plans to add higher bit ADC (14 bit?) to the mmjoy2 firmware?

do you know low-cost and fast ADC chips? also it is must be easy to assemble DIY.
Posted By: Crawling_Chaos

Re: MMJoy/MMjoy2 - Build your own USB controller - 10/07/16 07:50 PM

Hi mega_mozg_13, I think it is correct now, isn't?



Best regards
Crawling Chaos
Posted By: lamal

Re: MMJoy/MMjoy2 - Build your own USB controller - 10/08/16 02:17 PM

Thank you so so much for develop this amazing MMjoy2.

Today I setup a 48 button + 3 enconder. and find the following problem, please help. thanks heaps!

Refer to the following picture, 1-32 button (in blue box) work fine, however. 33 - 48 is work on VKB Button Tester But Direct input Viewer no respond for those button. what I wrong, please help.


Posted By: lamal

Re: MMJoy/MMjoy2 - Build your own USB controller - 10/09/16 12:39 AM

no. Buttom 33-48 dont work in game either. I use this mega for Falcon BMS. Is that support more than 32 Button? Thanks for reply.
Posted By: Sokol1

Re: MMJoy/MMjoy2 - Build your own USB controller - 10/09/16 01:07 AM

Lamal,

VKB BtnTester see more than 32 buttons (I test there now), so something are wrong in your setup, revise connections.

I don't know if Falcon BMS support recognize more than 32 buttons (this is limited by Windows DImput), but since this game engine are old, is not improbable. DCS World for example see up to 128.

If is the case, using SVMapper, you can use buttons above 32, sending keypress.
Posted By: lamal

Re: MMJoy/MMjoy2 - Build your own USB controller - 10/09/16 01:22 AM

Hello Sokol1,

Thanks for your reply. I can see all button (48 button) work fine on VKB BtnTester, and #1- 32 is good on game but #33-48 not work. I will check and see how many key Falcon able to handle. if only 32, i may need to put mare Mega in to my computer. Thanks a lot.

PS, learning what is SVMapper.

========FIX AND THASNKS========
The Problem is Falcon Support 32 key (with Shift total 64) for each device


Thanks again to everyone.
Posted By: Snagov

Re: MMJoy/MMjoy2 - Build your own USB controller - 10/09/16 08:34 AM

Hi, i want build 72 buttons and 3 axis. I will use 18 pushbuttons, 6 toggles ON-OFF-ON (=12 buttons), 3 encoders ( =6 buttons), and.... (here it is the problem) 3 rotary switch 6 positions 2 circuits (=36 buttons).

If i use MMJOY2[20160801], when asigns SWITCH ON value "Mode", only let me use 32 buttons, dont recognize more than 32, and i need 36.




If I use MMJOY2[20151118], "SwITCH ON" no have problems, but this version only let me 64 buttons, and i need 72....

any idea?.....

EDIT: After use 32 "SWITCH ON", i cant use another value like Encoder, Switch, Button(invert),.... only Button(norm)

EDIT 2: From the button 33 to 128, the Mode field only allows Button (norm).
Posted By: mega_mozg_13

Re: MMJoy/MMjoy2 - Build your own USB controller - 10/10/16 02:52 PM

firmware support special modes only for first 32 buttons and HAT.
Posted By: Snagov

Re: MMJoy/MMjoy2 - Build your own USB controller - 10/10/16 08:26 PM

Ok, Thanks Mega_mozg_13!....for the next time i will remind this especification....
Posted By: Crawling_Chaos

Re: MMJoy/MMjoy2 - Build your own USB controller - 10/13/16 08:16 PM

Sokol1

I think the gimbal with Servocity parts will be very large. Will this thing fit and rock inside the Suncom base?




Best regards
Crawling Chaos
Posted By: Sokol1

Re: MMJoy/MMjoy2 - Build your own USB controller - 10/13/16 10:03 PM

No, to high, the space on base is very limited.

picture hosting

You have a box with 80 x 40m (WxH) for gimbal (measures with plastic paquimeter).
Depends on spring position can add ~16 mm in high.

This Mega-MOZG design can be used there, is similar to (Cougar) Uber_NXT mechanics.



What maybe you can use from Servocity is pillow bearing in X, the small one, so don't need bother in drill perpendicular holes.

I get some aluminum profiles to try making one, L and square, but need find someone with press drill to borrow.
Posted By: Crawling_Chaos

Re: MMJoy/MMjoy2 - Build your own USB controller - 10/13/16 10:50 PM

I have a very small time window to buy the parts I need and send them to my brother. I am considering building an "undercase" for this gimbal. I do have a bench support for a hand drill, but I lack the time to use it.

Best regards
Crawling Chaos
Posted By: mega_mozg_13

Re: MMJoy/MMjoy2 - Build your own USB controller - 10/14/16 12:35 PM

Crawling_Chaos, if you want it is possible to send assembled gimbal from Belarus. I have a couple of unnecessary...
Posted By: lamal

Re: MMJoy/MMjoy2 - Build your own USB controller - 10/14/16 04:42 PM

hello everyone, I try to use hall effect sensor to replace my Cougar throttle pot. However, I find that my Honeywell SS495A take approx 70 degree to finish the whole range. thats seems not enough degree for my throttle movement. How can I fix this problem. Thanks heaps.
Posted By: Sokol1

Re: MMJoy/MMjoy2 - Build your own USB controller - 10/14/16 05:36 PM

Lamal,

Look what Miles_D say there, about "tune" his Cougar sensor (think is S495), moving the magnets away from sensor:

https://forums.eagle.ru/showpost.php?p=2718321&postcount=58
Posted By: Crawling_Chaos

Re: MMJoy/MMjoy2 - Build your own USB controller - 10/15/16 03:58 AM

The thing, mega_mozg_13, is that Brazilian customs are very dull, sluggish, and often unfair. Besides the already high taxes (they charge over price plus shipping!) there is a big chance they fail to classify the product and therefore overcharge it. For this, I would rather that someone could bring it over our borders. But, please, PM me with the specs and price, for I need two gimbals if I intend to get the two joysticks working again.

Best regards
Crawling Chaos
Posted By: lamal

Re: MMJoy/MMjoy2 - Build your own USB controller - 10/15/16 03:46 PM

Originally Posted By: Sokol1
Lamal,

Look what Miles_D say there, about "tune" his Cougar sensor (think is S495), moving the magnets away from sensor:

https://forums.eagle.ru/showpost.php?p=2718321&postcount=58


Thank you so so much, it fix.

By the way, I have this "error cyclic redundancy check" when I load from device, What is that? I google search, result like computer hard ware problem. any idea, Thanks
Posted By: Sokol1

Re: MMJoy/MMjoy2 - Build your own USB controller - 10/15/16 05:40 PM

This error happens when JoySetup and firmware don't have the same revision (date).
Posted By: lamal

Re: MMJoy/MMjoy2 - Build your own USB controller - 10/16/16 04:36 PM

Thank you sir
Posted By: Sokol1

Re: MMJoy/MMjoy2 - Build your own USB controller - 10/17/16 05:24 PM

Old stuff - CH Flighstick, PRO Pedals gameport - USB'erized with MMjoy2.

hosting image
Posted By: Kimer

Re: MMJoy/MMjoy2 - Build your own USB controller - 10/21/16 07:36 PM

I can have some indications: should I build throttle of Su-27

[img:center]https://c1.staticflickr.com/3/2723/4038592592_31d8da37c9_z.jpg?zz=1[/img]

which card and which potentiometer and rotary I have to buy?
Posted By: Sokol1

Re: MMJoy/MMjoy2 - Build your own USB controller - 10/21/16 08:42 PM

Kimer,

If be "card" you mean the Arduino for flash with MMjoy2 can use any of the ones linked in first topic, e.g. Arduino PRO Micro, Teensy 2.0, etc.

For potentiometer, any with of Type B (liner response) 10 to 50k.

The proper type of potentiometer for joystick use you will not find in electronic stores, is the one with 30 to 60 degrees of electric travel, you will find with 270, 300... and for use all this curse will be need use gear or pulleys.

For for "rotarie" can use potentiometer or Encoder, case opt for potentiometer check if your preferred game allow the function, that is typically radar elevation, assigned in axis. If accept only in buttons use Encoder.




Posted By: Kimer

Re: MMJoy/MMjoy2 - Build your own USB controller - 10/23/16 02:04 PM

thank you very much .

a question : for the movement straightforward of throttle ,there is some slide potentiometer that can fit,or not?
Posted By: Crawling_Chaos

Re: MMJoy/MMjoy2 - Build your own USB controller - 10/23/16 02:23 PM

Hi folks. I received the parts I purchased. Now I think I have a starting point. Fitting this gimbal into a Suncom base will be a tough job.







Best regards
Crawling Chaos
Posted By: Sokol1

Re: MMJoy/MMjoy2 - Build your own USB controller - 10/23/16 02:52 PM

Originally Posted By: Kimer

a question : for the movement straightforward of throttle ,there is some slide potentiometer that can fit,or not?


You can use sliding pot: https://www.riecktron.co.za/en/product/813

But don't fit the throttle handle direct over then, this will worm out then fast.
Use linkages, e.g. RC ball-links.

Can use conventional circular pot too, but will be able to use few degrees of course, reducing controller resolution.
How is inside CH PRO throttle:

https://s32.postimg.org/m9d5zyjj9/CH_81.jpg

And the conversion of sliding to circular movement will be not proportional.
In CH this, and small circular movement on throttle is compensated in firmware (I guess).

And, using potentiometer install then in a way that make easy replace, since they have limited life span.
Posted By: Sokol1

Re: MMJoy/MMjoy2 - Build your own USB controller - 10/23/16 03:22 PM

C_Chaos,

Nice "LEGO". smile

A idea for use as base case is PVC cap (tampa 100mm):

Sample: http://imgur.com/O0BJ1r8

Sturdy, relatively easy to drill holes, cut, and can be painted.

Other possible option.

Posted By: erichos

Re: MMJoy/MMjoy2 - Build your own USB controller - 10/23/16 04:07 PM

Originally Posted By: Crawling_Chaos
Hi folks. I received the parts I purchased. Now I think I have a starting point. Fitting this gimbal into a Suncom base will be a tough job.

Best regards
Crawling Chaos


Hi Crawling_Chaos,
Did you choose it like kit or every parts you had to order independently?
Thanks
Posted By: Debolestis

Re: MMJoy/MMjoy2 - Build your own USB controller - 10/23/16 04:49 PM

Mega_mozg how much memory is available for mmjoy2 firmware? What is maximum that can be flashed?
Posted By: Crawling_Chaos

Re: MMJoy/MMjoy2 - Build your own USB controller - 10/23/16 06:28 PM

Great idea! I was thinking about using a Patola box.

Best regards
Crawling Chaos
Posted By: Crawling_Chaos

Re: MMJoy/MMjoy2 - Build your own USB controller - 10/23/16 07:25 PM

Hi erichos

I had to purchase the parts according the project I made. They do not offer this set as a kit, since ServoCity is a webstore of robotics components.

Best regards
Crawling Chaos
Posted By: TomVR

Re: MMJoy/MMjoy2 - Build your own USB controller - 10/23/16 07:28 PM

Are these shift registers from sparkfun with PCB breakouts plug and play?

https://www.sparkfun.com/products/11733

Could I daisy chain several of them together?
Posted By: mega_mozg_13

Re: MMJoy/MMjoy2 - Build your own USB controller - 10/24/16 07:06 AM

Originally Posted By: Debolestis
Mega_mozg how much memory is available for mmjoy2 firmware? What is maximum that can be flashed?

http://www.atmel.com/devices/atmega32u4.aspx
Non-volatile Program and Data Memories
32KB of In-System Self-Programmable Flash
1KB Internal EEPROM
Posted By: Wolf77

Re: MMJoy/MMjoy2 - Build your own USB controller - 10/25/16 09:57 AM

Hello guys ... does anybody know what happened with user Troll and all his posts, his thread or replies? It seems to me that forums no longer knows such user and searches found his thread, but after clicking it displays some error.
Posted By: mega_mozg_13

Re: MMJoy/MMjoy2 - Build your own USB controller - 10/25/16 10:09 AM

Originally Posted By: Wolf77
Hello guys ... does anybody know what happened with user Troll and all his posts, his thread or replies? It seems to me that forums no longer knows such user and searches found his thread, but after clicking it displays some error.

please wait, Im trying to talk with him by Skype.
Posted By: Wolf77

Re: MMJoy/MMjoy2 - Build your own USB controller - 10/25/16 10:14 AM

OK, thanks. It's not urgent. I am just curious, because I followed hist thread about ConTroll.
Posted By: mega_mozg_13

Re: MMJoy/MMjoy2 - Build your own USB controller - 10/25/16 10:27 AM

"ConTroller" based on MMJoy2 so you can ask any questions here.
Posted By: Wolf77

Re: MMJoy/MMjoy2 - Build your own USB controller - 10/25/16 11:07 AM

I know I can, but I am still curious what happened ;-). But if it is a secret... I was curious about his further changes in ConTroll and future use of some Hammond box I do plan to use too.
Posted By: mega_mozg_13

Re: MMJoy/MMjoy2 - Build your own USB controller - 10/26/16 06:07 AM

[9:03:27] TROLL @ Jrgen Toll: If you want to post something, just say I left. And give my email to anybody who asks, in a personal message wink



Posted By: Wolf77

Re: MMJoy/MMjoy2 - Build your own USB controller - 10/26/16 06:12 AM

Ah I see. Thanks a lot for help. I will write him an e-mail. It's a pitty that when someone leave, his posts disappear. This makes confusion in the thread.
Posted By: Kimer

Re: MMJoy/MMjoy2 - Build your own USB controller - 10/26/16 03:55 PM

@Sokol1

thanks again smile
Posted By: TomVR

Re: MMJoy/MMjoy2 - Build your own USB controller - 10/29/16 12:04 AM

Originally Posted By: TomVR
Are these shift registers from sparkfun with PCB breakouts plug and play?

https://www.sparkfun.com/products/11733

Could I daisy chain several of them together?


Anyone have experience with this PCB hooked into mmjoy2?
Posted By: Debolestis

Re: MMJoy/MMjoy2 - Build your own USB controller - 10/29/16 05:54 AM

This is my OSH park profile

https://oshpark.com/profiles/Debolestis

There are 4 shift register PCBs on that link. You have to solder them, all parts can be found on ebay. They work and can be daisy chained.

Shift from sparkfun will not work. It looks like breakout board.
Posted By: WarHog

Re: MMJoy/MMjoy2 - Build your own USB controller - 11/03/16 03:46 PM

I'm trying to finish off my pedals but I have run into a road block. The TLE 5011 ICs I purchased don't seem to work. You can see at https://forums.eagle.ru/showthread.php?t=176401 if you are interested.

This is what I have done so far:
I flashed a Pro Micro and tested it with A1302 hall sensors as I am planning on using them for my toe brakes. The A1302 IC's have worked great so far. I then went and copied a PCB for the TLE 5011 sensor I found in an earlier post in this thread. I redesigned it so the sensor sits directly over the centre of axis where the magnet will be placed. Here is the PCB I made:
TLE 5011-3 by John Wall, on Flickr
TLE 5011-4 by John Wall, on Flickr

and this is what it will sit on:

IMG_0872 by John Wall, on Flickr


To continue, I soldered up the TLE 5011 including the resistors and caps to the PCB I made as you saw above. I started the configurator and flashed the board using B2 for the axis and set it to 12 bit precision. Then I tested it. I used the VKB joystick tester but there was nothing to indicating the sensor was being affected by the magnet. It was flatlined. Since I purchased 5 TLE5011's, I tried several more but not one worked. So I went to the protoboard and rebuilt the circuit and tried again with this simple PCB (see below) that I had left over from the RS485 bus I was building. This time I didn't use any resistors or caps. I just wanted to get some kind of signal to verify it worked.
TLE 5011 1 by John Wall, on Flickr


However it was the same as before... Nada! The A1302's are working just fine but the TLE5011 seem dead.

This is what I used for my pinouts:

TLE5010/5011---------->Controller ProMicro(AtMega32u4)
1) 4Mhz clock----------->Pin B6 - Generator 4Mhz
2) SPI-SCK------------->Pin B1 - SPI-SCK
3) SPI-CS--------------->Any free pin
4) SPI-Data------------->Pin B3 - SPI-MISO
5) TST1----------------->To Ground
6) VDD------------------>To Power (VCC)
7) GND------------------>To Ground
8) TST2----------------->To Ground

I read most of the MMJOY2 thread on the SimHQ forum so I was pretty confident I did everything correctly.

Any ideas what might be causing this.
Posted By: mega_mozg_13

Re: MMJoy/MMjoy2 - Build your own USB controller - 11/03/16 05:06 PM

WarHog, check PM (to many quests, Im dont want to distend forum)
Posted By: Sokol1

Re: MMJoy/MMjoy2 - Build your own USB controller - 11/03/16 08:41 PM

Mega_MOZG

Post a updated PCB layout for TLE, will avoid use of early designs. ("Herd effect", like A1302). biggrin


Posted By: bixelplik

Re: MMJoy/MMjoy2 - Build your own USB controller - 11/04/16 05:33 AM

How do I get the configurator to run in English? I can't figure it out.
Posted By: Sokol1

Re: MMJoy/MMjoy2 - Build your own USB controller - 11/04/16 12:53 PM

Select in the second box upper, at left:

Posted By: Fission

Re: MMJoy/MMjoy2 - Build your own USB controller - 11/05/16 03:46 PM

Hi guys, new to the forums! I've been reading through the pages in this thread and it's been incredibly helpful, I got everything setup for my DIY racing pedals except one thing, my brake pedal!

I have a question, how do I hook up a load cell with mmjoy2 and is it possible to adjust the gain of the amplifier?

I'm using a load cell for my brake along with a load cell amplifier (HX711) with an Arduino Leonardo, attached is a picture on how it's wired to the Arduino

Any help would be appreciated!





Thanks!



Posted By: Sokol1

Re: MMJoy/MMjoy2 - Build your own USB controller - 11/05/16 05:34 PM

In this interface amplifier board for Load Cell, is sending analog signal for MMJoy2:

https://img.alicdn.com/imgextra/i2/441247242/TB286QtspXXXXXEXXXXXXXXXXXX-441247242.jpg

Like in this Chinese version:

https://world.taobao.com/item/520508841650.htm?spm=a312a.7700714.0.0.0kvtmH#detail
Posted By: Fission

Re: MMJoy/MMjoy2 - Build your own USB controller - 11/05/16 05:50 PM

Yeah exactly, the only thing is on my wire diagram it uses two analog ports (which is fine) but I'm not sure why, is one for adjusting gain and the other for the voltage readings of the strain gauge?

Since my amplifier does not have a trimpot, I'm not really sure how to adjust the gain in mmjoy2, where in the Arduino software I'm able to declare a gain as 64 or 128 in channel A or in channel B it's a static gain of 32 if soldered to this port.

Thanks for the reply Sokol1!
Posted By: Fission

Re: MMJoy/MMjoy2 - Build your own USB controller - 11/09/16 12:47 AM

I have everything hooked up, but I'm still not getting any values frown the HX711 is also an analog to digital converter, so I hooked it up to the digital ports 2 & 3 on the leonardo, but if I go to the mmjoy2 software under "Source" there is no chip for HX711 or my hall effect sensor A1302, but maybe there's another source I can select for my loadcell or hall effect sensor?

Kinda stumped here lol
Posted By: mega_mozg_13

Re: MMJoy/MMjoy2 - Build your own USB controller - 11/09/16 03:52 AM

HX711 digital interface not supported.
Posted By: Fission

Re: MMJoy/MMjoy2 - Build your own USB controller - 11/09/16 04:36 AM

Dang, when I try it on the Arduino program, the load cell works just fine in analog or digital mode so do you think it's still possible to get the load cell to work with mmjoy2 at all?

Thanks for the information mega!
Posted By: Kissman

Re: MMJoy/MMjoy2 - Build your own USB controller - 11/09/16 05:40 PM

Hello guys... I have little problem with my ProMicro & MMJoy. I can upload firmware without any problems, but after that, my device is incaccesible - device descriptor failed. What I am doing wrong? frown
Posted By: mega_mozg_13

Re: MMJoy/MMjoy2 - Build your own USB controller - 11/10/16 05:29 AM

Originally Posted By: Kissman
Hello guys... I have little problem with my ProMicro & MMJoy. I can upload firmware without any problems, but after that, my device is incaccesible - device descriptor failed. What I am doing wrong? frown

make screen pictures (mmjoy_setup, windows joystick and device managment)
Posted By: mega_mozg_13

Re: MMJoy/MMjoy2 - Build your own USB controller - 11/10/16 07:47 AM


will be soon...
Posted By: Kissman

Re: MMJoy/MMjoy2 - Build your own USB controller - 11/10/16 04:37 PM

i probably know what is wrong now... i have 8mhz version frown is it problem?
Posted By: Debolestis

Re: MMJoy/MMjoy2 - Build your own USB controller - 11/10/16 10:19 PM

Mega mozg, is it possible to add "manufacturer name" like vid and pid?
Posted By: mega_mozg_13

Re: MMJoy/MMjoy2 - Build your own USB controller - 11/11/16 04:02 AM

Originally Posted By: Debolestis
Mega mozg, is it possible to add "manufacturer name" like vid and pid?

no, "Manufacturer" and "Serial" these descriptors used for control firmware version ID and my personal as author.
Posted By: Repvez

Re: MMJoy/MMjoy2 - Build your own USB controller - 11/11/16 04:31 PM

Can someone collect me which is the latest PCB desing What I have to use for TM F16FLCS+TQS.
I have TLE5010, and pro micro , but I don't have any other componens. And I can't use the original shift panel in FLCs handle because it was damaged.

Unfortunatly, I unable to make PCB at home so I should be an ready to use solution which I have to pay somewhere.
Or somewhere I can order the PCB which make base the latest shematic .

I would like to use one pro micro panel for both device (FLCS+TQS) and put in the TQS base.
So I Should be :
1 shift reg in the FLCS handle
2 TLE5010 PCB
1 base PCB ( which collect the shift reg and X,Y axis TLE5010 wires and led to TQS)

In TQS:
1 TLE5010 PCB for Z axis
1 shift reg in TQS handle
1 pro micro shield (where put in connector from FLCS and Collect the TQS wires and there would be an extra connector for rudder TLE5010 and other additional buttons)

I found this webshop what it would be good for me, but I don't speak chinese language and I don't know how reliable.
The price is acceptable.
https://shop102607058.world.taobao.com?spm=a312a.7728559.2015080705.3.tAQske

Can anyone help me?
Posted By: Sokol1

Re: MMJoy/MMjoy2 - Build your own USB controller - 11/11/16 06:11 PM

For update Tm F16FLCS+TQS is need PCB's for TLE501x and for Shift Register for inside TQS, or use diode matrix there, since is only 10 buttons, or 14, depends on what (HAT, micro-stick...) you use for replace the "eraserhead" TDC, this device is no longer usable.

PCB's available in OS Park.

https://oshpark.com/profiles/Debolestis

For TLE501x the PCB layout is a bit "obsolete" (based on this Mega_MOZG sketch, posted above):

https://oshpark.com/shared_projects/dB6LPj8O

The four resistor in inputs is no more needed, but is just matter of make bridges in their places (or use 0 OHM resistor), in this way:


http://simhq.com/forum/files/usergals/20..._esquemtico.jpg

F-16FLCS grip already have a CD4021 Shift Register inside, no need make a new.

PRO Micro shielded PCB is a convenience for simplify, at some degree, connect the wires, but is not necessary. Your choice.
In Debolestis OSPark has PCB for make one.

For what I know for buy in Taobao (a kind of Chinese eBay) you need a "Taobao agent" - that will buy there and resend for you, for a give fee (Google for it). This "kit's" is done by Flight Simmer. In Eagle forum a guy buy from this vendor without problem.

Google Translator handle Chinese characters reasonable well - at least better than German. smile



Posted By: TomVR

Re: MMJoy/MMjoy2 - Build your own USB controller - 11/13/16 08:12 PM

Using the 74HC165 shift registers should I wire them for pull-up or pull-down for mmjoy2?

I have read some conflicting information so I am bit confused on 74HC165 & 4021.

The way I currently understand the 74HC165 should be wired is each input pin D0-D7 attached to ground independently with 10k resistors. In line between the input pin and the resistor is a wire connection from a button/switch. The other side of the switch goes directly into 5 volts. The 74HC165 vcc pin 16 should go to 5 volts with a uf 0.1 capacitor branching off to ground, an open to ground it to pin 15 next to it which needs to be grounded anyway for chip enable.

Is that correct?

Posted By: mega_mozg_13

Re: MMJoy/MMjoy2 - Build your own USB controller - 11/14/16 12:54 PM

TomVR
all sfifts in mmjoy must used with pull-up.
Posted By: TomVR

Re: MMJoy/MMjoy2 - Build your own USB controller - 11/15/16 05:58 PM

OK so in that case the resistors should be connected to 5 volts and the switches attached in parallel to the pin and it's other side running to ground?
Posted By: mega_mozg_13

Re: MMJoy/MMjoy2 - Build your own USB controller - 11/15/16 07:14 PM

TomVR yes
Posted By: Sak75

Re: MMJoy/MMjoy2 - Build your own USB controller - 11/17/16 01:50 PM

Good days I have a question.

I have bought two TLE5010 already mounted and not how to connect them directly to the promicro board.

Https: // es.aliexpress.com/item/TLE5010-digital-mode-magnetoresistive-angle-sensor/32634095245.html? Spm=2114.13010608.0.0. Eqr0Mr

Always I have used dimmers or sensors hall. I have looked in the last 50 pages of the forum and I do not still have clear (and my eyes are very red wacky). In the plate of the TLE5010 there are six pines (vdd, gnd, sck, miso, ect).

My question is: can I connect every pin to his correspondent in the arduino board?

Many thanks
Posted By: Sokol1

Re: MMJoy/MMjoy2 - Build your own USB controller - 11/17/16 02:39 PM

Follow this scheme, is the most recently posted (by MEGA-MOZG, 07/10/2016).

http://simhq.com/forum/files/usergals/20..._esquemtico.jpg

This TLE5010 on "Uncle Ali" looks like this one in Taobao (pictures bellow).
Check if has 4 resistor on back side of PCB, accord the above scheme they are no more need, and maybe need replace the other 2 (near TLE) by 1.5K like in the new scheme... ???

Taobao first version:
https://img.alicdn.com/imgextra/i4/441247242/TB2tcL7jVXXXXb9XpXXXXXXXXXX-441247242.jpg
Actual:
https://img.alicdn.com/imgextra/i1/441247242/TB2TVtMXYaI.eBjy1XdXXcoqXXa-441247242.jpg
https://img.alicdn.com/imgextra/i4/441247242/TB2c0XRXZeK.eBjSszgXXczFpXa-441247242.jpg
https://world.taobao.com/item/5213653128...040867.5.3wxEVA
Posted By: Sak75

Re: MMJoy/MMjoy2 - Build your own USB controller - 11/17/16 03:02 PM

Yes is similar, i make some pics later and try to up to the forum post.

Obrigado Sokol1
Posted By: Sak75

Re: MMJoy/MMjoy2 - Build your own USB controller - 11/18/16 09:22 AM

Good morning, i have some pics

first the TLE5010 is similar, maybe the finish is better.

Front


Back


The rest of the photos are of a diy gimball I'm working on based on a "scissor" lever with a spring

First photo the gimbal x-y



And the next two pics of z axis that will anger in the body of the stick.





sorry for the english.
Posted By: Sokol1

Re: MMJoy/MMjoy2 - Build your own USB controller - 11/18/16 02:55 PM

This don't use the same layout of Taobao as I think, no resistors/capacitors in other side of PCB.

This 102 resistor seems 1k.

Test in this way, if need add the 0,1uf capacitor between power (+) and gnd (-), as in linked scheme.
Interesting "twist" mechanism. smile

Posted By: Repvez

Re: MMJoy/MMjoy2 - Build your own USB controller - 11/20/16 12:55 PM

That's way ask, because I don't know what is the up to date or not. And I don't now how can modify if I get a different version like the spanish and taobao.
I'm not an electrician so I don't understand clearly shematic.
Can someone draw the FLCS+TQS specific connect diagram for use one pro micro?
Every axis or shift reg will have individual connection pin header to should plug and unplug easier.There could be a master PCB in the TQS base with pro micro and a slave PCB in the FLCS base.

I saw the OSH PCB, but I don't have any device or component to make that ready to use.
And There is the Joystick amplifier PCB, what is it do with PS3 thumbstick?
Posted By: Sokol1

Re: MMJoy/MMjoy2 - Build your own USB controller - 11/20/16 01:40 PM

What is you plan, fit one PRO Micro inside FLCS and another inside TQS?

Or use one PRO Micro for both (doable, but complicate wiring more)?

If the first case I advise forget Shift Register inside TQS - this only will add complication and maybe need re-sold wires in most or all switches.

Is more easy use the already done connector for Diode Matrix.

This OSHPark PCB "Joytick Amplifier" is only needed for use PS3 thumbstick with HALL sensor instead potentiometer, since their output voltage is very small for PRO Micro. This thumbstick (notice the 4 pins):

http://www.ebay.com/itm/Replacement-3D-Analog-Sensor-ThumbStick-Axis-Sensor-4-Pin-for-Playstation-3-PS3-/291205656671?hash=item43cd35b05f:g:GAoAAOSwcLxYMU9A

For use analog (with potentiomter) thumbstick (mini-joystick) this is not needed. Example (notice the 3 pins):

http://www.ebay.com/itm/2-Pack-Replacement-3D-Analog-Module-ThumbStick-Axis-Sensor-3-Pin-for-PS3-/291205727370?hash=item43cd36c48a:g:aAMAAOSwcLxYMTQa

http://www.ebay.com/itm/3D-Controller-Joystick-Axis-Analog-Sensor-Module-Replacement-For-Xbox-One-mini-/322312430475?hash=item4b0b51638b:g:RJUAAOSwo4pYFzBn












Posted By: Repvez

Re: MMJoy/MMjoy2 - Build your own USB controller - 11/20/16 02:18 PM

I will plane the second one. One pro micro for both device .And it fit inside the TQS base.
I will have to re-solder all wires because I have been modificated earlier but it wasn't successful. And this is the reason , way I want to be more plugable wire, because I don't have to soldering a lot or It will be easier on the PCB .
And the original PCB's are damaged when I disassembly , so that's way have to replace the shift reg in the FLCS handle and TQS too.

And the near future I would like to make a new gimbal for each one.
I saw the new topic here openjoystick and the lego kit style is very promising.
I would like anything like just with adjustable center spring.

My PS3 thumbstick is a normal 3 pin, but the another one is more durable , I think.
And this amp is usable for PSP joystick too
Posted By: Sokol1

Re: MMJoy/MMjoy2 - Build your own USB controller - 11/20/16 03:53 PM

Analog PS3 (3 pins) thumbstick (or mini-stick) don't need amplifier.

The theoretical advantage of the PS3 HALL thumbstick is better signal stability and longevity, but don't know this worth the extra "complication". smile

But in any case is just matter of get Debolestis PCBs on OSHPark, are ready for use (errh solder). wink

For TQS - get one OSHPark Debolestis 2 chip Shift Register board, this is sufficient for TQS 10 buttons (counthing the mini-stick press).
Fit this board inside TQS handle - measure the available space first do avoid "surprises".

I don't think that worth change TQS "gimbal", the actual work OK for the purpose, even for contactless sensor - that require a play less movement. Unless you plan use something like GVL-224/Dvik throttle "mechanics".

About Fl6 FLCS new gimbal, first measure the available space inside base base to see if any of this designs that you plan use fit there.

Desktop joystick cases general has little height what can complicate use one or other gimbal not designed specific for a given case.

Pay attention too if the new gimbal designs allow you easily fit the PCB for TLE501x - the most commons PCB measure ~40 x15mm. But in any case you can design and make a specific size PCB for TLE's.

Maybe will be interesting - facing the work and cost do make a gimbal - get one BAUR BRD-DS (desktop) gimbal with case for FLCS. They are "bullet proof".

I find the ones in that mentioned topic... "non innovative". smile

Or, Debolestis are working in a 3D printed (for use ball bearings) "clone" of UberNXT, what was the best alternative gimbal for Cougar in their "hey days":

https://forums.eagle.ru/showpost.php?p=2946868&postcount=149











Posted By: Sak75

Re: MMJoy/MMjoy2 - Build your own USB controller - 11/20/16 08:59 PM

Hola Repvez.

look this:

https://es.aliexpress.com/item/Free-Ship...0608.0.0.7hper7

This type of pbc is perfect if you do not want to complicate welding
Posted By: Sak75

Re: MMJoy/MMjoy2 - Build your own USB controller - 11/21/16 08:54 AM

Thanks sokol1, I'm also making a diy trigger to shoot.

But in relation to the TLE5010, I have no idea how to connect it to the Arduino. I understand that GND VCC are common and go to the corresponding pins, but the other four are also common? Which are the ones that detect the movement of the magnet and where to connect it?

This image also leaves me unclear.




can anybody help me?

Thanks

**** Sorry, in other forum i saw this:

TLE5010/5011---------->Controller ProMicro(AtMega32u4)
1) 4Mhz clock----------->Pin B6 - Generator 4Mhz
2) SPI-SCK-------------->Pin B1 - SPI-SCK
3) SPI-CS--------------->Any free pin
4) SPI-Data------------->Pin B3 - SPI-MISO
5) TST1----------------->To Ground
6) VDD------------------>To Power (VCC)
7) GND------------------>To Ground
TST2----------------->To Ground

all pins exept "SPI-CS" shared.

"CS" in my tle5010 i suppose that is the pin for each axis?

And i suppose that 3 pin (b6, b1 and b3) now cant be used like buttons or axis
Posted By: Repvez

Re: MMJoy/MMjoy2 - Build your own USB controller - 11/21/16 07:15 PM

Originally Posted By: Sak75
Hola Repvez.

look this:

https://es.aliexpress.com/item/Free-Ship...0608.0.0.7hper7

This type of pbc is perfect if you do not want to complicate welding


Yes I have this thoumbstick without PCB because it isn't fit in the TQS handle.

I didn't find such a thoumbstick like a cougar where the microswich is located in the center of minijoy.
And I don't know how can put in the TQS replace the eraser head , because there is difference place than in the cougar .
Now, it isn't a stable position there.

or IT is better choice than PS3 minijoy?
PSP minijoy
This is PSP minijoy . Yes, I know that there isn't extra button , so it has to do there
Posted By: Sokol1

Re: MMJoy/MMjoy2 - Build your own USB controller - 11/21/16 07:53 PM

Difficult you will find a mini-stick that fit in place of "eraserhead" without do some modification there, will need be creative. wink

Look PSP 1000 size fit there with some trim, removing internal parts, making a support with Epoxy putty....
The small press button for click leave in the actual place.

Or get a analog mini-stick PS3 like and trim out their press switch - in practice in games, move axis e.g. radar and simultaneous press result awkward. Just use the original small switch for "click".

Apls thumb stick RKJXK122000D (22x23mm) is without center click:

http://www.alps.com/prod/info/E/HTML/MultiControl/Potentiometer/RKJXK/RKJXK122000D.html


Or ALPS 4/5 way "navigation switches" is very compact ~10mm size.

http://www.protostack.com/buttons-and-switches/5-way-tactile-navigation-switch

https://www.sparkfun.com/products/10063

Ten year ago when I "feed up" with that dammed "eraserhead" I make a HAT with 4 tactile micro switch to replace then.
Trimming the top side - in plastic (the box was done with model plywood, and the "HAT" from toothpaste lid smile ) fit nice in the place. And work better that the Tm HAT's ("heavy to press in F22 PRO), the micro-switch for click remain in the original place place.

upload picture

Posted By: masaV

Re: MMJoy - Build your own USB controller - 11/22/16 11:19 AM

im new at forum and i have guestion, i looking interesting mmjoy but not understand all good. i have at hoem now arduino micro board, mega32u4 chip, and what more i need can use ?
i need only all analog pin input, i made my own yuoke,bedals,trottle,trimm wheels, and brake to cocpit.
but im not sure what i need and can i add all 12 analog pin use my FSX ?
sorry my english not good i no understand good all text at forum but interesting how i make own cocpit panel ?
need me sift register chip ? or can i add all potentiometer to right micro input ?
what external parts i need ?
i have at home arduino uno 3 pcs, nano 5 pcs,mega whit ch340 chip 3 pcs, micro 1 pcs, and dream when can orden wery expensive teensy 3,x board to my flight sim project.
newbie guestion have now, how i can start first analog input board test and what i need all micro 12 analog pin working
and have code hex file ? how i burn code to micro ? need me usbasp ( i have) or other parts ?
yesteday run mmjoy program but no understand lot, this has only 8 input to axis , why ? if my micro can use 12 pin analog input software have only 8 axis ?
or need me add drivers and micro connected too to my laptop and then select chip have micro 32u4 and then come all 12 input axis ??
sorry many guestion for me, but this is my first time i try understand how make biggrin
Posted By: masaV

Re: MMJoy - Build your own USB controller - 11/22/16 12:37 PM

i no understand what maniac people have need lot buttons to same chip
?
better way i thi nk have use all analog input to mmjoy and use other board all buttons and switch if made real full cocpit to flight.
new mobiflight software i use all buttons, need only mega board or 2 or 3, and have buttons lot what need smile
and mobiflight can use 7-segment display nac/com radio panel too easy.
and stepepr motor and servo motor gauges.
and all analog pin only use hall sensor or potentiometers mmjoy, come better and easy way build you own cocpit all.
this my radio panel test [img:right]https://drive.google.com/open?id=0B6fpBSKeeyqfNWNOM083Tlk5b00[/img]
this switch panel [img]https://drive.google.com/open?id=0B6fpBSKeeyqfN1FCb3B3bi1pQ1k[/img]
test https://drive.google.com/open?id=0B6fpBSKeeyqfWGRPMU9pOF9KN0E
mobiflight not support analog input and mmjoy have better way use analog input yukoe,rudder,trottle,trim wheels,brake, to sim.
but all digital input, buttons,switch,encoder,output leds have easy and better way use fsuip and mobiflight software.
my switch panel i use 6 pin switch left side use input to arduino and rigth side come 5V power to led indicate led switch on/off, easy and mobiflight can use all annuincator or other led what fsuip support.

I need only help how i start my first mmjoy ardunio micro and all analog pin use
i no understand all and how start what chip and parts need ?
i have 10 pcs 10K potentiometers now and digital and analog hall sensor, (what this used? digital or analog? )
need me other chip too if use all micro 12 analog input ?
how burn code and firmware to chip ?
what programmer and software need ?
usbasp? atmel flip ? or what need ?
Posted By: Sokol1

Re: MMJoy - Build your own USB controller - 11/22/16 01:45 PM

Originally Posted By: masaV
im new at forum and i have guestion, i looking interesting mmjoy but not understand all good. i have at hoem now arduino micro board, mega32u4 chip, and what more i need can use ?


Make sure that your Arduino board is ATMEGA32u4, 16 MHZ, 5V. 8MHZ or 3,3v is not compatible.
Check the compatible Arduinos models in first postage of this topic.

You don't need nothing more than download MMJOY2 firmware package and "flash" the ARDUINO using their USB cable.
After configure your "joystick" parameters (name, number of axis, number of buttons...) using MMJoy2Setup and are ready to add potentiometers, swtiches... and use in games.

Quote:

i need only all analog pin input, i made my own yuoke,bedals,trottle,trimm wheels, and brake to cocpit.
but im not sure what i need and can i add all 12 analog pin use my FSX ?


Arduino PRO Micro pinout limit analog inputs to 6 axis.
Other Arduino versions, example Teensy++ 2.0 increase for 8 axis - what is Windows D.Input limit, for use 12 axis you need use two Arduinos.

Quote:

need me sift register chip ? or can i add all potentiometer to right micro input ?
what external parts i need ?


Shift Register is optional- for convenience - for hook switches, encoders, but is not required. In the same way Arduino "shield" *support PCB is for convenience, look, use or not depends on your assembly skills.

For connect axis (potentiometer, sensors...) you just need wires and PLUG - what can be made with "2.54mm Single Row Female Pin Header".

Quote:

newbie guestion have now, how i can start first analog input board test and what i need all micro 12 analog pin working
and have code hex file ? how i burn code to micro ? need me usbasp ( i have) or other parts ?


No USBASP need, just the Arduino (example PRO Micro), USB compatible cable (Arduinos use mini-USB) and download the MMJoy2 package (MMJoy2Setup and firmware). No code knowledge or manipulation is needed.

Quote:

yesteday run mmjoy program but no understand lot, this has only 8 input to axis , why ? if my micro can use 12 pin analog input software have only 8 axis ?
or need me add drivers and micro connected too to my laptop and then select chip have micro 32u4 and then come all 12 input axis ??


Again, 8 axis is Windows limit, their "Game Controllers" in Windows Control Panel see only 8 axis.

Quote:

i no understand what maniac people have need lot buttons to same chip ?
better way i thi nk have use all analog input to mmjoy and use other board all buttons and switch if made real full cocpit to flight.


Some people want no use more the keyboard, so need a lot of buttons. Falcon 4.0 for example count hundreds of commands. smile

Quote:


I need only help how i start my first mmjoy ardunio micro and all analog pin use
i no understand all and how start what chip and parts need ?
i have 10 pcs 10K potentiometers now and digital and analog hall sensor, (what this used? digital or analog? )
need me other chip too if use all micro 12 analog input ?


MMJoy2 can control 8 axis (for 12 use two Arduinos).
This axis can be analog: potentiomters or HALL sensor (Allegro a 1324EUAT, Honeywell SS495A1...)
Or digital using TLE5010 or TLE5011 contact less magnet resistive sensor.

Quote:

how burn code and firmware to chip ?
what programmer and software need ?
usbasp? atmel flip ? or what need ?


You need:
Compatible Arduino board (check first postage).
MMjoy2 firmware.
Software: MMJoy2Setup (pay attention that firmware and sofware have the same date in version number).
USB A - USB mini-B cable: (check in your Arduino, some versions can use different socket), sample of cable: http://www.liquidware.com/shop/show/USB-M/6+inch+Type+B-Mini+USB+Cable - but get one with ~1,5 meters if available or will be need A/A extenstion.

RTFM Read the instructions:
http://www.geneb.org/mmjoy2/pro-micro-instructions.pdf
https://github.com/MMjoy/mmjoy_en/wiki/Firmware-upload


Posted By: Kissman

Re: MMJoy - Build your own USB controller - 11/23/16 05:00 PM

Why is not possible to create 3 slider setup? I am creating TQ with my Micro and isnt possible to add 3 sliders frown How solve this?
Posted By: masaV

Re: MMJoy - Build your own USB controller - 11/23/16 09:29 PM

thanks you answer but i try today again whit genuine arduino micro, port found, game controller found but any test whit potentiometer or button no working, only joytes,joytest2,joytest3 run somethink and click itself all buttons and axis ok.
now i try add all 8 intventro or what has under virtual? and port number .
i must read tutorial if have.
what i must do next. i add 8 port f0-7 and 12,11,10,9,8,6,4 have too micro pins at analog, how use this too ?
ok,no support, but what i must do next, i go firmaware site and bush button arduino but nothing happen ,no burn ?
site have firware i looking what has zip file, atmelmega32U4 and ok, then looking have flip,avrdude,teensy2 test all but nothing happened, now i no understand what need do.
not easy frown
i has try test mmjoy lot and some other soft too gamecontroller found have arduino micro controller, game controller found too micro, but any button or axis not work.

ok,thanks i found pro-micro instruction and have same chip than arduino micro i follow this intruction procedure next tes tomorrow.

Posted By: Sokol1

Re: MMJoy - Build your own USB controller - 11/23/16 11:14 PM

masaV

If you flash the firmware, after set joystick name, VID/PI etc. in MMJoy2Setup and save for device and this is whow in Game COntrollers, all is done, the issues is wrong joystick configuration, don't need do the flash again.

Post pictures of your MMJoy2Setup configuration, is the only way for others see what is wrong.

Kissman,

What you mean with "sliders", axis?

If yes you can use up to 6 with Arduino PRO Micro (8 with other Arduinos), see various examples in this topic.

And again, when have issues you guys need post pictures of yours MMJoySetup configurations to help "debug".



Posted By: erichos

Re: MMJoy - Build your own USB controller - 11/24/16 11:41 PM

Hi mega_mozg_13,
I downloaded new version of MMJoy2 .... MMJOY2[v20161101].rar but I have a problem with "Auto-bind" function. Disabling this function is not working correctly, if switch on-on is connected to board, this function is still enabled. I am one toggle switch on-on (buttons 7-8) and I am not able to set any buttons since there is new auto-bind function.



So double-click always put button 7 or 8 due to switch on-on. Can you advise me some solution please? When I used normal switch on-off, everything was working properly. Maybe I will have to replace this on-on switch during configuration :-(
Thank you very much.
Posted By: egel

Re: MMJoy/MMjoy2 - Build your own USB controller - 11/25/16 02:05 PM

I am new to MMJoy and want to use it to replace the outdated Thrustmaster Cougar controller.

For test I have setup a Leonardo and programmed it for 2 buttons.

In MMJoysetup I see the button box turn red when I press the button on the joystick.
I have assigned this button 01 to Joystick Button 1 H/W.button 1 Mode switch.

When I look in the windows devices I see the MMJoystick with the buttons.
Only, when I press the button it doesn't turn red in the windows configuration, only in the MMJoysetup.

What am I doing wrong?
Posted By: masaV

Re: MMJoy/MMjoy2 - Build your own USB controller - 11/25/16 09:18 PM

i no know what i must add vid/pid box ?
i not have try burn new micro now but you sai add vid/pid i no know what thats must add.
and use axis,button box come alltiem error somethink ?
newermind i looking more and try understand, read forum and test.
Posted By: Sokol1

Re: MMJoy/MMjoy2 - Build your own USB controller - 11/27/16 03:22 PM

As general rule for VID/PID.

If you want that your MMJoy2 is show for Windows/Games before other joysticks use low number, eg.
0001/0001.

If want that MMJoy2 appear after other joysticks, use high number, eg. 9999/9999.

USBView (MMJoy2Setup low bar) show your actual joystick VID/PID, DXDiag (type in Windows START box) too, in "Input".

List of VID/PID - in HEX numbers - used by several USB devices: http://www.linux-usb.org/usb.ids

For change VID/PID numbers you use MMjoy2Setup - no need "flash" - an can be changed several times, but when you
make changes use "CLEARS SETS" or remove manually the previouys VID/PID from Windows register, or Windows don't
see the new number and don't recognize the joystick in Game Controlers, although for games games they still working.

Quote:
come alltiem error somethink ?

confused

Posted By: masaV

Re: MMJoy/MMjoy2 - Build your own USB controller - 11/27/16 09:31 PM

today i do all same than pro micro instruction pdf has how make joystick,
reset+gnd connect and mmjoy sofware make firmware come dos box who run text windows and then add 7 axis and 1 button (i think test first time) then upload firmware and now arduino micro not answer any usb port, no found, no read no write no do anythinkg and device manager no found usb device, before thats has usb device list "arduino micro", now not have anythink. what hell thats doing my board ?
how can repair this ?
i add mmjoy sofware 32u4 and arduino and firmware and load new firmaware but now no work anythinkg frown
win8 computer and mmjoy about somethink 4015114xx has version. just load this mmjoy2 to 1 site at forum.
same have instruction and other downloads.
mmjoy-en master and mmjoy2 has zip file.
i try read many help but no understand vgood what hel lthats must do make joystick ?
what is wrong ? and usb port need libus ? or not ? how add ? i try add new drivers to driver file location ia64 files have libus 0 dll but no installink computer say alltime windows have right drivers.
i no understand now what must doing frown
Posted By: Valecek

Re: MMJoy/MMjoy2 - Build your own USB controller - 12/13/16 06:50 PM

Hello guys. First of all GREAT PROJECT! And now my question. I am not able to connect shift registers (4021) to my Arduino Micro. I am not much educated in electronics so I dont know which pins to connect. The farrest I get was that 8 buttons were flashing in setup randomly. I have read every post here and datasheets for 4021 and still no help. Can some body plese tell me which pins at 4020 connect to what pins at Arduino Micro? I am using new software version with SR-CS and SR-DATA. Thank you very much!
Posted By: erichos

Re: MMJoy/MMjoy2 - Build your own USB controller - 12/14/16 10:56 PM

Hi Valecek,
here is some general info, look at Example 1: One Shift Register:
Arduino shifting

or here but for IC 74HC165, very similar like 4021:
74HC165

and look at this picture:


Good luck

Posted By: triggahappy

Re: MMJoy/MMjoy2 - Build your own USB controller - 12/17/16 11:42 PM

Hi There,

Some time ago (like half a year ago lol) I started a project... It was all going well till 'life' happened and now we have Christmas...

Finally I found some time to finish it.

So the plan was to use old Ch Fighter stick combine it with old Logitech Wingman and for throttle go with Saitek x35t.

Call me weird but for some reason I simply find saitek throttle uncomfortable.
So I decided to get second CH fighter stick and use it's gimbal as a throttle and 3D print the handle/grip.

Joystick, 3 axes 16 switches (12 buttons + pov)



Throttle, 1 main axis, thumbstick, pot, 20 switches




Joystick 'head' assembly



Joystick grip and twist assembly



Installing bearings was not as hard as I thought smile



Since I'll be using it for Elite Dangerous I was in need of 'center detent' to separate forward and reverse thrust.

Metal plate is made out of washer, white plastic is PTFE sheet and that small ball is ehhhh 'spring loaded ball thingy'.



3D printed throttle grip.



Throttle



Joystick




All I can say is:

Thank you mega_mozg_13 for MMJOY2 (the whole project), Sokol1 for help and ideas, and the whole SimHQ community for making my project possible to happen salute.
Posted By: Sak75

Re: MMJoy/MMjoy2 - Build your own USB controller - 12/19/16 03:07 PM

Excellent works triggahappy, I play Elite Dangerous too. I prefer the reverse throttle made with a button.
Posted By: triggahappy

Re: MMJoy/MMjoy2 - Build your own USB controller - 12/20/16 06:44 PM

Thanks Sak75.
I would prefere having whole axis for forward thrust as well but I just can't get used to button reverse. I simply loose track when is farward and when is reverse. There should be some sort of an option to turn on/off portion of UI that would tell you what is the setting of thrust. Most preferably big red triangle saying REVERSE :P
Posted By: Kbird

Re: MMJoy - Build your own USB controller - 12/21/16 08:40 PM


Hi , thanks Mega_Morg and Sokol for the thread...

I had the issue uploading the Firmware with the Leonardo I got last weekend too, Windows 10 would not load the Drivers from the latest Firmware Package (2016-11-01)(driver enforcement?) so I used the drivers in the Arduino IDE 1.613 zip package to get it recognized. However the Reset button just would not "reset" the Leonardo to bootloader mode , it would disappear and almost instantly reappear on the same Com Port. Reading about the GND and RESET Pin on the Pro-Micro and touching it twice quickly gave me the idea to quickly push the Leonardo Reset button quickly twice and it worked smile and it gives me 5-8 secs to hit the Firmware download button now.
( A new Tip for the Wiki maybe?)

MMjoy2 seems to have loaded the Firmware now but the L-LED is now constantly lit on the Leonardo ...is that correct? maybe just me doing something wrong ? as I have only assigned a single button (correctly?) so far so it would be seen correctly in MMjoy2/Windows but the Windows Game Controller Window is calling it the MMJ-Reset and if I try to open the advanced options it throws an Error stating Your Game Controller is not Connected correctly.



I currently have nothing attached to the Leonardo , which may explain the error? I am just starting this endeavor as I have a gameport FLCS16+TQS and CH Pedals that I have had for many years (nearly unused) with the Stickworks Digital Chips installed , though I still have a number of the Old Chips as well as some new TM Pots and Hat Buttons I got before TM stopped selling them.

Micro Electronics and Arduino are new to me ,soldering/metering etc is not, so there will be a few questions I am sure but I am hoping someone knows of a good Writeup/Tutorial on converting the FLCS16+TQS specifically that would be a massive help....

So far I am about 65 pages into the thread so still plenty of reading to do , thanks guys.

KB

PS not as new around here as my post count would indicated when did EF2000 come out smile , just had to get a new account to post..


Edit ... also curious if anyone has tried the MuxShield II and if it would work with the Leonardo , it seems to give 48 pins vs the Leonardo's 20...

http://mayhewlabs.com/products/mux-shield-2





Posted By: Kbird

Re: MMJoy - Build your own USB controller - 12/21/16 09:31 PM

Originally Posted By: Sokol1
If I remember correctly Windows only recognize joystick that has at least 1 or 2 axis.

And when make modifications in previous configuration (axis, buttons) hit the "Clear settings".



Thanks Sokol , I'll try that , The PDF by Gene on loading the Firmware said to assign at least one button , so that was all I did.

I edited the last post so maybe you didn't see my question about the Muxsheild II and if it might work for MMjoy2 Users?

http://mayhewlabs.com/products/mux-shield-2
Posted By: Sokol1

Re: MMJoy - Build your own USB controller - 12/21/16 09:32 PM

If I remember correctly Windows only recognize joystick that has at least 1 or 2 axis.

And when make modifications in previous configuration (axis, buttons) hit the "Clear settings".

Convert F-16 FLCS will be easy, just wire the axis, and the Shift Register board inside grip to MMjoy2.

For throttle is more easy reuse the existent diode matrix

The "eraserhead" "IBM mouse" (under thumb finger) need be replaced with min-stick or HAT, their serial protocol is not compatible with MMJoy2.



Posted By: Forsaken_joystick

Re: MMJoy - Build your own USB controller - 12/21/16 10:12 PM

I think diodes should be added. My TQS had none.. skyisfalling
Posted By: Kbird

Re: MMJoy - Build your own USB controller - 12/21/16 10:38 PM

Originally Posted By: Sokol1
If I remember correctly Windows only recognize joystick that has at least 1 or 2 axis.

And when make modifications in previous configuration (axis, buttons) hit the "Clear settings".

Convert F-16 FLCS will be easy, just wire the axis, and the Shift Register board inside grip to MMjoy2.

For throttle is more easy reuse the existent diode matrix

The "eraserhead" "IBM mouse" (under thumb finger) need be replaced with min-stick or HAT, their serial protocol is not compatible with MMJoy2.







For you I am sure it is easy smile 75 pages into thread and I am not so sure about that but maybe I just need to "do it" and try stuff out and learn how to use MMJoy2 as well ....


Thanks for tip on the eraser button , I never did like it and I have an extra gameport TM X Fighter stick too that I can also steal parts from if needed as well as some spare TM Hat Switches.

Where should diodes go in the TQS ? do you mean putting 1N4148 diodes on the buttons for the matrix I was just reading about to stop ghosting? does anyone have Schematics for the FLCS+TQS Wiring perhaps ?

Thx,

KB.
Posted By: Sokol1

Re: MMJoy - Build your own USB controller - 12/21/16 11:38 PM

Think in diodes in this way: One diode in one of 2 pins of each switch or HAT (HAT are just 4 switches around a pole).

Then became easy. smile

Or, for example using a breadboard for put the diodes side at side, and wire buttons and HAT there.

Or, make a Shift Register board (like he one inside grip) - require DIY or order a PCB - with 2 CD4021 and fit inside throttle, in this case no diodes needed.

Take a look in Debolestis Shift Register PCB's:

https://forums.eagle.ru/showpost.php?p=2780923&postcount=89
Posted By: Kbird

Re: MMJoy - Build your own USB controller - 12/22/16 12:02 AM

Originally Posted By: Kbird
[quote=Sokol1]If I remember correctly Windows only recognize joystick that has at least 1 or 2 axis.

And when make modifications in previous configuration (axis, buttons) hit the "Clear settings".

Convert F-16 FLCS will be easy, just wire the axis, and the Shift Register board inside grip to MMjoy2.

For throttle is more easy reuse the existent diode matrix

The "eraserhead" "IBM mouse" (under thumb finger) need be replaced with min-stick or HAT, their serial protocol is not compatible with MMJoy2.





You were right Sokol , once Windows had 2 AXIS (X+Y) assigned JoyCPL started working without the Error above , assigning one button per the FAQ didn't work for some reason. Of course nothing is attached yet so not really working but slowly getting there thanks.

I have been reading the thread since last week , so I have picked up some 74HC165 SReg ,MCP3208 chips and 1N4148 diodes already , just not sure how I'll use them yet , still looking for pics of schematics etc before I get to far into this and ruin something by accident. smile

KB
Posted By: Sokol1

Re: MMJoy - Build your own USB controller - 12/22/16 12:06 AM

This scheme was done for re-wire F22PRO and QTS i BU0836 using diode matrix.

Can give you a idea how wire TQS in MMjoy2 using diodes.

http://obrazki.elektroda.net/67_1213188440.jpg
Posted By: Kbird

Re: MMJoy - Build your own USB controller - 12/22/16 12:12 AM

Originally Posted By: Sokol1
Think in diodes in this way: One diode in one of 2 pins of each switch or HAT (HAT are just 4 switches around a pole).

Then became easy. smile

Or, for example using a breadboard for put the diodes side at side, and wire buttons and HAT there.

Or, make a Shift Register board (like he one inside grip) - require DIY or order a PCB - with 2 CD4021 and fit inside throttle, in this case no diodes needed.

Take a look in Debolestis Shift Register PCB's:

https://forums.eagle.ru/showpost.php?p=2780923&postcount=89



Thanks I had seen that post earlier in the Thread/Inet Browsing and found his OSHPark Site too
https://oshpark.com/profiles/Debolestis/page/2


That was why I was wondering if the MuxShield would be good as it seems to have more inputs to use.

http://mayhewlabs.com/products/mux-shield-2

they have something called a Go Between Shield too

http://mayhewlabs.com/products/go-between-shield

KB.

****Edit Thanks for that Scheme of the F22+TQS they were pretty similar from what I remember

KB
Posted By: Sokol1

Re: MMJoy - Build your own USB controller - 12/22/16 01:04 AM

Kbird,

About this Mux-Shield you need ask Mega_MOZG. smile

Tiggerhappy,

Good job in you HOTAS, like the idea of 3D printed grip for throttle.

A curiosity, what is this circuit in lower part of stick PCB, with some condenser and heatstink?

http://simhq.com/forum/files/usergals/2016/12/full-38420-130235-img_20161217_212509.jpg
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 12/22/16 05:49 AM

Kbird, sorry, mmjoy support only 74HC165 and 4021 shift register.
Posted By: mega_mozg_13

Re: MMJoy - Build your own USB controller - 12/22/16 05:54 AM

Originally Posted By: Sokol1
Kbird,
A curiosity, what is this circuit in lower part of stick PCB, with some con