#4056804 - 12/28/14 12:27 PM
Re: MMJoy - Build your own USB controller
[Re: SolderMonkey]
|
Joined: Nov 2001
Posts: 3,955
Sokol1
Senior Member
|
Senior Member
Joined: Nov 2001
Posts: 3,955
Internet
|
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: 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.
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... 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
Junior Member
|
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?
|
|
#4057984 - 12/31/14 05:33 AM
Re: MMJoy - Build your own USB controller
[Re: Sokol1]
|
Joined: Jan 2014
Posts: 274
mega_mozg_13
Member
|
Member
Joined: Jan 2014
Posts: 274
BELARUS, Minsk
|
Hi to all. Since your latest mmjoy firmware can use LED,can you give me some ideas what the LED is used for? 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. 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 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. 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
Junior Member
|
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
Junior Member
|
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,632
CyBerkut
Administrator
|
Administrator
Hotshot
Joined: Jul 2009
Posts: 9,632
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
Junior Member
|
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 "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,632
CyBerkut
Administrator
|
Administrator
Hotshot
Joined: Jul 2009
Posts: 9,632
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!
|
|
#4065388 - 01/18/15 05:45 AM
Re: MMJoy - Build your own USB controller
[Re: Sokol1]
|
Joined: Jan 2014
Posts: 274
mega_mozg_13
Member
|
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
Sith Lord
|
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
Member
|
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)
|
|
|
|