Jump to content

Recommended Posts

Posted

Hey there.

 

I am a total newbie to the gaping rabbit hole that is arduino.

 

I have in mind a project where i need to be able to extract the G-Force information from DCS, run it through an arduino processor and have a servo motor function based on amount of g pulled.

 

If anybody can shed some advice on the following, id be grateful!

 

-Arduino components required (Bread board, microcontroller board,)

-software requirements

Things to consider

 

Cheers

Posted (edited)

This Adafruit guide should get you started on how to wire a servo to an Arduino:

 

https://learn.adafruit.com/adafruit-arduino-lesson-14-servo-motors/overview

 

Any Arduino or AVR microcontroller like the Teensy will do.

 

As for getting the G-force data from the sim, if you don't want to write an export lua, you can try using DCS BIOS to pull the G-force data from the cockpit gauge itself. This has the downside of the aircraft needing a G-force gauge in the first place to pull data from, and will need to be individually set for every plane (different gauges across different aircraft have different IDs in DCS BIOS). Otherwise, you can write an export lua that exposes the data somehow (most commonly through a UDP broadcast port) using LoGetAccelerationUnits():

 

https://wiki.hoggitworld.com/view/DCS_Export_Script

 

This will work across all aircraft, but it returns an x, y, and z vector, which I don't know how to convert into a single G-force value.

 

Keep in mind that some people choose to go with a "glass cockpit" (a monitor behind a wooden/plastic shield with cutouts that exposes the gauges) not only as a cost-saving measure, but also because they don't make noise. It doesn't matter so much for a single gauge, but if you have multiple running at the same time, they can get quite loud:

 

Edited by Ranma13
  • Recently Browsing   0 members

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