Jump to content

Trying to Make a joystick for I2C


ddtav478

Recommended Posts

Hello,

I'm trying to make a joystick to use it with DCS F-16 module. Basically, I printed out JF-Flyers joystick and I attached a teensy 4.0 to the stick. I then made a gimbal that uses an arduino nano (ATMEGA328P). Here is the link if anyone wants to see 

https://www.amazon.de/AZDelivery-Atmega328-gratis-Arduino-kompatibel/dp/B078SBBST6/ref=asc_df_B078SBBST6/?tag=googshopde-21&linkCode=df0&hvadid=310491639325&hvpos=&hvnetw=g&hvrand=3235562854204524709&hvpone=&hvptwo=&hvqmt=&hvdev=c&hvdvcmdl=&hvlocint=&hvlocphy=9044815&hvtargid=pla-609882071415&psc=1&th=1&psc=1&tag=&ref=&adgrpid=59900935617&hvpone=&hvptwo=&hvadid=310491639325&hvpos=&hvnetw=g&hvrand=3235562854204524709&hvqmt=&hvdev=c&hvdvcmdl=&hvlocint=&hvlocphy=9044815&hvtargid=pla-609882071415

 

I trying to make it so that I can attach JF-Flyers stick using I2C serial communication to the gimbal unit which house the arduino nano reading x and y inputs and make it so that they read as one.

In short Joystick buttons (w/ Teensy 4.0) ---> Gimbal (arduino nano) ----> USB communication w/ DCS world as one single controller.

I'm looking to do it this way to allow me to swap the controller for a different one. I tried the arduino forums and the teensy forums and they were no help. From what I understand the arduino can't act a USB device like as a keyboard or mouse. However DCS bios gets around the problem by adding functionality to DCS and communicating by serial bus to arduino. The joystick has 23 inputs and the connect to a common ground when the button is pushed. The gimbal has not been assembled yet, however, the input of x and y axis will go through a hall effect sensor. In the future, I hope to add switches and buttons to the gimbal unit for more options. 

0?ui=2&ik=c37f4f9d74&attid=0.1.1&permmsg

Here is the 4 pin aviator plug I'm trying to pass the wires through. (Don't mind that it is rough as this was a test fit) 🙃

Link to comment
Share on other sites

What is "JF-Flyers joystick"?

Anyway, I suggest you ask in Reddit/r/HOTASdiy, there people use write code for non conventional joysticks.

BTW ATMEGA328 don't seems a good option for joystick controller, since need include USB support via software.

 


Edited by Sokol1_br
Link to comment
Share on other sites

  • Recently Browsing   0 members

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