Search

Cables & Connectors

Electronics Components

Motors & Controllers

On Sale items!

Get Professional Support

BBC Micro:bit

Robotics

On sale items!

Announcement


Check out our latest news to find out more about events, opportunities and partnerships.

Esmes' Electronics


Esmes' Electronics is a simple introduction to using the micro:bit written by a year 5 student.

Troys' tutorials


Learn with Troy by asking for support and, he will post a tutorial here to benefit all of our visitors. Free advice!

Feature teacher


Be inspired by some of our favorite teachers using our products.

Get professional support


Contact us now to request your own tutorial or learning resource.

This section doesn’t currently include any content. Add content to this section using the sidebar.

Image caption appears here

Add your deal, information or promotional text

The STOP:Bit - Part 2

MORE EXCITING THINGS YOU CAN DO WITH YOUR LAMP:BIT!

I can do the basic steps to coding my STOP:bit, what can I try now?

The STOP:bit can be controlled by either using the A and B buttons on your Micro:Bit or just by moving it around. In this blog, I'll show you how to programme your Micro:Bit so you can make the lights go on or off just by tilting it!

For this, you’ll need the following: 

 

STEP 1:

First, you need to open MakeCode on your device and download the STOP:bit extension for the micro:bit. To find the extension, go to settings, click extensions, and search for "stop bit". The extension is called 'kitronik-stopbit' and after you download it, it should appear in the code blocks.

Drag an input onto the programming space that's controlled by moving the Micro:Bit. I chose to set mine to tilt left, but you can pick whichever one you like!

 

STEP 2:

Now you can add the STOP:bit code blocks. Make sure you add one for each coloured light. You can have any number of them turn on or off with this action, but I've chosen to have all the lights turn on when I tilt the Micro:Bit to the left.

 

 

STEP 3:

Now you can repeat that and make a second action to do something different with each of the lights. I've made it so that when I tilt my Micro:Bit to the right, all of the lights turn back off again. You can do anything you want with the lights, so have fun and try out loads of different things!

 

 

STEP 4:

And now you're ready to code! Click on a code block to drag and drop an instruction into the program space - check out MakeCode's help guide to using blocks to learn what each of the blocks do, and what ones go together! My next blogs will show you how to use MakeCode to do some really cool things with extensions like the ZIP Halo.

 

RELATED PRODUCTS

MICRO:BIT STARTER KIT

STOP:BIT TRAFFIC LIGHT

 

READ NEXT:

The ACCESS:bit - Part 1

Leave a comment (all fields required)

Comments will be approved before showing up.

Search