Hogtie Posted December 28, 2015 Posted December 28, 2015 Hi Forum I recently began working with DCS-BIOS and arduino programming. I dont know if anyone has raised the question before or made any guides, but I have looked arround and was not able to find much on the subject. the code in DCS-BIOS are made for servos. I would like to use stepper motors insted. is there anyone who has an easy way of making DCS-BIOS work with stepper motors ? also is there any way you can make a variable of the readout from DCS-BIOS and use it in the programming code, insted of sending it direct to a component ? Currently I am working on the guel gauge on the A10C. hope somone can help me on the way /Hogtie
BravoYankee4 Posted December 28, 2015 Posted December 28, 2015 (edited) As far as I know it might be supported in the future. However there are many ways of doing it and many different models so it will be a lot of work having implemented. If you poke around here in the forum you will see that some people have done some quite succesful tests and builds with the VID series stepper motors. There should also be examples for exporting variables... Edited December 28, 2015 by BravoYankee4 added comment
Boltz Posted December 29, 2015 Posted December 29, 2015 Use advanced view of control reference to copy the "if" statement with address for what you want to get the value of (eg fuel gauge). Then add in the stepper motor code for your particular motors. Someone has likely already used them for something so code will be available or at least some information to start with. A-10C Cockpit Build Thread My YouTube Channel
Adrian_gc Posted December 29, 2015 Posted December 29, 2015 Hello Hogtie !!!!!, i am Adrian, recently Warthog helped me a lot to me with the issue of stepper motors. I plan to publish soon a post about how I made the Altimeter and VVI instruments. So, by the way, you can get an idea, you need a stepper motor (Warhog showed me the VID60-02), an IR emitter, an Arduino Uno, a 10KOh... 250mOh resistor and a few cables. With this material you do that this instruments work well. Now, I'm testing with EASY DRIVER BOARD too, to give greater fluidity to the movement of the needle in the field of microstepping, but this last I'm just trying at the moment. If you want, I can lend a hand and tell you what I learned.
Hogtie Posted December 30, 2015 Author Posted December 30, 2015 Thanks for the nice replies. I have found some code which seems to work getting the readout to the stepper motor. currently I am working with this stepper motor http://www.ebay.co.uk/itm/New-5X-Four-phase-Stepper-Motor-28BYJ-48-ULN2003-Driver-Module-for-Arduino-/281839092974?hash=item419eeb44ee:g:EVAAAOSwo0JWLafd I have tried to find the VID60-02 on ebay, but no luck so far, where do you purchase these, as they might spare some programming for the zeroing part. looking forward to see the code you have created Adrian
Adrian_gc Posted December 30, 2015 Posted December 30, 2015 (edited) Hello Hogtie, first tell you that the VID60-02 engine, in my case, I have found only by www.Aliexpress.com ...... could be that I had elsewhere, but no idea. The engine has taught me is not the best suited for this, it does not have enough speed and acceleration capability. The good thing is that VID60-02 and comes with a built-in IR receiver. Here are the web where I usually buy, the you can buy one at a time or in batches of 10 as I usually do. http://es.aliexpress.com/store/product/VID60-02-VID60-02/1003209_32359506948.html?spm=2114.04020208.3.1.B5xZEm&ws_ab_test=searchweb201556_1,searchweb201644_1_79_78_77_82_80_62_81,searchweb201560_4 Almost any stepper motor will be mounted detection system from scratch, that's consumer tastes, I only tell you this is that more people recommended to me and it works for me fine. The code that I use to move these engines was not created by me,it was created by another friend of the forum that helped to me. After this I've been testing it and varying data, to achieve what I wanted in each instrument. I have link to you a video of my youtube chanel with a video moving the left needle of the fuel gauge, it is a fast and dirty video of a test only, sorry for quality !!!! Is this what are you looking? [ame] [/ame] Tomorrow i work complete day , on two days i can explain to you how to do it !!! Edited December 30, 2015 by Adrian_gc
Chain Posted January 25, 2018 Posted January 25, 2018 Hi guys! First I would like to say that I LOVE DCS-BIOS. Great work! Thank you :thumbup: I bought an Arduino Uno and Adafruit Motor Shield V2. I would like to ask if someone has an example how to use Adafruit Motor Shield V2 and stepper motors with DCS-BIOS. I have successfully used DCS-BIOS led and switch features with UNO and managed to get the Adafruit stepper examples to work. DCS-BIOS and stepper motors are a mystery for me. I would appreciate any help, thank you. System: Windows 10 | i7-7700K @ 4.5 Ghz | 32GB of RAM | Nvidia GTX 1080, 3440x1440 | DELL Ultrawide U3415W | Samsung 960 Evo M.2 and 2 TB Seagate Barracuda | TM Warthog Hotas | SLAW F-16 Pedals | Oculus Rift CV1 and HTC Vive PRO VR + High fidelity F/A-18C simpit :)
Recommended Posts