MobiFlight Community Support

Welcome to the forum for MobiFlight! Feel free to reach out to the community in case you have questions, issues or just want to share great ideas or details about your latest home cockpit project.

You like MobiFlight? Donate via PayPal and support the MobiFlight development. Thanks! 

icon
Avatar
MASMAZ
From: Italy
Posts: 27
hi
I have P3D v5 HF2 + prosim737, I have a motorized TQ I would like to stop using SIOC, so I bought an Arduino Mega 2560 Rev3 that I will configure with Mobiflight ...
I have to manage 3 servo motors (SPD + throttle) and a motor for the trim

can i handle all this with mobiflight?
on prosim I have to configure something or does it have nothing to do with it?

regards
Max
2022-03-03 15:29
Avatar
StephanHo
Moderator
From: EDDG, Germany
Posts: 1847
Supporter
Hi MASMAZ,

welcome to MobiFlight.

Yes, you can, I answered your question on Discord. Please look there
Grüße,
Stephan (Time: UTC+1)
2022-03-03 16:16
Avatar
MASMAZ
From: Italy
Posts: 27
:thumbup:
2022-03-03 19:02
Avatar
MASMAZ
From: Italy
Posts: 27
Hi

two more questions ... I have to check the BRK SPD .. in this item which one should I select?

https://drive.google.com/file/d/1ghGms-1KztimLeYhPr6ZEVC5maK_B-fd/view?usp=sharing

same thing for the two throttles ... which one should I select?

https://drive.google.com/file/d/1oTiOO4px-OmnZeFYXAbrpriXt32mNLDP/view?usp=sharing

in addition on this image taken from the Megaflight site. I see that here is the FUIPC folder, it does not appear in my installation ... how can I do it?

https://drive.google.com/file/d/16XvYkIV2ALwb_crlxCvLS2N9OIla5GYN/view?usp=sharing

regards
Max
2022-03-04 19:27
Avatar
MASMAZ
From: Italy
Posts: 27
another doubt is how to connect 3 servos on the board in these images it shows only 1 servo but where do I connect the others?
I have doubts on the ground and on the positive

https://drive.google.com/file/d/14HZa6Y5e7t6H6gRNTkIF8p85X4dfEbgY/view?usp=sharing

https://drive.google.com/file/d/14KldT7HWld52Def0mCGbKXYSjRffgTCl/view?usp=sharing
2022-03-04 20:55
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 5979
Supporter
With current Firmware the Limit for Servos is "10" per MEGA Board.
In case a Servo not need a special Pin Typ you can wire your servos free from Pin 2 to Pin 53 ( and also from A0 to A15 as i know, but here i´m not sure)

Also you need to understand.... the GRD and 5V are shared on the Mega.... Means you can in theory also connect multiple Motors on one Pin ( Paralell)
BUT
Take Care about the used Power.
Megas allow a Maximum of 800mA ..... USB support a Maximum of 500mA.
Addiditional every GRD/5V as i know is internal build for 200mA .... 4 Circuits = 800mA overall !

So its recommend to wire Devices with high Power requirement ( Motors, Displays and so on) via a External Device.
Simply connect the External GRD to the GRD of the Mega to have the same potential !
Then Power comes no longer from Mega.... Its done by the external Device !

And finally.... For sure it is no problem to power all by the Mega itself aslong you get sure you NEVER overdrive the limits !
Good Luck !
2022-03-04 23:47
Avatar
MASMAZ
From: Italy
Posts: 27
2022-03-06 14:06
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 5979
Supporter
No !

At first... You not need external power to the MEGA.... the Mega is powerd via USB (500mA).
I know some people use this Power Plug of the Mega.... We personaly not recommend this.

The basic Idea:
Mega is Powerd via USB .....

Devices with high Power ( e.g. Motors) are powerd via Own Supply ( In your case the 5V Line on the bottom)

What is missing in your picture.... You not wire the GRD of the 3 Motors to the GRD of the Power supply ( Where you get the 5V) .
And finally that GRD ( from Supply that goes to the Motors) ALSO must be wired to a GRD Pin on the Mega!
Good Luck !
2022-03-06 15:41
Avatar
MASMAZ
From: Italy
Posts: 27
in the Arduino forum I was discouraged from powering the servos directly from the MEGA but to use an external power supply as the 500mA of the USB is not enough to power the 3 servos ...
would not work properly ...

at this point I don't know who to listen to anymore ... I wouldn't want to fuck neither the servomotors nor the MEGA

https://drive.google.com/file/d/14SIT9FFUHqN_P82ErZ2apCUFBSA_ETw1/view?usp=sharing

https://drive.google.com/file/d/14UT4Bvz7jdfEnnzJhuwlHx-ll78Q9uw_/view?usp=sharing
2022-03-07 10:40
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 5979
Supporter
In the second Link the motors are powerd via the Mega itself. If the Motors use more then 800mA they overdrive the maximum of the Mega.... If the need more then 500mA they overdrive the power of the USB .

In the first Link all is correct.
Here the Motors completly are powerd from the 5V Suply.
And there is a GRD shared to the Mega, so Motors have same potential and can "talk" with the Datalines (Yellow).

And finally again.... Both Pictures show the unneeded 9V Power to the Megas !!

The Arduino Forums use this cause in regulary Projects this power is needed. Lets say you build a Wether Station with a temperature sensor, a LCD Display and so on..... Or you build a Controller that manage the Lighting of your Living room.....
In all these projects you will not connect the Mega all time to a Computer via USB.... You do this one time for programming it, but then it will run 24/7 stand aloane without connecting to USB..... And to get power you then need a external Device.

With Mobiflight we must have a all time connection to the Computer ( To send/ receive Data from Sim) ..... So we not need external power, cause we simply use the USB 500mA !
Good Luck !
2022-03-07 13:25
Avatar
MASMAZ
From: Italy
Posts: 27
regard....:thumbup:
2022-03-07 20:50
icon