<?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>how to configure BUZZER IN NRF51 EVB</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/9886/how-to-configure-buzzer-in-nrf51-evb</link><description>Hello everyone 
 i am trying to configure the buzzer int he development board inordert o create the buzzer beep sound i have configured the GPIO pin 14 fir the buzzer so in the pin 14 of the developement i connected the positive to 14 and negative to</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 15 Dec 2015 12:08:47 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/9886/how-to-configure-buzzer-in-nrf51-evb" /><item><title>RE: how to configure BUZZER IN NRF51 EVB</title><link>https://devzone.nordicsemi.com/thread/36662?ContentTypeID=1</link><pubDate>Tue, 15 Dec 2015 12:08:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8d284c35-7905-4cd2-b384-8d790c56692e</guid><dc:creator>MARTIN FR</dc:creator><description>&lt;p&gt;OKAY THANK YOU&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to configure BUZZER IN NRF51 EVB</title><link>https://devzone.nordicsemi.com/thread/36661?ContentTypeID=1</link><pubDate>Tue, 15 Dec 2015 12:04:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cf9b3256-32fd-4fe5-8541-44aeb1acea2b</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;Maximum recommended voltage is 3.6V so you would not get much from that. You could probably use a P type transistor (P-channel mosfet or PNP transistor) if the reason for not using transistor was that the negative of the buzzer could not be used. Which transistor to use is not a discussion for this forum, and there are a lot of other forums that will help you with this.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to configure BUZZER IN NRF51 EVB</title><link>https://devzone.nordicsemi.com/thread/36656?ContentTypeID=1</link><pubDate>Tue, 15 Dec 2015 11:41:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8ac1f8b0-ee1b-4fdc-9347-d997004ebd98</guid><dc:creator>MARTIN FR</dc:creator><description>&lt;p&gt;actually am not sure  but this is an idea which i have in my mind to connect two pins together so that buzzer  will get more current and sound will be louder but i will try to test with transistor is there is any other alternative ways to make more sound by using NRF51 dk ? please suggest me some possible ways (except transistor)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to configure BUZZER IN NRF51 EVB</title><link>https://devzone.nordicsemi.com/thread/36659?ContentTypeID=1</link><pubDate>Tue, 15 Dec 2015 11:32:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:75186268-e013-43e0-a09d-3da6f44c343b</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;With this code you will get a short circuit, and as explained in another post, you should not connect to pins together and use the pwm driver on both. Are you sure that the buzzer is able to make higher sound at this voltage? Could you try with a transistor or a function generator that can deliver enough current? If the buzzer makes to little sound at Vcc, you will have to have more voltage.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to configure BUZZER IN NRF51 EVB</title><link>https://devzone.nordicsemi.com/thread/36658?ContentTypeID=1</link><pubDate>Tue, 15 Dec 2015 10:27:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1f703058-95cc-41f6-bcbf-6bd600fc88c7</guid><dc:creator>MARTIN FR</dc:creator><description>&lt;p&gt;yes i have set the duty cycle by configuring like this&lt;/p&gt;
&lt;p&gt;app_pwm_config_t pwm1_cfg = APP_PWM_DEFAULT_CONFIG_2CH(5000UL,6,7);//6.3KHz
app_pwm_enable(&amp;amp;PWM1);&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;		app_pwm_channel_duty_set(&amp;amp;PWM1, 1, 70);
		app_pwm_channel_duty_set(&amp;amp;PWM1, 0, 50);
  nrf_delay_ms(2000);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;it is making  sound on pin 6 and then pin 7 and then pin 6 like this going on but how can i make the pulses on both pin simulatneously ? moreover the sound of the signal is not loud enough can you tell me is there is any other way to increase the loudnees by using nrf51 except transistor&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to configure BUZZER IN NRF51 EVB</title><link>https://devzone.nordicsemi.com/thread/36657?ContentTypeID=1</link><pubDate>Tue, 15 Dec 2015 10:24:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6852fcad-4da7-417b-a743-73920f6aaf7d</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;Have you called app_pwm_duty_set(..) on both channels?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to configure BUZZER IN NRF51 EVB</title><link>https://devzone.nordicsemi.com/thread/36660?ContentTypeID=1</link><pubDate>Mon, 14 Dec 2015 10:03:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:954de519-0efc-45bb-ad02-7db8f8877b54</guid><dc:creator>karan</dc:creator><description>&lt;p&gt;actually i can manage all the buttons push and buzzer beep sound after pressing the button but the actual main problmr is the pwm pulses are not getting created  in both channels i am using this function&lt;/p&gt;
&lt;p&gt;app_pwm_config_t pwm1_cfg = APP_PWM_DEFAULT_CONFIG_2CH(158UL,6,7);//6.3KHz&lt;/p&gt;
&lt;p&gt;when i connect the buzzer in two pins only the pin 6 is producing beep sound but the pin 7 showing 2.9V and if i connect the buzzer to that pin it is not producing any beep sound in the buzzer can you tell me what are the other things do i have to add or modify in ordert o create beep on both pins&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to configure BUZZER IN NRF51 EVB</title><link>https://devzone.nordicsemi.com/thread/36655?ContentTypeID=1</link><pubDate>Fri, 11 Dec 2015 15:47:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ebdd09f5-8f67-40fc-897a-e0da44aeed6a</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;After detecting the button push, use &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk51.v10.0.0/group__app__timer.html?cp=4_1_0_6_7_19"&gt;app_timer&lt;/a&gt; to check how long the button is pushed and make the buzzer beep three or one sound. See &lt;a href="https://devzone.nordicsemi.com/tutorials/19"&gt;this&lt;/a&gt; tutorial for app_timer.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to configure BUZZER IN NRF51 EVB</title><link>https://devzone.nordicsemi.com/thread/36653?ContentTypeID=1</link><pubDate>Mon, 26 Oct 2015 15:35:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f0c3f355-764c-4792-91d1-a9cac4d51b5a</guid><dc:creator>MARTIN FR</dc:creator><description>&lt;p&gt;my goal is i have to press the button for 3 seconds then the buzzer make three beep sounds(advertsing starts) after that if i press the button for 5 seconds then the buzzer has to make single beep sound (advertsiing ends)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to configure BUZZER IN NRF51 EVB</title><link>https://devzone.nordicsemi.com/thread/36652?ContentTypeID=1</link><pubDate>Mon, 26 Oct 2015 15:31:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:346ede91-95a1-4a45-ba07-d568c8b71678</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;You can use the app_timer module and start a timer when the button is pushed with timeout of 3 seconds and then check if the button is still pushed when the timer expires. Or do you want to make the buzzer beep the number of seconds the button is pushed? Please tell me what your goal is.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to configure BUZZER IN NRF51 EVB</title><link>https://devzone.nordicsemi.com/thread/36651?ContentTypeID=1</link><pubDate>Mon, 26 Oct 2015 14:19:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:54f2acf5-a1b4-44f0-84c3-75291631cec3</guid><dc:creator>MARTIN FR</dc:creator><description>&lt;p&gt;yes i have did like that now i can able  three beeps , i just want to make the function like  press the button for three seconds then the buzzer has to produce three beep sound now i can able to manage the button part but i am struggling to mix the buzzer beep sound part with the button function please help me how to make this steps do i ahve to include any timer?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to configure BUZZER IN NRF51 EVB</title><link>https://devzone.nordicsemi.com/thread/36654?ContentTypeID=1</link><pubDate>Mon, 26 Oct 2015 14:02:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e985f23a-2b03-48f4-8a53-1104f4f8963a</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;Something like this:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;for(int i = 0; i &amp;lt; 3; i++)
{
    app_pwm_channel_duty_set(&amp;amp;PWM, 0, 10);
    nrf_delay_ms(100);
    app_pwm_channel_duty_set(&amp;amp;PWM, 0, 0);
    nrf_delay_ms(1000);
}
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to configure BUZZER IN NRF51 EVB</title><link>https://devzone.nordicsemi.com/thread/36650?ContentTypeID=1</link><pubDate>Fri, 23 Oct 2015 14:09:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f88ba8bb-55c9-40a5-8790-d1cd7c1d6b8a</guid><dc:creator>MARTIN FR</dc:creator><description>&lt;p&gt;thank you so much for your kind reply  can you guide me how to make buzzer beep for three times and tell me how to add the pwm function there  in my program ?i will  add the main file in my main post&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to configure BUZZER IN NRF51 EVB</title><link>https://devzone.nordicsemi.com/thread/36649?ContentTypeID=1</link><pubDate>Fri, 23 Oct 2015 13:28:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:47d4016f-0af4-4db6-b0d9-adc966b58418</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;You can confiugre it to pin 7: APP_PWM_DEFAULT_CONFIG_1CH( period_in_us, &lt;strong&gt;pin&lt;/strong&gt;). It should make  a beep sound if you configure for a frequency between 20 Hz and 20 KHz (hearing range). Check the datasheet of the buzzer to see if it supports this range. I would try with a frequency of say 1 KHz (1000us).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to configure BUZZER IN NRF51 EVB</title><link>https://devzone.nordicsemi.com/thread/36648?ContentTypeID=1</link><pubDate>Fri, 23 Oct 2015 13:04:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:402d440b-3dac-434e-a777-f0a358917390</guid><dc:creator>MARTIN FR</dc:creator><description>&lt;p&gt;then if i dont need to configure the gpio to run the pwm then how can i conenct the buzzer to the respective pin? how the pwm output will make the buzzer beep sound? can i test the buzzer beep functionalities with the pwm example in sdk verzsion 9 will ti make beep sound?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to configure BUZZER IN NRF51 EVB</title><link>https://devzone.nordicsemi.com/thread/36647?ContentTypeID=1</link><pubDate>Fri, 23 Oct 2015 13:02:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:019c4fd5-f9b9-4c30-ba43-1e407f1764cf</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;It is connected correct (I would suggest a transistor however). Run the PWM with a low duty cycle to avoid drawing to much current. You don&amp;#39;t need to configure the gpio to run the PWM.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to configure BUZZER IN NRF51 EVB</title><link>https://devzone.nordicsemi.com/thread/36646?ContentTypeID=1</link><pubDate>Fri, 23 Oct 2015 12:47:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3a3bf279-0a27-4971-b8e9-bd095edb40b0</guid><dc:creator>MARTIN FR</dc:creator><description>&lt;p&gt;Thank you so much for your reference i have attached the picture of my buzzer and alos i conencted the buzzer in the development baord please verifu that my connection is correct and also i ahve configured the gpio pin for the buzzer  like this&lt;/p&gt;
&lt;p&gt;#DEFINE BUZZER_PIN  7
nrf_gpio_config_output(7);&lt;/p&gt;
&lt;p&gt;please let me know the feedback of my configurations&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to configure BUZZER IN NRF51 EVB</title><link>https://devzone.nordicsemi.com/thread/36645?ContentTypeID=1</link><pubDate>Fri, 23 Oct 2015 12:38:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e5912a69-1d2d-43cf-884c-47a04e9d9efa</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;You can connect the buzzer directly to the pin as it is done on the &lt;a href="https://developer.mbed.org/components/mbed-Application-Shield/"&gt;mbed Application Shield&lt;/a&gt;. However be aware that the maximum current that can be sourced from any pin on the nRF51 is 5 mA. It may also be less (0.5mA) if the pin is not configured in high drive. For this reason I would suggest to use a transistor in between the nRF51 chip and the buzzer.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>