Jump to content

Kenpilot

Members
  • Posts

    274
  • Joined

  • Last visited

Everything posted by Kenpilot

  1. Awesome, thanks so much guys. I'll try this out tonight.
  2. I'm trying to use rotary encoders for changing the ILS frequencies in my A10 simpit but apparently they aren't "sensitive" enough? One turn/click changes the frequency too many numbers so to speak. For example, it will go from 108.00 to 110.00 and skip over 109.00, unless I carefully turn the knob and leave it half way in between clicks/detents. I'm using "20 pulse" encoders. Do I need a different encoder or is there something in the arduino sketch that can be changed to make the encoder more sensitive with each turn of the knobs to speak? Thanks!
  3. Thanks guys, I'm just going to get a 20x2 display and use it. Thanks for all the help!!
  4. Awesome, I'll try that. Thanks Vinc!
  5. It works!! But the entire display doesn't show on a 16x2 display. Do people use these displays and able to display the entire CMSP readout? If so, how? I'm guessing I'll need a 20x2 instead.
  6. Thanks Vinc, I will definitely give all of this a shot and hopefully I can figure it out! As always, thanks for your time and assistance!!
  7. I understand you've already told me that, and I looked at the library, but I don't know anything about coding and I'm very new to Arduino. I know how to download libraries and copy and past DCS Bios sketches, that's about it unfortunately. I'm slowly learning about coding, but it's going to take me a while before I'm writing my own sketches.
  8. Well I'm back at trying to get my CMSP display up and running. The display I'm using is here: https://www.microcenter.com/product/632704/inland-1602-i2c-lcd-display-module Any help with a sketch that will display the A10 CMSP using this display would be greatly appreciated! Vinc sent me this sketch but it's not displaying anything. The sketch compiles and uploads just fine but nothing is displayed. /* 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 the library code: #include <LiquidCrystal.h> // initialize the library by associating any needed LCD interface pin // with the arduino pin number it is connected to const int rs = 12, en = 11, d4 = 10, d5 = 9, d6 = 8, d7 = 7; LiquidCrystal lcd(rs, en, d4, d5, d6, d7); /* paste code snippets from the reference documentation here */ // ----- print the first line to the LCD display ----- void onCmsp1Change(char* newValue) { lcd.setCursor(0,0); lcd.print(newValue); } DcsBios::StringBuffer<19> cmsp1Buffer(0x1000, onCmsp1Change); // ----- print the second line to the LCD display ----- void onCmsp2Change(char* newValue) { lcd.setCursor(0,1); lcd.print(newValue); } DcsBios::StringBuffer<19> cmsp2Buffer(0x1014, onCmsp2Change); void setup() { DcsBios::setup(); lcd.begin(20, 2); lcd.clear(); } void loop() { DcsBios::loop(); }
  9. It should be in Saved Games>DCS>Scripts>Export.lua
  10. Here's what helped me with the export.lua that I mentioned earlier: https://github.com/DCS-Skunkworks/dcs-bios/wiki/Troubleshooting
  11. Did you check your export.lua? I added a buttkicker to my sim and apparently the order of command lines in the .Lua is important. The buttkicker software I was using was placed in the wrong order in my .Lua, and when they did the latest DCS update, all my panels stopped working. I deleted the buttkicker software from the .Lua and they worked again. I'll have to look for the documentation that I found that explained this and I'll post it here. Not saying it's definitely the issue, as Vinc could definitely be right with the protocol changes, but I would look at your .Lua and see if anything is in there that you can delete, like buttkicker software commands, and check your switches again, or check the order of the commands in the .Lua.
  12. +1. My export.lua was overwritten and none of my panels worked either.
  13. I had nothing but problems when I tried using USB Hubs, powered and non powered, cheap and expensive ones. Have you tried bypassing the hubs altogether and plugged all of your arduinos into their own USB Port on your PC to rule out the hubs being your issue? I was able to eventually get 3 hubs to work without issues, but I cant have any more than 2 arduinos plugged in to each of them or I start to have issues.
  14. Thanks Vinc! I'll be trying this tonight or tomorrow. I'll PM you with any issues or further questions. Thanks so much for your help!!
  15. Thanks Vinc. The 4 digit 7 segment displays I have do have the max7219s attached I believe, so thank you for the suggeston for using this library. Unfortunately I still have no idea how the code should be written in the sketch as I know nothing about writing code. Up until now, I have just copied and pasted the appropriate code from BORT in to my arduino sketches. I was hoping someone that knows how to write code and has already written the code for these displays, wouldn't mind sharing it for those of us without coding knowledge and experience. If there's any kind of tutorial on writing code for these displays with regard to using them in DCS, please let me know, as I'd love to learn as well. Thanks!
  16. Building my A10 VHF Comm panels and I noticed for the frequency display and output for the Preselect Display, DCS Bios has you write your own code for the displays, and I'm clueless when it comes to this. Does anyone have a sketch I can "borrow" for these displays. For the Frequency display, I'm using an 8 digit 7 segmented LED display, (only 6 digits are visible in my panel) and 2 single digit 7 segmented displays for the preselect display. Thanks!!
  17. Okay thanks, I'll look in the files again. Looked before but didn't see anything. But now that I know what I'm looking for I might find it lol
  18. I play DCS on my desktop gaming pc, which of course also has DCS Bios and BORT installed. However, I want to be able to look up the BORT buttons/switches/knobs sketches, etc from my laptop for when I'm building my panels for reference. I've tried installing BORT on my laptop but apparently DCS and DCS Bios need to be loaded on the same computer to be able to look up the BORT information from what I'm experiencing. Does anyone have a list, or know where I can find a list, of all the BORT sketches, etc. for the A10 without having to run BORT? Thanks!
  19. I've got it figured out, thanks guys!
  20. Do you have any OLED suggestions? With links to where I can purchase them in the US if possible? I have zero experience with LED matrix displays and it definitely looks like a lot more wiring/work. It looks great though!
  21. Excuse my stupidity but what's the SOCAT?
  22. They are DCS Bios sketches. I think I've tried just restarting the mission and it didn't work, but I'll try it again. Thanks for the response!
  23. Any time I build a panel and or write/edit an arduino sketch, I of course startup DCS and test it in the game. I then will completely exit out of DCS to edit the Arduino sketch, upload it, and then start up DCS again to test it again. Is there any kind of short cut to not have to completely exit out of DCS and restart it once you've made an arduino sketch edit and upload? This is obviously very time consuming. I've tried just minimizing DCS but it doesn't recognize the new arduino sketch for the panel when I've tried it. Thanks for any suggestions!
  24. Hey guys, what is everyone using for their A10 CMSC and CMSP displays? I was using these https://www.ebay.com/itm/165013228347 but the one I had up and running is no longer working and I can only find them on ebay from China, and it takes about a month to get them to the US. I was hoping to find something here in the US that I can use that I can get a lot quicker, Amazon would be great. I'm using them with DCS Bios and Arduino. Any suggestions would be greatly appreciated!
  25. I have not figured it out yet so thanks for the reply!! I'll give this a shot when I find some time to work on it. Thanks again!!
×
×
  • Create New...