<?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>i have a nrf52840 dk. i wnt to connect a gy-80 module and get the x, y, z axis</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/56869/i-have-a-nrf52840-dk-i-wnt-to-connect-a-gy-80-module-and-get-the-x-y-z-axis</link><description>the gy-80 module which has 
 1. HMC5883L 
 2. BMP-085 
 3. L3G4200D 
 4.ADXL345 
 i want to get the x, y, z axis of the sensor&amp;#39;s position 
 which example i have to use and how to modify it.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 23 Jan 2020 15:05:10 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/56869/i-have-a-nrf52840-dk-i-wnt-to-connect-a-gy-80-module-and-get-the-x-y-z-axis" /><item><title>RE: i have a nrf52840 dk. i wnt to connect a gy-80 module and get the x, y, z axis</title><link>https://devzone.nordicsemi.com/thread/230689?ContentTypeID=1</link><pubDate>Thu, 23 Jan 2020 15:05:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:00f3749f-a817-42a5-a960-92cceb8ca3db</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;The example initializes the TWI driver using nrf_drv_twi_init, then use&amp;nbsp;nrf_drv_twi_tx/nrf_drv_twi_rx to write/read registers. The driver works in non-blocking mode, meaning that the CPU can sleep or perform other operations while the TWI peripheral transfers/receives data. When a transfer is completed, an interrupt is generated and an event is passed to&amp;nbsp;twi_handler.&lt;/p&gt;
&lt;p&gt;You need to modify the example to use the TWI address of your sensor and use the tx/rx functions in the correct order to write/read the correct registers according to the sensor&amp;#39;s datasheet.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: i have a nrf52840 dk. i wnt to connect a gy-80 module and get the x, y, z axis</title><link>https://devzone.nordicsemi.com/thread/230647?ContentTypeID=1</link><pubDate>Thu, 23 Jan 2020 13:53:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ae78e8ef-3b89-4c26-9bb5-93e94ff6c346</guid><dc:creator>saver</dc:creator><description>&lt;p&gt;i am new to this board&lt;/p&gt;
&lt;p&gt;how to understand the TWI sensor example code.&lt;/p&gt;
&lt;p&gt;these gy-80 also has SCL and SDA pins how to interface it.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: i have a nrf52840 dk. i wnt to connect a gy-80 module and get the x, y, z axis</title><link>https://devzone.nordicsemi.com/thread/230607?ContentTypeID=1</link><pubDate>Thu, 23 Jan 2020 13:02:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0572b097-0dd3-4f7d-b9c4-71c19506e81c</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;It looks like the board has a I2C interface. You can start out with the &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/twi_sensor_example.html"&gt;TWI sensor example&lt;/a&gt;. We do not have any specific examples interfacing with these sensors. You will have to read the datasheet of the devices and modify the example to read/write the correct registers to get the sensor data that you want.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>