Skip to main content

1.1

Major VersionM

by Pete Prodoehl

Introduction

Connect a Crazy Circuits NeoPixel and a Push Button to a Bit Board and control them with code.

We'll explore how to control an RGB LED (a "NeoPixel") using a push button.

Video Overview

Featured Document

  1. We'll use Maker Tape to connect the NeoPixel and the Button to the Bit Board on a LEGO baseplate. We'll connect our Button to Pin 8 and to Ground (GND) BUT! We're going to use the "gutter" between the LEGO baseplate studs so we can have two layers of tape that do not touch. See the photos to show how this works. It's a technique we'll use for certain projects. It can also be used when you're tight on space for tape paths.
    • We'll use Maker Tape to connect the NeoPixel and the Button to the Bit Board on a LEGO baseplate.

    • We'll connect our Button to Pin 8 and to Ground (GND) BUT! We're going to use the "gutter" between the LEGO baseplate studs so we can have two layers of tape that do not touch.

    • See the photos to show how this works. It's a technique we'll use for certain projects. It can also be used when you're tight on space for tape paths.

    • Once the Button is connected we'll need to connect the NeoPixel. One side goes to Ground (GND) and the other side to 3.3v

    • We'll then connect the center pin labeled DI (for Digital Input) to Pin 0, which will control the NeoPixel. Run the tape on top of the studs so it does not touch the tape connected to the Button.

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

    • The 3.3v hole on the Bit Board is labeled and is actually two holes right next to each other on the Bit Board. (There is a small line showing the connection between them.)

  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 NeoPixel Button Better program: https://makecode.microbit.org/_VF76gvKWv...

    • We'll use the Button to start a loop where the NeoPixel will cycle through the colors red, green, and blue repeatedly.

    • 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.

    • Press the Button and the NeoPixel will start to cycle through colors. Press the Button again to stop cycling.

    • We've added a small piece of paper on top of the NeoPixel so you can see it better in video.

    • 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/9q4F1wQKCTs

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: 4

Past 30 Days: 5

All Time: 29