<?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>change duty cycle seperatly and independently on each channel</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/61767/change-duty-cycle-seperatly-and-independently-on-each-channel</link><description>hello 
 i am using nrf52832 with pwm driver (working with ble and s132 if it metters) 
 i need to control 4 different motors speed via pwm, since there can be only 3 instances i am trying to use one instance and use its 4 channels 
 i am looking for an</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 26 May 2020 06:50:00 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/61767/change-duty-cycle-seperatly-and-independently-on-each-channel" /><item><title>RE: change duty cycle seperatly and independently on each channel</title><link>https://devzone.nordicsemi.com/thread/251599?ContentTypeID=1</link><pubDate>Tue, 26 May 2020 06:50:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3b40efa5-ce29-43d1-9a12-2fd9395cb654</guid><dc:creator>ziv123</dc:creator><description>&lt;p&gt;SOLVED&lt;/p&gt;
&lt;p&gt;the problem was with the&amp;nbsp; &amp;quot; .load_mode&amp;nbsp; &amp;nbsp; = NRF_PWM_LOAD_COMMON &amp;quot; in the &amp;quot;nrf_drv_pwm_config_t&amp;quot; struct&lt;/p&gt;
&lt;p&gt;instead of&amp;nbsp; &amp;quot;&lt;span&gt;.load_mode&amp;nbsp; &amp;nbsp; =&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span&gt;NRF_PWM_LOAD_&lt;/span&gt;INDIVIDUAL,&amp;quot;&lt;/p&gt;
&lt;p&gt;this way the values put to each channel affect one channel only and not all &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: change duty cycle seperatly and independently on each channel</title><link>https://devzone.nordicsemi.com/thread/251539?ContentTypeID=1</link><pubDate>Mon, 25 May 2020 14:50:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:47f2a646-299b-46a4-8a10-16ebd28ce4ac</guid><dc:creator>ziv123</dc:creator><description>&lt;p&gt;well i have tried to use the sequence definition like that:&lt;/p&gt;
&lt;p&gt;&amp;quot;&lt;/p&gt;
&lt;p&gt;static nrf_pwm_values_individual_t /*const*/ pumps_motors_seq_values[] = { 0 };&lt;/p&gt;
&lt;p&gt;nrf_pwm_sequence_t const seq0 =&lt;br /&gt;{&lt;br /&gt; .values.p_individual = pumps_motors_seq_values, //seq0_values,&lt;br /&gt; .length = 1,//NRF_PWM_VALUES_LENGTH(seq0_values),&lt;br /&gt; .repeats = 1,&lt;br /&gt; .end_delay = 0&lt;br /&gt;};&lt;/p&gt;
&lt;p&gt;&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;and activate each channel like that:&lt;/p&gt;
&lt;p&gt;&amp;quot;&lt;/p&gt;
&lt;p&gt;pumps_motors_seq_values-&amp;gt;channel_0 = speed | 0x8000;&lt;br /&gt; nrf_drv_pwm_simple_playback(&amp;amp;pump_motors_pwm_speed, &amp;amp;seq0, 1, NRF_DRV_PWM_FLAG_LOOP);&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;pumps_motors_seq_values-&amp;gt;channel_1 = speed | 0x8000;&lt;br /&gt; nrf_drv_pwm_simple_playback(&amp;amp;pump_motors_pwm_speed, &amp;amp;seq0, 1, NRF_DRV_PWM_FLAG_LOOP);&lt;/p&gt;
&lt;p&gt;&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;but when i activate channel_0 it activats all motors and also channel_1 does not activate anything at all&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;what can be the cause of that? what am i doing wrong?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>