<?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>To collect multiple sensor values and transmit it over bluetooth using nrf52840 DK</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/30832/to-collect-multiple-sensor-values-and-transmit-it-over-bluetooth-using-nrf52840-dk</link><description>Hello! 
 I&amp;#39;m looking to build an application on nrf52840 DK that collects multiple sensor values and transmits it over Bluetooth. For now, I don&amp;#39;t have a bluetooth application of my own so it&amp;#39;s enough if I&amp;#39;m able to read those values using nrf connect</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 29 Mar 2018 14:00:28 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/30832/to-collect-multiple-sensor-values-and-transmit-it-over-bluetooth-using-nrf52840-dk" /><item><title>RE: To collect multiple sensor values and transmit it over bluetooth using nrf52840 DK</title><link>https://devzone.nordicsemi.com/thread/126406?ContentTypeID=1</link><pubDate>Thu, 29 Mar 2018 14:00:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:be45f799-53a8-4df0-b774-3cb24ba3f4fc</guid><dc:creator>sprasad</dc:creator><description>&lt;p&gt;Hey Var,&lt;/p&gt;
&lt;p&gt;That header file which you are looking for is in&lt;/p&gt;
&lt;p&gt;components/ble/ble_services/ble_mpu/&lt;/p&gt;
&lt;p&gt;To build the example shared by Karthikeyan you can follow these steps:&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Use Preprocessor-&amp;gt;Preprocessor Definitions to define the following&lt;/em&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;em&gt;MPU9255&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;&lt;em&gt;MPU_USES_TWI&lt;/em&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;em&gt;Include &amp;quot;&lt;span&gt;components/ble/&lt;/span&gt;ble_services/ble_mpu&amp;quot; in Preprocessor-&amp;gt;User Include Directories&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Add drivers for &lt;/em&gt;twi&lt;em&gt; and &lt;/em&gt;mpu twi&lt;em&gt; in &lt;/em&gt;nRF_Drivers&lt;em&gt; folder of the project&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Add &lt;/em&gt;mpu&lt;em&gt; files from ble_services/ble_mpu in &lt;/em&gt;ble&lt;em&gt; folder of the project&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Enable TWI in sdk_config.&lt;/em&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: To collect multiple sensor values and transmit it over bluetooth using nrf52840 DK</title><link>https://devzone.nordicsemi.com/thread/126399?ContentTypeID=1</link><pubDate>Thu, 29 Mar 2018 12:33:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a7d7f246-2a73-496b-8caf-b17617fc182f</guid><dc:creator>karthikeyan</dc:creator><description>&lt;p&gt;hi var,&lt;/p&gt;
&lt;p&gt;&amp;nbsp; there is app_mpu.h file in the zip file. you no need to write code by yourself. in your compiler you just add relative path for app_mpu.h file.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;cheers&lt;/p&gt;
&lt;p&gt;karthikeyan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: To collect multiple sensor values and transmit it over bluetooth using nrf52840 DK</title><link>https://devzone.nordicsemi.com/thread/126398?ContentTypeID=1</link><pubDate>Thu, 29 Mar 2018 12:17:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:312d99f5-13a4-46d8-9aea-0f7f630a3052</guid><dc:creator>Var</dc:creator><description>&lt;p&gt;Compiler that Embedded studio uses is by default GCC.&lt;/p&gt;
&lt;p&gt;On compiling there is an error &amp;quot; app_mpu.h file cannot be found&amp;quot;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: To collect multiple sensor values and transmit it over bluetooth using nrf52840 DK</title><link>https://devzone.nordicsemi.com/thread/126395?ContentTypeID=1</link><pubDate>Thu, 29 Mar 2018 11:57:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e1b193f1-c40e-4ef0-98c6-eda9888faede</guid><dc:creator>karthikeyan</dc:creator><description>&lt;p&gt;hi var,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;the mpu zip file i have posted will work out of box. in which compiler are you working with.&lt;/p&gt;
&lt;p&gt;cheers&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: To collect multiple sensor values and transmit it over bluetooth using nrf52840 DK</title><link>https://devzone.nordicsemi.com/thread/126394?ContentTypeID=1</link><pubDate>Thu, 29 Mar 2018 11:54:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:610989bd-d16e-49fd-baac-b5330d25959e</guid><dc:creator>Var</dc:creator><description>&lt;p&gt;Hi Karthikeyan,&lt;/p&gt;
&lt;p&gt;1) I am trying out the above ble_ app_template code for a MPU9250 but I am confused as to how to go around including the drivers for it in the project explorer and also I tried compiling the file from the mpu.zip and it throws an error for the #include app_mpu.h in the main.c saying that no such file or directory found. I could not find the file. If this needs to be written then would you be kind enough to point me in a direction where I can start.&lt;/p&gt;
&lt;p&gt;2) Could you also help me understand the SDK and how to go through it since there seem to be many folders with .h and .c files and which ones to use. Any general structure or procedure or even a nudge in the right direction would be helpful.&lt;/p&gt;
&lt;p&gt;I am using Segger embedded studio and SDK 14.2.0 currently.&lt;/p&gt;
&lt;p&gt;Thank you!!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: To collect multiple sensor values and transmit it over bluetooth using nrf52840 DK</title><link>https://devzone.nordicsemi.com/thread/122152?ContentTypeID=1</link><pubDate>Tue, 27 Feb 2018 14:35:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:49c44b00-2f26-4ed9-baf6-0ff0b39fb708</guid><dc:creator>sprasad</dc:creator><description>&lt;p&gt;Will look into it. Thanks again!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: To collect multiple sensor values and transmit it over bluetooth using nrf52840 DK</title><link>https://devzone.nordicsemi.com/thread/122083?ContentTypeID=1</link><pubDate>Tue, 27 Feb 2018 09:59:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8555b6f9-afac-4c89-aa8b-e4a3597ce497</guid><dc:creator>karthikeyan</dc:creator><description>&lt;p&gt;hi,&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/mpu.zip"&gt;devzone.nordicsemi.com/.../mpu.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;if you have mpu 6050. just extract this go to example--&amp;gt;ble_peripheral--&amp;gt;ble_template. build it and load the file in your dk. no need to make any modifications. the output can be seen through uart and as well as in nrf_connect app. the&amp;nbsp;&lt;/p&gt;
&lt;p&gt;twi_sda is p0.26&lt;/p&gt;
&lt;p&gt;twi_scl is p0.27&lt;/p&gt;
&lt;p&gt;the output of accel values will be displayed for every one sec. in nrf_connect app. connect the device go to services enable notification.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: To collect multiple sensor values and transmit it over bluetooth using nrf52840 DK</title><link>https://devzone.nordicsemi.com/thread/122067?ContentTypeID=1</link><pubDate>Tue, 27 Feb 2018 09:13:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c8ddb910-e547-41bb-94e2-4355d7238805</guid><dc:creator>sprasad</dc:creator><description>&lt;p&gt;That would be great! Can you please share it? Thanks a lot!!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: To collect multiple sensor values and transmit it over bluetooth using nrf52840 DK</title><link>https://devzone.nordicsemi.com/thread/122032?ContentTypeID=1</link><pubDate>Tue, 27 Feb 2018 04:34:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5ca83fc0-d4c5-4106-8bf1-d9d636eb724a</guid><dc:creator>karthikeyan</dc:creator><description>&lt;p&gt;hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp; i have done mpu 6050 interfaced in twi using sdk 14.2 and got success. having that source code if you need i can give u&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: To collect multiple sensor values and transmit it over bluetooth using nrf52840 DK</title><link>https://devzone.nordicsemi.com/thread/121971?ContentTypeID=1</link><pubDate>Mon, 26 Feb 2018 14:13:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e294ed8a-e58c-4aa9-a19e-0fc1203d82e9</guid><dc:creator>sprasad</dc:creator><description>&lt;p&gt;I&amp;#39;m using SDK_v_14.2. Also, the twi&amp;nbsp;example assumes that we have a sensor shield connected to the development kit. I just have a BNO055 accelerometer breakout board which I want to interface. How do I get started?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: To collect multiple sensor values and transmit it over bluetooth using nrf52840 DK</title><link>https://devzone.nordicsemi.com/thread/121947?ContentTypeID=1</link><pubDate>Mon, 26 Feb 2018 11:34:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f0f5f9ac-2973-4902-8b47-ef208110097d</guid><dc:creator>karthikeyan</dc:creator><description>&lt;p&gt;hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp; which sdk you are using. and if you want to connect the sensor in i2c(twi). there is an example for twi. from there you can start.&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: To collect multiple sensor values and transmit it over bluetooth using nrf52840 DK</title><link>https://devzone.nordicsemi.com/thread/121860?ContentTypeID=1</link><pubDate>Sat, 24 Feb 2018 11:26:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5492984a-27d2-48f6-8745-bd02dbb43dc6</guid><dc:creator>sprasad</dc:creator><description>&lt;p&gt;Currently, I&amp;#39;m looking into the ble_app_template. Just the connect and disconnect are working fine with my&amp;nbsp;nrf&amp;nbsp;connect iOS app on phone. From here how do I alter this to display sensor values on my phone? Should I have to begin with adding services?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>