<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://www.robotc.net/w/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://www.robotc.net/w/index.php?title=Tutorials/Arduino_Projects/Additional_Info/PWM&amp;feed=atom&amp;action=history</id>
		<title>Tutorials/Arduino Projects/Additional Info/PWM - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://www.robotc.net/w/index.php?title=Tutorials/Arduino_Projects/Additional_Info/PWM&amp;feed=atom&amp;action=history"/>
		<link rel="alternate" type="text/html" href="http://www.robotc.net/w/index.php?title=Tutorials/Arduino_Projects/Additional_Info/PWM&amp;action=history"/>
		<updated>2013-05-22T00:22:08Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.18.0</generator>

	<entry>
		<id>http://www.robotc.net/w/index.php?title=Tutorials/Arduino_Projects/Additional_Info/PWM&amp;diff=6499&amp;oldid=prev</id>
		<title>Jwatson: /* What is PWM */</title>
		<link rel="alternate" type="text/html" href="http://www.robotc.net/w/index.php?title=Tutorials/Arduino_Projects/Additional_Info/PWM&amp;diff=6499&amp;oldid=prev"/>
				<updated>2012-10-10T19:08:30Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;What is PWM&lt;/span&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 19:08, 10 October 2012&lt;/td&gt;
		&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 12:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 12:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;== What is PWM ==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;== What is PWM ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;PWM works by turning a circuit on and off very rapidly succession. By adjusting the ratio of the time on and the time off, it is possible to adjust the brightness of an LED. This ratio is called the Duty-Cycle and is the percentage of time the output is high with respect to the time of one cycle (a cycle consists of a consecutive high and low period). If the Duty-Cycle is 100% then the output is continually high and the LED would be at full brightness. If the Duty-Cycle is 0%, the output is continually low so the LED would be kept off. If the duty cycle is set to a percentage in between, then the LED will reflect that in its brightness. For example, if the duty cycle is set to 50%, the output is on 50% of the time and off the other 50%. In this scenario, the LED would appear be at 50% of its full brightness (dimmed). To find the brightness level, divide the time high with the total cycle time (also known as the period of the wave form)&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;PWM works by turning a circuit on and off very rapidly succession. By adjusting the ratio of the time on and the time off, it is possible to adjust the brightness of an LED. This ratio is called the Duty-Cycle and is the percentage of time the output is high with respect to the time of one cycle (a cycle consists of a consecutive high and low period). If the Duty-Cycle is 100% then the output is continually high and the LED would be at full brightness. If the Duty-Cycle is 0%, the output is continually low so the LED would be kept off. If the duty cycle is set to a percentage in between, then the LED will reflect that in its brightness. For example, if the duty cycle is set to 50%, the output is on 50% of the time and off the other 50%. In this scenario, the LED would appear be at 50% of its full brightness (dimmed). To find the brightness level, divide the time high with the total cycle time (also known as the period of the wave form)&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[[image:PWM_Duty_Cycle_Graphic.png|thumb|c|center|700px|]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[[image:PWM_Duty_Cycle_Graphic.png|thumb|c|center|700px|]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;br /&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;br /&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Jwatson</name></author>	</entry>

	<entry>
		<id>http://www.robotc.net/w/index.php?title=Tutorials/Arduino_Projects/Additional_Info/PWM&amp;diff=6483&amp;oldid=prev</id>
		<title>Jwatson: /* PWM on a Microcontroller */</title>
		<link rel="alternate" type="text/html" href="http://www.robotc.net/w/index.php?title=Tutorials/Arduino_Projects/Additional_Info/PWM&amp;diff=6483&amp;oldid=prev"/>
				<updated>2012-10-02T17:53:59Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;PWM on a Microcontroller&lt;/span&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 17:53, 2 October 2012&lt;/td&gt;
		&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 20:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 20:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;== PWM on a Microcontroller ==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;== PWM on a Microcontroller ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Due to the high frequency that PWM operates at, generating a PWM signal strictly through the ATMega328 microprocessor would essentially prevent users from doing anything else with an Arduino. To eliminate this problem, chip manufacturers included hardware to generate the PWM signal. However, not every I/O pin supports PWM output. For the Arduino UNO, digital pins 3, 5, 6, 9, 10, and 11 can be used for PWM. ROBOTC lists all the compatible pins under the 'Motor' tab of the Motor and Sensors Setup window and configures hardware PWM for the user.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Due to the high frequency that PWM operates at, generating a PWM signal strictly through the ATMega328 microprocessor would essentially prevent users from doing anything else with an Arduino. To eliminate this problem, chip manufacturers included hardware to generate the PWM signal. However, not every I/O pin supports PWM output. For the Arduino UNO, digital pins 3, 5, 6, 9, 10, and 11 can be used for PWM. ROBOTC lists all the compatible pins under the 'Motor' tab of the Motor and Sensors Setup window and &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;automatically &lt;/ins&gt;configures hardware PWM for the user.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Jwatson</name></author>	</entry>

	<entry>
		<id>http://www.robotc.net/w/index.php?title=Tutorials/Arduino_Projects/Additional_Info/PWM&amp;diff=6482&amp;oldid=prev</id>
		<title>Jwatson: /* PWM on a Microcontroller */</title>
		<link rel="alternate" type="text/html" href="http://www.robotc.net/w/index.php?title=Tutorials/Arduino_Projects/Additional_Info/PWM&amp;diff=6482&amp;oldid=prev"/>
				<updated>2012-10-02T17:53:42Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;PWM on a Microcontroller&lt;/span&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 17:53, 2 October 2012&lt;/td&gt;
		&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 20:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 20:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;== PWM on a Microcontroller ==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;== PWM on a Microcontroller ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Due to the high frequency that PWM operates at, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;to get an accurate &lt;/del&gt;signal &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;using code &lt;/del&gt;would &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;basically &lt;/del&gt;prevent &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;you &lt;/del&gt;from doing anything else with &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;the chip&lt;/del&gt;. To eliminate this problem, chip manufacturers included hardware to generate the PWM signal. However not every I/O pin supports PWM output. For the Arduino UNO, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;only &lt;/del&gt;digital pins 3, 5, 6, 9, 10, and 11&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;, support it&lt;/del&gt;. &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Luckily, &lt;/del&gt;ROBOTC &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;has a &lt;/del&gt;tab &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;in &lt;/del&gt;the &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Motors &lt;/del&gt;and Sensors Setup window &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;that lists the pins that can be used. ROBOTC also handles all of the complex options that need to be set &lt;/del&gt;for the &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;hardware PWM to work&lt;/del&gt;.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Due to the high frequency that PWM operates at, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;generating a PWM &lt;/ins&gt;signal &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;strictly through the ATMega328 microprocessor &lt;/ins&gt;would &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;essentially &lt;/ins&gt;prevent &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;users &lt;/ins&gt;from doing anything else with &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;an Arduino&lt;/ins&gt;. To eliminate this problem, chip manufacturers included hardware to generate the PWM signal. However&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;, &lt;/ins&gt;not every I/O pin supports PWM output. For the Arduino UNO, digital pins 3, 5, 6, 9, 10, and 11 &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;can be used for PWM&lt;/ins&gt;. ROBOTC &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;lists all the compatible pins under the 'Motor' &lt;/ins&gt;tab &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;of &lt;/ins&gt;the &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Motor &lt;/ins&gt;and Sensors Setup window &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;and configures hardware PWM &lt;/ins&gt;for the &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;user&lt;/ins&gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Jwatson</name></author>	</entry>

	<entry>
		<id>http://www.robotc.net/w/index.php?title=Tutorials/Arduino_Projects/Additional_Info/PWM&amp;diff=6481&amp;oldid=prev</id>
		<title>Jwatson: /* PWM as a signal */</title>
		<link rel="alternate" type="text/html" href="http://www.robotc.net/w/index.php?title=Tutorials/Arduino_Projects/Additional_Info/PWM&amp;diff=6481&amp;oldid=prev"/>
				<updated>2012-10-02T17:12:12Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;PWM as a signal&lt;/span&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 17:12, 2 October 2012&lt;/td&gt;
		&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 17:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 17:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;== PWM as a signal ==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;== PWM as a signal ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Since PWM have set periods, it is possible to change the &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Duty-Cycle &lt;/del&gt;to transmit data. This is a common practice for controlling servo motors. By setting the &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Duty-Cycle &lt;/del&gt;to &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;some value &lt;/del&gt;between &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;an &lt;/del&gt;expected range &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;of values&lt;/del&gt;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;it is possible to map &lt;/del&gt;the &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;value &lt;/del&gt;of the &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Duty-Cycle in the range, to another range of values that you will actually use. For instance with servos, &lt;/del&gt;the PWM signal &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;is between &lt;/del&gt;1.0ms &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;and &lt;/del&gt;2.0ms&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;, but the servo maps these values &lt;/del&gt;to &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;between -100% &lt;/del&gt;and &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;100%&lt;/del&gt;.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Since PWM have set periods, it is possible to change the &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;duty cycle &lt;/ins&gt;to transmit data. This is a common practice for controlling servo motors. By setting the &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;duty cycle &lt;/ins&gt;to &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;values &lt;/ins&gt;between &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;1.0ms and 2.0ms (&lt;/ins&gt;expected range &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;for servos)&lt;/ins&gt;, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;you can change &lt;/ins&gt;the &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;position &lt;/ins&gt;of the &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;servo simply by changing &lt;/ins&gt;the PWM signal&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;. A&amp;#160; &lt;/ins&gt;1.0ms &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;high pulse moves the servo to one extreme, a &lt;/ins&gt;2.0ms &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;pulse moves it &lt;/ins&gt;to &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;the opposite extreme, &lt;/ins&gt;and &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;1.5ms pulse moves it to the center position&lt;/ins&gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;== PWM on a Microcontroller ==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;== PWM on a Microcontroller ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Due to the high frequency that PWM operates at, to get an accurate signal using code would basically prevent you from doing anything else with the chip. To eliminate this problem, chip manufacturers included hardware to generate the PWM signal. However not every I/O pin supports PWM output. For the Arduino UNO, only digital pins 3, 5, 6, 9, 10, and 11, support it. Luckily, ROBOTC has a tab in the Motors and Sensors Setup window that lists the pins that can be used. ROBOTC also handles all of the complex options that need to be set for the hardware PWM to work.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Due to the high frequency that PWM operates at, to get an accurate signal using code would basically prevent you from doing anything else with the chip. To eliminate this problem, chip manufacturers included hardware to generate the PWM signal. However not every I/O pin supports PWM output. For the Arduino UNO, only digital pins 3, 5, 6, 9, 10, and 11, support it. Luckily, ROBOTC has a tab in the Motors and Sensors Setup window that lists the pins that can be used. ROBOTC also handles all of the complex options that need to be set for the hardware PWM to work.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Jwatson</name></author>	</entry>

	<entry>
		<id>http://www.robotc.net/w/index.php?title=Tutorials/Arduino_Projects/Additional_Info/PWM&amp;diff=6480&amp;oldid=prev</id>
		<title>Jwatson: /* What is PWM */</title>
		<link rel="alternate" type="text/html" href="http://www.robotc.net/w/index.php?title=Tutorials/Arduino_Projects/Additional_Info/PWM&amp;diff=6480&amp;oldid=prev"/>
				<updated>2012-10-02T17:05:07Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;What is PWM&lt;/span&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 17:05, 2 October 2012&lt;/td&gt;
		&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 12:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 12:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;== What is PWM ==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;== What is PWM ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;PWM works by turning a circuit on and off very rapidly. By adjusting the ratio of the time on and the time off, it is possible to adjust the brightness of &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;the &lt;/del&gt;LED. This ratio is called the Duty-Cycle and is the percentage of time the output is high with respect to the time of one cycle (&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;when the output goes &lt;/del&gt;high &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;then &lt;/del&gt;low &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;then back to high&lt;/del&gt;). If the Duty-Cycle is 100% then the output is high &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;all the time &lt;/del&gt;and &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;thus &lt;/del&gt;the LED would be &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;a &lt;/del&gt;full brightness. If the Duty-Cycle is 0%, the output is &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;off all the time, &lt;/del&gt;so the LED would &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;just &lt;/del&gt;be off. &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Now &lt;/del&gt;if the &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Duty-Cycle &lt;/del&gt;is set to 50%, the output is on 50% of the time and off the other 50%. In this &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;setup&lt;/del&gt;, the LED would appear be at 50% of its full brightness&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;, an thus appears to be &lt;/del&gt;dimmed. &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;This works by basically averaging &lt;/del&gt;the time &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;on &lt;/del&gt;with the time &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;off.&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;PWM works by turning a circuit on and off very rapidly &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;succession&lt;/ins&gt;. By adjusting the ratio of the time on and the time off, it is possible to adjust the brightness of &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;an &lt;/ins&gt;LED. This ratio is called the Duty-Cycle and is the percentage of time the output is high with respect to the time of one cycle (&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;a cycle consists of a consecutive &lt;/ins&gt;high &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;and &lt;/ins&gt;low &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;period&lt;/ins&gt;). If the Duty-Cycle is 100% then the output is &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;continually &lt;/ins&gt;high and the LED would be &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;at &lt;/ins&gt;full brightness. If the Duty-Cycle is 0%, the output is &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;continually low &lt;/ins&gt;so the LED would be &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;kept &lt;/ins&gt;off. &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;If the duty cycle is set to a percentage in between, then the LED will reflect that in its brightness. For example, &lt;/ins&gt;if the &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;duty cycle &lt;/ins&gt;is set to 50%, the output is on 50% of the time and off the other 50%. In this &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;scenario&lt;/ins&gt;, the LED would appear be at 50% of its full brightness &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;(&lt;/ins&gt;dimmed&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;)&lt;/ins&gt;. &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;To find the brightness level, divide &lt;/ins&gt;the time &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;high &lt;/ins&gt;with the &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;total cycle &lt;/ins&gt;time &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;(also known as the period of the wave form)&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[[image:PWM_Duty_Cycle_Graphic.png|thumb|c|center|700px|]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[[image:PWM_Duty_Cycle_Graphic.png|thumb|c|center|700px|]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;br /&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;br /&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Jwatson</name></author>	</entry>

	<entry>
		<id>http://www.robotc.net/w/index.php?title=Tutorials/Arduino_Projects/Additional_Info/PWM&amp;diff=6475&amp;oldid=prev</id>
		<title>Jwatson: /* What is PWM */</title>
		<link rel="alternate" type="text/html" href="http://www.robotc.net/w/index.php?title=Tutorials/Arduino_Projects/Additional_Info/PWM&amp;diff=6475&amp;oldid=prev"/>
				<updated>2012-10-02T16:10:34Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;What is PWM&lt;/span&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 16:10, 2 October 2012&lt;/td&gt;
		&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 12:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 12:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;== What is PWM ==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;== What is PWM ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;PWM works by turning &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;the &lt;/del&gt;circuit on and off very rapidly. By adjusting the ratio of the time on and the time off, it is possible to adjust the brightness of the LED. This ratio is called the Duty-Cycle and is the percentage of time the output is high with respect to the time of one cycle (when the output goes high then low then back to high). If the Duty-Cycle is 100% then the output is high all the time and thus the LED would be a full brightness. If the Duty-Cycle is 0%, the output is off all the time, so the LED would just be off. Now if the Duty-Cycle is set to 50%, the output is on 50% of the time and off the other 50%. In this setup, the LED would appear be at 50% of its full brightness, an thus appears to be dimmed. This works by basically averaging the time on with the time off.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;PWM works by turning &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;a &lt;/ins&gt;circuit on and off very rapidly. By adjusting the ratio of the time on and the time off, it is possible to adjust the brightness of the LED. This ratio is called the Duty-Cycle and is the percentage of time the output is high with respect to the time of one cycle (when the output goes high then low then back to high). If the Duty-Cycle is 100% then the output is high all the time and thus the LED would be a full brightness. If the Duty-Cycle is 0%, the output is off all the time, so the LED would just be off. Now if the Duty-Cycle is set to 50%, the output is on 50% of the time and off the other 50%. In this setup, the LED would appear be at 50% of its full brightness, an thus appears to be dimmed. This works by basically averaging the time on with the time off.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[[image:PWM_Duty_Cycle_Graphic.png|thumb|c|center|700px|]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[[image:PWM_Duty_Cycle_Graphic.png|thumb|c|center|700px|]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;br /&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;br /&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Jwatson</name></author>	</entry>

	<entry>
		<id>http://www.robotc.net/w/index.php?title=Tutorials/Arduino_Projects/Additional_Info/PWM&amp;diff=6212&amp;oldid=prev</id>
		<title>Pgp90 at 19:49, 8 August 2012</title>
		<link rel="alternate" type="text/html" href="http://www.robotc.net/w/index.php?title=Tutorials/Arduino_Projects/Additional_Info/PWM&amp;diff=6212&amp;oldid=prev"/>
				<updated>2012-08-08T19:49:42Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 19:49, 8 August 2012&lt;/td&gt;
		&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 21:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 21:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;== PWM on a Microcontroller ==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;== PWM on a Microcontroller ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Due to the high frequency that PWM operates at, to get an accurate signal using code would basically prevent you from doing anything else with the chip. To eliminate this problem, chip manufacturers included hardware to generate the PWM signal. However not every I/O pin supports PWM output. For the Arduino UNO, only digital pins 3, 5, 6, 9, 10, and 11, support it. Luckily, ROBOTC has a tab in the Motors and Sensors Setup window that lists the pins that can be used. ROBOTC also handles all of the complex options that need to be set for the hardware PWM to work.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Due to the high frequency that PWM operates at, to get an accurate signal using code would basically prevent you from doing anything else with the chip. To eliminate this problem, chip manufacturers included hardware to generate the PWM signal. However not every I/O pin supports PWM output. For the Arduino UNO, only digital pins 3, 5, 6, 9, 10, and 11, support it. Luckily, ROBOTC has a tab in the Motors and Sensors Setup window that lists the pins that can be used. ROBOTC also handles all of the complex options that need to be set for the hardware PWM to work.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;[[Category:need to be finished]]&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Pgp90</name></author>	</entry>

	<entry>
		<id>http://www.robotc.net/w/index.php?title=Tutorials/Arduino_Projects/Additional_Info/PWM&amp;diff=6155&amp;oldid=prev</id>
		<title>Pgp90 at 18:36, 8 August 2012</title>
		<link rel="alternate" type="text/html" href="http://www.robotc.net/w/index.php?title=Tutorials/Arduino_Projects/Additional_Info/PWM&amp;diff=6155&amp;oldid=prev"/>
				<updated>2012-08-08T18:36:14Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 18:36, 8 August 2012&lt;/td&gt;
		&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;{{DISPLAYTITLE:PWM}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;{{DISPLAYTITLE:PWM}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;yambe:breadcrumb self=&amp;quot;PWM&amp;quot;&amp;gt;Arduino_Projects|Arduino Tutorials and Guided Projects&amp;lt;/yambe:breadcrumb&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;yambe:breadcrumb self=&amp;quot;PWM&amp;quot;&amp;gt;Tutorials/Arduino_Projects/Mobile_Robotics/BoeBot/How_to_Dim_an_LED|How to dim LEDs using the Arduino (BoeBot)&amp;lt;/yambe:breadcrumb&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;yambe:breadcrumb self=&amp;quot;PWM&amp;quot;&amp;gt;Tutorials/Arduino_Projects/Mobile_Robotics/BoeBot/How_to_Dim_an_LED|How to dim LEDs using the Arduino (BoeBot)&amp;lt;/yambe:breadcrumb&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;yambe:breadcrumb self=&amp;quot;PWM&amp;quot;&amp;gt;Tutorials/Arduino_Projects/Mobile_Robotics/BoeBot/Continuous_Rotation_Servo_Intro|What is a Continuous Rotation Servo? (BoeBot)&amp;lt;/yambe:breadcrumb&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;yambe:breadcrumb self=&amp;quot;PWM&amp;quot;&amp;gt;Tutorials/Arduino_Projects/Mobile_Robotics/VEX/How_to_Dim_an_LED|How to dim LEDs using the Arduino (VEX)&amp;lt;/yambe:breadcrumb&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;yambe:breadcrumb self=&amp;quot;PWM&amp;quot;&amp;gt;Tutorials/Arduino_Projects/Mobile_Robotics/VEX/How_to_Dim_an_LED|How to dim LEDs using the Arduino (VEX)&amp;lt;/yambe:breadcrumb&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;yambe:breadcrumb self=&amp;quot;PWM&amp;quot;&amp;gt;Tutorials/Arduino_Projects/Mobile_Robotics/VEX/Continuous_Rotation_Servo_Intro|What is a Continuous Rotation Servo? (VEC)&amp;lt;/yambe:breadcrumb&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;yambe:breadcrumb self=&amp;quot;PWM&amp;quot;&amp;gt;Tutorials/Arduino_Projects/Mobile_Robotics/Lego/How_to_Dim_an_LED|How to dim LEDs using the Arduino (Lego)&amp;lt;/yambe:breadcrumb&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;yambe:breadcrumb self=&amp;quot;PWM&amp;quot;&amp;gt;Tutorials/Arduino_Projects/Mobile_Robotics/Lego/How_to_Dim_an_LED|How to dim LEDs using the Arduino (Lego)&amp;lt;/yambe:breadcrumb&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;yambe:breadcrumb self=&amp;quot;PWM&amp;quot;&amp;gt;Tutorials/Arduino_Projects/Mobile_Robotics/Tetrix/How_to_Dim_an_LED|How to dim LEDs using the Arduino (Tetrix)&amp;lt;/yambe:breadcrumb&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;yambe:breadcrumb self=&amp;quot;PWM&amp;quot;&amp;gt;Tutorials/Arduino_Projects/Mobile_Robotics/Tetrix/How_to_Dim_an_LED|How to dim LEDs using the Arduino (Tetrix)&amp;lt;/yambe:breadcrumb&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;yambe:breadcrumb self=&amp;quot;PWM&amp;quot;&amp;gt;Arduino_Projects|&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Arduino Tutorials and Guided Projects&lt;/del&gt;&amp;lt;/yambe:breadcrumb&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;yambe:breadcrumb self=&amp;quot;PWM&amp;quot;&amp;gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Tutorials/&lt;/ins&gt;Arduino_Projects&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;/Mobile_Robotics/Tetrix/Continuous_Rotation_Servo_Intro&lt;/ins&gt;|&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;What is a Continuous Rotation Servo? (Tetrix)&lt;/ins&gt;&amp;lt;/yambe:breadcrumb&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;{{tl|1|}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;{{tl|1|}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Pgp90</name></author>	</entry>

	<entry>
		<id>http://www.robotc.net/w/index.php?title=Tutorials/Arduino_Projects/Additional_Info/PWM&amp;diff=6131&amp;oldid=prev</id>
		<title>Pgp90: /* PWM as a signal */</title>
		<link rel="alternate" type="text/html" href="http://www.robotc.net/w/index.php?title=Tutorials/Arduino_Projects/Additional_Info/PWM&amp;diff=6131&amp;oldid=prev"/>
				<updated>2012-08-08T17:54:10Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;PWM as a signal&lt;/span&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 17:54, 8 August 2012&lt;/td&gt;
		&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 13:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 13:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;== PWM as a signal ==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;== PWM as a signal ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Since PWM have set periods, it is possible to change the Duty-Cycle to transmit data. This is a common practice for controlling servo motors. &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Since PWM have set periods, it is possible to change the Duty-Cycle to transmit data. This is a common practice for controlling servo motors. &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;By setting the Duty-Cycle to some value between an expected range of values, it is possible to map the value of the Duty-Cycle in the range, to another range of values that you will actually use. For instance with servos, the PWM signal is between 1.0ms and 2.0ms, but the servo maps these values to between -100% and 100%&lt;/ins&gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;{{Todo|finish this part&lt;/del&gt;.&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;}}&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;== PWM on a Microcontroller ==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;== PWM on a Microcontroller ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Pgp90</name></author>	</entry>

	<entry>
		<id>http://www.robotc.net/w/index.php?title=Tutorials/Arduino_Projects/Additional_Info/PWM&amp;diff=5807&amp;oldid=prev</id>
		<title>Pgp90 at 13:32, 31 July 2012</title>
		<link rel="alternate" type="text/html" href="http://www.robotc.net/w/index.php?title=Tutorials/Arduino_Projects/Additional_Info/PWM&amp;diff=5807&amp;oldid=prev"/>
				<updated>2012-07-31T13:32:43Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 13:32, 31 July 2012&lt;/td&gt;
		&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 6:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 6:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;yambe:breadcrumb self=&amp;quot;PWM&amp;quot;&amp;gt;Arduino_Projects|Arduino Tutorials and Guided Projects&amp;lt;/yambe:breadcrumb&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;yambe:breadcrumb self=&amp;quot;PWM&amp;quot;&amp;gt;Arduino_Projects|Arduino Tutorials and Guided Projects&amp;lt;/yambe:breadcrumb&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;{{tl|1|}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;{{tl|1|}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;== What is PWM ==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;== What is PWM ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Pgp90</name></author>	</entry>

	</feed>