ShagrathBG Posted July 22, 2017 Share Posted July 22, 2017 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 More sharing options...
Sokol1_br Posted July 22, 2017 Author Share Posted July 22, 2017 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 More sharing options...
Neurowork Posted August 9, 2017 Share Posted August 9, 2017 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 More sharing options...
Goblin Posted August 10, 2017 Share Posted August 10, 2017 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. Link to comment Share on other sites More sharing options...
Neurowork Posted August 12, 2017 Share Posted August 12, 2017 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. 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 More sharing options...
Goblin Posted August 12, 2017 Share Posted August 12, 2017 Ok, great! I didn't know. But I have only worked with the Teensy boards. :) Link to comment Share on other sites More sharing options...
Sokol1_br Posted August 14, 2017 Author Share Posted August 14, 2017 (edited) 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 August 14, 2017 by Sokol1_br Link to comment Share on other sites More sharing options...
Sokol1_br Posted August 15, 2017 Author Share Posted August 15, 2017 Melexis MLX90333 "3D" HALL sensor can be used with MMjoy2 in analog mode. Available assembled in this small PCB in eBay or Aliexpress: 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 More sharing options...
Neurowork Posted September 1, 2017 Share Posted September 1, 2017 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 More sharing options...
Sokol1_br Posted September 1, 2017 Author Share Posted September 1, 2017 Mouse and keyboard emulation was removed from latest firmware versions. I guess for free memory for allow implementation of LED support for War Thunder outputs. Link to comment Share on other sites More sharing options...
Neurowork Posted September 1, 2017 Share Posted September 1, 2017 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 More sharing options...
nuts Posted September 6, 2017 Share Posted September 6, 2017 Thanks so much for this Sent from my iPhone using Tapatalk Link to comment Share on other sites More sharing options...
FIN_Centurion1 Posted September 6, 2017 Share Posted September 6, 2017 Melexis MLX90333 "3D" HALL sensor can be used with MMjoy2 in analog mode. Available assembled in this small PCB in eBay or Aliexpress: 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 More sharing options...
Sokol1_br Posted September 6, 2017 Author Share Posted September 6, 2017 (edited) 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 September 6, 2017 by Sokol1_br Link to comment Share on other sites More sharing options...
FIN_Centurion1 Posted September 6, 2017 Share Posted September 6, 2017 Good advice as always!I found this but obviously no joy for MMjoy https://hackaday.io/project/11865-3d-magnetic-field-scanner/log/42471-arduino-mlx90393-library We'll see Link to comment Share on other sites More sharing options...
Sokol1_br Posted September 6, 2017 Author Share Posted September 6, 2017 You bough this version? http://www.ebay.com/itm/CJMCU-90393-MLX90393-Digital-3D-Hall-Sensor-Displacement-Angle-Rotate-3D-Positio-/162558197947?hash=item25d93940bb:g:xCwAAOSw~XpZRqQK Think this 3.3v will complicate things a bit. Link to comment Share on other sites More sharing options...
FIN_Centurion1 Posted September 7, 2017 Share Posted September 7, 2017 I bought a 5v to 3v level conversion chip to go along it. Since there is code already om github for imtergrating it on arduino it should be possible. Link to comment Share on other sites More sharing options...
lucky-hendrix Posted September 15, 2017 Share Posted September 15, 2017 Hi guys, Has anyone here played a lot with the virtual axis option ? I try to make an encoder mode a virtual axis, is it possible ? What kind of parameters should i put for step of change, I have tried quite a few different settings but it doesn't seem to change much ? Link to comment Share on other sites More sharing options...
ice_pdb Posted September 15, 2017 Share Posted September 15, 2017 (edited) 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 September 17, 2017 by ice_pdb Link to comment Share on other sites More sharing options...
RightStuff Posted September 17, 2017 Share Posted September 17, 2017 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 More sharing options...
Sokol1_br Posted September 17, 2017 Author Share Posted September 17, 2017 I try to make an encoder mode a virtual axis, is it possible ? Seems the latest firmware version has bug with encoder as virtual axis, try with previous. How set the virtual axis. How set encoders: Tip from IL2.ru forum. Link to comment Share on other sites More sharing options...
lucky-hendrix Posted September 25, 2017 Share Posted September 25, 2017 Thanks for the answers, I reverted to an older version of MMJoy, and it works as expected now. I have another question: In the MMjOy wiki it shows all button connection on a matrix, with a diode added between the button and the columns. Is this diode really necessary ? what is its purpose ? Link to comment Share on other sites More sharing options...
Sokol1_br Posted September 25, 2017 Author Share Posted September 25, 2017 (edited) 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 September 25, 2017 by Sokol1_br Link to comment Share on other sites More sharing options...
vvm13 Posted October 30, 2017 Share Posted October 30, 2017 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 More sharing options...
Sokol1_br Posted October 30, 2017 Author Share Posted October 30, 2017 In "Open Source ForceFeedback" topic a guy post some code for use Melexis sensor in Arduino, may give you some hint useful for TLE5010. Link to comment Share on other sites More sharing options...
Recommended Posts