Jump to content

Recommended Posts

Posted

Getting stuck with finding a arduino sketch to work with the stby gauges as in Knots, velocity, altimeter plus the rad altimeter gauge. Currently using x27.168 stepper motors i have easy drivers, but i do see you can connect directly to arduino so happy to go either way. i pretty much have my whole cockpit working, but getting stumped on these. if you want to see my cockpit you can check out my instgram page fa18hornetpit some photos below so you see that i do have some idea at least on design and building had no issue with dcs bios as in switches, led's,rotary encoders push buttons etc.. and while i am asking any help on the oled sketches to for the alimeter would be great. 

IMG_6760.JPG

IMG_6742.JPG

IMG_6772.JPG

  • Like 2
Posted

@MAXsenna thanks! coming up two years now the canopy even works runs on compressed air. Still a bit to do i have slowed down a bit as i can use it as is so just fine tuning and getting things working that havent been like these standby gauges.

  • Like 1
Posted
11 minutes ago, danos_2503 said:

the canopy even works runs on compressed air

Careful now, so you don't accidentally make yourself a working ejection seat! 😄 

  • Like 1
Posted
23 hours ago, No1sonuk said:

You might find what you need at Open Hornet ( https://openhornet.com/ )
BUT, some of what they've done there is unnecessary over-engineering.

Thanks, i have had a look and not much in the way of software i have found some sketches just need to undertand them original i did have the velocity vector working with a standard 270deg servo as servos are easy to get to work with DCS bios just wish you could control the 360 deg ones. 

  • Like 1
Posted

@Rapti looks good i am assuming this is via helios? I do have a montior in my setup a 24 inch which has the left and right DDI and the fuel gauge exported via lua scripts plus the ufc is exported in the corner so my ufc will work in hud mode i did think of using helios but didnt want to add another element to the thing as in helios. Also i have made the gauges and something about having mechanical styles guages looks cool. With the RWR and SARI i will have to get a small led screen and export via a lua script well hoping anyway. 

IMG_6918.JPG

IMG_6919.JPG

  • Like 1
Posted

I managed to found the following sketch from an Arduino forum and i changed it a little to suit the FA18 vsi gauge the gauge moves and works, but it doesn't travel the full range as in the 315 deg it does up, but doesn't down can anyone tell me what i need to change to get it to travel the full 315 deg or further down. Sorry this is all new to me and trying to understand these sketches.

 

 

#define DCSBIOS_IRQ_SERIAL
 
//#define DCSBIOS_RS485_SLAVE 34
 
//#define TXENABLE_PIN 2
 
#include "DcsBios.h"
#include "SwitecX25.h"
 
// 315 degrees of range = 315x3 steps = 945 steps
int newValue;
unsigned int maxSteps = 945;
unsigned int targetStep = -945;
unsigned int currentStep;
 
// declare motor1 with 945 steps on pins 8-11
//SwitecX25 motor1(maxSteps, 9, 8, 10, 11);
SwitecX25 motor1(maxSteps, 5, 4, 6, 7);


 
void setup(void) {
 
  DcsBios::setup();
 
  motor1.zero();  // this is a slow, blocking operation
  motor1.setPosition(targetStep);
  motor1.update();
 
}
 
void onVsiChange(unsigned int newValue) {
  unsigned int position = map(newValue, 0, 65535, 0, maxSteps);
  motor1.setPosition(position);
}
DcsBios::IntegerBuffer vsiBuffer(0x7500, 0xffff, 0, onVsiChange);
 
void loop(void) {
 
  motor1.update();
 
 
  DcsBios::loop();
}
  • Recently Browsing   0 members

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