<?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>MPU9250 with PWM logic</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/27229/mpu9250-with-pwm-logic</link><description>Hello friends, 
 i am new to embedded programming and trying to learn the new things in embedded for this i am doing 1 project in which i am using mpu9250 with pwm. 
 is it possible to glow 4 different LEDs using single pwm module having four channels</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 21 Nov 2017 13:14:12 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/27229/mpu9250-with-pwm-logic" /><item><title>RE: MPU9250 with PWM logic</title><link>https://devzone.nordicsemi.com/thread/107445?ContentTypeID=1</link><pubDate>Tue, 21 Nov 2017 13:14:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5c0ec1a9-4061-4eec-a865-a9e98b42f68c</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;Great to hear Rahul! So did that solve your problem? If it did, would you mind accepting the answer as correct (i.e. press the check mark below the up and down arrows on my answer)? Regards, Bjorn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MPU9250 with PWM logic</title><link>https://devzone.nordicsemi.com/thread/107446?ContentTypeID=1</link><pubDate>Tue, 21 Nov 2017 13:01:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:80fc87d1-d6f3-49b6-8cc8-575002467352</guid><dc:creator>Rahul</dc:creator><description>&lt;p&gt;thank sir yes it was like that only&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MPU9250 with PWM logic</title><link>https://devzone.nordicsemi.com/thread/107444?ContentTypeID=1</link><pubDate>Mon, 20 Nov 2017 13:48:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:63ca41f9-e3ba-476b-b780-98dc55f33d3c</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;I updated the source code above. Do you mean something like this?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MPU9250 with PWM logic</title><link>https://devzone.nordicsemi.com/thread/107441?ContentTypeID=1</link><pubDate>Wed, 15 Nov 2017 13:34:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:59265d1d-79a5-4ce0-9c4f-74fb309012c2</guid><dc:creator>Rahul</dc:creator><description>&lt;p&gt;i can easily do that using all the module but how can i do that using single module this is my concern&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MPU9250 with PWM logic</title><link>https://devzone.nordicsemi.com/thread/107440?ContentTypeID=1</link><pubDate>Wed, 15 Nov 2017 13:32:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3f8386d0-9f8e-4ddb-9cb7-7854d426d4d6</guid><dc:creator>Rahul</dc:creator><description>&lt;p&gt;yes exactly this i want to do&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MPU9250 with PWM logic</title><link>https://devzone.nordicsemi.com/thread/107439?ContentTypeID=1</link><pubDate>Wed, 15 Nov 2017 13:27:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:247a267b-2281-4a72-bee0-9a3bfda7cd41</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;Let me see if I understand this correctly: for example if the mpu value is between a theoretical value of:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;0-1.9999, then LED 1 should blink&lt;/li&gt;
&lt;li&gt;2-3.9999, then LED 2 should blink&lt;/li&gt;
&lt;li&gt;4-6, then LED 3 should blink&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Is this what you mean? And the LED intensity should be adjusted based on the MPU value too?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MPU9250 with PWM logic</title><link>https://devzone.nordicsemi.com/thread/107442?ContentTypeID=1</link><pubDate>Wed, 15 Nov 2017 13:14:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c34088c7-9353-49ae-97eb-1dc145a96494</guid><dc:creator>Rahul</dc:creator><description>&lt;p&gt;hello sir what i want to do is i wanna use all the channels of single pwm module in different cases like  we can use one channel at a time but when the mpu vales changes it should go to second channel then later values changes it should go to third channel like that&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MPU9250 with PWM logic</title><link>https://devzone.nordicsemi.com/thread/107443?ContentTypeID=1</link><pubDate>Wed, 15 Nov 2017 13:07:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0a11b1ad-89c5-406e-b7dc-1aeaae53464e</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;I would just look at the main.c file if I were you. I used Keil to compile, but it should work with any of the other compatible solutions too. I placed this example in the SDK 13 folder under &amp;quot;/examples/peripheral/pwm_simple&amp;quot;. Otherwise, you will get errors since the pwm example uses other libraries located under the &amp;quot;SDK13/components/libaries&amp;quot; folder.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MPU9250 with PWM logic</title><link>https://devzone.nordicsemi.com/thread/107438?ContentTypeID=1</link><pubDate>Wed, 15 Nov 2017 12:59:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:81ce21b3-50f4-49e0-a529-183d4ac44a12</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;Hey Rahul. Just got an example working where I am using one pwm instance to increase the duty cycle of the four different leds on the nrf52 dk. Every 10 ms, the LED duty cycle increases by 1% up to 100%. Then, it starts from the beginning I believe. It was based on this simple example (pwm_simple.zip) &lt;a href="https://devzone.nordicsemi.com/question/137430/is-there-a-simple-example-how-to-set-a-pwm-driver/"&gt;I found in another devzone cas&lt;/a&gt;e. I&amp;#39;ve uploaded the source code below if you don&amp;#39;t want to give it a try yourself ;)&lt;/p&gt;
&lt;p&gt;But if I were you, I would try to start from the pwm_simple.zip example found in the other devzone case and see if you can figure it out yourself. That way, you&amp;#39;ll learn more than just by looking at the answer below. Up to you. :)&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Update:&lt;/strong&gt; &lt;a href="https://devzone.nordicsemi.com/attachment/de1aaf3322f5319efb0c0a4dca334720"&gt;Source Code for nrf52832&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MPU9250 with PWM logic</title><link>https://devzone.nordicsemi.com/thread/107435?ContentTypeID=1</link><pubDate>Wed, 15 Nov 2017 12:31:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1a923693-5a84-4d79-a71f-6cc289d5523b</guid><dc:creator>Rahul</dc:creator><description>&lt;p&gt;yes like that only&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MPU9250 with PWM logic</title><link>https://devzone.nordicsemi.com/thread/107436?ContentTypeID=1</link><pubDate>Wed, 15 Nov 2017 12:09:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b3f8b542-2f73-48e7-a708-c71da8e13fde</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;Do you mean like a car brake light for example? So that when you step on the brakes more, the MPU measures more deceleration and more lumens are emitted from the LED&amp;#39;s? Kind of like &lt;a href="http://road.cc/content/review/139414-lupine-rotlicht-rear-light"&gt;the Lupine Rotlicht&lt;/a&gt; for bikes? I&amp;#39;m taking a look at the case now and will get back to you when I find out more.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MPU9250 with PWM logic</title><link>https://devzone.nordicsemi.com/thread/107433?ContentTypeID=1</link><pubDate>Mon, 13 Nov 2017 14:10:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c8b03f58-512b-48d5-ad5e-c7f4e117c892</guid><dc:creator>Rahul</dc:creator><description>&lt;p&gt;is there anyway in which we can use channels of pwm seperately&lt;/p&gt;
&lt;p&gt;like i need to use 1 pwm channel output somewhere and 2nd channel output somewhere&lt;/p&gt;
&lt;p&gt;regardlessly pwm initialization or we have to initialise same pwm module for every channel&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MPU9250 with PWM logic</title><link>https://devzone.nordicsemi.com/thread/107432?ContentTypeID=1</link><pubDate>Mon, 13 Nov 2017 04:42:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b48e4e33-eee4-413b-a4fa-b93eef1bf0bd</guid><dc:creator>Rahul</dc:creator><description>&lt;p&gt;it is defined in another file and it is working fine&lt;/p&gt;
&lt;p&gt;but how can i  merge pwm and mpu so that it can work together.&lt;/p&gt;
&lt;p&gt;what i am trying to do is i want to control led brightness as per particular value of accelerometer
and for particular range of accelerometer value one led should glow , for different range different led should glow.
like 4 different leds for different ranges&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MPU9250 with PWM logic</title><link>https://devzone.nordicsemi.com/thread/107431?ContentTypeID=1</link><pubDate>Mon, 13 Nov 2017 04:30:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5e68b6d8-7586-4d26-8d0a-aea5246802ce</guid><dc:creator>MANGO</dc:creator><description>&lt;p&gt;Hi, Rahul. &lt;code&gt;ble_mpu_update&lt;/code&gt; is not defined in &lt;code&gt;main.c&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Does &lt;code&gt;ble_mpu_update&lt;/code&gt; send accelerometer values to a mobile app?&lt;/p&gt;
&lt;p&gt;If so, does &lt;code&gt;ble_mpu_update&lt;/code&gt; handle error codes when the nRF52 is not connected to a central device (smartphone)?&lt;/p&gt;
&lt;p&gt;Hope to see the &lt;code&gt;ble_mpu_update&lt;/code&gt; function.&lt;/p&gt;
&lt;p&gt;-Best Regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MPU9250 with PWM logic</title><link>https://devzone.nordicsemi.com/thread/107430?ContentTypeID=1</link><pubDate>Mon, 13 Nov 2017 04:21:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:62811532-933b-4d7f-b1aa-91da59179c18</guid><dc:creator>Rahul</dc:creator><description>&lt;p&gt;sorry it was by mistake
i have uploaded c file now&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MPU9250 with PWM logic</title><link>https://devzone.nordicsemi.com/thread/107434?ContentTypeID=1</link><pubDate>Sat, 11 Nov 2017 14:46:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e1d06387-b7ce-4746-b9c2-fa602c2e49fb</guid><dc:creator>MANGO</dc:creator><description>&lt;p&gt;Hmm, I was expecting C source files. However, only the Keil project file was found in your GitHub page.&lt;/p&gt;
&lt;p&gt;Can you push some codes?&lt;/p&gt;
&lt;p&gt;-Best Regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MPU9250 with PWM logic</title><link>https://devzone.nordicsemi.com/thread/107425?ContentTypeID=1</link><pubDate>Fri, 10 Nov 2017 10:10:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1920489c-f770-4906-9cd1-d1b2e142e188</guid><dc:creator>Rahul</dc:creator><description>&lt;p&gt;yes here i the link&lt;a href="https://github.com/rppatel333/MPU9250-with-PWM"&gt;link text&lt;/a&gt;
i am using softdevice currently&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MPU9250 with PWM logic</title><link>https://devzone.nordicsemi.com/thread/107437?ContentTypeID=1</link><pubDate>Fri, 10 Nov 2017 08:06:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:106d4918-0986-4b43-8da6-7547d351b936</guid><dc:creator>MANGO</dc:creator><description>&lt;p&gt;Hi, Rahul. Hmm, I see. Then how about uploading your Keil project in your original question or provide us a remote repository, such as GitHub or Bitbucket, link to see your code?&lt;/p&gt;
&lt;p&gt;Without seeing your code, I think it will be hard to go further. Although I don&amp;#39;t have an MPU sensor right now, some Nordic devteam members or community members have it to test your code. I will download your code on the PCA10040.&lt;/p&gt;
&lt;p&gt;By the way, are you planning to use SoftDevice on your project in the future or are you using the SoftDevice currently?&lt;/p&gt;
&lt;p&gt;-Best Regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MPU9250 with PWM logic</title><link>https://devzone.nordicsemi.com/thread/107427?ContentTypeID=1</link><pubDate>Fri, 10 Nov 2017 07:27:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:972d6ecc-d962-45a8-90bf-9c6a40d12760</guid><dc:creator>Rahul</dc:creator><description>&lt;p&gt;hello sir, i am using SDK11 it also has drivers for mpu6050 but will it work for mpu9250.&lt;/p&gt;
&lt;p&gt;i am not using any driver library.
yes i also tried pwm driver example but when ever i tried to merge both the example i.e. PWM driver and MPUxx it is not working.&lt;/p&gt;
&lt;p&gt;may be i am not clear with my comment  if it is please let me know i will try better&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MPU9250 with PWM logic</title><link>https://devzone.nordicsemi.com/thread/107426?ContentTypeID=1</link><pubDate>Fri, 10 Nov 2017 06:46:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:da2c9455-bc44-4264-b728-d568697e4a2d</guid><dc:creator>MANGO</dc:creator><description>&lt;p&gt;Hi, Rahul. I have some questions for you.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;My mistake; you can use &lt;code&gt;SDK11 (or SDK14)/components/drivers_ext/mpu6050&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Or this &lt;a href="https://github.com/Martinsbl/nrf5-mpu-examples"&gt;GitHub page (Examples for nRF51 &amp;amp; nRF52 and MPUxxxx)&lt;/a&gt; will be useful.&lt;/p&gt;
&lt;p&gt;Were you using the external driver library or were you creating codes from scratch to work with the MPU9250?&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Have you tried Nordic&amp;#39;s PWM driver example? If you have a development board, like PCA10040, you can observe 4 LEDs being controlled with the PWM driver.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;After gathering details, I think devzone community members can answer your question.&lt;/p&gt;
&lt;p&gt;-Best regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MPU9250 with PWM logic</title><link>https://devzone.nordicsemi.com/thread/107429?ContentTypeID=1</link><pubDate>Thu, 09 Nov 2017 09:39:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:88e608b3-de8c-4277-8a6d-7f1d0cda6434</guid><dc:creator>Rahul</dc:creator><description>&lt;p&gt;hello sir,
i am using SDK 11, IDE(keil MDK  5), nRF52832-QFAA&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MPU9250 with PWM logic</title><link>https://devzone.nordicsemi.com/thread/107428?ContentTypeID=1</link><pubDate>Thu, 09 Nov 2017 08:47:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:74584702-0102-475b-8121-acbcdf756b0c</guid><dc:creator>MANGO</dc:creator><description>&lt;p&gt;Hi, Rahul. Before answering, what version of SDK, IDE (Keil MDK 5, IAR EWARM 7, etc.), MCU (nRF52832-QFAA, nRF51822-QFAB) do you use?&lt;/p&gt;
&lt;p&gt;After you leave a comment about this, the answer can be more specific.&lt;/p&gt;
&lt;p&gt;These are the reasons why;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Nordic&amp;#39;s latest SDK supports MPUxxxx libraries&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;the nRF52 MCU has a PWM driver whereas the nRF51 has to use a timer to create a &lt;code&gt;software PWM&lt;/code&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Hope to see your comments.&lt;/p&gt;
&lt;p&gt;-Best Regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>