{"id":994,"date":"2012-11-18T19:00:13","date_gmt":"2012-11-19T00:00:13","guid":{"rendered":"http:\/\/hackaweek.com\/hacks\/?p=994"},"modified":"2012-11-19T07:34:53","modified_gmt":"2012-11-19T12:34:53","slug":"parallax-hmc5883l-compass-module","status":"publish","type":"post","link":"http:\/\/hackaweek.com\/hacks\/parallax-hmc5883l-compass-module\/","title":{"rendered":"Parallax HMC5883L Compass Module with LCD Readout"},"content":{"rendered":"<p>This week I&#8217;m working with some more products from <a href=\"http:\/\/www.parallax.com\/\" target=\"_blank\">Parallax Electronics<\/a>. I&#8217;ve spent several hours at the bench figuring out how to get the Compass Module to display it&#8217;s readings to 2 x 16 LCD. I started out with the demo code for the compass module and modified it to output to the LCD instead of the serial terminal window. It took quite a bit of trial and error as I learned just what the demo code did and how it needed to be modified for the LCD. In the video you&#8217;ll see just what I changed to get it to work!<\/p>\n<p><strong>This is the board as I had it set up for this project:<\/strong><\/p>\n<p><a href=\"http:\/\/hackaweek.com\/hacks\/?attachment_id=999\" rel=\"attachment wp-att-999\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/hackaweek.com\/hacks\/wp-content\/uploads\/2012\/11\/compass-module-setup-001.jpg\" alt=\"\" title=\"compass module setup 001\" width=\"1000\" height=\"750\" class=\"alignnone size-full wp-image-999\" srcset=\"http:\/\/hackaweek.com\/hacks\/wp-content\/uploads\/2012\/11\/compass-module-setup-001.jpg 1000w, http:\/\/hackaweek.com\/hacks\/wp-content\/uploads\/2012\/11\/compass-module-setup-001-150x112.jpg 150w, http:\/\/hackaweek.com\/hacks\/wp-content\/uploads\/2012\/11\/compass-module-setup-001-300x225.jpg 300w, http:\/\/hackaweek.com\/hacks\/wp-content\/uploads\/2012\/11\/compass-module-setup-001-400x300.jpg 400w\" sizes=\"auto, (max-width: 1000px) 100vw, 1000px\" \/><\/a><\/p>\n<p><a href=\"http:\/\/hackaweek.com\/hacks\/?attachment_id=1000\" rel=\"attachment wp-att-1000\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/hackaweek.com\/hacks\/wp-content\/uploads\/2012\/11\/compass-module-setup-002.jpg\" alt=\"\" title=\"compass module setup 002\" width=\"1000\" height=\"750\" class=\"alignnone size-full wp-image-1000\" srcset=\"http:\/\/hackaweek.com\/hacks\/wp-content\/uploads\/2012\/11\/compass-module-setup-002.jpg 1000w, http:\/\/hackaweek.com\/hacks\/wp-content\/uploads\/2012\/11\/compass-module-setup-002-150x112.jpg 150w, http:\/\/hackaweek.com\/hacks\/wp-content\/uploads\/2012\/11\/compass-module-setup-002-300x225.jpg 300w, http:\/\/hackaweek.com\/hacks\/wp-content\/uploads\/2012\/11\/compass-module-setup-002-400x300.jpg 400w\" sizes=\"auto, (max-width: 1000px) 100vw, 1000px\" \/><\/a><\/p>\n<p><strong>This is the wiring diagram for the project:<\/strong><\/p>\n<p><a href=\"http:\/\/hackaweek.com\/hacks\/?attachment_id=1002\" rel=\"attachment wp-att-1002\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/hackaweek.com\/hacks\/wp-content\/uploads\/2012\/11\/parallax-compass-module-with-lcd-wiring.jpg\" alt=\"\" title=\"parallax compass module with lcd wiring\" width=\"575\" height=\"626\" class=\"alignnone size-full wp-image-1002\" srcset=\"http:\/\/hackaweek.com\/hacks\/wp-content\/uploads\/2012\/11\/parallax-compass-module-with-lcd-wiring.jpg 575w, http:\/\/hackaweek.com\/hacks\/wp-content\/uploads\/2012\/11\/parallax-compass-module-with-lcd-wiring-137x150.jpg 137w, http:\/\/hackaweek.com\/hacks\/wp-content\/uploads\/2012\/11\/parallax-compass-module-with-lcd-wiring-275x300.jpg 275w\" sizes=\"auto, (max-width: 575px) 100vw, 575px\" \/><\/a><\/p>\n<p><strong>You can download the code here:<\/strong><br \/>\n<a href='http:\/\/hackaweek.com\/hacks\/?attachment_id=1004' rel='attachment wp-att-1004'>compass with LCD V3.spin<\/a><\/p>\n<p><strong>Here are the links to the Parallax products used in this week&#8217;s project:<\/strong><br \/>\n<a href=\"http:\/\/www.parallax.com\/Store\/Microcontrollers\/PropellerDevelopmentBoards\/tabid\/514\/CategoryID\/73\/List\/0\/SortField\/0\/Level\/a\/ProductID\/802\/Default.aspx\" target=\"_blank\">Propeller Board Of Education<\/a><br \/>\n<a href=\"http:\/\/www.parallax.com\/StoreSearchResults\/tabid\/768\/txtSearch\/compass\/List\/0\/SortField\/4\/ProductID\/779\/Default.aspx\" target=\"_blank\">Parallax HMC5883L Compass Module<\/a><br \/>\n<a href=\"http:\/\/www.parallax.com\/StoreSearchResults\/tabid\/768\/List\/0\/SortField\/4\/ProductID\/50\/Default.aspx?txtSearch=27977+lcd\" target=\"_blank\">Parallax # 27977 2 x 16 Backlit LCD with Piezo Speaker<\/a><\/p>\n<p><strong>Enjoy the video and&#8230; Keep On Hackin!<br \/>\n<\/strong><br \/>\n<iframe loading=\"lazy\" width=\"640\" height=\"360\" src=\"http:\/\/www.youtube.com\/embed\/3joOzwHa-Uw\" frameborder=\"0\" allowfullscreen><\/iframe><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This week I&#8217;m working with some more products from Parallax Electronics. I&#8217;ve spent several hours at the bench figuring out how to get the Compass Module to display it&#8217;s readings to 2 x 16 LCD. I started out with the &hellip; <a href=\"http:\/\/hackaweek.com\/hacks\/parallax-hmc5883l-compass-module\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-994","post","type-post","status-publish","format-standard","hentry","category-hacks"],"_links":{"self":[{"href":"http:\/\/hackaweek.com\/hacks\/wp-json\/wp\/v2\/posts\/994","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/hackaweek.com\/hacks\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/hackaweek.com\/hacks\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/hackaweek.com\/hacks\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/hackaweek.com\/hacks\/wp-json\/wp\/v2\/comments?post=994"}],"version-history":[{"count":9,"href":"http:\/\/hackaweek.com\/hacks\/wp-json\/wp\/v2\/posts\/994\/revisions"}],"predecessor-version":[{"id":997,"href":"http:\/\/hackaweek.com\/hacks\/wp-json\/wp\/v2\/posts\/994\/revisions\/997"}],"wp:attachment":[{"href":"http:\/\/hackaweek.com\/hacks\/wp-json\/wp\/v2\/media?parent=994"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/hackaweek.com\/hacks\/wp-json\/wp\/v2\/categories?post=994"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/hackaweek.com\/hacks\/wp-json\/wp\/v2\/tags?post=994"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}