<?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>Controlling a microservo from nRF51822 when BLE is activated</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/5765/controlling-a-microservo-from-nrf51822-when-ble-is-activated</link><description>I am trying to control a servo motor from nRF51822 when BLE is activated. I am using mbed development framework and libraries.
My servo example works flowlessly if BLE/SoftDevice S110 is not used. However, when I use BLE for advertising or to establish</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 28 Nov 2015 20:23:06 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/5765/controlling-a-microservo-from-nrf51822-when-ble-is-activated" /><item><title>RE: Controlling a microservo from nRF51822 when BLE is activated</title><link>https://devzone.nordicsemi.com/thread/20158?ContentTypeID=1</link><pubDate>Sat, 28 Nov 2015 20:23:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:406612b1-e2f7-48f3-be98-29083f0605f0</guid><dc:creator>James Heires</dc:creator><description>&lt;p&gt;tumaku,
Have you initialized the control input to your servo before applying power? If not, you should, because most DC servos such as the TowerPro SG90 units have an &lt;em&gt;undefined&lt;/em&gt; state when power is applied, but no control signal has been set.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Controlling a microservo from nRF51822 when BLE is activated</title><link>https://devzone.nordicsemi.com/thread/20157?ContentTypeID=1</link><pubDate>Thu, 12 Mar 2015 16:15:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:606613a4-4075-4d1d-903a-fe3cbe0b27e4</guid><dc:creator>Asbj&amp;#248;rn</dc:creator><description>&lt;p&gt;This seems fine. Just make sure that PPI channels and timers doesn&amp;#39;t overlap with what the softdevice requires.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Controlling a microservo from nRF51822 when BLE is activated</title><link>https://devzone.nordicsemi.com/thread/20156?ContentTypeID=1</link><pubDate>Fri, 06 Mar 2015 10:03:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:51449bd7-d873-4d80-9e43-854f88c87656</guid><dc:creator>tumaku</dc:creator><description>&lt;p&gt;The basic Servo routine that I am using in mbed relies on the &amp;quot;core&amp;quot; mbed class PwmOut. I will check if they are using Timer0 there.
Trying to reuse the Nordic PWM example, this is the init method that I have created to use PIN 15 as PWM control of the servo. Is this correct?&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;void pwm_init()
{
    nrf_pwm_config_t pwm_config = PWM_DEFAULT_CONFIG;
    
    pwm_config.mode             = PWM_MODE_MTR_100;
    pwm_config.num_channels     = 1;
    pwm_config.gpio_num[0]      = P0_15;
    
    // Initialize the PWM library
    nrf_pwm_init(&amp;amp;pwm_config);    
}
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Controlling a microservo from nRF51822 when BLE is activated</title><link>https://devzone.nordicsemi.com/thread/20155?ContentTypeID=1</link><pubDate>Thu, 05 Mar 2015 13:02:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0525bba7-1f52-4bd7-b477-c620bcbd5902</guid><dc:creator>Asbj&amp;#248;rn</dc:creator><description>&lt;p&gt;The PWM example is the best place to start. If your application stops when you activate BLE functionality I would recommend you to check if both your application and softdevice are trying to access and use some of the same resources on the chip. For example timers or PPI channels. &lt;a href="https://www.nordicsemi.com/eng/nordic/download_resource/20338/14/3132782"&gt;Have a look in the S110 Softdevice specification.&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>