iowahc Posted June 21, 2012 Posted June 21, 2012 Hello Pilots! I want to begin building my own home cockpit, but I have quite a lack of understanding how to achieve this. My idea is to build the panels with the switches and LEDs attached to my Arduino board with an Ethernet shield, and controlling DCS through the export.lua function. Can anyone give me some kind of tutorial on how to let the arduino communicate with the export.lua. and how to use the export.lua in a proper way? Best regards and thanks in advance :)
Waxi Posted June 21, 2012 Posted June 21, 2012 (edited) Looking at the Export.lua from HELIOS helped me a lot to understand how Export.lua works. In principle, you could use the Export.lua from HELIOS and program your Arduino to understand the message format used by HELIOS. Since I plan to use inexpensive self-made boards based on ATmega microcontrollers instead of full-fledged Arduino boards in my final components, I am currently using the Export.lua from HELIOS and a kind of extended TCP to serial bridge programmed in C#, which works pretty well so far. A discussion of both approaches (TCP bridge vs. direct Ethernet) can be found at the bottom of this website. Edited June 21, 2012 by Waxi
iowahc Posted June 21, 2012 Author Posted June 21, 2012 Well I actually found your way already, but i would like to use the ethernet shield. anyway. could you share some code on how to send and receive through your interface? the examples on your page only provides acces through a terminal and controlling the leds by commands. not with the export.lua. Could you give some advice? Best regards
iowahc Posted June 21, 2012 Author Posted June 21, 2012 Anyone could share their Arduino / Export.lua Code? to give me some hints on how to do it best? Best regards
Waxi Posted June 21, 2012 Posted June 21, 2012 Actually it's not my page. I just found it on the web. As I said, I am using the Export.lua provided by HELIOS, which is available here.
Recommended Posts