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! 

05/03/2024 - This forum is read-only

The community support for MobiFlight has moved exclusively over to our Discord server. Register for free and enjoy more interactive functions like image and video upload, voice chat. More than 7,000 registered users around the world make it a great experience!

See you on our MobiFlight Community Discord server.

A HUGE Thank You to everyone who participated in the forum, especially obviously to Pizman and Stephan who did an outstanding job over so many years providing an incredible service to the MobiFlight community.

The forum is still providing a lot of good content, hence we keep this information accessible.

icon
Avatar
StevenT1972
From: United States
Posts: 12
I'm trying to make a wet compass with a stepper motor.
Using the 28BYJ-48 stepper and ULN2003 driver board. I've set is up as others from the forum however I have a problem.
When I use the compass mode checked, the stepper spins continuously even after stopping Mobiflight. The only way to stop it is to close mobiflight and reset the arduino.
Here are my settings.
Display tab
Sim/Stepper = 3600/2048
compass mode checked
FSUIPC tab
offset 0x02cc
float Bytes 8
Transform $*10
Note i have tried without the compass mode checked and it works but does not turn past north properly as I would expect.
Any help?
2020-07-27 01:06
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
Hi

Does the Stepper turn endless while Mobiflight is RUN or does this issue start if you STOP Mobiflight at the End ?
Technical this should not happen. The only "automatic" turning is at the end when the Motor must Run Back to the Zero Point.


For me it looks like the last patch did something wrong with the steppers. We must check this !
Please give us all information or interesting notes you know. Maybe this make it more easy to find the problem !
Good Luck !
2020-07-27 13:29
Avatar
StevenT1972
From: United States
Posts: 12
I start mobiflight and then P3D, stepper is not moving. I get a plane loaded, and press run on mobiflight. Stepper moves to indicated compass direction (90 degrees).
I steer airplane around and stepper follows. When I get to North (0/360) or when I get to south (180) this is when the stepper turns endlessly.
pressing stop on mobiflight will not stop it turning. I have to close mobiflight and reset the arduino board to get it to stop.
If I dont close mobiflight, but I reset arduino, the stepper will stop but begin endless after pressing run on mobiflight.

That is the most i have at the moment.
If I stay between 1 degree and 179 degrees the stepper works as should.
2020-07-28 17:18
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
Maybe the Multiply is problematic here....
I not test out myself..... But i normaly run a Compas with 360 ( and use a other offset in the past)

For testing....
Please change SIM/Stepper into 360/2048 And remove the $*10 Transform ( delete the data and then disable the checkmark).

Please report if this solve the problem !
Good Luck !
2020-07-29 00:05
Avatar
StevenT1972
From: United States
Posts: 12
Tried both with and with out the multiplier. Same results
2020-07-30 02:51
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
Hmm
that sounds strange.

Please Confirm you not enable the "Auto Sync System" in the Stepper setting ( Or do you have a self calibrating Stepper with a sensor ? )

Maybe there is also a issue on the Board.

Normaly it´s a good idea to try "eeprom Clear Sketch" and a fresh flash of firmware. Finaly a new create of Device ( Stepper) . You can also try to just Delete the Stepper device.... klick Upload and after a restart of MF you create the device for new.

I can not see the direct problem..... But this often helps. If possible try out !
Good Luck !
2020-07-30 04:08
Avatar
StevenT1972
From: United States
Posts: 12
Well, auto sync is off, I have no self calibration.
It seams it is with the board. I moved it to my other mega and it works as it should.
I have no idea why the other board is a problem.
Before moving it I tried to clear the flash and reinstall the firmware. Removed the stepper and re-installed it. And even moved to other pins. No luck with either.
Moving to another mega fixed it so I'll just leave it there.
Funny though anything else with steppers on the first board worked fine.
Oh well.

Thanks for the help!
2020-07-30 19:38
icon