Previous Thread
Next Thread
Print Thread
Rate This Thread
Hop To
Page 11 of 112 1 2 9 10 11 12 13 111 112
#4056764 - 12/28/14 06:04 AM Re: MMJoy - Build your own USB controller ***** [Re: Sokol1]  
Joined: Jan 2010
Posts: 464
tirta Offline
Member
tirta  Offline
Member

Joined: Jan 2010
Posts: 464
use the latest firmware.
the latest is the most updated, so it should be better.

Inline advert (2nd and 3rd post)

#4056804 - 12/28/14 12:27 PM Re: MMJoy - Build your own USB controller [Re: SolderMonkey]  
Joined: Nov 2001
Posts: 3,955
Sokol1 Offline
Senior Member
Sokol1  Offline
Senior Member

Joined: Nov 2001
Posts: 3,955
Internet
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

#4057222 - 12/29/14 03:54 PM Re: MMJoy - Build your own USB controller [Re: Sokol1]  
Joined: Sep 2014
Posts: 33
SolderMonkey Offline
Junior Member
SolderMonkey  Offline
Junior Member

Joined: Sep 2014
Posts: 33
Ari-freakin-zona
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?

#4057280 - 12/29/14 05:46 PM Re: MMJoy - Build your own USB controller [Re: Sokol1]  
Joined: Aug 2007
Posts: 293
Brandano Offline
Member
Brandano  Offline
Member

Joined: Aug 2007
Posts: 293
Caput Mundi (well, it used to ...
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.

#4057579 - 12/30/14 08:44 AM Re: MMJoy - Build your own USB controller [Re: Sokol1]  
Joined: Jan 2010
Posts: 464
tirta Offline
Member
tirta  Offline
Member

Joined: Jan 2010
Posts: 464
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.

#4057664 - 12/30/14 03:56 PM Re: MMJoy - Build your own USB controller [Re: Sokol1]  
Joined: Dec 2010
Posts: 4
arnsk98 Offline
Junior Member
arnsk98  Offline
Junior Member

Joined: Dec 2010
Posts: 4
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

#4057984 - 12/31/14 05:33 AM Re: MMJoy - Build your own USB controller [Re: Sokol1]  
Joined: Jan 2014
Posts: 274
mega_mozg_13 Offline
Member
mega_mozg_13  Offline
Member

Joined: Jan 2014
Posts: 274
BELARUS, Minsk
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 =)

#4058144 - 12/31/14 04:42 PM Re: MMJoy - Build your own USB controller [Re: mega_mozg_13]  
Joined: Dec 2010
Posts: 4
arnsk98 Offline
Junior Member
arnsk98  Offline
Junior Member

Joined: Dec 2010
Posts: 4
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.

Last edited by arnsk98; 12/31/14 09:15 PM.
#4061531 - 01/09/15 11:42 AM Re: MMJoy - Build your own USB controller [Re: Sokol1]  
Joined: Jan 2015
Posts: 5
Jokeri Offline
Junior Member
Jokeri  Offline
Junior Member

Joined: Jan 2015
Posts: 5
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

Last edited by Jokeri; 01/09/15 11:43 AM. Reason: typo
#4061701 - 01/09/15 06:37 PM Re: MMJoy - Build your own USB controller [Re: Sokol1]  
Joined: Jul 2009
Posts: 9,619
CyBerkut Offline
Administrator
CyBerkut  Offline
Administrator
Hotshot

Joined: Jul 2009
Posts: 9,619
Florida
"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.

#4061794 - 01/09/15 09:19 PM Re: MMJoy - Build your own USB controller [Re: CyBerkut]  
Joined: Jan 2015
Posts: 5
Jokeri Offline
Junior Member
Jokeri  Offline
Junior Member

Joined: Jan 2015
Posts: 5
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.

#4061815 - 01/09/15 10:11 PM Re: MMJoy - Build your own USB controller [Re: Sokol1]  
Joined: Jul 2009
Posts: 9,619
CyBerkut Offline
Administrator
CyBerkut  Offline
Administrator
Hotshot

Joined: Jul 2009
Posts: 9,619
Florida
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!

#4062117 - 01/10/15 03:18 PM Re: MMJoy - Build your own USB controller [Re: Sokol1]  
Joined: Jan 2011
Posts: 52
Sim_Jack Offline
Junior Member
Sim_Jack  Offline
Junior Member

Joined: Jan 2011
Posts: 52
NJ, USA

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

#4062252 - 01/10/15 09:38 PM Re: MMJoy - Build your own USB controller [Re: Sim_Jack]  
Joined: Jan 2015
Posts: 5
Jokeri Offline
Junior Member
Jokeri  Offline
Junior Member

Joined: Jan 2015
Posts: 5
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



#4062783 - 01/12/15 07:51 AM Re: MMJoy - Build your own USB controller [Re: Sokol1]  
Joined: Jan 2014
Posts: 274
mega_mozg_13 Offline
Member
mega_mozg_13  Offline
Member

Joined: Jan 2014
Posts: 274
BELARUS, Minsk

Last edited by mega_mozg_13; 01/12/15 07:52 AM.
#4065171 - 01/17/15 05:40 PM Re: MMJoy - Build your own USB controller [Re: Sokol1]  
Joined: Jan 2014
Posts: 274
mega_mozg_13 Offline
Member
mega_mozg_13  Offline
Member

Joined: Jan 2014
Posts: 274
BELARUS, Minsk

#4065175 - 01/17/15 05:56 PM Re: MMJoy - Build your own USB controller [Re: Sokol1]  
Joined: Jan 2010
Posts: 464
tirta Offline
Member
tirta  Offline
Member

Joined: Jan 2010
Posts: 464
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.

#4065388 - 01/18/15 05:45 AM Re: MMJoy - Build your own USB controller [Re: Sokol1]  
Joined: Jan 2014
Posts: 274
mega_mozg_13 Offline
Member
mega_mozg_13  Offline
Member

Joined: Jan 2014
Posts: 274
BELARUS, Minsk
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.

Last edited by mega_mozg_13; 01/18/15 05:45 AM.
#4065586 - 01/18/15 04:37 PM Re: MMJoy - Build your own USB controller [Re: Sokol1]  
Joined: Jun 2007
Posts: 630
Ltfransky Offline
Sith Lord
Ltfransky  Offline
Sith Lord
Member

Joined: Jun 2007
Posts: 630
Peterborough, ON, Canada
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.


Please Heatware Me!

Ours is not to reason why. Ours is to do or die.
Tennyson

I have slipped the surly bonds of earth
And danced the skies on laughter-silvered wings..
Gillespie Magee, RCAF
#4066961 - 01/21/15 08:49 AM Re: MMJoy - Build your own USB controller [Re: Sokol1]  
Joined: Jan 2014
Posts: 274
mega_mozg_13 Offline
Member
mega_mozg_13  Offline
Member

Joined: Jan 2014
Posts: 274
BELARUS, Minsk
Hi to all

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


Page 11 of 112 1 2 9 10 11 12 13 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