Your first trouble: Electro-Magnetic Interference

It makes sense to deal with potential magnetic interference during the hardware assembly. I have read many theories on where the interference might be coming from. Some blame the motors, others blame ESC. I can only confirm that moving the ESC’s as far away from the controller as possible only increased the interference during the compassmot procedure. BTW, compassmot procedure is not compulsory, however it is highly recommended for All-In-One controllers. I have tried to ignore the initially high reading and tested the quad anyway. The result you can see in this video.

The main source of this phenomenon is DC wires that feed the ECS’s as well as power distribution board. You can refer to this article for more details. As it is often the case, power distribution board is located directly underneath the controller. E.g. in the frame that I was assembling (Turnigy Talon V2) the power distribution board is normally mounted on the other side of the flight controller holes, so that the 2 are separated by short nylon spacers only.

I have taken the power board out of the cavity of the frame, cut the ECS wires really short twisted them (as shown in the picture) and soldered directly to the board. I have also placed the whole arrangement under the frame so that the distance to compass was maximised.

Firmware

In my previous article I have mentioned the firmware uploading tool (Flashtool) that MegapirateNG developed for our convenience. It does a good job as well as the firmware itself. However once you have faced the problems of magnetic interference and realised that they are too significant to overcome, using the external compass might become the only option for you. Why is it so? Why these controllers were designed so that the compass is useless and could it be that something changes to worse in the firmware? – All these are interesting questions and I shall try and compile some theories together at the end of this article.

It is necessary to mention that original software that you have uploaded with the Flashtool does not have an option of disabling the on-board compass. You can it try yourself in the MissionPlanner, go to Config/Tuning==>Standard Params and try to disable the on-board compass. It does not work, does it?

Nevertheless, if you feel confident with programming and can modify the code so that it uses the external compass only, please do so. Otherwise, you can use the hex file kindly provided by Peter King. You can visit his website www.droneshop.biz, go to the footer of the main page and click the link Google Docs link for our files & Parameters for all our models and radio setups. Have a look at all the stuff that he makes, I am personally impressed with the configurator idea for custom builds.

!UPDATE! Firmware 3.1.5 modified for external compass (HK Multiwii and Megapirate AIO Boards only)

Files:
3_1_5 Firmware with External Compass Enabled 3.1.5 HOT
(0 votes)

You are about to download a ZIP file that contains 2 modified HEX files by Megapirate. One is suitable for a CPPM transmitter/receiver, another one shall be used with a normal transmitter/receiver pair. Both files have external compass option enabled (onboard compass is disabled). Use with Megapirate/Multiwii Hobbyking AIO flight controller only (or corresponding Crius Boards). This files can be flashed to the controller by using Mission Planner software (available from the download section of 3D Robotics website)

Date 2015-03-07 File Size 420.15 KB Download 724 Download

You can upload the hex file using MissionPlanner and FTDI board (Initial Setup=>Upload Firmware). This is essentially the same as re-flashing the controller.

Compass calibration

I have covered compass, accelerometer and radio calibration in my other article, so please follow those instructions. You should erase the EEPROM. Re-run all the setups and make sure that all the receiver channels (Throttle, Rudder etc.) are connected to the right inputs (most likely different to your previous setup – ouch, that hurts). By the way if you ever dealt with CPPM, please update us on how to re-arrange the channels.

Important! When calibrating the compass on Neo-7M Hobbyking unit (external compass), set ROTATION_PITCH_180 in the drop-out box beside “Manual” in compass calibration screen.

Of cause, the natural question at this point is: why do we have to go to this extent, re-flash and re-calibrate the unit, change the variables, etc? Can’t we just calibrate both compasses together and still use the original Megapirate firmware? These are legitimate questions and I shall appreciate your feedback if anyone ones to volunteer and try it out. There is no way you can reliably determine that Rotation Pitch shall be 180° on the Neo-7M compass unless your firmware knows to work with the external compass only. So that is where I am now.

Compassmot

My advice: don’t skip the compassmot. Get the interference within 30% by modifying you hardware. Otherwise you’ll end up with “Toilet Bowling” or lose your machine altogether.

After all the preparation described above, my compassmot was under 12%.

A good video on compassmot is below. The only comment I would make on this video is: before you go to command line interface screen, disconnect Missionplanner from your multicopter, unplug the muticopter battery, wait for 10 minutes, connect the battery back again and only then click “Connect” in the CLI interface.

Theories and rumours

First of all, yes Multiwii and Megapirate AIO boards are old technology and they have been in the market for quite a while. They are 8-bit systems and the amount of code that you can control them with is limited. MegapitateNG have officially departed from 8-bit systems and they develop their own F4BY controller (32-bit). As you can see in release notes to 3.0.1 firmware, compass calibration and compassmot are significantly more important than before. This (in my opinion) means that algorithms had to be trimmed down in order to make space for additional code.

On the other hand, do we have a decent 32-bit controller with robust firmware available? – Probably not, yet. So we are destined to cope with old technology and pick up the crumbs of other peoples’ dead projects for now. Please share your thoughts below.

Forum Response to This Article:
There are no forum posts on this article at the moment.
Login to reply

Comments
0 # admin_ediblefly 2015-05-11 20:36
[censored] bug with broken downlo[censored] l[censored]k is fixed now.
0 # Trav 2015-08-26 13:41
hi guys, great write up.
I'm wonder[censored]g if you have [censored] code for [censored] firmware hex files that has [censored] changes [censored] disable [censored] [censored]ternal compass and enable [censored] external [censored]? I have m[censored]e a number of o[censored]r changes [censored] [censored] codebase I use for my dr[censored] so can't use [censored] hex files you supplied.
0 # admin_ediblefly 2015-08-26 19:44
mak[censored]g a hex file would [censored]volve some changes [censored] my current Ardu[censored]o SDK (overwrit[censored]g some libraries). You can try and produce a hex file from [censored]ir default firmware package (onboard compass is enabled by default). Follow [censored] l[censored]k: docs.megapirateng.com/documentation/compile. When you have [censored] SDK [censored]stalled, change related parameters and compile [censored] firmware (compile only, do [censored] uplo[censored], as you'll end up with an error). After [censored] compilation, [censored] hex file can be found [censored] [censored] Temp folder. [censored] exact l[censored]k [censored] appear [censored] [censored] message w[censored]dow of Ardu[censored]o SDK. Let me know how you go.
0 # Trav 2015-12-02 22:12
Hi,
Sorry, I didn't get a [censored]ification [censored] h[censored] been replied [censored]. I don't need [censored] hex file, I can compile my own firmware. I need [censored] know what code [censored] change!
Cheers,
Trav
0 # admin_ediblefly 2015-12-02 22:47
[censored] orig[censored]al firmware is [censored]: http://docs.megapirateng.com/documentation/compile
[censored] follow[censored]g file has [censored] be changed if you are runn[censored]g an external compass: libraries\AP_[censored]ertialSensor\AP_[censored]e rtialSensor_MPU6000_I2C.cpp
Change:
//#def[censored]e DISABLE_[censored]TERNAL_MAG [censored] #def[censored]e DISABLE_[censored]TERNAL_MAG
[censored] [censored][censored]ation:
http://docs.megapirateng.com/documentation/tipsntricks
0 # Trav 2015-12-02 22:10
Hi,
[censored] [censored] code w[censored] is [censored] [censored]ternal compass referenced such that I can change it? Like [censored] o[censored]r commenter I have m[censored]e o[censored]r changes [censored] code elsew[censored] that means I can't use [censored] pre compiled hex file.
0 # AlenaBig 2019-01-03 16:46
Hi. I have checked [censored] ediblefly.com and i see you've got some duplicate content so probably
it is [censored] reason that you don't rank hi [censored] google.
But you can fix [censored] issue fast. T[censored] is a [censored]ol that rewrites content like human, just [censored] [censored] google:
mif[censored]lo's [censored]ols
0 # www.ayosto.ph 2019-02-02 18:52
hi, i am Ulrike. Few day ago, i published a great article about phu khoa (www.ayos[censored].ph: https://www.ayos[censored].ph/user/profile/228234). I th[censored]k it [censored] be usefull for you now.
So if it is right, i can re[censored] my article at [censored]:
0 # Carina 2019-02-04 12:26
Its [censored] my first [censored] [censored] [censored] [censored] [censored]b page, i
am [censored][censored]g [censored] [censored]b page dailly and take good [censored][censored]ation from [censored] every day.
0 # KurtBig 2019-02-19 19:56
Hi. I have checked [censored] ediblefly.com and i see you've got some duplicate content so probably it is [censored] reason that you don't rank
high [censored] google. But you can fix [censored] issue fast.
T[censored] is a [censored]ol that rewrites articles like human, just [censored] [censored] google: mif[censored]lo's [censored]ols
0 # tv ao vivo online 2019-03-12 00:46
Istߋ n apresenta clara ideia em favor ԁa o novo espect[censored]ores de blogg[censored]g, qսe na verd[censored]e cоmo
fɑzer blogg[censored]g .
0 # ujenixamiq 2019-03-12 15:49
http://[censored]prettygu[censored]eapig.com/amoxi cill[censored]/ - Buy Amoxicill[censored] Buy Amoxicill[censored] [censored] http://[censored]prettygu[censored]eapig.com/amoxi cill[censored]/
0 # ebanumaq 2019-03-12 16:31
http://[censored]prettygu[censored]eapig.com/amoxi cill[censored]/ - Buy Amoxicill[censored] Amoxicill[censored] 500mg http://[censored]prettygu[censored]eapig.com/amoxi cill[censored]/
0 # phong kham phu khoa 2019-03-26 13:47
Hi my name is Clara. Few days ago. i published
a article about [censored] best gynecological cl[censored]ic [censored]dress [censored] Hanoi.
Hope you re[censored] and feedback [censored] review [censored] me. Tks. [censored] is my article l[censored]k:
http://bit.ly/2STmuTE
0 # ugedojosezjaw 2019-04-25 20:09
http://[censored]prettygu[censored]eapig.com/predn is[censored]-20-mg/ - Prednis[censored] 20 Mg Prednis[censored] Without A Prescription ydz.ktwb.ediblefly.com.dii.jr http://[censored]prettygu[censored]eapig.com/predn is[censored]-20-mg/
0 # TanishaBig 2019-09-20 10:50
Hello. I have checked [censored] ediblefly.com and i see you've got some duplicate
content so probably it is [censored] reason that
you don't rank hi [censored] google. But you can fix [censored] issue fast.
T[censored] is a [censored]ol that creates articles like human, just
[censored] [censored] google: mif[censored]lo's [censored]ols
0 # VPS 2019-09-21 13:39
[censored] is very attention-grabb[censored]g, You're a very skilled blogger.
I have jo[censored]ed [censored] feed aand stay up foor look[censored]g for [censored] of [censored] fantastic post.
Also, I have shared [censored] skte [censored] my social networks

Feel free [censored] [censored] my [censored] - VPS: https://who[censored]c.org
0 # xxx tube 2020-11-28 02:43
Heya i'm for [censored] primary [censored] [censored]. I came across [censored]
board and I [censored] f[censored]d It truly useful & it helped me out a lot.
I am hop[censored]g [censored] [censored] someth[censored]g aga[censored] and aid o[censored]rs like you helped me.
0 # Free porn Videos 2020-11-28 03:45
I have been brows[censored]g [censored] [censored] than 2 h[censored]s [censored]day, yet I never found any
[censored]terest[censored]g article like [censored]s. It's pretty worth enough for me.

Personally, if all [censored] owners and bloggers m[censored]e good content as
you did, [censored] [censored] [censored] be much [censored] useful than ever before.
0 # porn videos 2020-11-28 05:02
I am extremely impressed along with [censored] writ[censored]g talents as neatly as
with [censored] layout on [censored] blog. Is that [censored] a paid subject matter or did you modify it [censored] self?

Ei[censored]r way stay up [censored] nice quality writ[censored]g, it's rare [censored] see a great [censored]blog like [censored] [censored] [censored]day..
0 # americanwota.com 2020-11-28 07:35
Wow! F[censored]ally I got a blog from w[censored] I be able [censored] really get helpful data concern[censored]g my study and knowledge.
0 # hot porn videos 2020-12-05 04:29
Thanks very [censored]terest[censored]g blog!
0 # Stan 2020-12-05 15:20
Greet[censored]gs from Color[censored]o! I'm bored at work so I decided [censored] browse [censored] site on my iph[censored] dur[censored]g lunch break.

I love [censored] [censored][censored]ation you provide [censored] and can't wait [censored] take a look when I get home.
I'm amazed at how quick [censored] blog lo[censored]ed on my ph[censored] ..
I'm [censored] even us[censored]g WIFI, just 3G .. Anyways, great site!
0 # porn videos 2020-12-06 11:31
Howdy! [censored] article couldn't be written any better!
Look[censored]g at [censored] article rem[censored]ds me of my previous roommate!
He constantly kept talk[censored]g about [censored]. I [censored] forward
[censored] article [censored] him. Fairly certa[censored] he's go[censored]g [censored] have a
great re[censored]. I appreciate you for shar[censored]g!
0 # http://9eleven.info 2020-12-06 14:03
I'm no longer sure [censored] place you're gett[censored]g [censored] [censored]fo, ho[censored]ver good [censored]pic.
I needs [censored] spend a while study[censored]g [censored] or figur[censored]g out
[censored]. Thank you for fantastic [censored][censored]ation I used [censored] be [censored] [censored] of [censored] [censored][censored]ation for my
mission.
0 # Douglas 2020-12-09 08:51
You are so a[censored]some! I do [censored] [censored] I've re[censored] a s[censored]gle th[censored]g like that before.
So nice [censored] f[censored]d ano[censored]r person with a few genu[censored]e thoughts on [censored] issue.
Seriously.. many thanks for start[censored]g [censored] up. [censored] [censored]b site is [censored]
th[censored]g that is needed on [censored] [censored], some[censored] with a little orig[censored]ality!
0 # news-giant 2020-12-13 08:52
Do you have a [censored] issue on [censored] blog; I also am a blogger, and I
was wonder[censored]g [censored] situation; [censored] have created some nice practices
and [censored] are look[censored]g [censored] tr[censored]e methods with o[censored]rs,
why [censored] shoot me an [censored] if [censored]terested.
0 # Miquel 2020-12-13 20:58
[censored]day, I [censored]nt [censored] [censored] beach front with my children. I found a sea shell and gave it
[censored] my 4 year old daughter and said "You can hear [censored] ocean if you put [censored] [censored] [censored] ear." She put
[censored] shell [censored] her ear and screamed. T[censored] was a hermit crab
[censored]side and it p[censored]ched her ear. She never wants [censored] go back!
LoL I know [censored] is completely off [censored]pic but I h[censored] [censored]
tell some[censored]!
0 # free sex videos 2020-12-14 00:47
bookmarked!!, I love [censored] blog!
0 # hot porn videos 2020-12-14 03:37
Every [censored]ekend i used [censored] go [censored] see [censored] [censored], because i want enjoyment,
for [censored] reason that [censored] [censored] [censored]b site conations actually pleasant funny
data [censored]o.
0 # Oliver 2020-12-14 06:43
Wonderful site. Plenty of useful [censored][censored]ation [censored].
I'm send[censored]g it [censored] a few pals ans also shar[censored]g [censored] delicious.
And of c[censored]se, thank you for [censored] effort!
0 # free sex videos 2020-12-14 11:32
Can I simply say what a comfort [censored] discover an [censored]dividual who really knows
what [censored]y are talk[censored]g about [censored]. You def[censored]itely realize how
[censored] br[censored]g an issue [censored] light and make it important. A lot [censored] people need
[censored] re[censored] [censored] and understand [censored] side of [censored] s[censored]ry.
I was surprised that you aren't [censored] popular given that you most certa[censored]ly have [censored] gift.
0 # free porn movies 2020-12-14 19:15
If you are go[censored]g for most excellent contents like me, just pay a quick [censored] [censored] site
every day s[censored]ce it provides quality contents,
thanks
0 # gravelhill.com 2020-12-15 02:49
WOW just what I was look[censored]g for. Came [censored] by [censored][censored]g for experimental
0 # hd porno tube 2020-12-17 13:11
I loved as much as you [censored] receive carried out right [censored].

[censored] sketch is tasteful, [censored] authored subject matter stylish.
n[censored][censored]less, you command get bought an shak[censored]ess over that you wish be deliver[censored]g [censored] follow[censored]g.

un[censored]ll unquestionably come fur[censored]r [censored]erly aga[censored] as exactly [censored] same nearly very often [censored]side case you shield [censored]
hike.
0 # xxx sex videos 2020-12-17 20:12
It's a[censored]some [censored] [censored] [censored] [censored] and re[censored][censored]g [censored] views
of all mates about [censored] post, while I am also keen of gett[censored]g know-how.
0 # http://iotcarz.com/ 2020-12-18 05:36
Hurrah, that's what I was [censored][censored]g for, what a [censored][censored]ation! exist[censored]g [censored]
at [censored] [censored]bpage, thanks [censored]m[censored] of [censored] site.
0 # reallesbiantube 2020-12-18 05:44
Howdy, I [censored] [censored] [censored] could possibly be hav[censored]g browser
compatibility problems. Whenever I take a look at [censored] [censored]b site [censored] Safari, it looks f[censored]e ho[censored]ver,
if open[censored]g [censored] IE, it has some overlapp[censored]g issues.
I simply wanted [censored] give you a quick he[censored]s up! Aside
from that, great site!
0 # real lesbian tube 2020-12-18 14:22
Superb post but I was wonder[censored]g if you could write a
litte [censored] on [censored] subject? I'd be very grateful
if you could elaborate a little bit [censored]. Bless you!
0 # lesbian bondage porn 2020-12-18 18:43
I'm truly enjoy[censored]g [censored] design and layout of [censored] [censored].

It's a very easy on [censored] [censored] which makes it much [censored] pleasant for
me [censored] come [censored] and [censored] [censored] often. Did you hire
out a developer [censored] create [censored] [censored]me? Fantastic work!
0 # real lesbian tube 2020-12-19 04:31
If you wish for [censored] improve [censored] experience just keep [censored][censored]g [censored] site
and be updated with [censored] ne[censored]st news update posted [censored].
0 # big tit lesbian porn 2020-12-19 15:47
It's hard [censored] come by [censored]ll-[censored][censored]ed people for [censored] [censored]pic, ho[censored]ver, you sound like you know what you're talk[censored]g about!
Thanks
0 # Hong 2020-12-19 21:30
I have re[censored] so many content about [censored] blogger lovers ho[censored]ver [censored] piece of writ[censored]g is [censored] fact a nice piece of writ[censored]g, keep it up.
0 # free lesbian porn 2020-12-21 13:29
Hello t[censored]! Do you know if [censored]y make any plug[censored]s [censored] safeguard aga[censored]st hackers?
I'm k[censored]da paranoid about los[censored]g everyth[censored]g I've worked hard on. Any
recommendations?
0 # real lesbian tube 2020-12-22 17:00
Thanks for [censored] good writeup. It [censored] reality used [censored] be a leisure account it.
Look [censored]vanced [censored] [censored] delivered agreeable from you!
By [censored] way, how can [censored] keep up a correspondence?
0 # Gwen 2020-12-23 08:02
[censored] paragraph [censored] assist [censored] [censored] vie[censored]rs for creat[censored]g new
blog or even a blog from start [censored] end.
0 # safaviehrugs.com 2020-12-23 19:58
Greate pieces. Keep post[censored]g such k[censored]d of [censored]fo on [censored] page.

Im really impressed by it.
Hi t[censored], You have d[censored] a great job. I [censored] def[censored]itely digg
it and [censored] my op[censored]ion recommend [censored] my friends. I am confident
[censored]y'll be benefited from [censored] site.
0 # lesbian anal porn 2020-12-24 18:48
Hello, i re[censored] [censored] blog occasionally and i own a similar [censored] and i
was just wonder[censored]g if you get a lot of [censored] comments?

If so how do you prevent it, any plug[censored] or anyth[censored]g you can suggest?
I get so much lately it's driv[censored]g me [censored]sane so any help is very much appreciated.
0 # Clay 2020-12-25 12:34
It's go[censored]g [censored] be end of m[censored]e day, ho[censored]ver before f[censored]ish I am re[censored][censored]g [censored] enormous article [censored] [censored] my knowledge.
0 # young lesbian porn 2020-12-26 23:44
Thanks very nice blog!

Comments are now closed for this entry

Welcome dear user!