<?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>NRF 52 GY-87</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/23436/nrf-52-gy-87</link><description>Hi,i m working in uav project with nr52 and GY-87 that contains mpu6050 and hmc8553 as sensor. i use i2clib to do connexion with twi created by jeff rowberg, then i wrote an mpu6050 library that worked vey well. i wrote also a hmc5883 library inspired</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 22 Aug 2017 08:56:40 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/23436/nrf-52-gy-87" /><item><title>RE: NRF 52 GY-87</title><link>https://devzone.nordicsemi.com/thread/92101?ContentTypeID=1</link><pubDate>Tue, 22 Aug 2017 08:56:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7004ec53-1df9-4756-912d-007b0a32d684</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Could you upload traces of the transaction with the correct sequence? Do you get any error code when you write the bytes in the correct sequence with the writebyte function ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF 52 GY-87</title><link>https://devzone.nordicsemi.com/thread/92102?ContentTypeID=1</link><pubDate>Tue, 22 Aug 2017 08:22:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:76bae884-b3f8-475e-8755-811464f71c09</guid><dc:creator>omar </dc:creator><description>&lt;p&gt;Hi Bjorn ! I m sorry for my late reply. i think that i located where is my problem, but still no solution. In fact when i write one byte, i write data twice i didn&amp;#39;t send reg adress but when  i write data and reg  rigthly my programme bug and blocked when i call writebyte fonction. this my source file  &lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/i2cdev.h"&gt;i2cdev.c&lt;/a&gt;(/attachment/ef8701c95acddf3724826c95682c0ed8) please take a look .&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF 52 GY-87</title><link>https://devzone.nordicsemi.com/thread/92093?ContentTypeID=1</link><pubDate>Fri, 28 Jul 2017 14:38:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a6c54062-d0d3-4387-8861-c9ba30d20270</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Its hard to see the individual bits, but the second byte should not be 0x3D as this is the read address. How are you calling the functions in the library? Your goal is to write 0x07 to register 0x01( HMC5883L_RA_CONFIG_B) right? So the correct sequence should be 0x3C 0x01 0x07, i.e. you should be sending 3 bytes.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF 52 GY-87</title><link>https://devzone.nordicsemi.com/thread/92094?ContentTypeID=1</link><pubDate>Fri, 28 Jul 2017 11:14:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:36daffe0-1bd0-4431-ad86-e6e138691249</guid><dc:creator>omar </dc:creator><description>&lt;p&gt;HI Bjorn, what do you think !!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF 52 GY-87</title><link>https://devzone.nordicsemi.com/thread/92095?ContentTypeID=1</link><pubDate>Thu, 27 Jul 2017 11:52:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:359788a9-cd72-4f97-b7a6-9b4fd580dc12</guid><dc:creator>omar </dc:creator><description>&lt;p&gt;yes i m clocking two bytes and this is the two bytes : &lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/20427324_5F00_1603400013045870_5F00_622653958_5F00_o-_2800_1_2900_.jpg" alt="image description" /&gt;
but it wrote 0x3c and 0x3d but i write 0x32
in the registre 0x01 !!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF 52 GY-87</title><link>https://devzone.nordicsemi.com/thread/92091?ContentTypeID=1</link><pubDate>Thu, 27 Jul 2017 11:01:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:812bbbd9-d623-4812-b19d-a9ec60de669c</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;You&amp;#39;re only clocking out one byte, you should be clocking out two bytes, the address of the register you&amp;#39;re writing to and the value to be written to said register.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF 52 GY-87</title><link>https://devzone.nordicsemi.com/thread/92090?ContentTypeID=1</link><pubDate>Thu, 27 Jul 2017 10:20:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7137d757-7e82-4b62-bbb6-2526938da4fa</guid><dc:creator>omar </dc:creator><description>&lt;p&gt;this shot is for setting the gain 0x01 to hmcl5883l (0x1E, reg HMC5883L_RA_CONFIG_B 0x01,)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF 52 GY-87</title><link>https://devzone.nordicsemi.com/thread/92097?ContentTypeID=1</link><pubDate>Thu, 27 Jul 2017 10:17:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5e0ef131-4676-4049-86d9-77b2089a23d7</guid><dc:creator>omar </dc:creator><description>&lt;p&gt;yes, i take one shot &lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/Lenovo_5F00_A1000_5F00_IMG_5F00_20170727_5F00_115901.jpg" alt="image description" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF 52 GY-87</title><link>https://devzone.nordicsemi.com/thread/92100?ContentTypeID=1</link><pubDate>Thu, 27 Jul 2017 09:35:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:94ba74de-2fed-4205-8ce2-9855eee6ed35</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Can you perform a logic trace of the SDA and SCL pins to see what data that is actually sent over the TWI bus?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF 52 GY-87</title><link>https://devzone.nordicsemi.com/thread/92099?ContentTypeID=1</link><pubDate>Thu, 27 Jul 2017 09:33:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:65acb6d7-c804-493d-83e4-bcaa4f0aa1f3</guid><dc:creator>omar </dc:creator><description>&lt;p&gt;@Bjorn it doesn&amp;#39;t fail , no erro in return  but that don&amp;#39;t write the right bit for example i set gain to 0x07 but when i get gain it all time 0 ( default value). and the same for other function that use write_bit.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF 52 GY-87</title><link>https://devzone.nordicsemi.com/thread/92092?ContentTypeID=1</link><pubDate>Wed, 26 Jul 2017 14:50:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c258c174-3e35-41f1-bf57-1bf066ecba6a</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;@omart: Could you elaborate on what specifically does not work well with i2cdev_writeBit function? Does it fail, does it write to the incorrect bit etc? What kind of error code does the function return?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF 52 GY-87</title><link>https://devzone.nordicsemi.com/thread/92096?ContentTypeID=1</link><pubDate>Tue, 25 Jul 2017 16:24:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:511f6b0d-50a2-4a18-a05d-9d91e650e501</guid><dc:creator>omar </dc:creator><description>&lt;p&gt;Hi Bjorn ! i think you for yor answer !
i had already seen these examples. they worked well but with limited function. My own library contains many options and you can do many advanced thing  with it. My problem is that my function to write one bit seems that didn&amp;#39;t work well it&amp;#39;s &amp;quot;i2cdev_writeBit&amp;quot; ad i really blocked ecausse the same function and structure worked verry well with arduino. If you want take a look and try to help and thank you in advance !&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF 52 GY-87</title><link>https://devzone.nordicsemi.com/thread/92098?ContentTypeID=1</link><pubDate>Wed, 12 Jul 2017 09:18:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:890fe311-9b02-4954-9bac-9096af7030d3</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;I recommend that you take a look at &lt;a href="https://github.com/Martinsbl/nrf5-mpu-examples"&gt;this&lt;/a&gt; GitHub repo with MPU examples for the nRF52.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>