Hi,
A have a problem with the movement of 28BYJ-48 stepper motors.
During calibration all goes well. But once connected to FS the gauges read correctly with clockwise movement of the needle, but once direction is reversed there is an error where the position shown is higher than the sim is sending.
I think this is backlash from within the stepper motors internal gearbox.
It is a predictable value. This error is first seen when originally setting the zero position. If you use a counter clockwise movement to reach zero and set it will return to the correct zero position.
If you use a clockwise movement to reach zero, once commanded to return it will over read not getting back to zero. On most of the gauges I have made this is in the order of about 11-12 steps.
To counter the initial error, I need to use interpolation to tell the gauge the distance from 0 to the first index position as this is always greater than the subsequent moves.
Obviously if I was to use a better motor then things might possibly improve. I would however like to find a solution for the 28BYJ-48’s as I have a lot of them and would rather not redesign my gauges for new motors. I should note that when the gauge moves clockwise again the correct values are shown.
Given the predictable nature of the error, is it possible to set a pre-condition or use another option to tell the gauges that if a move is less than the current position to add a certain number of steps? I know that would mean messing with the positive values too and then a correction would then need to be applied to the positive moves following negative moves.
I have made seven gauges so far. Most involve some additional gearing – spur gears with a reduction of about 1.3, but one the altimeter is directly connected to the motor output shaft and it too is affected with the error. In that case it shows 12Ft above the FS vale on counter clockwise decreasing values.
I have a video of some of the engine gauges displayed next to a monitor with the FS gauges visible.
You can see a one point (around the 4-minute mark) I rapidly reduce power causing an N2 and rotor RPM (Large gauge) to overspeed. In the sim this is transient, but on the gauge the needles remain above the redline until a larger power change is made. The N1 gauge (with small needle inset) also show the error with decreasing values. One other thing to note that caused me a lot of concerns early on is the Top gauge Torque % visible on screen does not report the actual torque being used. It under reports compared to the FSUIPC value around 2% so this is not related to the other problem.
The other gauges I have completed a a20,000 altimeter, 6000Ft Vertical speed indicator and an airspeed indicator. I am just finishing a Radio altimeter modelled on the KNI416. The error in the VSI is quite annoying as holding a level with reference to this gauge is useless as it can show a slight climb while descending.
https://www.youtube.com/watch?v=yog1Pv6Yd1E
I hope someone can help with these issues.
Thanks. I’m really excited using mobiflight as it’s finally giving me the freedom to build my own instruments, radios, annunciators and more importantly the ability to configure them without any programming knowledge.
Cheers,
Stuart
Just in case anyone is curious I have designed all the gauges in fusion 360 and use hobby gears from AliExpress and Banggood. The shafts are mostly brass tubing with bushings cut from the same material. All the gauge decks, faces, rings and enclosures are 3D printed on a Prusa i3 MK2S. I use 1/16” laser cut acrylic discs from US supplier Delvie’s plastics. The faceplates/scales are designed in Paint Shop pro 2017 and printed on a Brother HL3150CDN colour laser printer. The coloured arcs are then overpainted by hand with acrylic fluorescent paints. I should note that to prevent the arcs being too dark I print the gauges in colour with washed out or significantly paler yellows and greens. The red isn’t a big issue. The yellow arcs I am replicating are not as bright as normal fluorescent yellow on its own, so I paint it first with insignia yellow. The red lines I have had better coverage using an enamel fluorescent red.