{"id":297,"date":"2020-06-18T08:42:45","date_gmt":"2020-06-18T08:42:45","guid":{"rendered":"http:\/\/blog.rctoysky.com\/?p=297"},"modified":"2025-12-24T01:40:39","modified_gmt":"2025-12-24T01:40:39","slug":"how-to-use-m8n-gps-for-f4v3s","status":"publish","type":"post","link":"https:\/\/blog.rctoysky.com\/?p=297","title":{"rendered":"How to use M8N GPS With IST8310 Compass for F4V3S And PLUS"},"content":{"rendered":"\n<p>When upload firmware, make sure to add <strong>Magnetometers<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"384\" height=\"157\" src=\"https:\/\/blog.rctoysky.com\/wp-content\/uploads\/2025\/12\/image.png\" alt=\"\" class=\"wp-image-1067\" srcset=\"https:\/\/blog.rctoysky.com\/wp-content\/uploads\/2025\/12\/image.png 384w, https:\/\/blog.rctoysky.com\/wp-content\/uploads\/2025\/12\/image-300x123.png 300w\" sizes=\"(max-width: 384px) 100vw, 384px\" \/><\/figure>\n\n\n\n<p>M8N GPS and compass must be set up correctly to use, so be sure to read the following tutorial.<\/p>\n\n\n\n<p>First should install the  configurator ,make sure you install the latest version.<\/p>\n\n\n\n<p>1. &nbsp;betaflight-configurator:&nbsp;<a href=\"https:\/\/github.com\/betaflight\/betaflight-configurator\/releases\">https:\/\/github.com\/betaflight\/betaflight-configurator\/releases<\/a><\/p>\n\n\n\n<p>2. cleanflight -configurator :<a href=\"https:\/\/github.com\/cleanflight\/cleanflight-configurator\/releases\">https:\/\/github.com\/cleanflight\/cleanflight-configurator\/releases<\/a><\/p>\n\n\n\n<p>3. INAV-Configurator:<a href=\"https:\/\/github.com\/iNavFlight\/inav-configurator\/releases\">https:\/\/github.com\/iNavFlight\/inav-configurator\/releases<\/a><\/p>\n\n\n\n<p><strong>1.How to connect?<\/strong><\/p>\n\n\n\n<p>This is the interface definition diagram of F4V3S.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"873\" height=\"585\" src=\"http:\/\/blog.rctoysky.com\/wp-content\/uploads\/2020\/07\/image-9.png\" alt=\"\" class=\"wp-image-311\" srcset=\"https:\/\/blog.rctoysky.com\/wp-content\/uploads\/2020\/07\/image-9.png 873w, https:\/\/blog.rctoysky.com\/wp-content\/uploads\/2020\/07\/image-9-300x201.png 300w, https:\/\/blog.rctoysky.com\/wp-content\/uploads\/2020\/07\/image-9-768x515.png 768w\" sizes=\"(max-width: 873px) 100vw, 873px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"919\" height=\"813\" src=\"http:\/\/blog.rctoysky.com\/wp-content\/uploads\/2023\/06\/image.png\" alt=\"\" class=\"wp-image-673\" srcset=\"https:\/\/blog.rctoysky.com\/wp-content\/uploads\/2023\/06\/image.png 919w, https:\/\/blog.rctoysky.com\/wp-content\/uploads\/2023\/06\/image-300x265.png 300w, https:\/\/blog.rctoysky.com\/wp-content\/uploads\/2023\/06\/image-768x679.png 768w\" sizes=\"(max-width: 919px) 100vw, 919px\" \/><\/figure>\n\n\n\n<p>The definition of GPS line is as follows:<\/p>\n\n\n\n<p>Red: VCC (+ 5V)<\/p>\n\n\n\n<p>Black: GND<\/p>\n\n\n\n<p>Green: TXD<\/p>\n\n\n\n<p>Yellow: RXD<\/p>\n\n\n\n<p>Purple: SCL<\/p>\n\n\n\n<p>White: SDA<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"433\" height=\"410\" src=\"http:\/\/blog.rctoysky.com\/wp-content\/uploads\/2020\/07\/image-8.png\" alt=\"\" class=\"wp-image-310\" srcset=\"https:\/\/blog.rctoysky.com\/wp-content\/uploads\/2020\/07\/image-8.png 433w, https:\/\/blog.rctoysky.com\/wp-content\/uploads\/2020\/07\/image-8-300x284.png 300w\" sizes=\"(max-width: 433px) 100vw, 433px\" \/><\/figure>\n\n\n\n<p><strong>NOTE:GPS&#8217;s TX should connect to F4V3S&#8217;s RX, GPS&#8217;s RX should connect to F4V3S&#8217;s TX, This step is very important<\/strong>.<\/p>\n\n\n\n<p><strong>2.How to setup for M8N GPS?<\/strong> <\/p>\n\n\n\n<p>set up for M8N GPS:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"254\" src=\"http:\/\/blog.rctoysky.com\/wp-content\/uploads\/2020\/07\/image-2-1024x254.png\" alt=\"\" class=\"wp-image-303\" srcset=\"https:\/\/blog.rctoysky.com\/wp-content\/uploads\/2020\/07\/image-2-1024x254.png 1024w, https:\/\/blog.rctoysky.com\/wp-content\/uploads\/2020\/07\/image-2-300x74.png 300w, https:\/\/blog.rctoysky.com\/wp-content\/uploads\/2020\/07\/image-2-768x190.png 768w, https:\/\/blog.rctoysky.com\/wp-content\/uploads\/2020\/07\/image-2.png 1441w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Then save and reboot.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"404\" src=\"http:\/\/blog.rctoysky.com\/wp-content\/uploads\/2020\/07\/image-3-1024x404.png\" alt=\"\" class=\"wp-image-304\" srcset=\"https:\/\/blog.rctoysky.com\/wp-content\/uploads\/2020\/07\/image-3-1024x404.png 1024w, https:\/\/blog.rctoysky.com\/wp-content\/uploads\/2020\/07\/image-3-300x118.png 300w, https:\/\/blog.rctoysky.com\/wp-content\/uploads\/2020\/07\/image-3-768x303.png 768w, https:\/\/blog.rctoysky.com\/wp-content\/uploads\/2020\/07\/image-3.png 1350w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p> Then save and reboot. Then you will see GPS mark is on.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"528\" height=\"149\" src=\"http:\/\/blog.rctoysky.com\/wp-content\/uploads\/2020\/07\/image-4.png\" alt=\"\" class=\"wp-image-305\" srcset=\"https:\/\/blog.rctoysky.com\/wp-content\/uploads\/2020\/07\/image-4.png 528w, https:\/\/blog.rctoysky.com\/wp-content\/uploads\/2020\/07\/image-4-300x85.png 300w\" sizes=\"(max-width: 528px) 100vw, 528px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"458\" height=\"179\" src=\"http:\/\/blog.rctoysky.com\/wp-content\/uploads\/2023\/06\/image-3.png\" alt=\"\" class=\"wp-image-679\" srcset=\"https:\/\/blog.rctoysky.com\/wp-content\/uploads\/2023\/06\/image-3.png 458w, https:\/\/blog.rctoysky.com\/wp-content\/uploads\/2023\/06\/image-3-300x117.png 300w\" sizes=\"(max-width: 458px) 100vw, 458px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"721\" height=\"214\" src=\"http:\/\/blog.rctoysky.com\/wp-content\/uploads\/2023\/06\/image-1.png\" alt=\"\" class=\"wp-image-676\" srcset=\"https:\/\/blog.rctoysky.com\/wp-content\/uploads\/2023\/06\/image-1.png 721w, https:\/\/blog.rctoysky.com\/wp-content\/uploads\/2023\/06\/image-1-300x89.png 300w\" sizes=\"(max-width: 721px) 100vw, 721px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"622\" src=\"http:\/\/blog.rctoysky.com\/wp-content\/uploads\/2023\/06\/image-2-1024x622.png\" alt=\"\" class=\"wp-image-677\" srcset=\"https:\/\/blog.rctoysky.com\/wp-content\/uploads\/2023\/06\/image-2-1024x622.png 1024w, https:\/\/blog.rctoysky.com\/wp-content\/uploads\/2023\/06\/image-2-300x182.png 300w, https:\/\/blog.rctoysky.com\/wp-content\/uploads\/2023\/06\/image-2-768x466.png 768w, https:\/\/blog.rctoysky.com\/wp-content\/uploads\/2023\/06\/image-2.png 1057w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><strong>2.How to setup for IST8310 compass?<\/strong><\/p>\n\n\n\n<p><strong>Note:if you use INAV firmware, no need this step, because INAV firmware can detect compass automatically. Betaflight and cleanflight firmware should do this step.<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"563\" height=\"276\" src=\"http:\/\/blog.rctoysky.com\/wp-content\/uploads\/2020\/07\/image-6.png\" alt=\"\" class=\"wp-image-307\" srcset=\"https:\/\/blog.rctoysky.com\/wp-content\/uploads\/2020\/07\/image-6.png 563w, https:\/\/blog.rctoysky.com\/wp-content\/uploads\/2020\/07\/image-6-300x147.png 300w\" sizes=\"(max-width: 563px) 100vw, 563px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>goto CLI screen to input command<\/p>\n\n\n\n<p><strong><code>resource I2C_SCL 2 B10<br>resource I2C_SDA 2 B11<br>resource SERIAL_TX 3 none<br>resource SERIAL_RX 3 none<br>set mag_bustype = I2C<br>set mag_i2c_device = 2<br>set mag_i2c_address = 14<br>set mag_hardware = AUTO<br>save<\/code><\/strong><\/p>\n\n\n\n<p><strong>According to the above command input, press the ENTER key of the keyboard after each line of command input. Remember to enter the &#8220;save&#8221; command at the end, otherwise all commands will not work.<\/strong><\/p>\n\n\n\n<p>The above command means to disable serial 3 and enable I2C function, because serial port 3 and I2C share one interface, <strong>we must manually enable I2C and disable serial 3.<\/strong><\/p>\n\n\n\n<p>Then reboot the board.You will see the Mag mark is on.more information ,you can read here.<a href=\"https:\/\/www.rcgroups.com\/forums\/showthread.php?3073449-Omnibus-Nano-F4-v6\/page15\">https:\/\/www.rcgroups.com\/forums\/showthread.php?3073449-Omnibus-Nano-F4-v6\/page15<\/a><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"503\" height=\"154\" src=\"http:\/\/blog.rctoysky.com\/wp-content\/uploads\/2020\/07\/image-7.png\" alt=\"\" class=\"wp-image-308\" srcset=\"https:\/\/blog.rctoysky.com\/wp-content\/uploads\/2020\/07\/image-7.png 503w, https:\/\/blog.rctoysky.com\/wp-content\/uploads\/2020\/07\/image-7-300x92.png 300w\" sizes=\"(max-width: 503px) 100vw, 503px\" \/><\/figure>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>When upload firmware, make sure to add Magnetometers. M8N GPS and compass must be set up correctly to use, so<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"_links":{"self":[{"href":"https:\/\/blog.rctoysky.com\/index.php?rest_route=\/wp\/v2\/posts\/297"}],"collection":[{"href":"https:\/\/blog.rctoysky.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.rctoysky.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.rctoysky.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.rctoysky.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=297"}],"version-history":[{"count":15,"href":"https:\/\/blog.rctoysky.com\/index.php?rest_route=\/wp\/v2\/posts\/297\/revisions"}],"predecessor-version":[{"id":1068,"href":"https:\/\/blog.rctoysky.com\/index.php?rest_route=\/wp\/v2\/posts\/297\/revisions\/1068"}],"wp:attachment":[{"href":"https:\/\/blog.rctoysky.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=297"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.rctoysky.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=297"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.rctoysky.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=297"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}