<?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>PWM hardware used to blink/fan 16 leds with driver</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/21006/pwm-hardware-used-to-blink-fan-16-leds-with-driver</link><description>Hello 
 i have made a program to smoothly blink/fan/vary the intensity of 16 LEDs together using 4 PWM with 4 output pins, the program seems to work well with around 4 leds, but when i attach more LEDs like 8, the other leds start to blink in a abnormal</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 20 Apr 2017 12:17:38 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/21006/pwm-hardware-used-to-blink-fan-16-leds-with-driver" /><item><title>RE: PWM hardware used to blink/fan 16 leds with driver</title><link>https://devzone.nordicsemi.com/thread/82087?ContentTypeID=1</link><pubDate>Thu, 20 Apr 2017 12:17:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:acc5f2d6-8da3-42d4-80a8-c966f4fdb4ec</guid><dc:creator>akshaey</dc:creator><description>&lt;p&gt;yes all the random led glowing behaviour was just due to the voltage/current at the input of the driver. anyways, thanks for your time&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PWM hardware used to blink/fan 16 leds with driver</title><link>https://devzone.nordicsemi.com/thread/82086?ContentTypeID=1</link><pubDate>Thu, 20 Apr 2017 11:27:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:833e1ade-aa75-4f09-87a7-33686133a900</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi. I am glad you found the issue. I had one of the HW guys look at your schematic and he didn&amp;#39;t spot any issues.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PWM hardware used to blink/fan 16 leds with driver</title><link>https://devzone.nordicsemi.com/thread/82085?ContentTypeID=1</link><pubDate>Wed, 12 Apr 2017 12:13:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:964e8510-9d81-4ef2-8111-eea209ffa553</guid><dc:creator>akshaey</dc:creator><description>&lt;p&gt;SOLVED-&lt;/p&gt;
&lt;p&gt;the problem was with the amount of voltage given to the led driver which resulted into random behaviour of leds, increasing the voltage solved the problem&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PWM hardware used to blink/fan 16 leds with driver</title><link>https://devzone.nordicsemi.com/thread/82091?ContentTypeID=1</link><pubDate>Wed, 05 Apr 2017 08:09:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d25e8bc8-64ad-498e-b59c-838d303de697</guid><dc:creator>akshaey</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I have attached the schema of 4 leds with their 4 drivers. Inputs- PWM1 to 4 are attached to either of the following 4 gpios which i have configured for 16 pwm fan outputs- (P3,4,28,29) or (P19,20,22,23) or (P27,26,2,25) or ( P0,1,21,5).
Outputs-  OUT1 to 4 are connected to LED Anode with common ground.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://drive.google.com/open?id=0B2YxaMrcnlAJeWRPbEQ2VTFqZEk"&gt;drive.google.com/open&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PWM hardware used to blink/fan 16 leds with driver</title><link>https://devzone.nordicsemi.com/thread/82090?ContentTypeID=1</link><pubDate>Wed, 05 Apr 2017 06:40:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fac0856c-1b15-4f68-bc09-481683843b64</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;In terms of schematics, I was looking for one showing what type of LED driver you are using, and how it is connected to the nRF52832 GPIO pin.&lt;/p&gt;
&lt;p&gt;It doesn&amp;#39;t have to show all 16 pins, assuming they are all connected in a similar fashion.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PWM hardware used to blink/fan 16 leds with driver</title><link>https://devzone.nordicsemi.com/thread/82089?ContentTypeID=1</link><pubDate>Tue, 04 Apr 2017 10:07:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:42a74814-fd18-47c3-9b27-388b429af8f2</guid><dc:creator>akshaey</dc:creator><description>&lt;p&gt;&lt;a href="https://drive.google.com/open?id=0B2YxaMrcnlAJWWNQWjlHN3E5VDg"&gt;drive.google.com/open&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Please find attached a basic schema.&lt;/p&gt;
&lt;p&gt;Basically, i have 16 LED- 4 each of R G B W.  each led has its own driver, and each driver takes pwm input from 16 gpio outputs of nrf52 as mentioned in the program. As the driver is driven by pwm outputs, when i measure current, my multimeter doesn&amp;#39;t shows any current upto 0.000A. Therefore, I assume its much less than 5mA. So that shouldn&amp;#39;t be an issue logically.
When i run the program and attach all leds to respective pwm, some leds work at full brightness whereas the others at random brightness. I am not able to figure out the issue.&lt;/p&gt;
&lt;p&gt;Also one more thing i wanted to know. in the program, I use 4 timers to drive 4 PWM of 4  channels each, thus an output of 16 channels, with each 4 having the same duty cycle. Is it possible to set the duty cycle of each 16 channels separately , and is it possible for seperate playback for each channel on nrf52?&lt;/p&gt;
&lt;p&gt;Many thanks in advance&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PWM hardware used to blink/fan 16 leds with driver</title><link>https://devzone.nordicsemi.com/thread/82088?ContentTypeID=1</link><pubDate>Tue, 04 Apr 2017 06:52:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:acafe57c-3eaa-4ab0-b3a7-5b7615290344</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;If the problem happens when you physically attach more LED&amp;#39;s, and not when you add more PWM channels in the software, I would have to assume it is related to the amount of current sourced to each pin.&lt;/p&gt;
&lt;p&gt;Have you measured how much current is sourced to each LED?&lt;/p&gt;
&lt;p&gt;The nominal source/sink current for each GPIO is only 0.5mA, and if you exceed this then the behavior might be unpredictable.&lt;/p&gt;
&lt;p&gt;You can set up to three pins in high drive mode, where you can source/sink up to 5mA, but this doesn&amp;#39;t really help if you are trying to use more than 3 pins.&lt;/p&gt;
&lt;p&gt;Do you have a schematic or diagram showing how each LED is connected?&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;
Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PWM hardware used to blink/fan 16 leds with driver</title><link>https://devzone.nordicsemi.com/thread/82084?ContentTypeID=1</link><pubDate>Mon, 03 Apr 2017 12:09:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e6d893f2-f7a9-4fdb-908c-7e1c1ec9dafb</guid><dc:creator>akshaey</dc:creator><description>&lt;p&gt;i am using sdk 12.2.0&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PWM hardware used to blink/fan 16 leds with driver</title><link>https://devzone.nordicsemi.com/thread/82083?ContentTypeID=1</link><pubDate>Mon, 03 Apr 2017 12:07:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f752ff92-c889-4015-8a18-0651a7eea71c</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Thanks for the zip. What SDK version are you using?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PWM hardware used to blink/fan 16 leds with driver</title><link>https://devzone.nordicsemi.com/thread/82082?ContentTypeID=1</link><pubDate>Mon, 03 Apr 2017 09:27:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:88b21a46-9230-48fb-a6fb-2940d2adda90</guid><dc:creator>akshaey</dc:creator><description>&lt;p&gt;Hi i have uploaded the zip on drive, link-&lt;/p&gt;
&lt;p&gt;&lt;a href="https://drive.google.com/file/d/0B2YxaMrcnlAJNHFTQ2tDMXZ0WW8/view?usp=sharing"&gt;drive.google.com/.../view&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PWM hardware used to blink/fan 16 leds with driver</title><link>https://devzone.nordicsemi.com/thread/82081?ContentTypeID=1</link><pubDate>Mon, 03 Apr 2017 09:23:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:60e5501a-3ead-4920-8195-b33e5ed3daba</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Do you mind zipping your project and attaching it?
Then I can more easily test your code.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>