<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Basic Electronics on BatSTEM Academy</title><link>https://docs.batstem.com/en/categories/basic-electronics/</link><description>Recent content in Basic Electronics 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/categories/basic-electronics/index.xml" rel="self" type="application/rss+xml"/><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>L6: The serial port</title><link>https://docs.batstem.com/en/docs/l6-the-serial-port/</link><pubDate>Wed, 02 Apr 2025 00:00:00 +0000</pubDate><guid>https://docs.batstem.com/en/docs/l6-the-serial-port/</guid><description>&lt;h1 id="the-serial-port">The serial port&lt;a class="td-heading-self-link" href="#the-serial-port" 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 serial communication port is.&lt;/li>
&lt;li>How to use it to send information to the development board and receive information from it.&lt;/li>
&lt;li>How to use it to monitor and debug our programs.&lt;/li>
&lt;li>Using variables.&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>, &lt;a href="../l4-variable-intensity-led/">&lt;em>Lesson 4: Variable-brightness LED&lt;/em>&lt;/a> and &lt;a href="../l5-the-rgb-led/">&lt;em>Lesson 5: The RGB LED&lt;/em>&lt;/a>. In this lesson, we will not add a new electronic component: we will learn to communicate with the board from the computer.&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><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><item><title>L8: The pushbutton (2)</title><link>https://docs.batstem.com/en/docs/l8-the-pushbutton-2/</link><pubDate>Wed, 02 Apr 2025 00:00:00 +0000</pubDate><guid>https://docs.batstem.com/en/docs/l8-the-pushbutton-2/</guid><description>&lt;h1 id="the-pushbutton-2">The pushbutton (2)&lt;a class="td-heading-self-link" href="#the-pushbutton-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>What an interrupt is.&lt;/li>
&lt;li>The difference between polling in the main loop and reacting to an event.&lt;/li>
&lt;li>Making a pushbutton execute blocks when its state changes.&lt;/li>
&lt;li>Using simple interrupts to control an LED.&lt;/li>
&lt;li>Optionally, using variables to count button presses.&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 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="../l7-the-pushbutton/">&lt;em>Lesson 7: The pushbutton&lt;/em>&lt;/a>.&lt;/p></description></item><item><title>L9: The timer</title><link>https://docs.batstem.com/en/docs/l9-the-timer/</link><pubDate>Wed, 02 Apr 2025 00:00:00 +0000</pubDate><guid>https://docs.batstem.com/en/docs/l9-the-timer/</guid><description>&lt;h1 id="the-timer">The timer&lt;a class="td-heading-self-link" href="#the-timer" 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 timer is.&lt;/li>
&lt;li>The difference between waiting in the main loop and using a periodic event.&lt;/li>
&lt;li>Executing blocks at regular intervals.&lt;/li>
&lt;li>Enabling and disabling a timer.&lt;/li>
&lt;li>Using variables to remember the state between one timer event and the next.&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 completed &lt;a href="../l1-internal-led/">&lt;em>Lesson 1: My first project&lt;/em>&lt;/a>, &lt;a href="../l3-the-led-diode-2/">&lt;em>Lesson 3: The LED diode (2)&lt;/em>&lt;/a>, &lt;a href="../l6-the-serial-port/">&lt;em>Lesson 6: The serial port&lt;/em>&lt;/a> and &lt;a href="../l8-the-pushbutton-2/">&lt;em>Lesson 8: The pushbutton (2)&lt;/em>&lt;/a>.&lt;/p></description></item><item><title>P3: Interactive traffic light</title><link>https://docs.batstem.com/en/docs/p3-interactive-traffic-light/</link><pubDate>Thu, 16 Jul 2026 00:00:00 +0000</pubDate><guid>https://docs.batstem.com/en/docs/p3-interactive-traffic-light/</guid><description>&lt;h1 id="interactive-traffic-light">Interactive traffic light&lt;a class="td-heading-self-link" href="#interactive-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 combine what we have learned in the three previous lessons:&lt;/p>
&lt;ul>
&lt;li>Configuring a pushbutton and reading its state.&lt;/li>
&lt;li>Events and interrupts when pressing and releasing a button.&lt;/li>
&lt;li>Using a timer to execute a periodic task.&lt;/li>
&lt;li>Using variables to remember the current state.&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="../l7-the-pushbutton/">&lt;em>L7: The pushbutton&lt;/em>&lt;/a>, &lt;a href="../l8-the-pushbutton-2/">&lt;em>L8: The pushbutton (2)&lt;/em>&lt;/a> and &lt;a href="../l9-the-timer/">&lt;em>L9: The timer&lt;/em>&lt;/a>.&lt;/p></description></item></channel></rss>