-
Posts
236 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Everything posted by Roger01
-
Hello, do you have found a solution for this? It works now? Thanks a lot.
-
[DSC Bios & A10C] Best way to choice and make a CDU Screen (and button)
Roger01 replied to Roger01's topic in Home Cockpits
Stepper motor get a "reset" position (or sync) when DCS bios start? -
[DSC Bios & A10C] Best way to choice and make a CDU Screen (and button)
Roger01 replied to Roger01's topic in Home Cockpits
I'm not very smart ;) but I read a lot this (and other) forum, to see the maximum of cockpits and constructions to know what I must to do. I'm seeking (a long time after) for stepper motors too (gauge) but I see is realy hard to make a 360° without return back like this (this is a 180° servo) : -
Hi, What MEGA do you use for Master RS485? There's : https://fr.aliexpress.com/item/Mega-2560-PROMINI-5V-ATmega2560-16AU-with-male-pinheaders-Compatible-for-Arduino-Mega-2560/32802310906.html With pin BUT only 6/9v VIN And this MEGA : https://fr.aliexpress.com/item/Free-shipping-MEGA-2560-R3-ATmega2560-R3-AVR-USB-board-Free-USB-Cable-for-Arduino-2560/32714983256.html 6/12v VIN but without pin I think the best is to use 12v for all Arduino board in VIN. 5V won't run (6v mini) if I use an old PC powerDC. Thanks a lot, and nice to see your cockpit!
-
[DSC Bios & A10C] Best way to choice and make a CDU Screen (and button)
Roger01 replied to Roger01's topic in Home Cockpits
Thanks for pictures. For the LCD, it's not a problem vite my 3D Print. I can make a support plate. For the UFC and CDU I was making a pcb to do a matrix output, but I need to buy UFC and CDU to get the dimensions (milimeters) to do that. And I have a glue gun if needed to maintain the pcb. I note for the annunciator. [Edit] Wow 12€ for shipping cost only for the annunciator even if I buy panels, 12€ in addition of the other shipping cost. -
[DSC Bios & A10C] Best way to choice and make a CDU Screen (and button)
Roger01 replied to Roger01's topic in Home Cockpits
Thanks again for the reply. I think I go to use an Adafruit 3.5" for the 3.3v and a DUE arduino. (this must work no? : https://fr.aliexpress.com/item/Shippping-libre-LCD-module-3-5-pouce-TFT-LCD-cran-3-5-UNO-R3-Conseil-et/32679537214.html ) I'm looking to buy this : http://pcflights.com/index.php?main_page=product_info&cPath=47_62_64&products_id=358 (and by extension, this : http://pcflights.com/index.php?main_page=product_info&cPath=47_62_65&products_id=340 ) Because thinking about building the panel drives me crazy (a lot of engraved button, don't find any button like this). So it's noticed : "Panel is designed for using with 3.5" LCD/TFT display." It's not the cheaper solution, but I don't have a CNC machine etc.. juste a small 3D Print. -
[DSC Bios & A10C] Best way to choice and make a CDU Screen (and button)
Roger01 replied to Roger01's topic in Home Cockpits
I ask if they have a Green LCD, but they don't have. :( He (vendor) say to buy a TFT (beurk!) or a OLED. But there's no 160*120 (minimum pixel) OLED Screen. So, I think about to make everything in orange. -
[DSC Bios & A10C] Best way to choice and make a CDU Screen (and button)
Roger01 replied to Roger01's topic in Home Cockpits
Thanks for the tip, I did't know this thing. I just need to buy 2 of it (8 Canals) https://fr.aliexpress.com/item/I2C-IIC-8-Channel-Logic-Level-Converter-Module-Bi-Directional-for-Arduino/32783676584.html But using a shifter like this, that will not cause interference? You confirme for now, the 160*128 LCD + an arduino (Due is better than Zero no? More frequency CPU) + this shifter, can run the CDU display? (If you know a LCD 160*120/128 GREEN/BLACK background, I don't say no for a link! :D ) [EDIT] I prefere do not buy a TFT Screen because of that thing : -
[DSC Bios & A10C] Best way to choice and make a CDU Screen (and button)
Roger01 replied to Roger01's topic in Home Cockpits
I see the datasheet for the and it say : So I think is impossible : Output voltage "H" VOH VDD-0.3 VDD V : pin DB0@DB7 VDD = 4.5v mini so 4.5-0.3 = 4.2v mini. :( -
With the Max7219 chip you can built this : The code I use : #define DCSBIOS_IRQ_SERIAL #include <DcsBios.h> #include <LedControl.h> unsigned long previousMillis = 0; unsigned long currentMillis = millis(); // Arduino Pin 5 to DIN, 7 to Clk, 6 to LOAD, no.of devices is 1 LedControl lc=LedControl(5,7,6,1); void setup() { DcsBios::setup(); // Initialize the MAX7219 device lc.shutdown(0,false); // Enable display lc.setIntensity(0,5); // Set brightness level (0 is min, 15 is max) lc.clearDisplay(0); // Clear display register } DcsBios::Switch2Pos eppApuGenPwr("EPP_APU_GEN_PWR", 10); void onMasterCautionChange(unsigned int newValue) { if (newValue==1) { previousMillis = currentMillis; } } DcsBios::IntegerBuffer masterCautionBuffer(0x1012, 0x0800, 11, onMasterCautionChange); void loop() { currentMillis = millis(); if (currentMillis - previousMillis < 400) { lc.setRow(0,7,B01110110); lc.setRow(0,6,B01110111); lc.setRow(0,5,B01011011); lc.setRow(0,4,B00001111); lc.setRow(0,3,B01001111); lc.setRow(0,2,B00000101); lc.setRow(0,1,B10000000); lc.setRow(0,0,B01001110); } else { lc.setRow(0,7,B01011011); lc.setRow(0,6,B00111011); lc.setRow(0,5,B11011011); lc.setRow(0,4,B00000000); lc.setRow(0,3,B01111110); lc.setRow(0,2,B01010111); lc.setRow(0,1,B00000000); lc.setRow(0,0,B00000000); } DcsBios::loop(); } The important part is : #include <LedControl.h> LedControl lc=LedControl(5,7,6,1); // Arduino Pin 5 to DIN, 7 to Clk, 6 to LOAD, no.of devices is 1 lc.shutdown(0,false); // Enable display lc.setIntensity(0,5); // Set brightness level (0 is min, 15 is max) lc.clearDisplay(0); // Clear display register lc.setRow is for controling every segment but there are others command like this. lc.setDigit lc.setLed lc.setChar etc..
-
Wow, perfect, I want to do a cockpit like that. Compact but functional. Great work!
-
Hoo RS485 is already included in dcs bios, perfect! I found the RS485 exemple, thanks! Using a PC power supply is a good idea. I read for powering Arduino is : 5v by USB port 6-20V (7-12v better) by the Vin pin or the jack. (not 5v cause Arduino do a -1v, drop of tension by this way) So, how can I send 5v by the 5v pin? It's not a 5v out? Else, If I powering all arduino with the 5v, so the 12v no use at all? Thanks again!
-
[DSC Bios & A10C] Best way to choice and make a CDU Screen (and button)
Roger01 replied to Roger01's topic in Home Cockpits
Ok thanks a lot for your precision. -
Is there a thread who explain the code we need for the rs485 lan? I see this : #define DCSBIOS_RS485_SLAVE XX For the slave, but I don't find what I must write for the master. Any help? And so, I need 2/3 Mega 2560 Pro for RS485 Master: https://fr.aliexpress.com/item/Mega-2560-PRO-Embed-CH340G-ATmega2560-16AU-with-male-pinheaders-Compatible-for-Arduino-Mega-2560/32801785024.html? And, X unit of 2560 Pro MINI and Micro for Slave : https://fr.aliexpress.com/item/Mega-2560-PROMINI-5V-ATmega2560-16AU-with-male-pinheaders-Compatible-for-Arduino-Mega-2560/32802310906.html? https://fr.aliexpress.com/item/Pro-Micro-ATmega32U4-5V-16MHz-Replace-ATmega328-For-Arduino-Pro-Mini-With-2-Row-Pin-Header/32808519179.html Right? A 12v transformer with 3A, it's enough to power everything (all arduino board)? Thanks a lot!
-
[DSC Bios & A10C] Best way to choice and make a CDU Screen (and button)
Roger01 replied to Roger01's topic in Home Cockpits
I found this (orange.. no green lcd ): https://fr.aliexpress.com/item/2pcs-lots-1pcs-UNO-R3-MEGA328P-with-usb-2-4-Inch-TFT-Touch-LCD-Screen-Module/2029995980.html? 160 * 128 dots orange (black background). I think it work with arduino and dcs bios? Why I want to use a LCD on arduino? Because with the LCD 5" the writing font is affected by the anti aliasing and it's not very clear. And the backlight of the 5" LCD (TFT) is bad (too shinny, etc...) -
Hi I have a 5" hdmi screen (216*160mm visible) and I want to use it for the CDU. But, there's another best way? I mean the 5" screen is a TFT LCD and have not a real black background coz angles, like this : http://cdn2.ubergizmo.com/wp-content/uploads/2016/06/tft-vs-ips-view-angle.jpg So, is there any other solution like a screen with only green dot/led or other? If not, I have this screen : http://www.kumantech.com/kuman-5quot-inch-resistive-800x480-hdmi-tft-lcd-display-screen-module-with-touch-panel-pen-sd-card-for-raspberry-pi-3-2-model-b-rpi-1-b-b-a-a-sc5a_p0088.html I think I can't connect it to an Arduino, right? And for keayboard, I think this buttons are great? https://fr.aliexpress.com/item/50-pcs-B3F-Tactile-Bouton-Poussoir-A14-couleur-chapeau-50-pcs-transparent-cap-50-pcs-Momentan/32831037675.html? Thanks a lot!
-
It works! Thanks for your help! It's not a clear code, but it's better than nothing. #define DCSBIOS_IRQ_SERIAL #include <DcsBios.h> #include <LedControl.h> unsigned long previousMillis = 0; unsigned long currentMillis = millis(); // Arduino Pin 5 to DIN, 7 to Clk, 6 to LOAD, no.of devices is 1 LedControl lc=LedControl(5,7,6,1); void setup() { DcsBios::setup(); // Initialize the MAX7219 device lc.shutdown(0,false); // Enable display lc.setIntensity(0,5); // Set brightness level (0 is min, 15 is max) lc.clearDisplay(0); // Clear display register } DcsBios::Switch2Pos eppApuGenPwr("EPP_APU_GEN_PWR", 10); void onMasterCautionChange(unsigned int newValue) { if (newValue==1) { previousMillis = currentMillis; } } DcsBios::IntegerBuffer masterCautionBuffer(0x1012, 0x0800, 11, onMasterCautionChange); void loop() { currentMillis = millis(); if (currentMillis - previousMillis < 400) { lc.setRow(0,7,B01110110); lc.setRow(0,6,B01110111); lc.setRow(0,5,B01011011); lc.setRow(0,4,B00001111); lc.setRow(0,3,B01001111); lc.setRow(0,2,B00000101); lc.setRow(0,1,B10000000); lc.setRow(0,0,B01001110); } else { lc.setRow(0,7,B01011011); lc.setRow(0,6,B00111011); lc.setRow(0,5,B11011011); lc.setRow(0,4,B00000000); lc.setRow(0,3,B01111110); lc.setRow(0,2,B01010111); lc.setRow(0,1,B00000000); lc.setRow(0,0,B00000000); } DcsBios::loop(); }
-
This is not my question, I want to do some things like a text with a 7-segment when the Master Caution is on, if possible.
-
Hi, I was makking a 7-segment for the Master Caution. But, I have only found the Master Caution LED and the 7-segment twinkle: How can I do, to run a code then Master Caution is active? (not the LED but the Master Caution itself). I want to showing the Master Caution all the time among other things. Any idea? Thanks!:thumbup:
-
I want to showing the Master Caution all the time (or another CODE when the Master Caution is active) on my 7-segment indeed. :smartass: I make a new thread for that.
-
Thanks for reply. The DcsBios::Switch2Pos ufcMasterCaution("UFC_MASTER_CAUTION", PIN); Is only when I push the Master Caution reset button, no? I have trying with this code and It work (LCD 7 segment) only if I push the reset button.
-
Hi guys! DCS Bios is very perfect for me, but is there a command line for the Master Caution? (not the led!) Cause this : void onMasterCautionChange(unsigned int newValue) { /* your code here */ } DcsBios::IntegerBuffer masterCautionBuffer(0x1012, 0x0800, 11, onMasterCautionChange); It's work only if the LED (ingame) is ON, so the code inside "twinkle" like this : I want a code who works all the time then the Master Caution (the fonction, not the led) is ON. Any idea? Thanks a lot! Ps: I'm noob with C and programmation.
-
Is it possible to export this to an android device or a second PC with Windows? Thanks, great job :)
-
Indeed... Thanks for the information :)