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
_Neil_
Posts: 5
Hi,

I am using Mobiflight 9.0 for only 2 stepper gauges... altimeter and compass. While trying to calibrate the compass, Mobiflight has lost the configuration completely a handful of times, It would detect an arduino on next power up and ask if to upload firmware (which would work again), but twice would not even be able to re-upload firmware until I had to re-flash the bootloader with an external ISP programmer. This has happened with both a clone and a real Arduino, and with 2 different computers. Any idea what is causing this, and how to fix it?

Thanks.
2021-09-13 04:22
Avatar
StephanHo
Moderator
From: EDDG, Germany
Posts: 1867
Supporter
Hi Neil,

welcome to MobiFlight!

How did you power you two stepper? With an external power unit or via the mega modul?
A stepper uses nearly 200mA quiescent current. With two you have ca. 400mA. When the steppers are turning the current raises up and if they need more than 500mA while mega powered, the voltage drops and the mega is not able to work well.
If you power them external, look that you have connected the GND of the external power unit with the GND of the mega.
if you have a multimeter check the voltage with it when the steppers are operating.
When uploading the firmware disconnect the steppers.
If you use these cheap USB cables (blue) which are deliverd with the mega, change them you have bought yourself or use the ones which have worked with other devices.
If you use an USB hub, check that it is switched on and delivers the needed 5V.
You see there are multiple causes why something not work as excepted.
Grüße,
Stephan (Time: UTC+2)
2021-09-13 20:21
Avatar
_Neil_
Posts: 5
Hi Stephan,

Thanks for the reply. This is what I have...

- Stepper driver logic (currently) powered from the Mega (there is external 5V for after is done being setup). Motor power is external 12V.
PC wiring: http://orlandorobotbuilders.com/stuff/Mobiflight-Wiring-01-PC.jpg
Laptop wiring: http://orlandorobotbuilders.com/stuff/Mobiflight-Wiring-02-Laptop.jpg
- Grounds are not connected together... for other stepper drivers I've used previously (CNC machines) motor & logic grounds had to be purposely isolated, as spikes on the motor side could cause issues with the logic side. Here, I am using smaller (TMC2208) drivers, so wasn't sure if they should be connected. I can try that.
- FWIW, power supplies are very capable... IIRC like 4A-5A, and not running much else.
- Using different USB cables... tried a couple different ones.
- I was using a hub with the PC at first, but took that out.

I'll try connecting the ground and see what happens.
When uploading firmware... do you mean disconnect the steppers, or disconnect the stepper power? Asking because the stepper connections are not easy to disconnect as it's setup currently.

Thanks.
2021-09-14 15:58
Avatar
_Neil_
Posts: 5
I don't have access to the sim during the week, but someone else is testing this ground connection.
I'll report back.
2021-09-15 18:45
Avatar
_Neil_
Posts: 5
Hi Stephan,

So we used a brand new Mega (this is #3) and connected the 12V ground to the 5V ground. Did not even get a chance to measure the voltage while operating, but both voltages are very good otherwise.
Same thing happened again, and the mega is locked up again where we would need to get the bootloader re-installed.

I'm stumped.
2021-09-22 00:26
icon