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
smoothchat
Posts: 41
Supporter
7.3.1 still sees my stepper sticking at the top of the acceleration curve. This is confirmed with more than one stepper.

I need that "Max stepper speed" value, either on the gui or in a config file (as discussed earlier)
2017-03-14 05:31
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
Dear Smooth

I already thought this is the Point....
iconQuote:

#179: Stepper max speed still too fast

that fix youre Problem in 7.3.1

As Sebastian said... https://www.mobiflight.com/forum/message/4029.html
He had reduced the speed already with Fix quoted above

Please understand that the UNO Support and the MEGA Fixes through the UNO Problems is still FIRST Priority.... THIS is needed by 90% Of Users at the moment.
A User-Adjustment for Stepper Speed is maby a "bigger" Fix that not can be done in one hour of programming.

So you have to wait simply until Sebastian find time to do this. Or you try out another Hardware....
iconsmoothchat:

This is confirmed with more than one stepper.


Do you try another kind/manufactor of stepper or just some Pieces of the same Type ??
Again i need to say my stepper workes fine in all former Mobiflight Versions !


***********


Maby Sebastian can reply this next days, to give you a update and if posible a expected Date of release......


Apollogy for youre trouble !
Good Luck !
2017-03-14 06:46
Avatar
smoothchat
Posts: 41
Supporter
iconcpp-qt:
 
I already thought this is the Point....
 
    iconQuote:
 
    #179: Stepper max speed still too fast
 
that fix youre Problem in 7.3.1
 


No it didn't.

I tried 3 different steppers (I cannot determine where they were made) and 2 * 2560's with the same result. With and without external power supply.

They all work fine with the "non acceleration" sample code.

The workaround is to avoid situations where the stepper has to accelerate and rotate a large distance.
[Last edited by smoothchat, 2017-03-19 02:54]
2017-03-19 02:45
Avatar
DocMoebiuz
Moderator
From: EDSH, Germany
Posts: 1516
That's really weird.

If you like please try out the AccelStepper library. That's what I use as a library. http://www.airspayce.com/mikem/arduino/AccelStepper/
Let me know what max speed works for you.
Have a great day!
Sebastian

MobiFlight - Simply build your own home cockpit for your favorite flight sim - MSFS2020, FSX, Prepar3D (FSUIPC), X-Plane (XPUIPC)
2017-03-19 04:55
Avatar
smoothchat
Posts: 41
Supporter
Thanks DocMoebiuz

I use .......

STEPPER_SPEED 300
STEPPER_ACCEL 300

And it works now.

These speeds are suitable for me.

My hardware must have some gear problems which cannot cope with the higher speeds.
2017-03-19 23:58
Avatar
DocMoebiuz
Moderator
From: EDSH, Germany
Posts: 1516
That in fact is really low. I use it with 650 right now.
It might be a wiring problem. Are you driving it with 5V or 3,3V - make sure you use the right pin.
Have a great day!
Sebastian

MobiFlight - Simply build your own home cockpit for your favorite flight sim - MSFS2020, FSX, Prepar3D (FSUIPC), X-Plane (XPUIPC)
2017-03-20 00:45
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
I think already this is a wire problem maby.... But Smooth say multible times he have check this.

Just a sugesstion.....

If posible Sebastian can explane you how to manualy set this with edditing the code with a editor in MF File... or he send you a special personal version .....

A Speed reducing by 75% is maby much to low for all other users.... For a Jet Fighter we need a Altimeter that can turn maby 10-15 times per minute. I´m a little skeptical if this is not to slow at all.
Good Luck !
2017-03-20 01:06
Avatar
smoothchat
Posts: 41
Supporter
Thanks Pizman and DocMoebiuz,

Driving with 5v

In my case, I'm using it for a flaps indicator so speed is not critical

I re-compiled the latest Mobiflight 7.3.1 firmware with ....

#define STEPPER_SPEED 300 // 300 already worked, 467, too?
#define STEPPER_ACCEL 300

A user setable value would be nice, but not essential now.

300/300 speed is more than adequate for my needs (test video at link below)

https://youtu.be/I78yBs5krVI

It used to do this https://www.youtube.com/watch?v=yR3LyVHv0Nc with the older versions of the code

Thanks again.

Oh, in a future version would it be possible to zero the 4 pins after the destination is reached? The stepper gets warm for no reason because it appears that power is still applied to the pins after rotation has stopped.
[Last edited by smoothchat, 2017-03-20 01:38]
2017-03-20 01:15
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
Nice you still got skills to edit this youreself.....

Just bad you have to do this everytime a new firmwareupdate is comming. Don´t forget this to prevent new problems !

Hope it´s ok for you. Maby the User setable is planed in the future. But aslong no other people report this issue this i not top Priority now when it´s work privissionaly.

Thanks for youre patience an for youre help to fix this youreself !

EDIT:
iconsmoothchat:


Oh, in a future version would it be possible to zero the 4 pins after the destination is reached? The stepper gets warm for no reason because it appears that power is still applied to the pins after rotation has stopped.



Can Confirm this ! My Motor is not moved for 1 hour but arduino is still on.... the Motor is warm/hot !!
I get absolute no experience with the stepper libary and the basic function of the ULN 2003.... But if this is a problem for the Motor health a fix will be nice if possible.
[Last edited by pizman82, 2017-03-20 02:44]
Good Luck !
2017-03-20 01:54
Avatar
smoothchat
Posts: 41
Supporter
Perhaps an option on the stepper screen to enable/disable stepper 'sleep" mode after a few seconds or minutes.

The user can choose whether or not to enable this feature as other lights driven by the arduino can go dim when the stepper is enabled / disabled.
2017-03-20 12:12
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
Maby.... But always keep on mind .....

Every optional User Setting is a big part of code.... And its a new tool that a beginner must learn... Again a new section in the manuals !
I know advanced users like more and more tools to perfect the System.... But basic concept of Mobiflight is to be easy for beginners without programming skills.

In that case....How many User need a optional Seting if Stepper should disable or not....I think nobody ! So why should Sebastian enter this option. simply Hard coded is enough i think.

BUT..... If you bring a good argument why a Option is better and what benefit it bring.... Maby he think about a option, too.
.
Thanks for Brainstorming !
Good Luck !
2017-03-20 16:46
Avatar
smoothchat
Posts: 41
Supporter
Thanks pizman82,

I understand what you are saying.

It could be user feature overkill.

It's probably only useful if you are driving a lot of LEDS and stepper(s) simultaneously.

When the stepper is active (enabled outputs) the LEDs have a tendency to dim slightly as the stepper draws power. Calling "disableOutputs()" causes the LEDS to become bright again.

Some people might just prefer to leave the stepper active so the lights don't change.

It's a visual thing that isn't THAT important but might bother someone if they are driving a whole illuminated panel off a single 2560.

I suspect a solution would be to provide external 5v power or use relays for some things. BTW, adding external power didn't solve my original stepper speed issue (in case you were wondering ;-)

As an exercise for my 60 year old brain, I tinkered with the code privately and now have the stepper switching off 5 seconds after it's last motion. Oh, there's another option to give the user ;-)

I wont fiddle any more, this is Sebastian's beautiful baby, and I shouldn't mess with it.
[Last edited by smoothchat, 2017-03-21 07:05]
2017-03-21 06:44
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
Oh... I don´t check this fact....
Thought you talk about theLED on the ULN2003 Board....

Youre LED in Cockpit on same board as the Stepper NOT should change brightness when stepper is working. ( I think)

Maby you got to much outputs there. We talk about a strict power Limit for Megas in the past.... A External Power can help to support more then 500ma like the USB
BUT....Limits for absolute maximim are still exist ( Whatever External power is use ore not) Not override the 800ma Hard Limit for the hole Board !!
Good Luck !
2017-03-21 07:28
icon