Previous Thread
Next Thread
Print Thread
Rate This Thread
Hop To
Page 77 of 112 1 2 75 76 77 78 79 111 112
#4370296 - 07/21/17 06:48 AM Re: MMJoy/MMjoy2 - Build your own USB controller ***** [Re: Sokol1]  
Joined: Dec 2016
Posts: 454
Kb1rd1 Offline
Member
Kb1rd1  Offline
Member

Joined: Dec 2016
Posts: 454

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/


KB


My FLCS+TQS Conversion here on SimHQ

http://simhq.com/forum/ubbthreads.php/topics/4324940/1
Inline advert (2nd and 3rd post)

#4370918 - 07/25/17 05:22 PM Re: MMJoy/MMjoy2 - Build your own USB controller [Re: Sokol1]  
Joined: Nov 2012
Posts: 1
CrisH Offline
Junior Member
CrisH  Offline
Junior Member

Joined: Nov 2012
Posts: 1
TX
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??

Thanks
Cris H.
My Blog NexGen copter
[Linked Image]
[Linked Image]
[Linked Image]
[Linked Image]

#4371236 - 07/27/17 12:53 PM Re: MMJoy/MMjoy2 - Build your own USB controller [Re: Sokol1]  
Joined: Jun 2017
Posts: 15
calagan57 Offline
Junior Member
calagan57  Offline
Junior Member

Joined: Jun 2017
Posts: 15
Hello!

Sorry for my bad english. nope

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! wave

Last edited by calagan57; 07/27/17 12:56 PM.
#4371293 - 07/27/17 04:55 PM Re: MMJoy/MMjoy2 - Build your own USB controller [Re: Sokol1]  
Joined: Nov 2001
Posts: 3,955
Sokol1 Offline
Senior Member
Sokol1  Offline
Senior Member

Joined: Nov 2001
Posts: 3,955
Internet
Calagan57

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.

http://openjoystick.tumblr.com/
https://github.com/tjhowse/OpenJoystick

Will be interesting a USB controller with support for MLX90333 for DIY, this sensor has interesting price:

http://www.ebay.com/itm/MLX90333-Joystick-Sensor-Absolute-Position-Digital-Three-Dimensional-Angle-New-/311810883500?epid=587469463&hash=item4899607fac:g:NcoAAOSw3v5YsN0x


#4371319 - 07/27/17 08:50 PM Re: MMJoy/MMjoy2 - Build your own USB controller [Re: Sokol1]  
Joined: Jun 2017
Posts: 15
calagan57 Offline
Junior Member
calagan57  Offline
Junior Member

Joined: Jun 2017
Posts: 15
Thank you for your answer!

Finaly I can run the MLX90333 sensor in analog mode (X and Y) with my arduino UNO. It's very easy! CT
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/17 09:29 AM Re: MMJoy/MMjoy2 - Build your own USB controller [Re: Sokol1]  
Joined: Jun 2017
Posts: 15
calagan57 Offline
Junior Member
calagan57  Offline
Junior Member

Joined: Jun 2017
Posts: 15
Ok if that you interesting The method to acces X and y position of the MLX90333:

[Linked Image]

Connection :

- GND>GND 5V arduino
- VCC> 5V arduino
- OU1 (X data) : A0 arduino
- OU2 (Y data): A1 arduino

And the sketch :

const int analogInPin = A0; // Analog input pin that the potentiometer is attached to
const int analogInPin2 = A1;

void setup() {
// initialize serial communications at 9600 bps:
Serial.begin(9600);
}

void loop() {
Serial.print(analogRead(analogInPin));
Serial.print(";");
Serial.println(analogRead(analogInPin2));
delay(2);
}

ETvoilà!

So now I think it's possible to connect the MLX on the teensy and use MMJOY with two analog input like potentiometer, no?

Last edited by calagan57; 07/28/17 09:32 AM.
#4371904 - 07/31/17 05:29 PM Re: MMJoy/MMjoy2 - Build your own USB controller [Re: Sokol1]  
Joined: Jun 2017
Posts: 15
calagan57 Offline
Junior Member
calagan57  Offline
Junior Member

Joined: Jun 2017
Posts: 15
Hello!
Some news! wave


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/17 05:29 PM.
#4371973 - 07/31/17 09:28 PM Re: MMJoy/MMjoy2 - Build your own USB controller [Re: Sokol1]  
Joined: Nov 2001
Posts: 3,955
Sokol1 Offline
Senior Member
Sokol1  Offline
Senior Member

Joined: Nov 2001
Posts: 3,955
Internet
Nice work.

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/17 08:17 AM Re: MMJoy/MMjoy2 - Build your own USB controller [Re: Sokol1]  
Joined: Jul 2015
Posts: 13
Vindicore Offline
Junior Member
Vindicore  Offline
Junior Member

Joined: Jul 2015
Posts: 13
Hi all,

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/17 10:18 AM Re: MMJoy/MMjoy2 - Build your own USB controller [Re: Sokol1]  
Joined: Jun 2017
Posts: 15
calagan57 Offline
Junior Member
calagan57  Offline
Junior Member

Joined: Jun 2017
Posts: 15
Hello!

MLX90333 (T16000M all sensor) is ok with MMJOY/Teensy 2.0++ in analog mode! thumbsup


Next step :
- add ADC for 12Bits resolution!


EDIT:

Il's work perfectlyf with a MCP3208! thumbsup

The axes works perfectly in 12bits mode SPI!

I'm really happy!

Now I'm printing a support for the new PCB MLX90333 and insert in a T16000M enclosure to test if it's different to the original dancinfools

Last edited by calagan57; 08/02/17 01:57 PM.
#4372698 - 08/04/17 09:07 AM Re: MMJoy/MMjoy2 - Build your own USB controller [Re: Vindicore]  
Joined: Mar 2015
Posts: 51
Sak75 Offline
Junior Member
Sak75  Offline
Junior Member

Joined: Mar 2015
Posts: 51
Madrid, Spain
Originally Posted by Vindicore
Hi all,

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

Attached Files thumpsvita.JPGthumpsvita2.JPG
#4373011 - 08/06/17 03:23 PM Re: MMJoy/MMjoy2 - Build your own USB controller [Re: calagan57]  
Joined: Nov 2001
Posts: 3,955
Sokol1 Offline
Senior Member
Sokol1  Offline
Senior Member

Joined: Nov 2001
Posts: 3,955
Internet
Originally Posted by calagan57
Hello!

MLX90333 (T16000M all sensor) is ok with MMJOY/Teensy 2.0++ in analog mode! thumbsup


Next step :
- add ADC for 12Bits resolution!


EDIT:

Il's work perfectlyf with a MCP3208! thumbsup

The axes works perfectly in 12bits mode SPI!

I'm really happy!

Now I'm printing a support for the new PCB MLX90333 and insert in a T16000M enclosure to test if it's different to the original dancinfools


Good info, thank you.

A Russian guy say that are using this "ball-joint" as gimbal for this sensor:

[Linked Image]

But don't say how put springs on then.

Last edited by Sokol1; 08/06/17 03:24 PM.
#4373013 - 08/06/17 04:45 PM Re: MMJoy/MMjoy2 - Build your own USB controller [Re: Sokol1]  
Joined: Jun 2017
Posts: 15
calagan57 Offline
Junior Member
calagan57  Offline
Junior Member

Joined: Jun 2017
Posts: 15
Hello!
That's interesting me ;-) Do you have a link of this mod?

Thank you!

#4373044 - 08/06/17 08:40 PM Re: MMJoy/MMjoy2 - Build your own USB controller [Re: Sokol1]  
Joined: Jul 2010
Posts: 74
Repvez Offline
Junior Member
Repvez  Offline
Junior Member

Joined: Jul 2010
Posts: 74
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/17 08:59 PM Re: MMJoy/MMjoy2 - Build your own USB controller [Re: Sokol1]  
Joined: Jun 2017
Posts: 15
calagan57 Offline
Junior Member
calagan57  Offline
Junior Member

Joined: Jun 2017
Posts: 15
No I don't want sell a PBC to you!

Because it's already exist thumbsup

#4373094 - 08/07/17 03:06 AM Re: MMJoy/MMjoy2 - Build your own USB controller [Re: calagan57]  
Joined: Nov 2001
Posts: 3,955
Sokol1 Offline
Senior Member
Sokol1  Offline
Senior Member

Joined: Nov 2001
Posts: 3,955
Internet
Originally Posted by calagan57
Hello!
That's interesting me ;-) Do you have a link of this mod?


No link for their mod, the guy just show the above picture, say that don't use spring but rubber bot only and don't provide more pictures. frown

Anyway this kind of sensor "3D" requires gimbal with springs placed like Saitek's X-5x, T.16000M, Warthog.



Last edited by Sokol1; 08/07/17 03:15 AM.
#4373117 - 08/07/17 08:32 AM Re: MMJoy/MMjoy2 - Build your own USB controller [Re: calagan57]  
Joined: Jul 2010
Posts: 74
Repvez Offline
Junior Member
Repvez  Offline
Junior Member

Joined: Jul 2010
Posts: 74
Ok,I already see it smile
just have to a firmware for it ,am I right? This is , what you do now?

#4373121 - 08/07/17 08:58 AM Re: MMJoy/MMjoy2 - Build your own USB controller [Re: Repvez]  
Joined: Jun 2017
Posts: 15
calagan57 Offline
Junior Member
calagan57  Offline
Junior Member

Joined: Jun 2017
Posts: 15
Originally Posted by Sokol1
Originally Posted by calagan57
Hello!
That's interesting me ;-) Do you have a link of this mod?


No link for their mod, the guy just show the above picture, say that don't use spring but rubber bot only and don't provide more pictures. frown

Anyway this kind of sensor "3D" requires gimbal with springs placed like Saitek's X-5x, T.16000M, Warthog.



Yes I know that, I have 3 T16000M for my mods :-p


Originally Posted by Repvez
Ok,I already see it smile
just have to a firmware for it ,am I right? This is , what you do now?


No need a firmware ;-). it's analog input so it's like potentiometer ;-)

#4373124 - 08/07/17 09:34 AM Re: MMJoy/MMjoy2 - Build your own USB controller [Re: calagan57]  
Joined: Jul 2010
Posts: 74
Repvez Offline
Junior Member
Repvez  Offline
Junior Member

Joined: Jul 2010
Posts: 74
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/17 10:05 AM Re: MMJoy/MMjoy2 - Build your own USB controller [Re: Repvez]  
Joined: Jun 2017
Posts: 15
calagan57 Offline
Junior Member
calagan57  Offline
Junior Member

Joined: Jun 2017
Posts: 15
Yes, no need other program ;-) it's very simply

For gimbal plan : I have modeled T16000M gimbal

[Linked Image][Linked Image]

Page 77 of 112 1 2 75 76 77 78 79 111 112

Moderated by  RacerGT 

Quick Search
Recent Articles
Support SimHQ

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


Recent Topics
Carnival Cruise Ship Fire....... Again
by F4UDash4. 03/26/24 05:58 PM
Baltimore Bridge Collapse
by F4UDash4. 03/26/24 05:51 PM
The Oldest WWII Veterans
by F4UDash4. 03/24/24 09:21 PM
They got fired after this.
by Wigean. 03/20/24 08:19 PM
Grown ups joke time
by NoFlyBoy. 03/18/24 10:34 PM
Anyone Heard from Nimits?
by F4UDash4. 03/18/24 10:01 PM
RIP Gemini/Apollo astronaut Tom Stafford
by semmern. 03/18/24 02:14 PM
10 years after 3/8/2014
by NoFlyBoy. 03/17/24 10:25 AM
Copyright 1997-2016, SimHQ Inc. All Rights Reserved.

Powered by UBB.threads™ PHP Forum Software 7.6.0