

Kenpilot
Members-
Posts
274 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Everything posted by Kenpilot
-
Does anyone have any of the PC flights gauges for the A10 and uses them with DCS Bios and Arduino? I can't get them to match what the in game DCS gauges are reading. I've looked them up and their values are 544, 2400 and I've messed around with those values in the Arduino sketch but I can't get them to match up for the life of me. If anyone has these and has gotten them to work, please let me know what your values are in your arduino sketches! Thanks!
-
I've just started using DCS Bios and Arduino and I'm having a tough time dialing in the servo settings so that the gauges in my panels move with and show what the actual gauges in DCS are showing. Is there an actual method as to what numbers you put in the sketch command lines for the servo settings or do you literally have to just guess and keep putting in random numbers until your gauges show and move with the gauges in DCS? More specifically, I'm talking about the flaps gauge, hydraulic press and fuel quantity gauges. For example, the default values in the DCS Bios Control Reference Sketches are 544, 2400. What exactly do these numbers mean and again, is there an actual method to dial in the right numbers or is it a total guessing game and you have to keep changing them and going back in to DCS to see if you have the right numbers? This obviously will take forever. Thanks!
-
New to Arduino and DCS Bios. Looking for Help Please
Kenpilot replied to Kenpilot's topic in Home Cockpits
Ahhh ok. I'll try that. Thanks Crash Test Pilot! -
New to Arduino and DCS Bios. Looking for Help Please
Kenpilot replied to Kenpilot's topic in Home Cockpits
They are indicator lights, korry style replicas, that I purchased from pcflights.com. The leds are built in to the indicator. https://pcflights.com/index.php?route=product/product&product_id=245&search=Boeing+indicator Is there any way to make the 3 pin indicator work or do I need to remove the led that's in the indicator and put in 2 wire ones? -
New to Arduino and DCS Bios. Looking for Help Please
Kenpilot replied to Kenpilot's topic in Home Cockpits
I need some help with the Landing Gear Safe indicator lights. Each of my LED indicator lights have 3 pin wire connectors. The GND is connected to a GND, The red wire is connected to 5v on the uno and the yellow(signal) wire is connected to pins 5,6,7 for Left, Nose and Right and the lights are continuously on. My sketch command lines are copied directly from the DCS Bios control reference. How come they are continuously ON and not what seems like getting communication from the sketch and turning on and off depending on what the actual lights are doing in DCS??? /* Tell DCS-BIOS to use a serial connection and use interrupt-driven communication. The main program will be interrupted to prioritize processing incoming data. This should work on any Arduino that has an ATMega328 controller (Uno, Pro Mini, many others). */ #define DCSBIOS_IRQ_SERIAL #include "Servo.h" #include "DcsBios.h" DcsBios::ServoOutput flapPos(0x10a0,10, 1330, 1790); DcsBios::LED handleGearWarning(0x1026, 0x4000, 9); DcsBios::LED gearLSafe(0x1026, 0x1000, 6); DcsBios::LED gearNSafe(0x1026, 0x0800, 7); DcsBios::LED gearRSafe(0x1026, 0x2000, 8); void setup() { DcsBios::setup(); } void loop() { DcsBios::loop(); I've tried this before with only the servo connected to the uno and it still did the same thing. -
New to Arduino and DCS Bios. Looking for Help Please
Kenpilot replied to Kenpilot's topic in Home Cockpits
So does that mean you're not sure how to fix it so that the indicator matches the indicator and flap settings in DCS? lol -
New to Arduino and DCS Bios. Looking for Help Please
Kenpilot replied to Kenpilot's topic in Home Cockpits
Ok spoke to soon. I'm having a hard time dialing in the position numbers to put in the sketch line: DcsBios::ServoOutput flapPos(0x10a0,10, 1330, 1790); With 1300 and 1790, The Flap setting is showing 0 when flaps are selected 0, whether I'm raising or lowering them, it always shows 0, so that's good. But when I select flaps down to 10 degrees, it shows 9 degrees, and then flaps down to 20, it shows 30 degrees. And then when I raise them back up to 20 degrees, it shows 12 degrees and then back up to 0 shows 0. I've played around with a bunch of different numbers but I can't figure out how to match the numbers to the flap setting selected. Any help would be greatly appreciated! -
New to Arduino and DCS Bios. Looking for Help Please
Kenpilot replied to Kenpilot's topic in Home Cockpits
I got it working. I tested another servo and it was working so I just tried to rotate the gearing on the servo in the flap position indicator and it started working. Guessing it was stuck or something. Now I just need to change the numbers in the command line so the Flap position arrow matches the flap settings. Thanks for all of the help guys!! I'm sure I'll be needing some more help when I try to write the sketches for the gear handle and gear lights, etc, but I'm going to play around with them first to see if I can figure it out now without bothering you guys. Thanks again!! -
New to Arduino and DCS Bios. Looking for Help Please
Kenpilot replied to Kenpilot's topic in Home Cockpits
I I verified the line is in the export.lua. I started DCS and went in to DCS BIOS and verified the Virtual Cockpit is highlighted (and autostart is selected. I not only have the UNO connected via USB, but I also added a 9V 1.5a power supply to it as well. The flap position indicator is still not working. I verified what No1sonuk mentioned as well, that the servo.h is before the dscbios line in the sketch. Any other ideas as to why this is not working??? This is getting beyond frustrating at this point. Just to be sure the sketch is correct, this is what I have uploaded: /* Tell DCS-BIOS to use a serial connection and use interrupt-driven communication. The main program will be interrupted to prioritize processing incoming data. This should work on any Arduino that has an ATMega328 controller (Uno, Pro Mini, many others). */ #define DCSBIOS_IRQ_SERIAL #include "Servo.h" #include "DcsBios.h" DcsBios::ServoOutput flapPos(0x10a0,9, 2400, 1472); void setup() { DcsBios::setup(); } void loop() { DcsBios::loop(); } -
New to Arduino and DCS Bios. Looking for Help Please
Kenpilot replied to Kenpilot's topic in Home Cockpits
Awesome, thanks Crash Test Pilot, I'll look in to all of your suggestions! -
New to Arduino and DCS Bios. Looking for Help Please
Kenpilot replied to Kenpilot's topic in Home Cockpits
I don't understand what you mean. Am I supposed to copy and paste that boxed command in to the export lua? Where do I find the export lua in the game files and where in the lua do I paste it? -
New to Arduino and DCS Bios. Looking for Help Please
Kenpilot replied to Kenpilot's topic in Home Cockpits
awesome, got it to upload, but nothing is happening in DCS. I have COMM3 connected in DCS BIOS, I have gnd connected to gnd, I have the positive wire from the servo going to the 5v pwr pin and the orange signal pin connected to pin 9 on the uno. I change the flaps and the indicator in my panel isn't moving at all. I tried 0-10 and 20 flap settings, doesn't move. It moves in the game, but not on my panel indicator. -
New to Arduino and DCS Bios. Looking for Help Please
Kenpilot replied to Kenpilot's topic in Home Cockpits
Ok, I'm getting really confused now. Here is my sketch: /* Tell DCS-BIOS to use a serial connection and use interrupt-driven communication. The main program will be interrupted to prioritize processing incoming data. This should work on any Arduino that has an ATMega328 controller (Uno, Pro Mini, many others). */ #define DCSBIOS_IRQ_SERIAL #include "DcsBios.h" #include "Servo.h" /* paste code snippets from the reference documentation here */ /* your code here */ DcsBios::IntegerBuffer flapPosBuffer(0x10a0, 0xffff, 0, onFlapPosChange); DcsBios::ServoOutput flapPos(0x10a0,9, 544,1472); void setup() { DcsBios::setup(); } void loop() { DcsBios::loop(); } I'm getitng this message now: Flap_Position_Indicator:16:57: error: 'onFlapPosChange' was not declared in this scope DcsBios::IntegerBuffer flapPosBuffer(0x10a0, 0xffff, 0, onFlapPosChange); ^~~~~~~~~~~~~~~ Flap_Position_Indicator:17:10: error: 'ServoOutput' in namespace 'DcsBios' does not name a type DcsBios::ServoOutput flapPos(0x10a0,9, 544,1472); ^~~~~~~~~~~ exit status 1 'onFlapPosChange' was not declared in this scope -
New to Arduino and DCS Bios. Looking for Help Please
Kenpilot replied to Kenpilot's topic in Home Cockpits
Ok, I put that line in there, now I'm getting this message: Flap_Position_Indicator:12:10: error: #include expects "FILENAME" or <FILENAME> #include "Servo.h ^~~~~~~~ exit status 1 #include expects "FILENAME" or <FILENAME> I forgot a " at the end of the line, but Now I'm getting this message: Flap_Position_Indicator:18:10: error: 'ServoOutput' in namespace 'DcsBios' does not name a type DcsBios::ServoOutput flapPos(0x10a0,9, 544,1472); ^~~~~~~~~~~ exit status 1 'ServoOutput' in namespace 'DcsBios' does not name a type -
New to Arduino and DCS Bios. Looking for Help Please
Kenpilot replied to Kenpilot's topic in Home Cockpits
Ok, I think I've got the idea about the 544 and 2400, but that doesn't help my sketch that won't upload due to the error: " Flap_Position_Indicator:18:10: error: 'ServoOutput' in namespace 'DcsBios' does not name a type DcsBios::ServoOutput flapPos(0x10a0,9, 544, 2400); ^~~~~~~~~~~ exit status 1 'ServoOutput' in namespace 'DcsBios' does not name a type What is wrong with the sketch? Any chance you could write what it's supposed to look like so I can compare them and see what is wrong with mine? All I did was take the Master Caution example sketch, delete what I had copied and pasted from the DCS BIOS control reference for the master caution sketch, and copy and paste the Flap Position Indicator language from the DCS BIOS control reference and it's giving me the above error message when I try to upload it. This is the sketch for the flap position indicator: /* Tell DCS-BIOS to use a serial connection and use interrupt-driven communication. The main program will be interrupted to prioritize processing incoming data. This should work on any Arduino that has an ATMega328 controller (Uno, Pro Mini, many others). */ #define DCSBIOS_IRQ_SERIAL #include "DcsBios.h" /* paste code snippets from the reference documentation here */ void onFlapPosChange(unsigned int newValue) { /* your code here */ } DcsBios::IntegerBuffer flapPosBuffer(0x10a0, 0xffff, 0, onFlapPosChange); DcsBios::ServoOutput flapPos(0x10a0,9, 544, 2400); void setup() { DcsBios::setup(); } void loop() { DcsBios::loop(); } -
New to Arduino and DCS Bios. Looking for Help Please
Kenpilot replied to Kenpilot's topic in Home Cockpits
ok, now that I got the master caution sketch to work, What should the Flap position indicator sketch look like? Do I use the same format as the master caution sketch, just delete the commands for the master caution and copy and paste the commands for the flap position indicator and servo motor from the DCS Bios control reference? Also, in the servo motor command line, it has PIN, 544, 2400 RED. I know what to replace the PIN with, but do I keep the 544 and 2400 or what do I put in their place? Thanks! -
New to Arduino and DCS Bios. Looking for Help Please
Kenpilot replied to Kenpilot's topic in Home Cockpits
When I go in to TOOLS>Port it says "COMM3 Arduino Uno". At the bottom right corner it says Arduino Uno on COM3. In my Device Manager for the PC it says COM3 Arduino Uno. What am I doing wrong? It still gives me the same error message. Disregard. I tried changing USB ports and it worked! I'm not sure which of my USB ports are USB 2.0 or 3.0, but maybe it was one of the 3.0s and it didn't like it? -
New to Arduino and DCS Bios. Looking for Help Please
Kenpilot replied to Kenpilot's topic in Home Cockpits
Copy all, thanks! I'll Check the comm ports. -
New to Arduino and DCS Bios. Looking for Help Please
Kenpilot replied to Kenpilot's topic in Home Cockpits
I made sure DCS BIOS Hub wasn't open and tried to upload the sketch on to the uno and this is the new message I'm getting now: avrdude: ser_open(): can't open device "\\.\COM3": The system cannot find the file specified. -
New to Arduino and DCS Bios. Looking for Help Please
Kenpilot replied to Kenpilot's topic in Home Cockpits
I was. I'll close it out and try again tomorrow. Thanks!! -
New to Arduino and DCS Bios. Looking for Help Please
Kenpilot replied to Kenpilot's topic in Home Cockpits
This is the error message I'm getting when trying to upload the sketch on to the uno. " An error occurred while uploading the sketch avrdude: ser_open(): can't open device "\\.\COM3": Access is denied. And here is the sketch: /* Tell DCS-BIOS to use a serial connection and use interrupt-driven communication. The main program will be interrupted to prioritize processing incoming data. This should work on any Arduino that has an ATMega328 controller (Uno, Pro Mini, many others). */ #define DCSBIOS_IRQ_SERIAL #include "DcsBios.h" /* paste code snippets from the reference documentation here */ DcsBios::LED masterCaution(0x1012, 0x0800, 13); DcsBios::Switch2Pos ufcMasterCaution("UFC_MASTER_CAUTION", 10); void setup() { DcsBios::setup(); } void loop() { DcsBios::loop(); } -
New to Arduino and DCS Bios. Looking for Help Please
Kenpilot replied to Kenpilot's topic in Home Cockpits
Thanks so much guys, I GREATLY appreciate you guys taking the time to help me out. I can get to the DCS BIOS HUB page yes, and that's where I saw the uno is on COMM3 and is connected. I do know how to upload a sketch on to the uno as well. I tried the master caution sketch last night but got an error message and had to call it a night. I'm going to try it again later today and see if I can't figure out what I did wrong. If I still can't get it to work and get another error message I'll post it and see if you guys can help me figure it out. Thanks again!! -
New to Arduino and DCS Bios. Looking for Help Please
Kenpilot replied to Kenpilot's topic in Home Cockpits
Ha, thanks! I have found and read as much as I could from the userguide. Unfortunately I learn from watching, so reading only gets me so far. I'm a visual learner. I'm trying to find videos but I haven't really found any that are useful for a beginner yet. I'll play around with the master caution script and see if I can learn anything from it. Thanks for the heads up on the resistor! -
New to Arduino and DCS Bios. Looking for Help Please
Kenpilot replied to Kenpilot's topic in Home Cockpits
Thanks so much for the response agrasyuk. First of all, awesome simpit!! You do awesome work. I've installed DCS Bios and Arduino IDE, that's about as far as I've gotten. I know the Uno is connected and communicating with dcs bios. I just don't know where to go in Arduino IDE to write the script and how exactly to write the script. Second, I also don't know where to put all the wires in the arduino for the gear handle micro switches, gear indicator light wires (Pos, Neg, and Signal) and the pos/neg of the red LEDs in my gear handle knob, and the flap indicator wires (pos,neg,signal). I'm not connecting anything else from the landing gear lever panel to the arduino uno. Just the Landing gear lever microswitches, the red LEDs that are in the gear handle knob, the gear indicator SAFE lights and the flap position indicator. I found the master caution example from the dcs bios library. Not sure what to do with it though, but if you want to start there, I'm all ears. -
I'm in the midst of building my A10-C simpit and I'm going to use arduino and DCS bios for a few of the panels, but I have zero experience with either one. I have watched a few videos and read through some documentation but I'm pretty lost and I have yet to find anything that takes a newbie like myself from step one to a finished and working panel. If anyone knows of anything like this, PLEASE let me know as I'd love to check it out. I'm a visual learner and typically need to watch someone do it from beginning to end before I really understand and can do it on my own. Or, if you can write a quick how to, I'll take that as well and do my best to work thru it. I have DCS Bios downloaded and installed as well as the Arduino IDE software. The first panel I'm going to use an arduino and DCS Bios with is the Landing gear Panel. I am using an Arduino Uno for the panel. I have the panel completely built and now I need to know how to wire the landing gear level (micro switches, one for gear up and one for gear down) to the arduino, how to wire 2 LEDs in the gear lever knob for when the gear is in transit, the three gear indicator lights for when the gear is down and locked/safe, the flap position indicator(Servo with 3 wires +/-/Signal) and of course all of the wording/coding for the arduino. The anti-skid and landing light toggle switches are just going to be wired to a GP WIZ40 that I already have and installed. Any help or pointing me in the right direction would be greatly appreciated!