MetalGear_Honk Posted October 12, 2017 Posted October 12, 2017 Hi Crow The CD4021BSC works with 3V to 15V so itwill work on the Due I have used quite a lot of these. So Iknow they are really robust. Lately I switched to 74hc595 for smallersize and more Speed in reading. For the Hall sensors I was thinking aboutusing an ADS1115. It is a small ADC with 16 bit and can beread over I2C so we are free to use whatever Analog Input we can find Pot,Hall, linear Pot... For the Arduino IDE I am not sure if itcan be used for the FFB as it slows the code a lot. (And I am programming in AtmelStudio for a Long time) Maybe someone with more experience inArduino can help here? MetalGear_Honk The threemost dangerous threads to Programmers: Fresh air Bright sun light The horrifying screams of singingbirds
VR FlightSim Posted October 12, 2017 Posted October 12, 2017 (edited) @ MetalGear Honk cheers for sorting the post mate. I didn't have anything in my out_box except the very first message. Don't know why. @ everybody Hey all I wanted to share simple diagram I drew just to make sure we're all at the same page. Please let me know if you spot any flaws in this concept. Regards Jay Edited October 12, 2017 by VR FlightSim
MetalGear_Honk Posted October 12, 2017 Posted October 12, 2017 Hi For your Diagram: The Software is optional. And between the Due and the pots will be aADS1115 Or the pots will be replaced with 3dHallsensor both use I2C connection. The rest will hopefully run as you Showit. At the Moment the Due is a Pro Micro I don't own a Due, so all programming isdone for the Micro until i have a Due and the Equipment to work with it. MetalGear_Honk The threemost dangerous threads to Programmers: Fresh air Bright sun light The horrifying screams of singingbirds
VR FlightSim Posted October 12, 2017 Posted October 12, 2017 I know it will work without the software but in my opinion it is important for two reasons. 1. easy to preset and save individual parameters for different aircraft and sims. 2. Trim control of the physical axes. This would be essential for good force feedback device. Did you have any kind of trim in your code already? Hall sensors are great, just not sure how they gonna cope with magnetic fields from DC motors though. Regards Jay
crow0827 Posted October 12, 2017 Posted October 12, 2017 (edited) Sorry, I'm Ignoramus. Is there necessity of using ADS1115? I thought below. user loop(){ IC_name_read(uint16_t* x, uint16_t* y); (example ADS1115_Read Button_read(uint32_t* Button); HID_Task(x,y,button); FFB_Task(x,y); } if we could select any sensor(include OS FFBS recommended), it is comfortable. user only should write code to convert sensor value to 16bit unsigned, it is same works. 74HC595 has function of convert serial input to parallel output. isn't it? CD4021BC converts parallel input to serial output. is there compatibility? **I'm considering variable CLK timing(Freq) for supporting low speed shift register via Arduino IDE or Source Code. **and pinout compatible. button assign is determined by connection shift register and SW. all of "Button Read" PCB is same. BTW, in my opinion, our job of "Stick" isn't required. there are good stick in the world, HOTAS, VKB(upcoming F-14A&B Stick!!!), virpil. so, I'm aiming to make compatible(signal, pinout, stick mount). off course, it isn't problem making default stick. I thought that the software is second stage of OS FFB. how to get info about kind of aircraft? 1.Simulator Script - output info of weight? size? 2.GUI_Control_app.exe - collect info and calculate parameter 3.COM PORT - send OS FFBS 4.OS FFBS - calculate motor drive is this correct? OS FFBS: Open Source ForceFeedBack Stick P.S Did you find any DC Motor Shield? Edited October 12, 2017 by crow0827
Deadman Posted October 12, 2017 Posted October 12, 2017 if you don't have a soft ware how is the arduino programed to deal with the FFB communication with the computer? Hi For your Diagram: The Software is optional. And between the Due and the pots will be aADS1115 Or the pots will be replaced with 3dHallsensor both use I2C connection. The rest will hopefully run as you Showit. At the Moment the Due is a Pro Micro I don't own a Due, so all programming isdone for the Micro until i have a Due and the Equipment to work with it. MetalGear_Honk https://www.shapeways.com/shops/a-10c-warthog-supplies https://forum.dcs.world/topic/133818-deadmans-cockpit-base-plans/#comment-133824 CNCs and Laser engravers are great but they can't do squat with out a precise set of plans.
VR FlightSim Posted October 12, 2017 Posted October 12, 2017 I beleive that windows recocnise it as a generic FFB device. All described in MetalGearHonk's code on his pro micro.
avidflyer Posted October 12, 2017 Posted October 12, 2017 Hello Jay, Good to see you got contact. Kind regards Christian
VR FlightSim Posted October 12, 2017 Posted October 12, 2017 Hey Christian Yeah mate, thanks for the link, this is it;) Hope we can pul it of reasonably soon..
MetalGear_Honk Posted October 13, 2017 Posted October 13, 2017 Hi "VR Flightsim" is right. The OpenSource Force Feedback Joystick will Show up as a Native FFB Joystick. So all FlightSims that Support FFB will send effects direct to the stick. No other Softwareis needed. The optional software "VRFligtSim" is talking about can alter the Effects from the sim to Changethem as you feel them right. To put all back into one Post: The OSFFB Stick will be a native HID FFB(Windows Standard Driver) So no Additional Software is needed. It will have Two FFB axes for the stickitself. 6 additional axes for free use (maybeThrottle, Pedals or Mixture) 32 Buttons 2 4way Hats. The two FFB axes will be 16bit Input inany way. This needs to be fix as We Need TheseInputs to calculate the Force Effects/positions. I have set the other 6 axes to 16bit aswell. But it is possible to use the DUE's ADC and bit shift it to 16bit. I am using shift register in my otherSticks to reduce the amount of Wire needed to run throe the Gimbal. So I willadd these as well. (For 4021be and 74HC595 are basically thesame the 4021 is outdated) I have used an H-Bridge for the Motors sothat we can use a wide range of Motors and Motor Drivers. I think the ones usedfor 2DOF Seats are a bit over power but will work as well (given the correctDriver) I think Servo or Stepper Motors will be tooexpensive. That is what I am trying to mainlyArchive. So the actual Status is that we have aworking Code for a Pro Micro. But it is missing some Effects I am still workingon math to get the Sinus effect right. I am testing on a SDK600 which is notcompatible with a Due so I need to get a new testbed. Also there is no working Open Source Gimbalthat is capable of supporting two Motors. (for testing a 3D Printed Versionwould be great, so changing parts is faster and cheaper) for the finisheddesign a Metal Version would be better to get a flour mounted Version stableenough. MetalGear_Honk The threemost dangerous threads to Programmers: Fresh air Bright sun light The horrifying screams of singingbirds
finch Posted October 13, 2017 Posted October 13, 2017 here is an open source gimbal, maybe can be modified for force feedback https://github.com/o-devices/o-joystick-hdk
MetalGear_Honk Posted October 13, 2017 Posted October 13, 2017 Hi This Gimbal is the same Principal as I usein my last Stick. As well as it is in the VKG Versions. It is a wonderful solution for spring-loadedSticks. But it is not (or not good) for FFB. The inner Bearings is not static and itwould be necessary to move the Motor around. MetalGear_Honk The threemost dangerous threads to Programmers: Fresh air Bright sun light The horrifying screams of singingbirds
Deadman Posted October 13, 2017 Posted October 13, 2017 So is this a WIP or do you have something working ? https://www.shapeways.com/shops/a-10c-warthog-supplies https://forum.dcs.world/topic/133818-deadmans-cockpit-base-plans/#comment-133824 CNCs and Laser engravers are great but they can't do squat with out a precise set of plans.
VR FlightSim Posted October 15, 2017 Posted October 15, 2017 @ MetalGear Honk since OSFFB uses win driver, how do you target the effects? Do you "play" the existing effect or you creating new one? Jay
crow0827 Posted October 15, 2017 Posted October 15, 2017 (edited) Hi. Today, I tested simple auto throttle.(but A-10C...) sorry... my desk is not clean. It is not USB HID/PID but via export.lua. I guess it is possible to make Auto Throttle Function with HID and Serial Comm. procedure 1.sense throttle position.(argument No.9 for A-10C Right Throttle 2.sense auto throttle engaged(I didn't use this I'm looking for how to disengage A/T with moving the throttle by pilot. I hope this helps our project. "sometime", our OSFFB gets compatible with axis which isn't supported by game. BTW, I ordered Arduino Due. I want to know which motor driver is good. I don't have any knowledge about motor, driver. any advise is helpful. Edited October 15, 2017 by crow0827
VR FlightSim Posted October 15, 2017 Posted October 15, 2017 As far as my investigation goes, the L298N dual motor H-bridge is quite popular within arduino devs. However I would prefer to have sort of all in one package of OSFFB so I would like to experiment with motor shield like this one. https://www.makerfabs.com/index.php?route=product/product&product_id=132&search=Motor+shield
jpdesvals Posted October 15, 2017 Posted October 15, 2017 Hello every boy ! And amazing work crow0827 ! Help is asked ..i am waiting to plug my FF2 gimball and motors + potentiometers + l298 controler on the arduino pro mini to test the code .. After recieving the arduino pro mini + fdti basic breakout , solded together , plugged recognized ..ok. -. Hex (from metalgear monk ) is uploaded in the arduino pro mini with Xloader that tels me every thing has been uploaded. And now... Stupid question but what have i to do now to see this device recocgnized as a basic force feedback joystick in the usb game controler manager ? In the JOYSTICK_Test folder are many files + driver and i don t know what to do ... Other thing :my FDTI appears in device manager as a USB serial port(COM4) but not as an arduino .. If somepne can just give me the differents step to do this as i have no experience in HID , PID etc .. Thx
avidflyer Posted October 15, 2017 Posted October 15, 2017 Hello Crow, I think its is possible with a electromagnetic cluth like this could maybe help (https://de.aliexpress.com/item/GREAT-10pcs-electromagnetic-clutch-24V-with-ABS-bevel-gear-56g/32275777740.html?ws_ab_test=searchweb0_0,searchweb201602_5_10152_10065_10151_10068_10344_10345_10342_10343_10340_10341_10193_10194_10304_10307_10060_10302_10155_10154_10056_10055_10054_10537_10059_10536_10534_10533_10532_100031_10099_10338_10103_10102_10052_10053_10107_10050_10142_10051_10320_10321_10322_10084_10083_10080_10082_10081_10177_10110_10111_10112_10113_10114_10180_10312_10313_10314_10184_10319_10078_10079_10073_10186,searchweb201603_14,ppcSwitch_5&btsid=6beafaf3-4a12-43f0-9e9a-de75acba7a70&algo_expid=68af8033-0d24-4f3e-b245-1d0ec556fc16-39&algo_pvid=68af8033-0d24-4f3e-b245-1d0ec556fc16 I have ordered one and like to try to set it up for electric trim. ervery time A/T or electric trim is engaged the the clutch conect the servo or stepper to the throttle lever. This is only an idea i like to setup after my 3d printer will work again. regards Christian
MetalGear_Honk Posted October 16, 2017 Posted October 16, 2017 Hi @ VR FlightSim: The Motor shield you are showing shouldwork if get the connections right. The Pins are for a Uno Board so you needto wire it up manually. For the rest it is a Dual H-Bridge likethe one I mentioned bevor. For the effects itself: the sim tells theJoystick which effects with which Parameters to use and when/how Long. There is a fixed set of effects defined inthe HID-PID Protocol That is used by all existing FFB Sticks/Wheels/Jokes That said there is a Special definedeffect called "custom effect" as far as I know it is not supported byany device or Sim. @jpdesvals You cannot use XLoader for uploading youNeed a Programmer (Hardware) as it needs to override the Bootloader. I made aStep by step to explain how to do it. But be Aware you can kill your Pro Microthat way. This Project is NOT for someone withoutMicrocontroller knowledge. (At last not at this stage) @Deadman It is still WIP. I have a Controller that is recognized asUSB-FFB Joystick. And I can move Motors according to effects send fromGames/Test Programs. Now I need to add a gimbal and fine tunethe Effects. @Crow Nice. If you use a custom Servo you can read thePosition of your Throttle and compare it to the Position it should have. Addinga small delay for the mechanic and you know when to send the Signal to disengage. MetalGeear_Honk The threemost dangerous threads to Programmers: Fresh air Bright sun light The horrifying screams of singingbirds
Abburo Posted October 16, 2017 Posted October 16, 2017 (edited) I found (maybe will help some of you) the most simple gimbal that could be used in FFB joystick. Even it is under a patent I do think that can be done for home use. Easy for 3D print as well. The source is here: http://www.google.com/patents/US7061466 Edited October 16, 2017 by Abburo Romanian Community for DCS World HW Specs: AMD 7900X, 64GB RAM, RTX 4090, HOTAS Virpil, MFG, CLS-E, custom
MetalGear_Honk Posted October 16, 2017 Posted October 16, 2017 Hi I know of this one. I already tried to rebuild it but I haveProblems to get the "Moving" Parts right. When I understand it correctly the cross64b can slide inside the Arms 62b If someone can provide some better plans Iwill try it again. MetalGear_Honk The threemost dangerous threads to Programmers: Fresh air Bright sun light The horrifying screams of singingbirds
jpdesvals Posted October 16, 2017 Posted October 16, 2017 @MetalGear Honk You "made " a step by step or you "will "cause i have red this thread many time and didn t found it ..if i did miss it can you give me the link please ? my sidewinder force feedback 2 gimball with its motors is wayting for a test flight :lol: Apparently what i managed to do is to upload your .HEX and then goback to a basic blink arduino scetch so ..my arduino is still alive ;) For shure it is a little more difficult than plug , upload and play ..but with a good dummy tutorial .. yes we can ! JP
crow0827 Posted October 16, 2017 Posted October 16, 2017 (edited) Hi. Thank you for reading my reply. It is not difficult, just using DCS-BIOS and output servo. I received assurance that we can make A/T throttle. because of impossible to use DCS-BIOS and USB-HID at the same time. I'll try to make "own" program for identify what aircraft is active and info is required, and output to arduino. it is proceeded in parallel with studying USB HID-PID. busy… thanks Metal, Christian , Jay. Based on your advise, I considered what is good for another FFB. If possible to use Servo and EM Cluch, It is perfect. (I don't have mechanical knowledge.) now, I found this motor. http://www.futaba.co.jp/en/dbps_data/_material_/radicon_eng/Robot/RS303MR_RS304MD_EN_112.pdf It is TTL Communication Servo. and there are example of usage for Arduino. http://www.futaba.co.jp/img/uploads/files/robot/Futaba_Sample_Arduino_RS30x_Program_rev2.pdf sorry it is written in Japanese. if you have any question about manual. please contact me. I don't know that it is available for world-wide. but it's not expensive (in Japan), I want to test if it's useful for our OSFFB ( and my A/T FFB. good day! :) P.S. I found a video about test of the motor it looks good. Edited October 16, 2017 by crow0827
VR FlightSim Posted October 16, 2017 Posted October 16, 2017 @crow0827 I don't know much about DCS interfacing but having done lot of similar toys for other sims I would suggest "slip clutch" and DC motor. Something like this (3:30 into the video): https://www.youtube.com/watch?v=zudKaqFBl2s
Recommended Posts