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
Julesta
Posts: 129
Hi

I´m confused. Arduino UNO is supported now with Firmware 2.0 and 9.2 or not? I´ve 1 arduino UNO connected (no for MB) and MB think that is a 2560.

Thanks
2021-12-28 20:07
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
MB ?? We are not called "MegaByte" we are called MF MobiFlight ! MoBi is not really sensefull !

About Problem.

I no longer own UNOS.... Throw them away long time ago when Sebastian decide we will never support UNO.
So NOW some users make the code for a "Comeback" of the UNO.... And i can not test it anymore.

Without know the details i will say pretty sure this is a VID/PID Problem.

Also in the past there was a Problem that UNO and MEGA share some of the VID/PID .
In case 99% of USers work with Megas we decide ( that time) that MF simply see those VID/PID as Megas Only.

Work fine for all the years cause nobody use UNO anymore..... But now we maybe need to find a new solution !
Good Luck !
2021-12-29 18:55
Avatar
jaimeleon
Posts: 26
Hello,
Just thought I would drop a few comments here.
With recent firmware optimizations done by the fine Mobiflight development team, use of Uno, Nano and Pro Micro boards is possible and works stable. I am currently running MF in a Nano board with no issues.

The one issue that has not been completely solved yet is the fact that very many chinese clone boards use the CH340 chip (Mega, Uno and Nano), and more recently discovered, also FTDI chip, for serial communications via USB. This makes all of these boards appear with the same USB vid/pid combination. Mobiflight cannot tell them apart and currently assumes this vid/pid to be a mega board. As Pizman indicated, in the past this was not a problem because Uno and Nano boards were not really supported.

Until there is a final solution in the MFConnector, there is a workaround which essentially consists of uploading the correct firmware directly to the board using the arduino avrdude.exe loader (included with Mobiflight). You may use the batch commands detailed below for Uno and Nano boards (Nano uses the same firmware as Uno):

iconCode:
cd ../Arduino/hardware/tools/avr/bin
avrdude.exe -C ../etc/avrdude.conf -p atmega328p -c arduino -P COM43 -b 115200 -D -Uflash:w:../../../../../firmware/mobiflight_uno_2_0_0.hex:i
pause

Please note the batch command assumes starting from the Mobiflight app folder. Once the firmware is in the board, Mobiflight will recognize the board and future updates can be done normally with MFConnector.

If you don't like running batch files, there is yet another way to do this by editing the Arduino_mega.board.json file stored in \Mobiflight\Boards folder, moving the line with the vid/pid of your Uno board (most probably VID_1A86&PID_7523, but you need to check this) to the Arduino_uno.board.json file (same place in the file). After doing this, Mobiflight will recognize your board as a Uno. Make backups of both files before editing to avoid problems if the editing does not do what is expected.

Regads,
Jaime Leon
[Last edited by jaimeleon, 2021-12-29 21:41]
2021-12-29 21:31
Avatar
Julesta
Posts: 129
Gracias Jaime. Muy interesante.

Saludos cordiales
2021-12-30 20:33
Avatar
Julesta
Posts: 129
:cry: :cry: :cry: Ok, Mr Pizman You never makes an error? :D :D :D :D MF it´s not MB. Bien sure!.

Greetings,
2021-12-30 20:35
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
iconJulesta:

:cry: :cry: :cry: Ok, Mr Pizman You never makes an error? :D :D :D :D MF it´s not MB. Bien sure!.



iconJulesta:


I´m confused. Arduino UNO is supported now with Firmware 2.0 and 9.2 or not? I´ve 1 arduino UNO connected (no for MB ) and MB think that is a 2560.



I´m sorry. Please not feel attacked.
But in case this shortcut is not really common for Mobiflight i need to readback 3 times and think some seconds about, that you mean MB for MF.

It´s no Big deal..... But here in Germany "MB" is mostly used for MegaByte, MainBoard or MasterBoot

Thats why i hate shortcuts .... They are cool and usefull.... But only if everybody use the same and know what it is stand for.
Good Luck !
2021-12-31 08:18
Avatar
Julesta
Posts: 129
Hi, my friend.

It was a joke. Forget it:D :D :D

In SPAIN also MB is for Megabyte only. Motherboard is "Placa Base" or "Placa Madre", never MB

Best New MMXXII,
2021-12-31 18:29
Avatar
asessa
From: Salerno, Italy
Posts: 88
Hi, great news the support for UNO boards.

Are this compatible ?

https://www.amazon.it/Elegoo-ATmega328P-ATMEGA16U2-Compatibile-Microcontrollore/dp/B01MRJR8UF
A320HC MSFS
2022-01-06 18:32
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
I will say YES.... but i can not garantee.

Normaly we are compatible to all UNO Clones.
Whatever i not know this special brand.... Why not.


I recommend..... Order just ONE Board at first.... then you can test it ( and report experience here).
If it work then you can use it.
(( If it not work then 99% the VID/PID is the problem and can be solved within a Patch in MF or a entry in the code by yourself !))

Important NOTE :

Your link show me "14,99 €"

If you plan to buy this..... Why do you think about UNO ???
You can get Arduino MEGA for less then 13€ on your Italian Amazon and for less then 10€ from Alibaba.

Why use a small 32kb Board if you can have a cheaper 256kb board with 4 times more Pins ??

I still accept if a user who already own a UNO like to use this with Mobiflight..... But let me say i think every user who order now a new UNO meanwhile is *not verry smart* .
Whatever we now support UNO.... If you need a new Board buy a Mega... and nothing else !
Good Luck !
2022-01-06 21:13
Avatar
asessa
From: Salerno, Italy
Posts: 88
iconpizman82:

I will say YES.... but i can not garantee.

Normaly we are compatible to all UNO Clones.
Whatever i not know this special brand.... Why not.


I recommend..... Order just ONE Board at first.... then you can test it ( and report experience here).
If it work then you can use it.
(( If it not work then 99% the VID/PID is the problem and can be solved within a Patch in MF or a entry in the code by yourself !))

Important NOTE :

Your link show me "14,99 €"

If you plan to buy this..... Why do you think about UNO ???
You can get Arduino MEGA for less then 13€ on your Italian Amazon and for less then 10€ from Alibaba.

Why use a small 32kb Board if you can have a cheaper 256kb board with 4 times more Pins ??

I still accept if a user who already own a UNO like to use this with Mobiflight..... But let me say i think every user who order now a new UNO meanwhile is *not verry smart* .
Whatever we now support UNO.... If you need a new Board buy a Mega... and nothing else !



Hi piz, thank for the answers.

For the Uno, i'd like to use the small for the TCAS panel (10 push button, 5 rotary and 1 max 7219) , maybe the Mega is too large for this
A320HC MSFS
2022-01-07 15:19
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
iconasessa:


For the Uno, i'd like to use the small for the TCAS panel (10 push button, 5 rotary and 1 max 7219) , maybe the Mega is too large for this



Use a MEGA Pro MINI!

Same compability and features of the MEGA..... But much mor smaller !

e.g. this. https://www.amazon.it/DollaTek-Mega2560-ATmega2560-16AU-Elettronica-Intelligente/dp/B07HBTSLCF/ref=sr_1_42?__mk_it_IT=%C3%85M%C3%85%C5%BD%C3%95%C3%91&crid=1SX3VD5MOVN2X&keywords=arduino+mega+2560+mini&qid=1641603390&s=electronics&sprefix=arduino+mega+2560+mini%2Celectronics%2C64&sr=1-42

Pretty sure Cheaper on Alibaba.....



EDIT:
I know the UNO and Micro Guys hate me for this comment....
But please just think a second about the major fact....
You have the choice between a ~~20 Pin Controller and a 68 Pin Controller that have 8 times more RAM (32 to 256)
Both cost nearly the same.
Whatever if you just need 5 Pins in your Project.... theres absolutly no argument to use the "small" one if the "big" one costs you not more or only a little more.
If you can buy a 300g Steak for 20$ and a 800g Steak for 20,50 $ ...... Its no mater if you just like to eat 300g steak in 9 of 10 Restaurant Visits.
Its still cheaper to throw 500g meat in the trash 9 times as to spent 20$ additional in the one day you like to eat more then 300g !

So for my point of view.....
There is still NEVER a argument to use something else like a MEGA..... Expect the rare situation if you still own a UNO/Micro already.... But never if you think to buy a new board !
[Last edited by pizman82, 2022-01-08 02:11]
Good Luck !
2022-01-08 01:57
Avatar
asessa
From: Salerno, Italy
Posts: 88
iconpizman82:

iconasessa:


For the Uno, i'd like to use the small for the TCAS panel (10 push button, 5 rotary and 1 max 7219) , maybe the Mega is too large for this



Use a MEGA Pro MINI!

Same compability and features of the MEGA..... But much mor smaller !

e.g. this. https://www.amazon.it/DollaTek-Mega2560-ATmega2560-16AU-Elettronica-Intelligente/dp/B07HBTSLCF/ref=sr_1_42?__mk_it_IT=%C3%85M%C3%85%C5%BD%C3%95%C3%91&crid=1SX3VD5MOVN2X&keywords=arduino+mega+2560+mini&qid=1641603390&s=electronics&sprefix=arduino+mega+2560+mini%2Celectronics%2C64&sr=1-42

Pretty sure Cheaper on Alibaba.....



EDIT:
I know the UNO and Micro Guys hate me for this comment....
But please just think a second about the major fact....
You have the choice between a ~~20 Pin Controller and a 68 Pin Controller that have 8 times more RAM (32 to 256)
Both cost nearly the same.
Whatever if you just need 5 Pins in your Project.... theres absolutly no argument to use the "small" one if the "big" one costs you not more or only a little more.
If you can buy a 300g Steak for 20$ and a 800g Steak for 20,50 $ ...... Its no mater if you just like to eat 300g steak in 9 of 10 Restaurant Visits.
Its still cheaper to throw 500g meat in the trash 9 times as to spent 20$ additional in the one day you like to eat more then 300g !

So for my point of view.....
There is still NEVER a argument to use something else like a MEGA..... Expect the rare situation if you still own a UNO/Micro already.... But never if you think to buy a new board !



Ok, your point of view it's clear ;)
thanks
A320HC MSFS
2022-01-12 19:57
icon