<?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 change gpio pin voltage/current levels</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/20046/how-to-change-gpio-pin-voltage-current-levels</link><description>Hi,
i am working on Pancake motor C0820B006F circuit and it is connected to P0.12 pin and ground iam usin NRF52 development board. i want to change the pan cake vibrator frequency by changing Pin0.12 voltage or current. how to change the current/voltage</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 04 Sep 2024 00:49:42 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/20046/how-to-change-gpio-pin-voltage-current-levels" /><item><title>RE: how to change gpio pin voltage/current levels</title><link>https://devzone.nordicsemi.com/thread/501050?ContentTypeID=1</link><pubDate>Wed, 04 Sep 2024 00:49:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:68418b97-5f11-480b-aa51-7e2fc1bd3b86</guid><dc:creator>lcj</dc:creator><description>&lt;p&gt;What were the entries in your overlay?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to change gpio pin voltage/current levels</title><link>https://devzone.nordicsemi.com/thread/78028?ContentTypeID=1</link><pubDate>Wed, 01 Mar 2017 12:35:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4537919c-5eab-4746-a576-6eb16111de56</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;To configure your desired period/frequency you can change either the base frequency or the top value. The desired pwm frequency is given by the formula &lt;code&gt;F(pwm) = F(base_clock) / top_value&lt;/code&gt;. Note that the max top_value is 32767.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to change gpio pin voltage/current levels</title><link>https://devzone.nordicsemi.com/thread/78027?ContentTypeID=1</link><pubDate>Wed, 01 Mar 2017 09:37:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:154d9726-14cc-4a35-b09c-cab9cae6263c</guid><dc:creator>saiteja</dc:creator><description>&lt;p&gt;Hi i made BS_LED_0 pin as PWM and changing the frequency by changing  .base_clock  frequency mode in nrf_drv_pwm_config_t so that i can observe increase and decrease of the light intensity of LED. is this is the correct way to operate pancake motor vibration levels.
and what is the purpose of  .top_value in nrf_drv_pwm_config_t. thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to change gpio pin voltage/current levels</title><link>https://devzone.nordicsemi.com/thread/78026?ContentTypeID=1</link><pubDate>Tue, 28 Feb 2017 14:45:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c678f3db-7cd5-4897-8f6f-12b8d6c8076c</guid><dc:creator>AmbystomaLabs</dc:creator><description>&lt;p&gt;Oh, I just remembered that when I wrote the updated DTM code for PA/LNA support I did a version with a timer on the PPI.  Just look for my posting on DTM for the code.  It should be easy for you to copy out the timer bit and reuse it for your application.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to change gpio pin voltage/current levels</title><link>https://devzone.nordicsemi.com/thread/78025?ContentTypeID=1</link><pubDate>Tue, 28 Feb 2017 14:41:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3f60c4cf-34a0-4a88-b05c-510668f5d8e2</guid><dc:creator>AmbystomaLabs</dc:creator><description>&lt;p&gt;There are a couple of pwm examples in the SDK.  Also I have seen numerous postings on the blog with pwm code.
But in short, a pwm is just a timer tied to the gpio. You set the length of the timer (how long it can actually count for until it starts back at 0) and you set the amount of time it counts until it turns off the gpio. There are several built in hardware timers on the nRF.
So, it goes as: the timer starts, gpio goes high, timer hits your number, gpio turns off, timer keeps running until it hits end, timer goes back to zero and starts over.
In this manner you can set any duty cycle for the output you wish.
If you are running other code you probably want a solution that doesn&amp;#39;t bother the processor to do the pwm.
Nordic allow you to tie timers/counters to the PPI and gpio to facilitate a pwm that runs independent of the processor.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to change gpio pin voltage/current levels</title><link>https://devzone.nordicsemi.com/thread/78024?ContentTypeID=1</link><pubDate>Tue, 28 Feb 2017 14:31:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:52ae84a8-2c2a-4281-9421-32fa0d7d8d7b</guid><dc:creator>saiteja</dc:creator><description>&lt;p&gt;hi, Thank you for response. i am using FET to drive the motor the problem is i do not know how to drive the pin as PWM. if i drive the pin as PWM what is the output of that pin.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to change gpio pin voltage/current levels</title><link>https://devzone.nordicsemi.com/thread/78023?ContentTypeID=1</link><pubDate>Tue, 28 Feb 2017 14:25:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0ffb8317-e243-4d87-8ee3-c43fd3d51fc0</guid><dc:creator>AmbystomaLabs</dc:creator><description>&lt;p&gt;You can&amp;#39;t drive this motor directly from the nRF.  The spec sheet says it draws 100mA.  The nRF52 can provide max 10mA in high drive mode.  Also there is no DAC capability with nRF52.  GPIO are either on or off.  The only solution you can do is drive the pin as PWM and through a low pass filter use a fet or bjt to drive the motor.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>