Skip to main content

1.6

Major VersionM

by Pete Prodoehl

Introduction

Connect an LED to a Bit Board and control it with a micro:bit

We'll make the LED blink on and off, one of the classic beginner projects when working with a microcontroller.

Video Overview

Featured Document

  1. We'll use Maker Tape to connect the LED to the Bit Board on a LEGO baseplate. Connect the Negative (-) side of the LED to a Ground (GND) hole on the Bit Board. Connect the Positive (+) side of the LED to Pin 8 on the Bit Board.
    • We'll use Maker Tape to connect the LED to the Bit Board on a LEGO baseplate.

    • Connect the Negative (-) side of the LED to a Ground (GND) hole on the Bit Board.

    • Connect the Positive (+) side of the LED to Pin 8 on the Bit Board.

    • You'll notice the Ground on the Bit Board (as well as the LED and other Crazy Circuits components we'll use) is color coded White.

  2. If you've never used a micro:bit before you'll want to check out this guide:  Bit Board V2 Setup and Use
    • If you've never used a micro:bit before you'll want to check out this guide: Bit Board V2 Setup and Use

    • We're going to load the following code for our LED Blink program: https://makecode.microbit.org/_e9bEXrfRd...

    • This code will make the LED turn on, wait one second, turn off, wait another second, and then repeat.

    • The digital write command can be set to 1 or 0 to set a pin high or low which will turn on or off an LED in this example.

    • We can choose which pin will be affected using the drop down control in the digital write command. Here it is set to Pin 8.

    • Once the code is loaded it should start running immediately.

    • You can power the micro:bit via the USB cable you used to load the code or you can use a battery pack plugged into the Bit Board.

    • The LED should turn on, then after one second turn off, then after another second turn on again, and repeat.

    • Follow along with our recorded Live Stream!

    • You can watch the full video of us walking through this project, along with explaining and exploring the code: https://youtube.com/live/z8ONp1Q9ZV0

Finish Line

Pete Prodoehl

Member since: 3/4/20

1,840 Reputation

424 Guides authored

0 Comments

Add Comment



View Statistics:

Past 24 Hours: 0

Past 7 Days: 2

Past 30 Days: 58

All Time: 608