<?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>HowTo: nRF52840 Dongle + 6 Axis IMU connected via SPI -&amp;gt; sending raw data with BLE to MatLab</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/84288/howto-nrf52840-dongle-6-axis-imu-connected-via-spi---sending-raw-data-with-ble-to-matlab</link><description>Hi, 
 I want to connect &amp;quot;nRF52840 Dongle&amp;quot; via SPI to an 6-Axis IMU (Adafruit ICM-20649 / InvenSense). The collected data (cycle = appx. 10ms) should be sent out with BLE to MatLab. 
 Is the an example or a comperable project on which I can build on? </description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 02 Feb 2022 14:38:10 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/84288/howto-nrf52840-dongle-6-axis-imu-connected-via-spi---sending-raw-data-with-ble-to-matlab" /><item><title>RE: HowTo: nRF52840 Dongle + 6 Axis IMU connected via SPI -&gt; sending raw data with BLE to MatLab</title><link>https://devzone.nordicsemi.com/thread/350918?ContentTypeID=1</link><pubDate>Wed, 02 Feb 2022 14:38:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e547b07b-99a9-4216-9fdd-e4ad29ecd2b3</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;I&amp;#39;m not aware of any samples with both Bluetooth and SPI/&lt;span&gt;ICM-20649&lt;/span&gt;&amp;nbsp;support, but if you get both of them to work separately, it should be easy to merge them together.&lt;/p&gt;
&lt;p&gt;Unfortunately, I could not find any ICM-20649 related samples. However I found a sample for the icm42605 (not sure how different it is from the icm20649?):&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/tree/69eb5d456ece91407a84d096edbeb690776254cd/samples/sensor/icm42605"&gt;ncs/zephyr/samples/sensor/icm42605&lt;/a&gt;. Maybe you could make it work by modifying the underlying driver&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/tree/69eb5d456ece91407a84d096edbeb690776254cd/drivers/sensor/icm42605"&gt;ncs/zephyr/drivers/sensor/icm42605&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;If you can&amp;#39;t get that to work, you can use the SPI API directly and write the driver for ICM20649 yourself on top of that, check out these SPI samples:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://github.com/crfosse/ncs_projects/tree/main/peripheral_zephyr/spi"&gt;https://github.com/crfosse/ncs_projects/tree/main/peripheral_zephyr/spi&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;You might need to modify this a little to make it compatible with NCS v1.8.0&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/tree/d4cde89906b0738436bb566f75b6fbbf57ff741f/tests/drivers/spi/spi_loopback"&gt;https://github.com/nrfconnect/sdk-zephyr/tree/d4cde89906b0738436bb566f75b6fbbf57ff741f/tests/drivers/spi/spi_loopback&lt;/a&gt;&amp;nbsp;
&lt;ul&gt;
&lt;li&gt;A test demonstrating how to use the SPI API&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Check out these folders to find Bluetooth samples:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/sdk-nrf/tree/v1.8.0/samples/bluetooth"&gt;ncs/nrf/samples/bluetooth&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/tree/v2.7.0-ncs1/samples/bluetooth"&gt;ncs/zephyr/samples/bluetooth&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Maybe&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-nrf/tree/v1.8.0/samples/bluetooth/peripheral_uart"&gt;https://github.com/nrfconnect/sdk-nrf/tree/v1.8.0/samples/bluetooth/peripheral_uart&lt;/a&gt;&amp;nbsp;would be a good starting point?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>