5. Remember to use at least three inputs and two outputs.
6. Upload your code to your Micro:bit and test it out! Don't worry if it doesn't work on the first
try.
7. When you are done, make sure to click "share" and keep the link to your MakeCode in a
safe place. You will turn this in at the end of the project.
For assistance with programming:
1. Buttons: Buttons are a very simple and easy to code input. Learn how to program them
here.
2. Shake Sensor: The shake sensor, or accelerometer, is great for detecting vibrations,
collisions, and steps. See how to program a step counter here!
3. Pins: Pins are an awesome input. You can touch the pins themselves or wire them to a
conductor like aluminum foil to detect human touch! Learn more here.
4. Light Sensor: Need to detect brightness and sunlight? The light sensor is your input! Lear
how to program a dark-activated night light here.
5. Temperature Sensor: Do you need to alert someone if it's too hot, too cold, or just right?
Then the temperature sensor is a great input. Here is a tutorial on how to program a
thermometer.
6. Compass: Do you need to find out a direction, or detect a change of direction? The
compass is an input that can do both of those things Learn how to program a simple
compass here.
7. LEDs: The LEDs are your main output. You can show pictures, numbers, and
information! Review how to program the LEDs here.
8. Sound: Sound is a great output for the Micro:bit. You'll have to wire your Micro:bit to
headphones or a speaker. Learn how to send sound here.
9. Radio: The radio works as both an input AND output. You will need to two Micro:bits to use
this function. Learn how to send and receive secret messages with the radio here.
10. LED Module: The LED module is an output that allows you to control a light with the "digital
write" command. Simply wire the LED module to 3.3V, GND, and a pin. Click here to review
how to wire the LED module.
11. Button Module: The button module is an input that allows you to wire and send input
signals at the push of a button. Simply wire the button module to 3.3V, GND, and either pin
P5 or P11. Click here to review how to wire the button module.
12. Servo Motor: The servo motor is an output that allows to control motion and angles to
make something move! Simply wire the motor to 3.3 V, GND, and a pin (remember: if your
motor is twitching or not responding, connect the micro-USB cable directly to the
expansion board). Click here to review how to wire the servo motor.
13. Touch Button: The touch button is an input that responds to the touch of your hand! Wire it
to 3.3V, GND, and a pin. Click here to review how to wire the touch button.
14. Neo Pixel: An awesome output consisting of a ring of LEDs that change color! Simply wire
the Neo Pixel to 3.3 V, GND, and a pin. Remember: you will have to add the "Neo Pixel
Extension" in MakeCode to access the commands. Click here to review how to wire the
NeoPixel.
15. Passive Buzzer: An output that plays music and sounds. Wire the buzzer to 3.3V, GND, and
pin P0. Click here to review how to wire the passive buzzer.