From 6c2afbb839bcd9173cda56f4c33cdf23b2e30cbc Mon Sep 17 00:00:00 2001 From: topquark22 <37160280+topquark22@users.noreply.github.com> Date: Tue, 6 Dec 2022 21:43:02 -0500 Subject: [PATCH 1/2] Update analog-output.md --- .../learn/02.microcontrollers/03.analog-output/analog-output.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/content/learn/02.microcontrollers/03.analog-output/analog-output.md b/content/learn/02.microcontrollers/03.analog-output/analog-output.md index 111c550b1c..31817e9039 100644 --- a/content/learn/02.microcontrollers/03.analog-output/analog-output.md +++ b/content/learn/02.microcontrollers/03.analog-output/analog-output.md @@ -13,6 +13,8 @@ In the graphic below, the green lines represent a regular time period. This dura ![](./pwm.gif) +PWM is only available on digital output pins 3, 5, 6, 9, 10 and 11. The other digital pins cannot be used for PWM. + Once you get this example running, grab your Arduino and shake it back and forth. What you are doing here is essentially mapping time across the space. To our eyes, the movement blurs each LED blink into a line. As the LED fades in and out, those little lines will grow and shrink in length. Now you are seeing the pulse width. *Written by Timothy Hirzel* From 623b39c73b90fa3611612bd3cbf60a714f470b49 Mon Sep 17 00:00:00 2001 From: Sebastian Romero Date: Thu, 15 Dec 2022 14:32:23 +0100 Subject: [PATCH 2/2] Update content/learn/02.microcontrollers/03.analog-output/analog-output.md --- .../learn/02.microcontrollers/03.analog-output/analog-output.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/learn/02.microcontrollers/03.analog-output/analog-output.md b/content/learn/02.microcontrollers/03.analog-output/analog-output.md index 31817e9039..8b25d73c2a 100644 --- a/content/learn/02.microcontrollers/03.analog-output/analog-output.md +++ b/content/learn/02.microcontrollers/03.analog-output/analog-output.md @@ -13,7 +13,7 @@ In the graphic below, the green lines represent a regular time period. This dura ![](./pwm.gif) -PWM is only available on digital output pins 3, 5, 6, 9, 10 and 11. The other digital pins cannot be used for PWM. +On some microcontrollers PWM is only available on selected pins. Please consider the pinout diagram of your board to find out which ones you can use for PWM. They are denoted with a tilde sign (~). Once you get this example running, grab your Arduino and shake it back and forth. What you are doing here is essentially mapping time across the space. To our eyes, the movement blurs each LED blink into a line. As the LED fades in and out, those little lines will grow and shrink in length. Now you are seeing the pulse width.