smirkza Posted July 22, 2014 Posted July 22, 2014 So, I guess the next question is where do I find the ID for all of the lights & switches in DCS. All of the ones I have found in the past follow this sequence - 513 L_MAIN_FUEL_LOW 514 R_MAIN_FUEL_LOW But these differ from the config.xml entries? I'm just practicing making lights turn on and off, to get my head around how it all fits together, then I'll move on to switches etc. Cheers, Smirkza
Boltz Posted July 22, 2014 Author Posted July 22, 2014 So, I guess the next question is where do I find the ID for all of the lights & switches in DCS. All of the ones I have found in the past follow this sequence - 513 L_MAIN_FUEL_LOW 514 R_MAIN_FUEL_LOW But these differ from the config.xml entries? I'm just practicing making lights turn on and off, to get my head around how it all fits together, then I'll move on to switches etc. I honestly cannot remember where they are defined in A2DCS. It has been so long since I worked not on the lua side of things. I have added this to my list of things to look at. Probably won't be this weekend as I'm away but hopefully the next. This is a nice list made by Devon Custard to show what you can export: http://deadfrogstudios.com/warthogpit/index.php?title=Reference_Data A-10C Cockpit Build Thread My YouTube Channel
smirkza Posted July 22, 2014 Posted July 22, 2014 Hey Boltz, Ah, no problem at all. Whenever you get around to it, be great! I've seen in some threads (and after looking at the main export.lua within DCS itself that you can export things like radio frequencies, HSI and ADI bearings etc? Is that something A2DCS can assist with too do you think? Thanks again, Smirks Cheers, Smirkza
Boltz Posted July 23, 2014 Author Posted July 23, 2014 It sure can when I get around to coding everything. I already have a test set of 7 segment displays showing me radio frequencies etc. A-10C Cockpit Build Thread My YouTube Channel
smirkza Posted July 24, 2014 Posted July 24, 2014 It sure can when I get around to coding everything. I already have a test set of 7 segment displays showing me radio frequencies etc. It's gonna be great! Can't wait! :thumbup: Cheers, Smirkza
ClayM Posted July 26, 2014 Posted July 26, 2014 Boltz Can you please explain to me ( well all of us I guess?? ) in a little more detail the method you ( we ) use for outputs. In this case digital outputs for LEDs. I am trying to build a warning light panel using direct outputs. No matrix or shift registers just one pin for one LED. In your WLP example everything is declared in the arduino.lua file. As well as the UFC master caution. Which ,by the way, is working fantastic. So.... how would we declare individual outputs in the arduino.lua? Sorry if I'm missing something simple here but tried a few different ways and I either got no LEDs working or they did not function properly. I ended up confused with how to modify the function ArduinoOutput() which I thought was where the changes needed to be after I deleted your gWLP declarations and added individual declarations for each output. Or.... Am I going about this COMPLETLY WRONG?? Thanks AGAIN
Boltz Posted July 27, 2014 Author Posted July 27, 2014 Hi ClayM, You certainly are not doing anything completely wrong. Your question is the same as smirks' and hopefully I can get you an answer tomorrow. I have been very busy with family stuff the past few days but now got some time for flight sim again. A-10C Cockpit Build Thread My YouTube Channel
Boltz Posted August 8, 2014 Author Posted August 8, 2014 Outputs are defined in the Arduino.lua file and then mapped to LEDs in the config file. If you are comfortable with basic lua editing and have done some programming then you should be able to see what is happening and add your own outputs. If not, you will need to wait till I can simplify the process and create a tutorial. Cheers, Boltz A-10C Cockpit Build Thread My YouTube Channel
mgsanna Posted August 8, 2014 Posted August 8, 2014 Hi Boltz, I think that a tutorial is the best solution for everyone, by the way your software is super super! With a little practise you can configure everything! Great keep on and make a little tutorial for the "mass"
ClayM Posted August 12, 2014 Posted August 12, 2014 Hi Boltz! I have completed most of my rewiring and have all my inputs setup. I just wanted to let you know that everything is working perfectly. Very reliable and consistent. Whenever anything goes wrong its always something that I did and not your software! Thanks again for this great program! Regarding the WLP, can you tell me the hardware you where using that your original config and arduino.lua files functioned with. I was thinking maybe instead of changing the software side to meet my needs I will change the hardware side to work with your original files. I just cant figure out what you where using??? Thanks for your help
mr.john_doe Posted August 12, 2014 Posted August 12, 2014 Hello, which buttons do you use for the ufc? I didn't find those rubberish caps for the microbuttons ...
ClayM Posted August 13, 2014 Posted August 13, 2014 Mr Doe I used these from Digi-key Omron SW452ND 9MM GREY ROUND KEYCAPS SW454ND 12MM GREY SQUARE KEYCAPS SW413ND TACTILE SWITCH Not really perfect but I chose them for function/price rather than looks. I can not guarantee those part numbers please confirm before ordering. The enter button on the UFC still is a problem for me. Currently just using a square keycap.
mr.john_doe Posted August 13, 2014 Posted August 13, 2014 Great, I have searched them for a long while. The itemnumbers are correct but have a dash in it: SW413-ND SW454-ND SW452-ND I will buy them. Where do you have arranged them? I think I will try a simple copper board with holes in it (in german Lochstreifenplatine - I don't know the english version ...) Greetings
TigersharkBAS Posted August 13, 2014 Posted August 13, 2014 Great, I have searched them for a long while. The itemnumbers are correct but have a dash in it: SW413-ND SW454-ND SW452-ND I will buy them. Where do you have arranged them? I think I will try a simple copper board with holes in it (in german Lochstreifenplatine - I don't know the english version ...) Greetings Prototyping board :-) [sIGPIC][/sIGPIC] Creator of: F-18C VFA-195 "Dambusters" 1998 CAG Livery https://forums.eagle.ru/showthread.php?t=213788 F-18C VFA-195 "Dambusters" July 2001 CAG Livery https://forums.eagle.ru/showthread.php?t=215950 Pilot avatars for DCS Logbook https://forums.eagle.ru/showthread.php?t=221160 How to make a DCS A-10C Panel http://forums.eagle.ru/showthread.php?t=65998
mgsanna Posted August 15, 2014 Posted August 15, 2014 (edited) Hello everybody, I ask Boltz to translate the entire post info and documentation about arduino2dcs in Italian, he agree totally and as soon as possible there would be a italian post about arduino2dcs so every italian cockpit builder could enjoy the possibility to use and config this wonderful software...... As stated before as soon as possible I'll translate the entire docs and I'll post a link in the italian forum Edited August 15, 2014 by mgsanna Correction
G00dnight Posted September 15, 2014 Posted September 15, 2014 @ Boltz. Firstly a great idea. I have a couple of Q's. I am confused by you saying you use serial because usb don't read outputs from DCS it will only do input to DCS. the reason for this is I setup your sketch on a mega with just the caution light connected and it works over usb. I have one of those led matrix cards and would like to do just the MC & WLP on one mega, can you show me a config file for === A mega id 02 on port 4, profile a-10c, outputs for Master Caution light & WLP using the led matrix card. BTW I have most of my switches and encoders wired into bodnar boards but have a spare arduino mega for later. AMD A8-5600K @ 4GHz, Radeon 7970 6Gig, 16 Gig Ram, Win 10 , 250 gig SSD, 40" Screen + 22 inch below, Track Ir, TMWH, Saitek combat pedals & a loose nut behind the stick :thumbup:
Boltz Posted September 15, 2014 Author Posted September 15, 2014 This is good timing since I have been working on an update. I am away from home at the moment so don't have access to the software. "usb don't read outputs from DCS it will only do input to DCS" A2DCS reads outputs like Helios and sends them to the Arduino. The Arduino does not connect directly to the software like an HID would. Currently the WLP can only be used with shift registers due to the way it is exported. It would need changes to the Arduino.lua to work directly but the update will require none of that. It has all exports for a number of modules and will make things a lot easier. I will be away this weekend as well so the update should be ready for the next. Sorry for the bad or absence of answers to your questions. Basically, if you wait for the update then it will work and save both of us a lot of work. Boltz 1 A-10C Cockpit Build Thread My YouTube Channel
ClayM Posted September 16, 2014 Posted September 16, 2014 Hi Boltz Great news about the update! Looking forward to it. I also have another question. I can't seem to get rotary switches to work properly(eg CMSP Mode). I have tried using different states like just using input on or input on and off in A2DCS for each position of the switch but I still get strange results. I assume its something with the debounce??? Any suggestions or examples?(maybe I should just wait for the update!?!) Also I would like to post my config.xml somewhere to help others and save them the headache of digging thru files. Its not complete in any way but may be useful to somebody. I encourage others who have spent hours trying to figure this out to do the same. Is it okay if I post it here? Thanks Clay
G00dnight Posted September 16, 2014 Posted September 16, 2014 Great news Boltz Thanks a lot for this. AMD A8-5600K @ 4GHz, Radeon 7970 6Gig, 16 Gig Ram, Win 10 , 250 gig SSD, 40" Screen + 22 inch below, Track Ir, TMWH, Saitek combat pedals & a loose nut behind the stick :thumbup:
Boltz Posted September 16, 2014 Author Posted September 16, 2014 Hi ClayM, Please do post your config file, I am sure it will help others. I hear your problem about rotary switches so please let me look in to it. If it is something to do with the debounce then it suggests to me that you are using "make before break" rotary switches which will short pins on the Arduino and cause all sorts of things to happen. "Break before make" should work. I will give it a try when I can. Boltz A-10C Cockpit Build Thread My YouTube Channel
ClayM Posted September 21, 2014 Posted September 21, 2014 Hi Boltz My rotary switches are all break before make. What I did notice is that if I turn the switches very slowly so that A2DCS has time to see the off states then the switch works fine. Anyways, here is my config file. Hope it may be useful to somebody. claymconfig.txt Thanks Boltzclaymconfig.txt
Boltz Posted October 27, 2014 Author Posted October 27, 2014 I apologise for not posting anything earlier. I have been spending most of my free time working on the pit so not been doing much of the software. The new version with separate profile files is finished. I just need to test it now. Also working on a small website which will be hosted shortly for this project. I will have it done by the end of the weekend. Boltz A-10C Cockpit Build Thread My YouTube Channel
ClayM Posted October 28, 2014 Posted October 28, 2014 Hello again Boltz! Glad to here your still working on the pit and your software. Looking forward to any future additions. When you have some time can please explain rotary encoders in a little more detail. Can't quite get them to work. Thanks
Boltz Posted October 28, 2014 Author Posted October 28, 2014 (edited) Website is up and running at http://www.it-eam.co.uk/boltz As of now no files will be available here on the forum. Thank you to everyone who has supported the software! Boltz Edited October 28, 2014 by Boltz A-10C Cockpit Build Thread My YouTube Channel
[FD]Ripper Posted December 25, 2014 Posted December 25, 2014 (edited) I want to know if it is working with the DCS 1.2.14 ??? I followed all the instructions but the witchcraft did not work. Edited December 25, 2014 by =AN=Ripper
Recommended Posts