<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Reading from HMC5883L using I2C</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/15082/reading-from-hmc5883l-using-i2c</link><description>Hi, 
 I am currently in the process of interfacing the HMC5883L magnetometer with my nrf52 development board. I have verified the connection to be working using a logic analyzer. Furthermore, I have configured the sensor according to another post made</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 22 Jun 2017 19:31:23 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/15082/reading-from-hmc5883l-using-i2c" /><item><title>RE: Reading from HMC5883L using I2C</title><link>https://devzone.nordicsemi.com/thread/57590?ContentTypeID=1</link><pubDate>Thu, 22 Jun 2017 19:31:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:621774b3-48ef-454e-9b26-0d26943414c6</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;@omart: Please create a new question where you post your code and describe what behavior you&amp;#39;re seeing in detail.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reading from HMC5883L using I2C</title><link>https://devzone.nordicsemi.com/thread/57591?ContentTypeID=1</link><pubDate>Tue, 20 Jun 2017 09:47:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b47cd66a-3a1e-411d-a6e2-7e0dd883f520</guid><dc:creator>omar </dc:creator><description>&lt;p&gt;Hi, i testes your code source with GY-87 (mpu6050,hmc5883L) and nrf52832 , i activated the bypasse but no data received, how did u resolve the problem !&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reading from HMC5883L using I2C</title><link>https://devzone.nordicsemi.com/thread/57589?ContentTypeID=1</link><pubDate>Tue, 12 Jul 2016 12:42:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a6af31f5-0810-4b1b-b317-613c5ecfc08d</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Happy to help!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reading from HMC5883L using I2C</title><link>https://devzone.nordicsemi.com/thread/57588?ContentTypeID=1</link><pubDate>Tue, 12 Jul 2016 12:40:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ee056288-1973-4925-937d-fe44fee9345b</guid><dc:creator>LJohn</dc:creator><description>&lt;p&gt;Thank you, that worked. I got confused by the way the datasheet explains write/read operations.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reading from HMC5883L using I2C</title><link>https://devzone.nordicsemi.com/thread/57587?ContentTypeID=1</link><pubDate>Tue, 12 Jul 2016 08:28:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2845e909-358c-4533-8357-32ffa254d8d7</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;The I2C address of the HMC5833l should not be in the transmit buffers, it&amp;#39;s already given as an argument to nrf_drv_twi_tx. So the transmit buffers should look like this:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;uint8_t reg[2] = { HMC5883L_REG_CONF_A, 0x70};
uint8_t reg1[2] = { HMC5883L_REG_CONF_B, 0xA0};
uint8_t reg2[2] = { HMC5883L_REG_MODE, 0x00}; 

uint8_t reg3[1] = {HMC5883L_REG_X_MSB };
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The data registers ( 0x03 - 0x8) are read-only, so it makes no sense to write to these registers, so the last nrf_drv_twi_tx call and reg4 can be removed.&lt;/p&gt;
&lt;p&gt;Bjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reading from HMC5883L using I2C</title><link>https://devzone.nordicsemi.com/thread/57585?ContentTypeID=1</link><pubDate>Tue, 12 Jul 2016 08:14:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f25062ee-a6d8-4d15-bbf5-1e080d56ce65</guid><dc:creator>LJohn</dc:creator><description>&lt;p&gt;Yes, indeed, sorry for the confusion. However, this merely affects the labeling of probes.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reading from HMC5883L using I2C</title><link>https://devzone.nordicsemi.com/thread/57586?ContentTypeID=1</link><pubDate>Mon, 11 Jul 2016 20:54:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c282bcdd-e1ea-466c-88a9-3c5c75af4b0e</guid><dc:creator>Justin</dc:creator><description>&lt;p&gt;It looks like you have the logic analyzer setup to SPI where the device and code is using TWI/I2C&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>