{"id":33,"date":"2025-08-21T00:14:28","date_gmt":"2025-08-20T17:14:28","guid":{"rendered":"https:\/\/blog.bacphan.dev\/?p=33"},"modified":"2025-08-21T00:15:28","modified_gmt":"2025-08-20T17:15:28","slug":"beaware-of-hmc5883-module","status":"publish","type":"post","link":"https:\/\/blog.bacphan.dev\/index.php\/2025\/08\/21\/beaware-of-hmc5883-module\/","title":{"rendered":"Beaware of HMC5883 Module"},"content":{"rendered":"\n<p>I was toying with cheap GY-721 module. This module is basically a break out for HMC5883L digital compass.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"480\" height=\"470\" src=\"https:\/\/blog.bacphan.dev\/wp-content\/uploads\/2025\/08\/image-1.png\" alt=\"\" class=\"wp-image-34\" style=\"width:465px;height:auto\" srcset=\"https:\/\/blog.bacphan.dev\/wp-content\/uploads\/2025\/08\/image-1.png 480w, https:\/\/blog.bacphan.dev\/wp-content\/uploads\/2025\/08\/image-1-300x294.png 300w\" sizes=\"auto, (max-width: 480px) 100vw, 480px\" \/><\/figure>\n\n\n\n<p>But that is story of the past. Turn out this module is so popular that the Chinese decided to replace the original chip with qmc5883 IC.<\/p>\n\n\n\n<p>Not a new story, they have already clone a lot of STM32 MCU, this IC is a child play for them.<\/p>\n\n\n\n<p>EXCEPT<\/p>\n\n\n\n<p>Their clone is nothing close to the original. The I2C address is different, the register map is also different.<\/p>\n\n\n\n<p>And to make it worse, there  are 2 variants of QMC5883: QMC5883L and QMC5883P.<\/p>\n\n\n\n<p>You guess it right, THE VARIANT is nothing close, aparently they come from diffrent vendors.<\/p>\n\n\n\n<p>And when you buy cheap ass GY271 module, it&#8217;s a lottery which chip you will get.<\/p>\n\n\n\n<p>I learnt it the hard way today.<\/p>\n\n\n\n<p>HMC5883L datasheet: <a href=\"https:\/\/www.farnell.com\/datasheets\/1683374.pdf\">https:\/\/www.farnell.com\/datasheets\/1683374.pdf<\/a><\/p>\n\n\n\n<p>QMC5883L datasheet:<\/p>\n\n\n\n<p>http:\/\/wiki.sunfounder.cc\/images\/7\/72\/QMC5883L-Datasheet-1.0.pdf<\/p>\n\n\n\n<p>QMC5883P datasheet:<\/p>\n\n\n\n<p><a href=\"https:\/\/www.qstcorp.com\/upload\/pdf\/202202\/%EF%BC%88%E5%B7%B2%E4%BC%A0%EF%BC%8913-52-19%20QMC5883P%20Datasheet%20Rev.C(1).pdf\">https:\/\/www.qstcorp.com\/upload\/pdf\/202202\/%EF%BC%88%E5%B7%B2%E4%BC%A0%EF%BC%8913-52-19%20QMC5883P%20Datasheet%20Rev.C(1).pdf<\/a><\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I was toying with cheap GY-721 module. This module is basically a break out for HMC5883L digital compass. But that is story of the past. Turn out this module is so popular that the Chinese decided to replace the original chip with qmc5883 IC. Not a new story, they have already clone a lot of [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-33","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/blog.bacphan.dev\/index.php\/wp-json\/wp\/v2\/posts\/33","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.bacphan.dev\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.bacphan.dev\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.bacphan.dev\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.bacphan.dev\/index.php\/wp-json\/wp\/v2\/comments?post=33"}],"version-history":[{"count":2,"href":"https:\/\/blog.bacphan.dev\/index.php\/wp-json\/wp\/v2\/posts\/33\/revisions"}],"predecessor-version":[{"id":36,"href":"https:\/\/blog.bacphan.dev\/index.php\/wp-json\/wp\/v2\/posts\/33\/revisions\/36"}],"wp:attachment":[{"href":"https:\/\/blog.bacphan.dev\/index.php\/wp-json\/wp\/v2\/media?parent=33"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.bacphan.dev\/index.php\/wp-json\/wp\/v2\/categories?post=33"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.bacphan.dev\/index.php\/wp-json\/wp\/v2\/tags?post=33"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}