{"id":738,"date":"2014-12-26T11:10:18","date_gmt":"2014-12-26T11:10:18","guid":{"rendered":"http:\/\/ava.upuaut.net\/?p=738"},"modified":"2014-12-28T15:15:34","modified_gmt":"2014-12-28T15:15:34","slug":"getting-started-with-ublox-part-1","status":"publish","type":"post","link":"https:\/\/ava.upuaut.net\/?p=738","title":{"rendered":"Getting started with Ublox Part 1 &#8211; Basic Operation of the Breakout Board"},"content":{"rendered":"<p>Ublox GPS modules are used heavily in HAB due to their high performance, altitude limit and power usage. They are extremely well <a href=\"http:\/\/www.u-blox.com\/en\/download\/documents-a-resources\/u-blox-m8-gnss-modules.html\">documented<\/a>. By default they output NMEA strings at 9600 baud but with a max altitude limit of 12km . There are a number of ways to communicate with the module NMEA, PUBX or the binary UBX protocol.<\/p>\n<p>For these examples we are going to use a <a href=\"http:\/\/ava.upuaut.net\/store\/index.php?route=product\/product&amp;path=59_60&amp;product_id=68\">HAB Supplies\u00a0uBLOX MAX-M8Q Breakout With Quad-V Antenna for Arduino<\/a>\u00a0linking to an Arduino Duemilanove.<\/p>\n<p><span style=\"text-decoration: underline;\"><strong>Basic Operation Test<\/strong><\/span><br \/>\n<a href=\"http:\/\/ava.upuaut.net\/wp-content\/uploads\/2014\/12\/arduino_example.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignright size-large wp-image-739\" src=\"\/\/ava.upuaut.net\/wp-content\/uploads\/2014\/12\/arduino_example-1024x696.jpg\" alt=\"arduino_example\" width=\"620\" height=\"421\" srcset=\"https:\/\/ava.upuaut.net\/wp-content\/uploads\/2014\/12\/arduino_example-1024x696.jpg 1024w, https:\/\/ava.upuaut.net\/wp-content\/uploads\/2014\/12\/arduino_example-300x204.jpg 300w\" sizes=\"auto, (max-width: 620px) 100vw, 620px\" \/><\/a>Connect as follows :<\/p>\n<p>Arduino 5V to GPS Board 5V<br \/>\nArduino GND to GPS Board GND<br \/>\nArduino Pin 0 (RX) to GPS Board RX<br \/>\nArduino Pin 1 (TX) to GPS Board TX<br \/>\nArduino Pin 2 to GPS Board EN<\/p>\n<p>Load the following sketch. All this does is turn the level convertor on the GPS Board so data from the GPS module is passed through to the Arduinos USB to Serial port.<\/p>\n<pre class=\"brush: cpp; title: ; notranslate\" title=\"\">\r\n\r\n#define GPSENABLE 2\r\n\r\nvoid setup() {\r\n pinMode(GPSENABLE, OUTPUT);\r\n digitalWrite(GPSENABLE, HIGH);\r\n}\r\n\r\nvoid loop() {\r\n}\r\n\r\n<\/pre>\n<p>Once loaded press the serial monitor button in Arduino and you should see NMEA strings being output :<\/p>\n<p><a href=\"http:\/\/ava.upuaut.net\/wp-content\/uploads\/2014\/12\/arduino_example2.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignright size-full wp-image-742\" src=\"\/\/ava.upuaut.net\/wp-content\/uploads\/2014\/12\/arduino_example2.jpg\" alt=\"arduino_example2\" width=\"865\" height=\"571\" srcset=\"https:\/\/ava.upuaut.net\/wp-content\/uploads\/2014\/12\/arduino_example2.jpg 865w, https:\/\/ava.upuaut.net\/wp-content\/uploads\/2014\/12\/arduino_example2-300x198.jpg 300w\" sizes=\"auto, (max-width: 865px) 100vw, 865px\" \/><\/a>If you stick the module in a window or outside you should start to see a clock and then actual location information. At this point if you&#8217;re a Windows user you can go download the <a href=\"http:\/\/www.u-blox.com\/en\/evaluation-software\/u-center.html\">Ublox U-Center<\/a>. All the commands referenced in the following examples were obtained via U-Center. Close Arduino down, open U-Center and point it at the Arduino&#8217;s COM port :<\/p>\n<p><a href=\"http:\/\/ava.upuaut.net\/wp-content\/uploads\/2014\/12\/ucenter.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignright size-large wp-image-744\" src=\"\/\/ava.upuaut.net\/wp-content\/uploads\/2014\/12\/ucenter-1024x630.jpg\" alt=\"ucenter\" width=\"620\" height=\"381\" srcset=\"https:\/\/ava.upuaut.net\/wp-content\/uploads\/2014\/12\/ucenter-1024x630.jpg 1024w, https:\/\/ava.upuaut.net\/wp-content\/uploads\/2014\/12\/ucenter-300x184.jpg 300w, https:\/\/ava.upuaut.net\/wp-content\/uploads\/2014\/12\/ucenter.jpg 1335w\" sizes=\"auto, (max-width: 620px) 100vw, 620px\" \/><\/a><\/p>\n<p>Note the GLONASS Satellite (Russian flag). Ok so how do we use this to ascertain the commands we want to send to the GPS module to put it in high altitude mode.<\/p>\n<p>In Ucenter click View -&gt; Messages.<\/p>\n<p>Click the + next to NMEA to collapse it and then click the + next to UBX to expand it. Click + next to CFG to expand. UBX-CFG is where most of the configuration commands for the Ublox modules are located. All these commands are covered in extreme detail in the <a href=\"http:\/\/www.u-blox.com\/images\/downloads\/Product_Docs\/u-bloxM8_ReceiverDescriptionProtocolSpec_(UBX-13003221)_Public.pdf\">Ublox\u00a0Receiver Description\u00a0Including Protocol Specification<\/a>.<\/p>\n<p>However I&#8217;ll advise the setting to enable operation above 12km is down UBX-CFG-NAV5. Click NAV5. If you drop the dynamic model box down from the default 0 &#8211; Portable mode to\u00a06 &#8211; Airborne &lt; 1g you will notice the table at the bottom kindly gives the binary string you need to send to the module to enable this mode :<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n\r\n0000 B5 62 06 24 24 00 FF FF 06 03 \u00b5b\u000b$$\u000b\u00ff\u00ff\r\n000A 00 00 00 00 10 27 00 00 05 00 \u000b\u000b\u000b\u000b\u000b'\r\n0014 FA 00 FA 00 64 00 2C 01 00 3C \u00fa\u000b\u00fa\u000bd\u000b,\u000b\u000b&lt;\r\n001E 00 00 00 00 C8 00 00 00 00 00 \u000b\u000b\u000b\u000b\u00c8\r\n0028 00 00 1A 28\r\n<\/pre>\n<p>So basically we need to send this to the GPS module and check it acknowledges it. This is discussed in Part 2 of this article.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ublox GPS modules are used heavily in HAB due to their high performance, altitude limit and power usage. They are extremely well documented. By default they output NMEA strings at 9600 baud but with a max altitude limit of 12km &hellip;<\/p>\n<p class=\"read-more\"><a href=\"https:\/\/ava.upuaut.net\/?p=738\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-738","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/ava.upuaut.net\/index.php?rest_route=\/wp\/v2\/posts\/738","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ava.upuaut.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ava.upuaut.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ava.upuaut.net\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/ava.upuaut.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=738"}],"version-history":[{"count":9,"href":"https:\/\/ava.upuaut.net\/index.php?rest_route=\/wp\/v2\/posts\/738\/revisions"}],"predecessor-version":[{"id":767,"href":"https:\/\/ava.upuaut.net\/index.php?rest_route=\/wp\/v2\/posts\/738\/revisions\/767"}],"wp:attachment":[{"href":"https:\/\/ava.upuaut.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=738"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ava.upuaut.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=738"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ava.upuaut.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=738"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}