amido Posted January 13, 2021 Share Posted January 13, 2021 Goodmorning everyone, I present to you my project of the "BOX COCKPIT" is in continuous processing ..... 3 Link to comment Share on other sites More sharing options...
amido Posted January 13, 2021 Author Share Posted January 13, 2021 Link to comment Share on other sites More sharing options...
amido Posted January 13, 2021 Author Share Posted January 13, 2021 It's open ufc under construction all in plywood and mfd 1 Link to comment Share on other sites More sharing options...
streakeagle Posted January 14, 2021 Share Posted January 14, 2021 That is very cool and practical. Having the MFDs mounted like that is a big step up from having them sitting on a desk (I have yet to mount mine). I really love the fold-up box cockpits that turn into a bench that looks and functions like professionally built furniture, useful for having the cockpit in a public area of the house when one is married whereas I have always had to hide my PC desk and cockpit seat/throttle console in a room that is out of sight. [sIGPIC][/sIGPIC] Link to comment Share on other sites More sharing options...
amido Posted January 19, 2021 Author Share Posted January 19, 2021 ufc almost completed, now we go to connections and soldering 1 Link to comment Share on other sites More sharing options...
amido Posted February 1, 2021 Author Share Posted February 1, 2021 I need your help. i'm testing the ufc to see if everything works before finally mounting it, but i'm having trouble with the keys. when you press them some send more impulses at the same time (example: I press n ° 1 and more n ° 1 appear in the display) I also tried to change the button because I thought it was defective but nothing. that it is a problem with the GND line that I connected in sequence between all the buttons? I thank those who can give me an answer. Link to comment Share on other sites More sharing options...
amido Posted February 2, 2021 Author Share Posted February 2, 2021 anyone who can help me solve the problem? Link to comment Share on other sites More sharing options...
Lobinjaevel Posted February 2, 2021 Share Posted February 2, 2021 What USB board are you using? Link to comment Share on other sites More sharing options...
amido Posted February 2, 2021 Author Share Posted February 2, 2021 (edited) use of arduino mega 2560 card with dcs bios Edited February 2, 2021 by amido Link to comment Share on other sites More sharing options...
SnapRoll Posted February 2, 2021 Share Posted February 2, 2021 On 2/1/2021 at 8:41 AM, amido said: I need your help. i'm testing the ufc to see if everything works before finally mounting it, but i'm having trouble with the keys. when you press them some send more impulses at the same time (example: I press n ° 1 and more n ° 1 appear in the display) I also tried to change the button because I thought it was defective but nothing. that it is a problem with the GND line that I connected in sequence between all the buttons? I thank those who can give me an answer. The most likely cause is switch bouncing, which is normal for mechanical switches. I do not know DCS BIOS but it is more then likely offering a delay function whereas it does not accept additional "button presses" for a certain amount of time. Set it to 50ms or something and you will be fine. PC Specs: Win10, 7800X3D, 64GB DDR5CL30@6000Mhz, ASUS ROG STRIX X670E-F, MSI RTX 4090 Suprim X, 2x Samsung 990 Pro 2TB, LG OLED42C2, Pico 4 Flight Sim Gear: VPC MongoosT-50CM2 Grip with WarBRD Base and 6cm extension, VPC MongoosT-50CM3 Throttle, VPC SharKa-50 Collective Grip with Rotor TCS Plus Base, BRD-F1 Rudders(Su-35), 3x8"LCD 1024x768 with TM-MFDs, DIY dashboard with 60 buttons and 8 axis MMJOY2, POV-HAT(no TrackIR) Aircraft: F/A-18C, F-16C, F-14, F-5E, Mig-21bis, Mig-15bis, AH-64D, Mi-24P, Mi-8MTV2, Black Shark 2 & 3, Uh-1H, FC3, SpitfireLFMkIX, P-51D, I-16, Mosquito FB VI, Bf109K-4 Terrains: NTTR, Normandy, Persian Gulf, Syria, Channel, Sinai Tech: WWII Assets Pack, Supercarrier Link to comment Share on other sites More sharing options...
amido Posted February 3, 2021 Author Share Posted February 3, 2021 thanks a lot snaproll, now I have to understand how to modify the .lua file to give the delay to the various inputs. if someone knows how dcs bios works and the lua file makes me a great pleasure because i am not an expert in computer programming. thank you for your invaluable help Link to comment Share on other sites More sharing options...
SnapRoll Posted February 3, 2021 Share Posted February 3, 2021 1 hour ago, amido said: thanks a lot snaproll, now I have to understand how to modify the .lua file to give the delay to the various inputs. if someone knows how dcs bios works and the lua file makes me a great pleasure because i am not an expert in computer programming. thank you for your invaluable help I do not know what DCS BIOS can do and how easy it is to handle but I am not sure if this is a bit of an overkill for what you trying to achieve. If it is only about a simple button box and you have no programming experience, then you might be better off with MMJOY or FreeJoy. Check this out: MMJOY: https://github.com/MMjoy/mmjoy_en/wiki https://sites.google.com/site/mmjoyproject/fajly-dla-skacivania FreeJoy: https://github.com/FreeJoy-Team/FreeJoy The needed boards you can get very cheap from AliExpress. PC Specs: Win10, 7800X3D, 64GB DDR5CL30@6000Mhz, ASUS ROG STRIX X670E-F, MSI RTX 4090 Suprim X, 2x Samsung 990 Pro 2TB, LG OLED42C2, Pico 4 Flight Sim Gear: VPC MongoosT-50CM2 Grip with WarBRD Base and 6cm extension, VPC MongoosT-50CM3 Throttle, VPC SharKa-50 Collective Grip with Rotor TCS Plus Base, BRD-F1 Rudders(Su-35), 3x8"LCD 1024x768 with TM-MFDs, DIY dashboard with 60 buttons and 8 axis MMJOY2, POV-HAT(no TrackIR) Aircraft: F/A-18C, F-16C, F-14, F-5E, Mig-21bis, Mig-15bis, AH-64D, Mi-24P, Mi-8MTV2, Black Shark 2 & 3, Uh-1H, FC3, SpitfireLFMkIX, P-51D, I-16, Mosquito FB VI, Bf109K-4 Terrains: NTTR, Normandy, Persian Gulf, Syria, Channel, Sinai Tech: WWII Assets Pack, Supercarrier Link to comment Share on other sites More sharing options...
amido Posted February 3, 2021 Author Share Posted February 3, 2021 thanks, i will try with freejoy to see if i can solve the problem, i searched in the files but i did not find if it also works with mega 2560 card or only with leonardo. Link to comment Share on other sites More sharing options...
amido Posted February 23, 2021 Author Share Posted February 23, 2021 thank you all for the help you have given me to solve the problem. now everything works perfectly, I only have button n ° 2 which occasionally gives me the ghost signal. here is the completed ufc. as soon as I can find the way to mill the plexy I make the new front panels, for now I'm happy !! thanks thanks thanks!! Link to comment Share on other sites More sharing options...
amido Posted February 27, 2021 Author Share Posted February 27, 2021 hello everyone, I would like to insert these on my ufc, how many can I install on a mega 2560 card? thank you Link to comment Share on other sites More sharing options...
crash test pilot Posted February 27, 2021 Share Posted February 27, 2021 (edited) Short answer? Well - one. Long answer? One. I2C devices like these share the sck and sda pins ( on a mega d20 and d21) and are distinguished by hardware-set adresses, which you cannot change on these displays. But you can use an I2C-multiplexer for up to 8 devices. https://www.ebay.de/itm/TCA9548A-I2C-IIC-Multiplexer-Breakout-Board-8-Kanal-ErweiterungsplDC/233803958667 Edited February 27, 2021 by crash test pilot Link to comment Share on other sites More sharing options...
amido Posted March 3, 2021 Author Share Posted March 3, 2021 thank you very much, but how does it work? forgive me but for me it is the first time that I face an electronics job. Link to comment Share on other sites More sharing options...
crash test pilot Posted March 3, 2021 Share Posted March 3, 2021 Here is a good walktrough: https://learn.adafruit.com/adafruit-tca9548a-1-to-8-i2c-multiplexer-breakout/overview Link to comment Share on other sites More sharing options...
amido Posted March 9, 2021 Author Share Posted March 9, 2021 thanks, I'll do a test ..... for the arduino code just copy the line in DCS bios? Link to comment Share on other sites More sharing options...
amido Posted March 11, 2021 Author Share Posted March 11, 2021 well ...... this weekend the material should arrive (in the meantime I try with 2 screens), how do I enter the data with DCS BIOS in arduino? Link to comment Share on other sites More sharing options...
crash test pilot Posted March 12, 2021 Share Posted March 12, 2021 As an example, here is my a-10 fuel quantity display sketch using the 0.91 OLED. It may not be the most sophisticated solution but works: f5.ino Link to comment Share on other sites More sharing options...
crash test pilot Posted March 12, 2021 Share Posted March 12, 2021 Maybe a more easy example would be my A-10 TACAN. It uses a 1.3 OLED with a SH1106 chip instead of the SSD1306 chip of the 0.91 OLED. The if-clause was needed because the fuel display output of DCS-BIOS was meant for a servo and ranges from 0 to 65535 whereas i wanted to display numbers 0 -9 and needed to prevent a massive flickering. r8.ino Goddamn, how do i post code? Link to comment Share on other sites More sharing options...
Mr. Big.Biggs Posted March 12, 2021 Share Posted March 12, 2021 On 1/13/2021 at 8:13 PM, streakeagle said: That is very cool and practical. Having the MFDs mounted like that is a big step up from having them sitting on a desk (I have yet to mount mine). I really love the fold-up box cockpits that turn into a bench that looks and functions like professionally built furniture, useful for having the cockpit in a public area of the house when one is married whereas I have always had to hide my PC desk and cockpit seat/throttle console in a room that is out of sight. Stole this idea off of the web. I9 (5Ghz turbo)2080ti 64Gb 3200 ram. 3 drives. A sata 2tb storage and 2 M.2 drives. 1 is 1tb, 1 is 500gb. Valve Index, Virpil t50 cm2 stick, t50 base and v3 throttle w mini stick. MFG crosswind pedals. Link to comment Share on other sites More sharing options...
amido Posted March 24, 2021 Author Share Posted March 24, 2021 (edited) i have tried several times but arduino always gives me error. which libraries should I enter? how is the code written to read more oled? thanks for anyone who can answer Edited March 24, 2021 by amido Link to comment Share on other sites More sharing options...
amido Posted March 17, 2022 Author Share Posted March 17, 2022 (edited) hello, I made a panel of the airplane gear lever but the light on the lever does not turn on. I am attaching the arduino diagram what is it that I am wrong Edited March 17, 2022 by amido Link to comment Share on other sites More sharing options...
Recommended Posts