<?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>I&amp;#39;m trying to send a low signal to the buzzer when I&amp;#39;m not using pwm.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/68908/i-m-trying-to-send-a-low-signal-to-the-buzzer-when-i-m-not-using-pwm</link><description>Hello 
 I am developing devices including nrf52832 and 3.3v buzzer. However, the buzzer in this device is very hot and the battery is running out quickly. 
 Now I know that this buzzer is still HIGH state even when it&amp;#39;s not in use. So, to solve this problem</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 01 Dec 2020 01:34:15 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/68908/i-m-trying-to-send-a-low-signal-to-the-buzzer-when-i-m-not-using-pwm" /><item><title>RE: I'm trying to send a low signal to the buzzer when I'm not using pwm.</title><link>https://devzone.nordicsemi.com/thread/282567?ContentTypeID=1</link><pubDate>Tue, 01 Dec 2020 01:34:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f0b9f6e1-e021-4abe-a2d9-43b03237eb51</guid><dc:creator>hmolesworth</dc:creator><description>&lt;p&gt;Yes, but where - ie in what order?&lt;/p&gt;
&lt;p&gt;&amp;quot;&lt;em&gt;To ensure correct behaviour in the PWM module, the pins used by the PWM module must be configured in the GPIO peripheral as described in Table 118: Recommended GPIO configuration before starting PWM generation on page 504 before enabling the PWM module. The pins&amp;#39; idle state is defined by the OUT registers in the GPIO module. This is to ensure that the pins used by the PWM module are driven correctly, if PWM generation is stopped through a STOP task, the PWM module itself is temporarily disabled, or the device temporarily enters System OFF. This configuration must be retained in the GPIO for the selected IOs as long as the PWM module is supposed to be connected to an external PWM circuit&lt;/em&gt;&amp;quot;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I'm trying to send a low signal to the buzzer when I'm not using pwm.</title><link>https://devzone.nordicsemi.com/thread/282560?ContentTypeID=1</link><pubDate>Tue, 01 Dec 2020 00:43:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4a6e497a-54b7-4049-b0e9-e7b4e6d30f88</guid><dc:creator>schosdas</dc:creator><description>&lt;p&gt;Oh, I&amp;#39;m sorry.&lt;br /&gt; The code above omitted the main(), but the gpio_init() is in the main().&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: I'm trying to send a low signal to the buzzer when I'm not using pwm.</title><link>https://devzone.nordicsemi.com/thread/282538?ContentTypeID=1</link><pubDate>Mon, 30 Nov 2020 18:32:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:68c5975c-ac5a-476b-a4fa-54beafbf7b2f</guid><dc:creator>hmolesworth</dc:creator><description>&lt;p&gt;I don&amp;#39;t see the background port pin setting function you have being called; try adding this before running, it might fix your issue:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;  gpio_init();&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I'm trying to send a low signal to the buzzer when I'm not using pwm.</title><link>https://devzone.nordicsemi.com/thread/282501?ContentTypeID=1</link><pubDate>Mon, 30 Nov 2020 15:09:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5e23c45a-92bd-4b15-9cdd-12e6110305a5</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;My electronics diagram reading is a bit rusty. What is the voltage at 2 when the nRF sets the output pin to low, and what is the volate at 2 when the nRF sets the output pin to high?&lt;/p&gt;
&lt;p&gt;Basically, how does this behave? What is it? Is it an NMOSFET?&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/6765.pastedimage1606748474154v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If I remember correctly, when you set the pin from the nRF to low, the transistor is open, right? So the voltage at 2 should be VDD (3.3V)? Have you tried to measure the voltage at the nRF to check whether it is set to low or not?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>