Skip to main content

Edge Pads

In this lesson, students will learn about the Edge Pads on the BrainPad Arcade and how they can use them to connect sensors and circuits.

Edge Pads

Target Audience: Anyone 13+ will benefit from this series. Younger audiences can still follow along when paired with an adult. An example can be a pops/grandchild STEM weekend event!

Setup

You will need any computer with a modern internet connection. Windows, Mac, and even Chromebook will work!

And you will need an RGB LED module and alligator clips with BrainPad Arcade.

Adding the Extension

First, we need to add the edge-connector extension to our project. Start by clicking on Extension.

Edge Pads

Now locate and and click on edge-connector.

Edge Pads

You now have Pins blocks under Advanced section.

Edge Pads

From these "Pins", you can program and control the "Edge Pads".

To know the PIN you need, flip the Arcade to the back, and you will find the pin numbers.

BrainPad


Light it Up!

Let us connect/wire the RGB LED to the Arcade. First, We will connect the GND from the Arcade to the GND at the RGB LED.

BrainPad connected

Then, we will connect the first color “Red” using an alligator clip to PIN0 BrainPad connected

Open MakeCode Arcade, and start a new project

Now, go to the PINs section, drag digital write pin (P0) and set it to high. This code tells the Arcade to turn the pin on, which means the Red color will turn on.

Makecode arcade pins

Download it to your Arcade, and try it

light

Now, we can control the other colors, let's try adding Green color!

All you need, to connect Green pin to PIN1 in Arcade.

BrainPad connected

Add the same code to activate the PIN1.

Makecode arcade code

Mixing Red and Green, will give us Yellow!

Green light

We can turn on the Blue color, and do some coloring magic! mixing the colors to have a new color.