<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>LED on BatSTEM Academy</title><link>https://docs.batstem.com/en/tags/led/</link><description>Recent content in LED on BatSTEM Academy</description><generator>Hugo</generator><language>en</language><lastBuildDate>Wed, 02 Apr 2025 00:00:00 +0000</lastBuildDate><atom:link href="https://docs.batstem.com/en/tags/led/index.xml" rel="self" type="application/rss+xml"/><item><title>L1: My first project</title><link>https://docs.batstem.com/en/docs/l1-internal-led/</link><pubDate>Fri, 07 Mar 2025 00:00:00 +0000</pubDate><guid>https://docs.batstem.com/en/docs/l1-internal-led/</guid><description>&lt;h1 id="my-first-batstem-project">My first BatSTEM project&lt;a class="td-heading-self-link" href="#my-first-batstem-project" aria-label="Heading self-link">&lt;/a>&lt;/h1>

 &lt;div style="position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;">
 &lt;iframe allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen="allowfullscreen" loading="eager" referrerpolicy="strict-origin-when-cross-origin" src="https://www.youtube.com/embed/mgueM5a8yYY?autoplay=0&amp;amp;controls=1&amp;amp;end=0&amp;amp;loop=0&amp;amp;mute=0&amp;amp;start=0" style="position: absolute; top: 0; left: 0; width: 100%; height: 100%; border:0;" title="YouTube video">&lt;/iframe>
 &lt;/div>

&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>Accessing the BatSTEM Cloud IDE programming interface.&lt;/li>
&lt;li>Connecting the ESP32 development board to the computer.&lt;/li>
&lt;li>Understanding the &amp;ldquo;setup&amp;rdquo; and &amp;ldquo;main loop&amp;rdquo; blocks.&lt;/li>
&lt;li>Controlling the internal LED of 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>Before starting, you need to know your login details for the BatSTEM Cloud IDE platform &lt;a href="https://ide.batstem.io" target="_blank" rel="noopener">https://ide.batstem.io&lt;/a>.&lt;/p></description></item><item><title>L2: The LED diode</title><link>https://docs.batstem.com/en/docs/l2-the-led-diode/</link><pubDate>Mon, 10 Mar 2025 00:00:00 +0000</pubDate><guid>https://docs.batstem.com/en/docs/l2-the-led-diode/</guid><description>&lt;h1 id="the-led-diode">The LED diode&lt;a class="td-heading-self-link" href="#the-led-diode" 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 LED or light-emitting diode is and how it works.&lt;/li>
&lt;li>Protection resistor. What it is and why it&amp;rsquo;s necessary.&lt;/li>
&lt;li>Prototype board. How it works and how we can use it to easily build circuits.&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 must have completed &lt;a href="../l1-internal-led/">&lt;em>Lesson 1: My First Project&lt;/em>&lt;/a>. Additionally, the theoretical explanation will mention the concepts of voltage, current, and resistance, although it is not necessary to understand them in depth to complete the lesson.&lt;/p></description></item><item><title>L3: The LED Diode (2)</title><link>https://docs.batstem.com/en/docs/l3-the-led-diode-2/</link><pubDate>Mon, 10 Mar 2025 00:00:00 +0000</pubDate><guid>https://docs.batstem.com/en/docs/l3-the-led-diode-2/</guid><description>&lt;h1 id="the-led-diode-2">The LED Diode (2)&lt;a class="td-heading-self-link" href="#the-led-diode-2" 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 an external LED from the development board.&lt;/li>
&lt;li>GPIO pins: What they are and what we can use them 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> and &lt;a href="../l2-the-led-diode/">&lt;em>Lesson 2: The LED diode&lt;/em>&lt;/a>, as we will combine concepts from both to learn how to control an external LED connected to our development board.&lt;/p></description></item><item><title>P1: The traffic light</title><link>https://docs.batstem.com/en/docs/p1-the-traffic-light/</link><pubDate>Mon, 10 Mar 2025 00:00:00 +0000</pubDate><guid>https://docs.batstem.com/en/docs/p1-the-traffic-light/</guid><description>&lt;h1 id="the-traffic-light">The traffic light&lt;a class="td-heading-self-link" href="#the-traffic-light" 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 review:&lt;/p>
&lt;ul>
&lt;li>Connection between the development board and the computer.&lt;/li>
&lt;li>Use of the BatSTEM Cloud development environment.&lt;/li>
&lt;li>Control of external LEDs from the development board.&lt;/li>
&lt;li>LED control blocks and wait blocks.&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 applies the concepts learned in the lessons &lt;a href="../l1-internal-led/">&lt;em>L1: My first project&lt;/em>&lt;/a>, &lt;a href="../l2-the-led-diode/">&lt;em>L2: The LED diode&lt;/em>&lt;/a> and &lt;a href="../l3-the-led-diode-2/">&lt;em>L3: The LED diode (2)&lt;/em>&lt;/a>.&lt;/p></description></item><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>L7: The pushbutton</title><link>https://docs.batstem.com/en/docs/l7-the-pushbutton/</link><pubDate>Wed, 02 Apr 2025 00:00:00 +0000</pubDate><guid>https://docs.batstem.com/en/docs/l7-the-pushbutton/</guid><description>&lt;h1 id="the-pushbutton">The pushbutton&lt;a class="td-heading-self-link" href="#the-pushbutton" 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 a pushbutton is and how it works.&lt;/li>
&lt;li>The difference between input and output devices.&lt;/li>
&lt;li>Making decisions in our programs: the &amp;ldquo;if&amp;hellip;do&amp;hellip;else&amp;rdquo; block.&lt;/li>
&lt;li>Reading the state of a pushbutton from our program to control an LED.&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 be familiar with the basic LED circuit covered in &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>.&lt;/p></description></item></channel></rss>