Jump to content

MMjoy


Recommended Posts

I really don't use DCS...

 

I'm being specific, because there are lua files that correspond to the rotary in question and i suspect my answer may be there. The issue is that rotary turns well and smooth when i turn it with the mouse wheel, but with my encoder (using mmjoy) it turns from 0 to 100. Or maybe from 10 to 80, i can't really tell. Same with a keypress, it turns very fast to very high values.

 

And the second issue is not really an issue, i was just wondering if it can be done. In absolute mode, the potentiometer tells the targeting pod it needs to be on specific coordinates and i want it to tell "a little bit to the right" instead. It's not terribly important though.

Link to comment
Share on other sites

My second question is, i have 2 potentiometers, that i want to bind to fine slew the shkval in Ka-50, but DCS only has options for absolute slew.

 

I am too don't have clue with you mean with this "absolute slew" - but to use potentiometer DCS controls for that plane (Ka-50) need allow set this "slew" in analog axis.

 

If you can do this, but find pot response much faster, use multi turn potentiometer, e.g. 3/5 turn, or maybe help if adjust axis response curve in "Axis tune".

Link to comment
Share on other sites

  • 3 weeks later...

Hey guys,

 

Quick question and MMJoy and Encoders.

 

So i'm using the Pro Micro 5V board. I currently have built a replacement for the WH slew stick and it works great but I'd like to push it further.

 

I'd like a bunch of encoders to rotate various dials like HSI needles and such.

 

I'm testing with an Bourns Encoder with push button and I have have a weird problem. With only one encoder, it works just fine if I don't put any diode in but it doesn't with the diodes. I'm using 1n4148 as diode.

 

I double-triple check if the orientations of the diodes are correct and they are. I even reversed them to be sure. Either way it's not registering...

 

Any advise for me ?

 

Thanks for your help.

 

Happy flying !! :pilotfly:

Happy Flying ! :pilotfly:

 

--

 

My specs: i7 8700K oc 5.0gHz, Asus Maximus Hero X, 32 Go DDR4 3600MHz, GTX1080 oc 2025MHz, Samsung Evo 960 SSD, Oculus rift CV1, 2 sensors. VKB Gunfighter w/ Warthog stick. Warthog throttle. Custom 6xrotary box. MFG rudder pedals

Link to comment
Share on other sites

Neurowork, could you tell us a bit more about how you have connected the encoder.

Since you're using diodes I guess you're using a matrix. Encoders have their diodes connected to the columns in the matrix, not the rows, like regular switches do.

 

common_hardware_connections.png

Link to comment
Share on other sites

Thanks for taking the time to reply Golbin.

 

I eventually figured it out from another post. It turns out that for some reason, on the Micro Pro, you have to use the pins marked on the boards from 3 to 8 for columns. using those fixed the issue.

 

picture.php?albumid=1169&pictureid=8779

Happy Flying ! :pilotfly:

 

--

 

My specs: i7 8700K oc 5.0gHz, Asus Maximus Hero X, 32 Go DDR4 3600MHz, GTX1080 oc 2025MHz, Samsung Evo 960 SSD, Oculus rift CV1, 2 sensors. VKB Gunfighter w/ Warthog stick. Warthog throttle. Custom 6xrotary box. MFG rudder pedals

Link to comment
Share on other sites

PCB's for use with Arduino PRO Micro: connections expansion board, PCB for TLE501x, for ADC MCP3208, for Shift Register CD4021B or 74HC165:

 

File in Sprint-Layout, can be printed with free Sprint-Layout Viewer.

 

https://forum.il2sturmovik.ru/uploads/monthly_08_2017/post-17384-0-06011100-1502699478.jpg

https://forum.il2sturmovik.ru/topic/4664-mmjoy2-besplatnaya-proshivka-i-soft-dlya-samodelnogo-k/page-25#entry549253

 

The forum maybe require password - is the same from il2sturmovik.com.


Edited by Sokol1_br
Link to comment
Share on other sites

Melexis MLX90333 "3D" HALL sensor can be used with MMjoy2 in analog mode.

 

Available assembled in this small PCB in eBay or Aliexpress:

 

1-MLX90333-Triaxis-3D-Joystick-CA.jpg_640x640.jpg

 

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

 

Connections for X, Y axes:

 

- GND> GND 5V Arduino

- VCC> 5V arduino

- OU1 (X data): A0 Arduino

- OU2 (Y data): A1 Arduino

 

If connected trough ADC MCP3208, using SPI connection resolution result in 12 bits.

 

Test on T.16000M gimbal (thanks to calagan57)

 

http://Https://www.youtube.com/watch?v=PnYz1J-O26c

 

Possible base for "3D" gimbal:

 

http://www.hitech-bearings.com/photo/pl4381593-screw_threaded_rod_ends_ball_joint_bearing_spherical_plain_bearing.jpg

Link to comment
Share on other sites

  • 3 weeks later...

Hey guys,

 

I'm using version 161101 and I have made myself a nice 6 encoders + 12 buttons flight box.

I'd like to map one of the encoders to the mouse wheel.

 

For some reason version 15xxxx had mouse emulation but I can't get my setup to work with this version. With the same exact hardware setup, 161101 is working just fine.

I'm using button matrix, 6x4.

 

Does anybody know what happened to the mouse and keyboard emulation in Mmjoy? I can't find it anywhere in the joystick button tab of the configuration tool for 161101.

 

Thanks.

 

Happy flying :pilotfly:

Happy Flying ! :pilotfly:

 

--

 

My specs: i7 8700K oc 5.0gHz, Asus Maximus Hero X, 32 Go DDR4 3600MHz, GTX1080 oc 2025MHz, Samsung Evo 960 SSD, Oculus rift CV1, 2 sensors. VKB Gunfighter w/ Warthog stick. Warthog throttle. Custom 6xrotary box. MFG rudder pedals

Link to comment
Share on other sites

Shame...

Too bad I can't actually try out the older version.

I don't understand why with the exact same configuration and hardware setup, my button matrix doesn't work at all.

Oh well...

Thanks anyways :)

 

Happy flying :pilotfly:

Happy Flying ! :pilotfly:

 

--

 

My specs: i7 8700K oc 5.0gHz, Asus Maximus Hero X, 32 Go DDR4 3600MHz, GTX1080 oc 2025MHz, Samsung Evo 960 SSD, Oculus rift CV1, 2 sensors. VKB Gunfighter w/ Warthog stick. Warthog throttle. Custom 6xrotary box. MFG rudder pedals

Link to comment
Share on other sites

Melexis MLX90333 "3D" HALL sensor can be used with MMjoy2 in analog mode.

 

Available assembled in this small PCB in eBay or Aliexpress:

 

1-MLX90333-Triaxis-3D-Joystick-CA.jpg_640x640.jpg

 

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

 

Connections for X, Y axes:

 

- GND> GND 5V Arduino

- VCC> 5V arduino

- OU1 (X data): A0 Arduino

- OU2 (Y data): A1 Arduino

 

If connected trough ADC MCP3208, using SPI connection resolution result in 12 bits.

 

Test on T.16000M gimbal (thanks to calagan57)

 

http://Https://www.youtube.com/watch?v=PnYz1J-O26c

 

Possible base for "3D" gimbal:

 

http://www.hitech-bearings.com/photo/pl4381593-screw_threaded_rod_ends_ball_joint_bearing_spherical_plain_bearing.jpg

 

Would the MLX90363 also work, it seems to be the same sensor just more advanced?

Link to comment
Share on other sites

Not sure, but seems MLX90363 work only in digital mode through SPI interface, so need controller with firmware compatible with this protocol, I know MFG Simundza SIMM8Rge and "Hempstick" firmware for Arduino Due/X and Atmel SAM4S XPLAIN Pro are compatible with this sensor.

 

MMjoy2 firmware - for ATMEGA32u4 based board, e.G. Arduino PRO Micro, Teensy 2.0+ support sensor in digital mode, but their firmware is calibrated for TLE5010/11.

 

This guy use MLX90333 in MMjoy2: http://simhq.com/forum/ubbthreads.php/topics/4371390/re-mmjoy-mmjoy2-build-your-own-usb-controller#Post4371390

 

A good thing about Melexis MLX90363 is that their parameters are programmable, e.g. working angle...but require a costly hardware programmer to do so.

 

Follow the K.I.S.S.S., make the pedal, use Alegro A1302 in analog mode (A1324 make things more easy), when satisfied with result think in upgrade for MLX90363.


Edited by Sokol1_br
Link to comment
Share on other sites

  • 2 weeks later...

EDIT: http://simhq.com/forum/ubbthreads.php/topics/4379922/re-mmjoy-mmjoy2-build-your-own-usb-controller#Post4379922by Sokol1

Lucky-hendrix, I guess you should code it yourself...

It's possible, and actually it's how axis are read within ENTROL sims (http://www.entrol.es), the encoder is part of the servomotor.

I don't know about programming but, I can guess you need to modify an Arduino joystick to axis out put instead of reading a ADC, to send a counter of the steps of the encoder. Easy to say, but I don't know how easy would be to code it.


Edited by ice_pdb
Link to comment
Share on other sites

As this ready-to-use PCB is (at least in this store) no longer available, I'm searching for another source, which offers such a PnP-Breakoutboard:

 

https://www.aliexpress.com/item/CD4021-4021-expansion-board-32-key-switch-shift-register-4-Key-Expansion-mounted-extension/32704781294.html

 

Does anybody now where to get this board or a successor?

 

The alternative - based on Debolestis "48 SR-PCB" - as a "ready-to-use one" would be great as well.

Link to comment
Share on other sites

  • 2 weeks later...

Yes, diodes is necessary, is for avoid "keyboard matrix ghosthing" when you press 3 or more buttons simultaneous.

 

Diodes keep the signal flow in one direction only.

 

A alternative for diode matrix is use Shift Register (requires make a PCB) with CD4021B or 74HC165, see in Debolestis topics.


Edited by Sokol1_br
Link to comment
Share on other sites

  • 1 month later...

Hello.

can somebogy give me hints about using TLE5010 without MMJoy (with pure Arduino sketches)?

I'm used to finding example code and libraries for sensors with Google, but for TLE5010 I can not find anything. Yes, I know about specifications, but some library and examples are better.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...