Тёмный

Controlling X-Plane 11 Using Arduino Master & Slave Microcontrollers (Leonardo & Mega 2560) 

Fun of Flying
Подписаться 1,5 тыс.
Просмотров 1,9 тыс.
50% 1

In this video I will show you how to control X-Plane 11 with two microcontrollers, one acting as a MASTER device (Arduino Leonardo) and the other acting as a SLAVE device (Arduino Mega 2560).
I will also show you how to physically connect all of the devices together in a circuit containing seven toggle switches and how to write the Arduino sketch code required for both the MASTER and SLAVE microcontrollers.
#Arduino #MasterSlave #XPlane11

Опубликовано:

 

17 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 17   
@garethbarry3825
@garethbarry3825 9 месяцев назад
Watched your previous video regarding this problem and then i found this! I will spread this video far and wide in the DCS community because it really is an issue for people with the new IDE update
@funofflying15
@funofflying15 9 месяцев назад
Thank you my friend, that's very kind of you :-)
@garethbarry3825
@garethbarry3825 9 месяцев назад
@@funofflying15 Just did it and it works perfectly- this is after me trying to get shift registers to work for weeks without success - I also tried a PCF8575 i2c but it seemed to clash with the joystick library. Anyays, doing it this way opens up a whole bunch of options and honestly doesn't seem any more difficult than other methods of adding inputs. Also not really more expensive.
@Svetge7
@Svetge7 2 года назад
Hello Paul! Each subsequent video becomes more and more interesting and useful for me, but I admit I will have a big problem with the sketch files. I wish you success and health!
@funofflying15
@funofflying15 2 года назад
Good morning Tsvetko, I hope that you are keeping well :-) Yes I agree, the Arduino IDE sketch code can be very confusing to understand and quite daunting for anyone new to the subject. It's worth noting however, that when I first started researching this stuff just 10 months ago, I had absolutely no computer programming experience whatsoever, so if I can do it, then I'm sure that anyone else could do it as well! With that in mind and if you are working on a project to build a home cockpit set up, then please let me know if I can help you in anyway? Kind regards and good luck, Paul in the UK :-)
@80aj
@80aj 6 месяцев назад
This is an epic idea. I have around 12 Arduinos laying around that I was sure during the pandemic I was going to use. How can we get a copy of that code library?
@funofflying15
@funofflying15 6 месяцев назад
Hi again As I like to think of my RU-vid channel as being a learning platform, it is hoped that viewers will have a go at writing their own codes, using the information provided. For that reason, I do not usually issue full codes on request. However, if you're really stuck, then please email me at funofflying@gmail.com for further assistance. Kind regards Paul (Bedford, UK)
@garethbarry3825
@garethbarry3825 9 месяцев назад
I wish i could double like this video
@homeworxchannel4120
@homeworxchannel4120 10 месяцев назад
So idk if I missed it but I didn't see how the board appeared in the game. Since you did keyboard would it appear as a key to be mapped or does it appear as a button like a joystick?
@funofflying15
@funofflying15 10 месяцев назад
Hi there, sorry I’m currently away from home, but if memory serves, the slave microcontroller receives signals from the physical toggle switches and passes that data to the master microcontroller. The master then issues keyboard commands to X-Plane, which then have to be assigned as required, for example, to the beacon light switch in the virtual cockpit. Neither microcontroller in this case are considered HID’s or human interface devices recognised by Windows. Hope this makes sense? Kind regards Paul
@mauriciocamataful
@mauriciocamataful 2 года назад
Hello Paul, how are you my friend? I hope fine. As always, it is wonderful video, very clear and very useful. I started a project of a "generic" home cockpit based on Xplane 11, 737 Zibo mode and Arduino micro controller. I called generic as it will be not "true" 737 cockpit, just "based on". But I have a question, you make clear that is possible to input signals from external hardware to the simulator via Arduino Leonardo, but how about output? I mean, like a LCD, is it possible to have this kind of output without a third part software ? Thanks a lot and best regards
@funofflying15
@funofflying15 2 года назад
Hi Mauricio, I’m keeping very well my friend and thanks again for your lovely words 😎 As it happens, I’ve been researching how to extract data from X-Plane 11, such as radio frequencies to be displayed on external LCD displays, but haven’t been able to figure it out yet! It must be possible, but from what I’ve seen so far, the method requires sending UDP messages and looks very complicated 😳 I will keep researching however and will let you know if I find out how to do it? Kind regards Paul 😎
@humberto367
@humberto367 2 года назад
hello Paul! your videos are very good, you should build the F-16 home cockpit, in my F-16 home cockpit, I will also use Arduino Mega and the 57u pokey boards, but I still don't know how to do it, I will be using F4toserial in the simulator👍💯🪂
@funofflying15
@funofflying15 2 года назад
Hi Humberto, many thanks again for your kind words 😎 Is the F-16 cockpit that you are building for use with DCS? I have downloaded the basic version of DCS but the two aircraft that ship with it are very basic and have low graphics quality. With that in mind, I have decided to purchase the F-16 in order to see what is possible as far as Arduino and Touch Portal are concerned? Unfortunately I have no experience of the PoKeys 57U board so can’t advise on it use, or even if it can communicate with an Arduino board? Good luck though with your trials 😊 Kind regards Paul
Далее
I2C Part 1 - Using 2 Arduinos
25:51
Просмотров 413 тыс.
Electromagnetic Aircraft Launcher
15:09
Просмотров 1,5 млн
How 3 Phase Power works: why 3 phases?
14:41
Просмотров 987 тыс.
I Built The First LAMINAR FLOW ROCKET ENGINE
15:51
Hacking a weird TV censoring device
20:59
Просмотров 3,1 млн