<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>PWM on BatSTEM Academy</title><link>https://docs.batstem.com/en/tags/pwm/</link><description>Recent content in PWM on BatSTEM Academy</description><generator>Hugo</generator><language>en</language><lastBuildDate>Thu, 16 Jul 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://docs.batstem.com/en/tags/pwm/index.xml" rel="self" type="application/rss+xml"/><item><title>L4: Variable-brightness LED</title><link>https://docs.batstem.com/en/docs/l4-variable-intensity-led/</link><pubDate>Wed, 02 Apr 2025 00:00:00 +0000</pubDate><guid>https://docs.batstem.com/en/docs/l4-variable-intensity-led/</guid><description>&lt;h1 id="variable-brightness-led">Variable-brightness LED&lt;a class="td-heading-self-link" href="#variable-brightness-led" aria-label="Heading self-link">&lt;/a>&lt;/h1>
&lt;h2 id="what-you-will-learn-in-this-lesson">What you will learn in this lesson&lt;a class="td-heading-self-link" href="#what-you-will-learn-in-this-lesson" aria-label="Heading self-link">&lt;/a>&lt;/h2>
&lt;p>In this lesson, we will cover:&lt;/p>
&lt;ul>
&lt;li>Controlling the brightness of an external LED from the development board.&lt;/li>
&lt;li>PWM outputs: what they are and what they are used for.&lt;/li>
&lt;/ul>
&lt;h2 id="prerequisites">Prerequisites&lt;a class="td-heading-self-link" href="#prerequisites" aria-label="Heading self-link">&lt;/a>&lt;/h2>
&lt;p>To follow this lesson, you should have already completed &lt;a href="../l1-internal-led/">&lt;em>Lesson 1: My first project&lt;/em>&lt;/a>, &lt;a href="../l2-the-led-diode/">&lt;em>Lesson 2: The LED diode&lt;/em>&lt;/a> and &lt;a href="../l3-the-led-diode-2/">&lt;em>Lesson 3: The LED diode (2)&lt;/em>&lt;/a>. In this lesson, we will use the same type of circuit as in the previous lesson, but we will learn to control the LED using more values than just on and off.&lt;/p></description></item><item><title>L5: The RGB LED</title><link>https://docs.batstem.com/en/docs/l5-the-rgb-led/</link><pubDate>Wed, 02 Apr 2025 00:00:00 +0000</pubDate><guid>https://docs.batstem.com/en/docs/l5-the-rgb-led/</guid><description>&lt;h1 id="the-rgb-led">The RGB LED&lt;a class="td-heading-self-link" href="#the-rgb-led" aria-label="Heading self-link">&lt;/a>&lt;/h1>
&lt;h2 id="what-you-will-learn-in-this-lesson">What you will learn in this lesson&lt;a class="td-heading-self-link" href="#what-you-will-learn-in-this-lesson" aria-label="Heading self-link">&lt;/a>&lt;/h2>
&lt;p>In this lesson, we will cover:&lt;/p>
&lt;ul>
&lt;li>What an RGB LED is and how it works.&lt;/li>
&lt;li>Additive colour mixing.&lt;/li>
&lt;li>Controlling the LED&amp;rsquo;s colour and brightness from the development board.&lt;/li>
&lt;/ul>
&lt;h2 id="prerequisites">Prerequisites&lt;a class="td-heading-self-link" href="#prerequisites" aria-label="Heading self-link">&lt;/a>&lt;/h2>
&lt;p>To follow this lesson, you should have already completed &lt;a href="../l1-internal-led/">&lt;em>Lesson 1: My first project&lt;/em>&lt;/a>, &lt;a href="../l2-the-led-diode/">&lt;em>Lesson 2: The LED diode&lt;/em>&lt;/a>, &lt;a href="../l3-the-led-diode-2/">&lt;em>Lesson 3: The LED diode (2)&lt;/em>&lt;/a> and &lt;a href="../l4-variable-intensity-led/">&lt;em>Lesson 4: Variable-brightness LED&lt;/em>&lt;/a>. In this lesson, we will use three outputs on the board to control the three colours of a single component.&lt;/p></description></item><item><title>P2: Control the RGB LED from your computer</title><link>https://docs.batstem.com/en/docs/p2-serial-controlled-led/</link><pubDate>Thu, 16 Jul 2026 00:00:00 +0000</pubDate><guid>https://docs.batstem.com/en/docs/p2-serial-controlled-led/</guid><description>&lt;h1 id="control-the-rgb-led-from-your-computer">Control the RGB LED from your computer&lt;a class="td-heading-self-link" href="#control-the-rgb-led-from-your-computer" aria-label="Heading self-link">&lt;/a>&lt;/h1>
&lt;h2 id="what-you-will-review-in-this-project">What you will review in this project&lt;a class="td-heading-self-link" href="#what-you-will-review-in-this-project" aria-label="Heading self-link">&lt;/a>&lt;/h2>
&lt;p>In this project, we will combine what we have learned in previous lessons:&lt;/p>
&lt;ul>
&lt;li>Controlling the red, green and blue channels of an RGB LED.&lt;/li>
&lt;li>Receiving and sending text through the COM port.&lt;/li>
&lt;li>Using a variable to store a message.&lt;/li>
&lt;li>Using conditions to decide what to do based on the command received.&lt;/li>
&lt;/ul>
&lt;h2 id="prerequisites">Prerequisites&lt;a class="td-heading-self-link" href="#prerequisites" aria-label="Heading self-link">&lt;/a>&lt;/h2>
&lt;p>This project puts into practice the concepts learned in &lt;a href="../l4-variable-intensity-led/">&lt;em>L4: Variable-brightness LED&lt;/em>&lt;/a>, &lt;a href="../l5-the-rgb-led/">&lt;em>L5: The RGB LED&lt;/em>&lt;/a>, &lt;a href="../l6-the-serial-port/">&lt;em>L6: The serial port&lt;/em>&lt;/a> and &lt;a href="../l7-the-pushbutton/">&lt;em>L7: The pushbutton&lt;/em>&lt;/a>.&lt;/p></description></item></channel></rss>