<?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 X, Y &amp;amp; Z Values From Accelerometer connected to nRF52840 DK</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/72773/reading-x-y-z-values-from-accelerometer-connected-to-nrf52840-dk</link><description>Hi, 
 I was wondering what example to use if I have an accelerometer on a breadboard connected to the nRF52840 DK via TWI/SPI and the DK connected via USB to my Mac? I want to obtain the X, Y and Z values from the accelerometer but the SPI slave and master</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 15 Mar 2021 23:14:47 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/72773/reading-x-y-z-values-from-accelerometer-connected-to-nrf52840-dk" /><item><title>RE: Reading X, Y &amp; Z Values From Accelerometer connected to nRF52840 DK</title><link>https://devzone.nordicsemi.com/thread/299960?ContentTypeID=1</link><pubDate>Mon, 15 Mar 2021 23:14:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4ee9942c-0e66-4f8d-985c-d0694a48f014</guid><dc:creator>Jaz</dc:creator><description>&lt;p&gt;Thanks so much&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;J&amp;oslash;rgen, you helped a lot! I hadn&amp;#39;t come across this user-guide&amp;nbsp;before.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reading X, Y &amp; Z Values From Accelerometer connected to nRF52840 DK</title><link>https://devzone.nordicsemi.com/thread/299935?ContentTypeID=1</link><pubDate>Mon, 15 Mar 2021 17:31:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:13eeed38-9184-4c7b-ae28-6b7574cfb76d</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;You need to implement the functions to initialize + read/write registers over SPI/TWI on the nRF52 platform. There is a &lt;a href="https://github.com/mcubemems/mCube_mc36xx_mcu_driver/blob/master/MC36XX_MCU_3.1.0/mCube%20-%20MC36XX%20-%20Programming%20Guide%20%20v1.1.1.pdf"&gt;user-guide&lt;/a&gt; in the repository.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reading X, Y &amp; Z Values From Accelerometer connected to nRF52840 DK</title><link>https://devzone.nordicsemi.com/thread/299898?ContentTypeID=1</link><pubDate>Mon, 15 Mar 2021 16:16:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:62b8ea62-f62c-4eab-9967-2fdac0143822</guid><dc:creator>Jaz</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;J&amp;oslash;rgen,&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks for your quick reply. If I run the .c and .h files you linked in Segger Embedded Studios with the DK connected, will I be&amp;nbsp;able to read the sensor values or do I need to implement some other code as well?&amp;nbsp;Thanks.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reading X, Y &amp; Z Values From Accelerometer connected to nRF52840 DK</title><link>https://devzone.nordicsemi.com/thread/299895?ContentTypeID=1</link><pubDate>Mon, 15 Mar 2021 16:11:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a70ec4da-4a76-44da-be29-f16ed79a9ef2</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;The register interface is described in chapter 7 of the first datasheet you linked. This describes the commands you use to configure and read the sensor.&lt;/p&gt;
&lt;p&gt;Looks like the manufacturer provides a generic driver for this device family with a&amp;nbsp;&lt;a href="https://github.com/mcubemems/mCube_mc36xx_mcu_driver/tree/master/MC36XX_MCU_3.1.0/src/drv/platform/bus"&gt;platform abstraction layer&lt;/a&gt;, which should make it very easy to port the driver to use with nRF52840.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reading X, Y &amp; Z Values From Accelerometer connected to nRF52840 DK</title><link>https://devzone.nordicsemi.com/thread/299881?ContentTypeID=1</link><pubDate>Mon, 15 Mar 2021 15:29:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:faef4a1d-87b0-4d70-aeb6-73dbc863afe6</guid><dc:creator>Jaz</dc:creator><description>&lt;p&gt;Just to let you know, I&amp;#39;m using SES as my IDE but the EV3672 board only mentions how to read values with an Arduino using Keil, although the evaluation board does support the nRF52840.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reading X, Y &amp; Z Values From Accelerometer connected to nRF52840 DK</title><link>https://devzone.nordicsemi.com/thread/299870?ContentTypeID=1</link><pubDate>Mon, 15 Mar 2021 15:16:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:85b239d9-f58b-48ea-aa18-20be2fc3e859</guid><dc:creator>Jaz</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;J&amp;oslash;rgen,&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks for your reply. I&amp;#39;m wanting to use the MC3672 accelerometer who&amp;#39;s&amp;nbsp;data sheet I&amp;#39;ve&amp;nbsp;&lt;/span&gt;attached:&amp;nbsp;&lt;a href="https://mcubemems.com/wp-content/uploads/2016/12/MC3672-Preliminary-Datasheet-APS-045-0018v1.0.pdf"&gt;https://mcubemems.com/wp-content/uploads/2016/12/MC3672-Preliminary-Datasheet-APS-045-0018v1.0.pdf&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m using the EV3672 board which the accelerometer is mounted on so maybe this data sheet will be of more use:&amp;nbsp;&lt;a href="https://media.digikey.com/pdf/Data%20Sheets/MEMSIC%20PDFs/EV3672A+B%20QSG_Demo.pdf"&gt;https://media.digikey.com/pdf/Data%20Sheets/MEMSIC%20PDFs/EV3672A+B%20QSG_Demo.pdf&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;d be extremely grateful if you could point me to where I can find out about how two configure the sensor for the accelerometer, I need to figure out how to obtain these values by the end of today and I don&amp;#39;t know if I&amp;#39;ll be able to so I&amp;#39;d really appreciate your help!&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reading X, Y &amp; Z Values From Accelerometer connected to nRF52840 DK</title><link>https://devzone.nordicsemi.com/thread/299773?ContentTypeID=1</link><pubDate>Mon, 15 Mar 2021 12:42:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:452181b7-f1f2-4ab3-8b89-3eb577e52074</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;This depends on which accelerometer you want to read data from. You need to read the datasheet of the device to see what commands you need to write to the sensor to configure it correctly and read data. Then you can start out with the SPI master or TWI sensor examples, based on which interface the sensor supports. Both these examples implement logging through NRF_LOG module, either over UART or RTT interface to a PC.&lt;/p&gt;
&lt;p&gt;There are some examples for some MPU accelerometer devices in this repository: &lt;a href="https://github.com/Martinsbl/nrf5-mpu-examples"&gt;https://github.com/Martinsbl/nrf5-mpu-examples&lt;/a&gt;,&amp;nbsp;but these are based on an old SDK version.&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>