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
OmniAtlas
Posts: 40
Hello, I am attempting to motorize my Airbus TQ --

With Mobiflight is it possible to implement a working trim system?

I have been recommended to use a 19:1 DC gear motor with encoder support -- https://www.robotgear.com.au/Product.aspx/Details/4546-19-1-Metal-Gearmotor-37Dx68L-mm-with-64-CPR-Encoder

Will there be any issues implementing a trim + feedback loop system?

As you all know the airbus is usually autotrimmed, however manual trim must be set prior to take off, and if there is a degradation in systems (manual trim in flight).

Jeehell FMGS as you know can use FSUIPC offsets to set trim values.

Is this possible with Mobiflight?

Hardware wise I will also require an H-Bridge, and the Ardruino mega board? Any recommendations?

Thank you,

Ben
2017-05-12 13:16
Avatar
DocMoebiuz
Moderator
From: NW of KPWK, United States
Posts: 1441
I have not tried it yet. The other day someone shared that he was able to use an easy driver to drive the stepper.
But the encoder, I don't know really how it is intended to work.
Can you provide more details?
Have a great day!
Sebastian

MobiFlight - Simply build your own home cockpit for your favorite flight sim - FSX, Prepar3D (FSUIPC), X-Plane (XPUIPC)
2017-05-13 05:54
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 2911
Supporter
i just try to find infos about.... Not easy :O
If i understand it correct this motor use a inverted logic like Mobiflight !

MF normaly scan a Offset .... If this is change we send this changes via the 4 Datalines ( High Low code) to the ULN2003 and this power up the Motor to the correct direction and position (steps)

Here i think it´s reversed..... the Motor got only 2 Power Lines... One for Clockwise, one for Counterclockwise.
BUT Additional the Motor include a Encoder that export data while turning. ( And we can Readout this data)

So.... Basic Logic ( i think)
If the scaned Offset Value increase for example we need to powerup the Motor with the correct Clock/Counterclock line.... Then it turns and same time the internal Encoder send Data to Mobiflight.... With this Data Mobiflight need to know when the target Position is reached and then need to stop powering the Motor !

My result.... This is NOT posible with current System logic....
First we can´t get a internal Variable so we need to write the Encoder Input to a custom Offset and read it again for calculating.... to much delay maby for a precesion controlling!
Second we get no way to say " PinX is high until Offset A -AND- Offset B gets same Value.
Third we can´t define if a Value is increase or decrease since last Data Read. But this is needed to define direction of turning !

So... With a new function in Mobiflight maby posible.... but NOT with a self designed config based on current availibel Mobiflight tools i think !
.
Good Luck !
2017-05-14 16:43
icon