Skip to main content

BitWear

Introduction

BitWear is a low-cost compact accessory for micro:bit users to make fun wearable gadgets. The BitWear is simply attached to the micro:bit with 5 screws (M3x5mm), and powered with two CR2032 batteries, which are securely clipped in and unable to be taken out unless you unscrew the BitWear. There is a vibration motor, a buzzer and an addressable RGB LED on board, all designed for your fun wearable projects. Our goal design for the BitWear is to maximize micro:bit functions while minimizing the space footprint to provide new micro:bit users with enriched wearable experience.

note

Users should prepare two C2032 batteries and five M3*5 screws separately.

tip

When testing a program, do not install batteries on BitWear first. Use a USB cable instead to provide power and ensure program transmission. Only install batteries when a program completes and offline implementation is required.

Tutorials

Here are some related tutorials to help you get started with the BitWear.

1. Wake-Up Alarm

1.1 Implementation

This is a magical gadget that can wake you up! Once the project completes, use the double-sided tape to secure the gadget onto your back. Slowly bend down as if you are falling to sleep, and see if it can send out a remind.

1.2 Write a Program

First, add a forever block. Connect the block show icon inside. Keep this heart icon on it. Next, add an IF-THEN statement. Connect a comparison block “<” into it. Inside the block, add the block acceleration (mg) from the tab Input to the box on the left; and input 800 into the box on the right. Then, go to the tab Music and connect the block start melody (dadadum) repeating (once) underneath.

1.3 Connect a Device

Attach the BitWear onto the micro:bit. Use a USB cable to connect the micro:bit and your PC together. Ensure that the LED indicator on the micro:bit lights up.

1.4 Download a Program

You have been introduced how to download a program in the previous tutorials, which can be simplified into steps as: rename a program, click the “Download” button and send it to the micro:bit.

1.5 Run a Program

Turn on the power switch on the BitWear and see if the program can run normally.

2. Light Detector

2.1 Implementation

With a BitWear attached, the micro:bit shows a smiley face if the light level is greater than 80; if not, the BitWear vibrates, and the micro:bit shows a sad face and plays the melody Baddy. (The specified light level may differ in a real scenario; you can adjust it as needed.)

2.2 Write a Program

Note that MakeCode does not provide blocks to control the BitWear. Therefore we need to manually add an extension in MakeCode to make sure everything goes well. Let’s learn how to do it now! How to Add a BitWear Extension: Go to MakeCode: https://makecode.microbit.org

  • Step 2: Select Extensions from the drop-down list which takes you to the extensions page.

If it prompts that the extension does not exist, close the browser and enter MakeCode to try again.

  • Step 4: Click the extension package which takes you back to the workspace. You will see that the BitWear extension is then successfully added.

Let’s move on to the task after we added the extension.

First, add a forever block and connect an IF-THEN-ELSE statement inside. Follow this program logic and code: if the light level is greater than 80, then the micro:bit will show a smiley face; if not, the BitWear will vibrate, and the micro:bit will show a sad face and play the melody Baddy.

2.3 Connect a Device

Attach the BitWear onto the micro:bit. Use a USB cable to connect the micro:bit and your PC together. Ensure that the LED indicator on the micro:bit lights up.

2.4 Download a Program

You have been introduced how to download a program in the previous tutorials, which can be simplified into steps as: rename a program, click the “Download” button and send it to the micro:bit.

2.5 Run a Program

Turn on the power switch on the BitWear and see if the program can run normally.

note

Due to no light sensor is built on a micro:bit, the micro:bit uses the LED matrix to sense the light around it. The LED actuators are constantly converted into input signals and take sample of the voltage attenuation duration, which is roughly proportional to the light level from an ambient environment.

Course Materials

You can see related course materials about the micro:bit and BitWear on our online learning platform Make2Learn via this address: https://make2learn.tinkergen.com/

Attachments

Attachment: BitWear Tutorial Source Code

Tech Support & Product Discussion

Thank you for choosing our products! We are here to provide you with different support to ensure that your experience with our products is as smooth as possible. We offer several communication channels to cater to different preferences and needs.

Loading Comments...