microbit-makecode
Home
@extends
About
Contact Us
Courses
Device
Documentation
Examples
Foundations of Computing and Programming: exploring the micro:bit
Flashing via HID (CMSIS-DAP)
Lessons
Open Source
@extends
Projects
Reference
@extends
@extends
@extends
Uploader
Blocks
@extends
@extends
Logic
@extends
@extends
Loops
@extends
@extends
Math
random Boolean
Variables
Assignment Operator
@extends
Local Variables
Courses
Intro to CS
Science Experiments
Csintro
[CS Intro](/courses/csintro)
About The Authors
Acknowledgements
Algorithms
Arrays
Binary
Booleans
Conditional statements
Coordinate grid and LEDs
Final project
Introduction
Iteration & Looping
Making with micro:bit
Mini-project
Radio and Communication
References
Variables
Algorithms
Activity: Happy Face, Sad Face
Introduction
Project: Fidget Cube
Standards
Unplugged: What's your function & crazy conditionals
Arrays
Activity
Introduction
Project: Musical instrument
Standards
Unplugged
Binary
Activity: Binary transmogrifier
Introduction
Project: Make a binary cash register
Standards
Unplugged: Binary vending machine
Booleans
Activity: Double coin flipper
Introduction
Project: Boolean
Standards
Unplugged
Conditionals
Activity: Rock, paper, scissors
Introduction
Project: Board Game
Standards
Unplugged: Red light, green light
Coordinates
Activity: Animation and patterns
Introduction
Project: Screensaver or game
Standards
Unplugged: Battleship
Finalproject
Final project examples
Final project
Review
Standards
Iteration
Activity: Loops demos
Introduction
Project: Get loopy!
Standards
Unplugged: Walk a square
Making
Activity: Installing a program
Introduction
Project: micro:pet
Standards
Unplugged: Design Thinking
Miniproject
Activity: Collaboratively independent
Project
Review
Standards
Radio
Activity: Marco Polo and Morse code
Introduction
Project: Radio project
Standards
Unplugged
Variables
Activity: Scorekeeper
Introduction
Project: Everything counts
Standards
Unplugged: Keeping score
Ucp science
[Science Experiments](/courses/ucp-science)
Body electrical and waves
Data collection
Electricity -- Battery tester
Gravity, Motion, and Waves
Population Trait Data Counter
Soil Moisture Tester
Temperature
Body electrical
Overview
Resources
Setup and procedure
Data collection
Overview
Resources
Setup and procedure
Electricity
Overview
Resources
Setup and procedure
Gravity
Overview
Resources
Setup and procedure
Population
Overview
Resources
Setup and procedure
Soil moisture
Overview
Resources
Setup and procedure
Temperature
Overview
Resources
Setup and procedure
Device
Crocodile clips
Data Analysis
Error codes
Firmware
foil circuits
MES events
micro:bit pins
The micro:bit - a reactive system
LED screen
Serial
Equipping a microservo with Crocodile clips
Simulator
Uploading programs to your @boardname@
Data analysis
Analyze
Generating data
Plotting data with LEDs
Remote data collection
Viewing your data
Writing data
Usb
Uploading from Chrome for Mac
Uploading from Firefox for Mac
Uploading from Safari for Mac
Troubleshooting Transfer
Uploading from Chrome for Windows
Uploading from Edge on Windows
Uploading from Firefox on Windows
Uploading from Internet Explorer on Windows
Windows app
Troubleshooting downloads from the Windows 10 App
Examples
Blinky
Eddystone Beacon
Egg and Spoon race
Game of Life
Name Tag
Pi Monte Carlo
Plot Acceleration
Plot Analog Pin
Plot Light level
Radio Dashboard
Rando
Servo calibrator
Stop watch
Turtle Scanner
Turtle Spiral
Turtle Square
Fcp
Chapter 1
Lessons
answering machine blocks lesson
beautiful image lesson
blink blocks lesson
blocks - if statements
catch the egg game lesson
charting lesson
classic beatbox
compass lesson
Counter lesson
dice roll lesson
digi yoyo lesson
flashing heart blocks lesson
game counter lesson
game of chance blocks lesson
glowing pendulum blocks lesson
blocks - rendering graphics
guess the number lesson
happy birthday blocks lesson
Headband lesson
hero
looper blocks lesson
love meter blocks lesson
lucky 7 blocks lesson
magic 8 lesson
magic logo lesson
night light lesson
pogo lesson
prank wifi lesson
rotation animation block lesson
screen wipe blocks lesson
Seismograph Lesson
smiley blocks lesson
snowflake fall blocks lesson
speed button lesson
spinner lesson
Block Editor STEM Lessons
strobe light lesson
Teach Blocks
temperature blocks lesson
truth or dare lesson
Blocks - Variables
zoomer blocks lesson
Answering machine
answering machine blocks activity
answering machine blocks challenges
answering machine blocks quiz answers
answering machine blocks quiz
Beautiful image
beautiful image blocks activity
beautiful image blocks challenges
beautiful image blocks challenges
Blink
blink blocks activity
blink blocks challenges
blink blocks quiz answers
blink blocks quiz
Bop it
bop it challenges
bop it quiz answers
bop it quiz
Catch the egg game
catch the egg game challenges
catch the egg game quiz answers
catch the egg game quiz
catch the egg game tutorial
Charting
Activity
Challenge
charting quiz answers
charting quiz
Classic beatbox
beatbox activity
beatbox challenges
Compass
compass activity
compass challenges
compass quiz answers
compass quiz
Counter
counter activity
counter challenges
counter quiz answers
counter quiz
Dice roll
dice roll activity
dice roll challenges
dice roll quiz answers
dice roll quiz
Digi yoyo
digi yoyo activity
digi yoyo challenges
digi yoyo quiz answers
digi yoyo quiz
Flashing heart
flashing heart blocks activity
flashing heart blocks challenges
flashing heart blocks quiz answers
flashing heart blocks quiz
Game counter
game counter activity
game counter challenges
Game of chance
game of chance blocks activity
game of chance challenges
Glowing pendulum
glowing pendulum block activity
glowing pendulum blocks challenges
glowing pendulum quiz answers
glowing pendulum quiz
glowing pendulum block tutorial
Guess the number
guess the number activity
guess the number challenges
guess the number quiz answers
guess the number quiz
guess the number tutorial
Happy birthday
happy birthday blocks activity
happy birthday blocks challenges
Headbands
headbands activity
headbands quiz answers
headbands quiz
Hero
hero
Looper
looper blocks activity
looper block challenges
looper quiz answers
looper quiz
Love meter
love meter blocks activity
love meter blocks challenges
love meter blocks quiz answers
love meter blocks quiz
Lucky 7
lucky 7 blocks activity
lucky 7 blocks challenges
lucky 7 blocks quiz answers
lucky 7 blocks quiz
lucky 7 blocks challenges
Magic 8
magic 8 activity
magic 8 challenges
magic 8 quiz answers
magic 8 quiz
Magic 8 tutorial
Magic logo
magic logo activity
magic logo challenges
magic logo quiz answers
magic logo quiz
Night light
night light activity
night light challenges
night light quiz answers
night light quiz
Pogo
pogo activity
Prank wifi
prank wifi challenges
prank wifi quiz answers
prank wifi quiz
Rotation animation
rotation animation block activity
rotation animation block challenges
rotation animation quiz answers
rotation animation quiz
Screen wipe
screen wipe blocks activity
screen wipe blocks challenges
screen wipe quiz blocks answers
screen wipe blocks quiz
Seismograph
Seismograph Activity
Seismograph Challenge
Smiley
smiley blocks activity
smiley blocks challenges
smiley blocks quiz answers
smiley blocks quiz
Snowflake fall
snowflake fall blocks activity
snowflake fall blocks challenges
snowflake fall blocks quiz answers
snowflake fall blocks quiz
Speed button
speed button challenges
speed button quiz answers
speed button quiz
Spinner
spinner activity
spinner challenges
spinner quiz answers
spinner quiz
Strobe light
strobe light activity
strobe light challenges
strobe light quiz answers
strobe light quiz
Temperature
temperature activity
temperature challenges
Truth or dare
truth or dare activity
truth or dare challenges
truth or dare quiz answers
truth or dare quiz
truth or dare tutorial
Zoomer
zoomer block activity
zoomer blocks challenges
zoomer quiz answers
zoomer quiz
Packages
@extends
Building your own package
Projects
Artronix Jam
Banana Keyboard
Coin Flipper
Compass
Crashy Bird
Fireflies
Flashing Heart
Guitar
Hack Your Headphones
Hot or Cold
Inchworm
Infection
Karel the LED
Light Monster
Love Meter
Magic Button Trick
Messenger
micro:coin
Milk Carton Robot
Milk Jar Robot
Milk monster
Mood Radio
Plant Watering
Challenge
Railway Crossing
RC Car
Reaction Time
Rock - Paper - Scissors
Rock Paper Scissors Teams
Salute!
Smiley Buttons
Soil Moisture
Soil Moisture
~avatar avatar
~
Materials
Activities
~button /projects/soil-moisture/make
~
States of matter
Tele potato
Telegraph
Timing gates
Voting machine
Wallet
Watch
Banana keyboard
Code
Make
Guitar
Accelerometer
Displaybuttons
Lightsensor
Make
Pinpress
Hack your headphones
Code
Make
Inchworm
Code
Connect
Make
Light monster
Code
Connect
Make
Milk carton robot
Code
Connect
Make
Milky monster
Code
Connect
Make
Plant watering
Code
Make
Rc car
Code
Connect
Make
Reaction time
Code
Make
Rock paper scissors
Code
Make
Soil moisture
Code
Connect
Make
States of matter
Code
Make
Telegraph
Code
Make
Wallet
Code
Make
Watch
Code
Digital watch
Make
Timer
Reference
Basic
Bluetooth
Control
Devices
Event handler
Game
Images
Input
Led
Music
Out of bounds
Pins
Radio
Serial
Basic
Clear screen
Forever
Pause
Plot leds
Show animation
Show arrow
Show icon
Show leds
Show number
Show string
Bluetooth
About bluetooth
Advertise uid buffer
Advertise uid
Advertise url
Bluetooth pairing
On bluetooth connected
On bluetooth disconnected
On uart data received
Set transmit power
Start accelerometer service
Start button service
Start io pin service
Start led service
Start magnetometer service
Start temperature service
Start uart service
Stop advertising
Uart read until
Uart write number
Uart write string
Uart write value
Control
Assert
Device name
Device serial number
Event source id
Event timestamp
Event value id
Event value
In background
On event
Panic
Raise event
Reset
Wait micros
Devices
On gamepad button
On notified
On signal strength changed
Raise alert to
Signal strength
Tell camera to
Tell remote control to
Game
Add score
Change score by
Change
Clear
Create sprite
Delete
Game over
Get
If on edge bounce
Is touching edge
Is touching
Move
Pause
Position
Reports
Resume
Score
Set score
Set
Start countdown
Turn
Images
Arrow image
Arrow number
Create big image
Create image
Icon image
Image
Pixel
Plot frame
Plot image
Scroll image
Set pixel
Show frame
Show image
Width
Input
Acceleration
Button is pressed
Calibrate compass
Compass heading
Light level
Magnetic force
On button pressed
On gesture
On pin pressed
On pin released
Pin is pressed
Rotation
Running time micros
Running time
Set accelerometer range
Temperature
Led
Brightness
Enable
Fade in
Fade out
Plot all
Plot bar graph
Plot brightness
Plot
Point
Screenshot
Set brightness
Set display mode
Stop animation
Toggle all
Toggle
Unplot
Music
Beat
Begin melody
Change tempo by
On event
Play tone
Rest
Ring tone
Set play tone
Set tempo
Tempo
Pins
Analog pitch
Analog read pin
Analog set period
Analog set pitch pin
Analog write pin
Digital read pin
Digital write pin
I2c read buffer
I2c read number
I2c write buffer
I2c write number
Map
On pulsed
Pulse duration
Pulse in
Servo set pulse
Servo write pin
Set events
Set pull
Spi format
Spi frequency
Spi pins
Spi write
Radio
On data packet received
On data received
Packet
Receive number
Receive string
Received signal strength
Send buffer
Send number
Send string
Send value
Set group
Set transmit power
Set transmit serial number
Write received packet to serial
Write value to serial
Serial
On data received
Read buffer
Read line
Read string
Read until
Redirect to usb
Redirect
Write buffer
Write line
Write number
Write numbers
Write string
Write value
Tutorials
Getting started
Hour of code
Hey microbit
Rock paper scissors
Types
Buffer
Number
String
Buffer
Number format
Using buffers
microbit-makecode
Docs
»
Projects »
Soil Moisture
Soil Moisture
~avatar avatar
Track the soil moisture of your plants!
~
Materials
1 @boardname@ with battery pack and batteries
2 long nails or silver
2 crocodile clips
Activities
Make
Code
Connect
~button /projects/soil-moisture/make
Let's get started!
~