Now we'll try a microcontroller that lets us do a lot more. It's called a Micro:Bit. For our first project, let's copy this code and make a countdown timer. Show your working timer to Mrs. Bisson when done.
Take a screenshot of your completed code and email to sbisson@sfbrandeis.org.
Next! A Micro:Bit can power a small motor called a servo. To program a servo, we first need to get the servo extension. In our work window, click on "ADVANCED" to see more options
Then click on "EXTENSIONS".
This will take you to a page with several options. Click on the one labeled "servo".
Now the servo option has been added to tools. You'll be able to find it here.
Now program your servo to make a simple 45 degree back and forth motion. Try the code below. Email Mrs. Bisson a screenshot of your code when done.
Next class I will show you how to download the code to a Micro:Bit and wire up a servo.