EasyManua.ls Logo

Sparkfun Electronics Inventor's Kit - User Manual

Sparkfun Electronics Inventor's Kit
83 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
Loading...

SparkFun Inventor's Kit for micro:bit
Experiment Guide
Introduction to the SparkFun Inventor's Kit for micro:bit
The SparkFun Inventor’s Kit for micro:bit Experiment Guide is your map for navigating the waters of
beginning embedded electronics, robotics and citizen science using the micro:bit. This guide
contains all the information you will need to explore the 12 circuits of the SparkFun Inventors Kit for
micro:bit. At the center of this guide is one core philosophy — that anyone can (and should)
experiment with cutting-edge electronics in a fun and playful way without breaking the bank.
When you’re done with this guide, you’ll have the know-how to start creating your own projects and
experiments. From building robots and game controllers to data logging, the world will be your
oyster. Now enough talking — let’s start tinkering!
SparkFun Inventor's Kit for micro:bit
KIT-14542
Question and Answer IconNeed help?

Do you have a question about the Sparkfun Electronics Inventor's Kit and is the answer not in the manual?

Sparkfun Electronics Inventor's Kit Specifications

General IconGeneral
BrandSparkfun Electronics
ModelInventor's Kit
CategoryToy
LanguageEnglish

Summary

Introduction and Setup

Introduction to the SparkFun Inventors Kit

Overview of the SparkFun Inventor's Kit for micro:bit experiment guide and its purpose.

What is the micro:bit?

Introduction to the micro:bit, a pocket-sized computer for creative digital technology projects.

Connecting the micro:bit

Instructions on how to connect the micro:bit to a computer via USB.

Introducing Microsoft MakeCode

Overview of Microsoft MakeCode, the programming environment for the micro:bit.

MakeCode Programming Options

Explains the choice between block-based and text-based programming in MakeCode.

Using the MakeCode Simulator

Details how to use the MakeCode simulator for testing code without hardware.

Experiment 0: Hello, micro:bit!

Building the Hello World Animation

Steps to build the 'Hello World' animation using MakeCode blocks.

Downloading Your Program

Instructions on how to download and transfer your MakeCode program to the micro:bit.

Experiment 1: Blinking an LED

Introducing the LED

Explains Light-Emitting Diodes (LEDs), their polarity, and current-limiting resistors.

LED Hardware Hookup

Guide for connecting the LED and resistor to the breadboard and micro:bit.

Running the LED Blinking Script

Steps to run the code for blinking an LED.

Code Explanation: Blinking an LED

Details the 'forever', 'digital write', and 'pause' blocks used for the LED blink.

Troubleshooting LED Blinking

Common issues and solutions for the LED not blinking.

Experiment 2: Reading a Potentiometer

Introducing the Potentiometer

Explains how a potentiometer works as a resistance-based analog sensor.

Potentiometer Hardware Hookup

Guide for connecting the potentiometer to the breadboard and micro:bit.

Running the Potentiometer Script

Steps to run the code for controlling LED brightness with a potentiometer.

Code Explanation: Potentiometer Control

Explains 'set', 'analog read', and 'analog write' blocks for potentiometer control.

Troubleshooting Potentiometer Issues

Solutions for sporadic operation or the potentiometer not working.

Experiment 3: Reading a Photoresistor

Introducing the Photoresistor

Explains how a photoresistor changes resistance based on ambient light.

Photoresistor Hardware Hookup

Guide for building a voltage divider for the photoresistor.

Running the Photoresistor Script

Steps to run the code for the photoresistor-controlled night light.

Code Explanation: Photoresistor Night Light

Explains 'on start', 'forever', and 'if/else' blocks for the night light.

Troubleshooting Photoresistor Issues

Solutions for the LED remaining dark or not working correctly.

Experiment 4: Driving an RGB LED

Introducing the RGB LED

Explains the RGB LED, its pins, and how to create custom colors.

RGB LED Hardware Hookup

Guide for connecting the RGB LED and resistors to the breadboard.

Running the RGB LED Script

Steps to run the code for controlling the RGB LED with buttons.

Code Explanation: RGB LED Control

Explains 'on button press', 'pick random', and 'analog write' for RGB LED.

Troubleshooting RGB LED Issues

Solutions for the RGB LED remaining dark or showing incorrect colors.

Experiment 5: Reading an SPDT Switch

Introducing the SPDT Switch

Explains the SPDT switch and how it makes connections based on position.

SPDT Switch Hardware Hookup

Guide for connecting the SPDT switch, LEDs, and resistors.

Running the SPDT Switch Script

Steps to run the code for selecting LEDs with an SPDT switch.

Code Explanation: SPDT Switch Control

Explains 'digital read' and 'digital write' blocks for switch-controlled LEDs.

Troubleshooting SPDT Switch Issues

Solutions for the switch not turning on LEDs or wiring problems.

Experiment 6: Reading a Button Press

Introducing the Push Button

Explains momentary push buttons and how they complete a circuit when pressed.

Push Button Hardware Hookup

Guide for connecting the push button to the breadboard and micro:bit.

Running the Button Press Script

Steps to run the code for cycling RGB LED colors with buttons.

Code Explanation: Button Press Control

Explains 'on event', 'set pull pin', 'set pin to emit event' for button input.

Expected Results: Button Press Control

Describes the RGB LED color changes based on button presses.

Troubleshooting Button Press Issues

Solutions for the push button not triggering sounds or colors.

Experiment 7: Reading the Temperature Sensor

Introducing the TMP36 Temperature Sensor

Details the TMP36 sensor, its output, and accuracy.

Temperature Sensor Hardware Hookup

Guide for connecting the TMP36 sensor to the breadboard and micro:bit.

Running the Temperature Sensor Script

Steps to run the code for reading and displaying temperature.

Code Explanation: Temperature Sensor Reading

Explains 'set degrees', 'show number', and 'get temperature' blocks.

Adding External MakeCode Packages

How to add external code packages like the TMP36 sensor package.

Troubleshooting Temperature Sensor Issues

Solutions for unchanging temperature readings or incorrect wiring.

Experiment 8: Using a Servo Motor

Introducing the Servo Motor

Explains how servo motors rotate to specific angles using PWM signals.

Servo Motor Hardware Hookup

Guide for connecting the servo motor to the breadboard and micro:bit.

Running the Servo Motor Script

Steps to run the code for controlling servo motor rotation.

Code Explanation: Servo Motor Control

Explains 'set direction', 'servo write', and 'change by' blocks for servo movement.

Troubleshooting Servo Motor Issues

Solutions for the servo motor not twisting or not working.

Experiment 9: Using a Buzzer

Introducing the Piezo Buzzer

Explains piezo buzzers and how they produce sound via PWM.

Piezo Buzzer Hardware Hookup

Guide for connecting the piezo buzzer and buttons to the breadboard.

Running the Buzzer Script

Steps to run the code for playing melodies with the buzzer.

Code Explanation: Buzzer Melodies

Explains 'start melody' and 'play tone' blocks for creating sounds.

Troubleshooting Buzzer Issues

Solutions for no sound or miswired push buttons.

Experiment 10: Using the Accelerometer

Introducing the Accelerometer

Explains the accelerometer on the micro:bit and its function.

Accelerometer Hardware Hookup

Guide for connecting the servo and micro:bit for accelerometer control.

Running the Accelerometer Script

Steps to run the code for controlling the servo with the accelerometer.

Code Explanation: Accelerometer Servo Control

Explains 'acceleration', 'map', and 'servo write' blocks for orientation control.

Troubleshooting Accelerometer Issues

Solutions for the servo moving backward or not working.

Experiment 11: Using the Compass

Introducing the Compass (Magnetometer)

Explains how the magnetometer measures magnetic fields and Earth's magnetic field.

Compass Hardware Hookup

Guide for connecting LEDs and resistors for the compass experiment.

Running the Compass Script

Steps to run the code for calibrating and using the compass.

Code Explanation: Compass Heading

Explains 'compass heading', 'and', and 'digital write' blocks for direction indication.

Troubleshooting Compass Issues

Solutions for backward LEDs or calibration problems.

Resources and Going Further

micro:climate Kit Experiment Guide

Guide for a weather station kit using micro:bit and MakeCode.

micro:bit Kit Experiment Guide

Guide for controlling motors and building robots with the micro:bit.

micro:arcade Kit Experiment Guide

Guide for writing and building games for the micro:arcade kit.

micro:bit Breakout Board Hookup Guide

Guide to getting started with the micro:bit breakout board and basic electronic concepts.