I saw a couple of Posts today about two small, new Leonardo Based arduino Boards that may work well with MMjoy as they use the 16MHz ATMEGA32U4 , one is 12mmx12mm and the other 15mm x15mm so a good size for Joystick mods, but some else would need to look into the Specs closer to see if they can accept the MMJoy firmware.
US Based......http://linuxgizmos.com/worlds-smallest-arduino-measures-12-x-12mm/
Canadian Based.......http://linuxgizmos.com/tiny-arduino-clone-starts-at-14/
I have been working with a Arduino Leonardo, for a joystick interface using "Big Joystick" in my final configuration I will have a Suncom Dual Throttle (Warthog), a pro flight controller, and home built pedals for differential braking. made from aircraft parts but for now a lash up of Thrustmaster and CH Products Pro Pedals. But currently and using a Saitek X35 which I am converting to USB with Arduino Big Joystick
I am intrigued about using MMJoy2 but when I looked at github all I found was Micro$ Windows junk. My simulator NexGen is a pure C/Linux product. Your visual page will have to be re-written using QT for a X-window environment. So Is there any way that I could acquire source code??
I'm building my own Dual joystick for Elite dangerous and Star citizen. I will use somes parts of Thrustmaster T16000M joystick: MY WIP This joystick is made with MLX90333 triaxis hall effect sensor but only two axis are used (X,Y).
Do you thing is it possible to use MMJOY with this sensor?
Thank you in advance!
Last edited by calagan57; 07/27/1712:56 PM.
#4371293 - 07/27/1704:55 PMRe: MMJoy/MMjoy2 - Build your own USB controller
[Re: Sokol1]
No, MMjoy2 firmware don't support the digital protocol of MLX90333 - support the digital protocol of TLE5010/11 sensors, that requires a different gimbal than T.16600M, since use one sensor per axis. MLX90333 is "3D".
Try with MFG Simudza, their USB controller SiMM8Rge support Melexis sensors. Is not listed in their sales page but I know that some guys buy this controller for DIY projects.
BTW - Tis old project "Opensource joystick" 3D Printed was planed around Melexis 3D sensor, don't know if was finished.
Finaly I can run the MLX90333 sensor in analog mode (X and Y) with my arduino UNO. It's very easy! So I should be able to make it work as a potentiometer :-) It's 10bits mode (1024) with my teensy 2.0++ but I can add an ADC for full 12bits resolution!
I dont't have now my teensy I'm hurry to test it!
#4371390 - 07/28/1709:29 AMRe: MMJoy/MMjoy2 - Build your own USB controller
[Re: Sokol1]
I can use MLX90333 analogic (10bits) on arduino.It's work very well:. Little cam : https://youtu.be/gRTJN6LOPgk[
The good sketch for arduino and processing
Quote
int xValue = 0; // valeur de l'axe X int yValue = 0; // valeur de l'axe Y void setup (){ Serial.begin(9600); // Ouvrir le port série } void loop (){ // lecture des ports analogiques A2 et A1 xValue = analogRead(A2); yValue = analogRead(A1); // Envoi des données par liaison série, séparées par un caractère espace Serial.print(xValue, DEC); Serial.print(" " ); Serial.print(yValue, DEC); Serial.print("\n" ); // petit délai avant la mesure suivante delay(2); }
Quote
import processing.serial.*; // importation de la bibliothèque série Serial myPort; //définir le port int x; // variable contient la valeur de A2 int y; // variable contient la valeur de A1 PFont f; // défini la police d'écriture String portName; void setup(){ size(512, 512); // taille de la fenêtre // = portName Serial.list () [0]; // sélectionnez le nom du port de la liste 0 portName = "COM3" ; // ou si vous connaissez son nom
myPort = new Serial(this, portName, 9600); // ouverture port série f = createFont("Arial", 16, true); // choisir la police et la taille Arial, 16px, anti-aliasing textFont(f, 16); // taille 16px } // boucle dessin void draw(){ fill(0); // définir la couleur de remplissage noir clear(); // nettoyer l'écran fill(255); // définir la couleur de remplissage blanc ellipse(512-(x/2), 512-(y/2), 25, 25); // données d'affichage text("AnalogX = "+(1023-x) + " AnalogY = "+(1023-y),10,20); } // données de service du port série void serialEvent ( Serial port ){ // lire les données jusqu'à l'apparition d'une nouvelle ligne n String input = port.readStringUntil(10); if (input != null){ print(input); // séparation des données (le caractère espace est séparateur par défaut) int[] vals = int(splitTokens(input)); // affectation de variables x = vals[0]; y = vals[1]; } }
Next step: - add some capacitor on OUTPUT (noise filter) - add ADC MCP3208 to convert 10bits analoic to 12bits digit
@++
Last edited by calagan57; 07/31/1705:29 PM.
#4371973 - 07/31/1709:28 PMRe: MMJoy/MMjoy2 - Build your own USB controller
[Re: Sokol1]
If you are able to hook in MCP3208, unless is required specific code in Arduino, this can be connected to MMjoy2 via serial connection and digital protocol.
#4372061 - 08/01/1708:17 AMRe: MMJoy/MMjoy2 - Build your own USB controller
[Re: Sokol1]
Star Citizen doesn't seem to allow mapping joystick axis as buttons like Elite does strangely, so I would like to set the axis of my thumbsticks to buttons. I can't quite work out how to use MMJoy2 to do it, I can get an axis working with one direction (eg positive), but I cannot then get it to work as a negative. Also as I have 2 thumbsticks I would like to set them as 4 separate axis totaling 8 buttons, and MMJoy2 only appears to support 4 sets of axis as buttons?
Anyone able to help me out?
Cheers.
#4372241 - 08/02/1710:18 AMRe: MMJoy/MMjoy2 - Build your own USB controller
[Re: Sokol1]
Star Citizen doesn't seem to allow mapping joystick axis as buttons like Elite does strangely, so I would like to set the axis of my thumbsticks to buttons. I can't quite work out how to use MMJoy2 to do it, I can get an axis working with one direction (eg positive), but I cannot then get it to work as a negative. Also as I have 2 thumbsticks I would like to set them as 4 separate axis totaling 8 buttons, and MMJoy2 only appears to support 4 sets of axis as buttons?
Anyone able to help me out?
Cheers.
Hi Vindi
I use a psvita thumbsticks two axis for 4 buttos, and in Elite Dangerous works perfect. but look the pics
#4373011 - 08/06/1703:23 PMRe: MMJoy/MMjoy2 - Build your own USB controller
[Re: calagan57]
Yes , I would have liked make this gimbal, but I didn't know, how put the center spring on it. Perhaps, This could be a easiest gimbal ever and it isn't lag nowhere at the diagonal movement.
calagan57: do you do the PCB for MLX90333 or just removed from inside the T16000M.Do you make for selling if it will be done to use whit MMJOY2
#4373045 - 08/06/1708:59 PMRe: MMJoy/MMjoy2 - Build your own USB controller
[Re: Sokol1]
So, Doesn't it need any other program or device to recognise and work with pro micro panel and MMJOY2 software? Only should be a plan to the gimbal unable to move/rotate around vertical axle and it would be a forever work device
#4373128 - 08/07/1710:05 AMRe: MMJoy/MMjoy2 - Build your own USB controller
[Re: Repvez]