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 (4096 poins of resolution), and 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 - should use ATMEGA32u4, ST90USB646, ST90USB1286 m/c (16 MHZ, 5V):

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]

Sample of layout for TLE5010-11 sensor PCB - included in MMjoy2 package, folder PCB.

[Linked Image]

Others:

https://oshpark.com/profiles/Debolestis
https://oshpark.com/profiles/rel4y

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

IMPORTANT:

Flash the firmware in the Arduino don't create a ready to use josytick controller, but a blank template with 0 axis, 0 buttons:

[Linked Image]

For you customize like your needs defining number of axes: 0 to 8 axes, number of buttons: 0 do 128 buttons, joystick name, VID/PID... use MMJoySetup program, filing the options and after "Save sets to Device".

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

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 about MMjoy -now 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

Last edited by Sokol1; 08/20/22 12:26 AM. Reason: Tipo