# 2017 Oct - STEM Fest

## Utah STEM Fest Project

October 3-4, 2017

At the Utah STEM Fest we (Dallin Graham, Utah County 4-H STEM Coordinator and myself) ran a booth to introduce students, parents, and teachers to coding and innovation using Micro:bits. There were supposed to be about 30,000 students, parents, and teachers attending the 2 day event.

### Demonstration Projects

We had several demonstrations of Microbit projects. Students were fascinated when we showed them the Dice Roll project, the fact that you could shake it and it would change numbers like a dice roll. They also enjoyed playing the Reaction Game to see how fast they were. Included here are links to our sample demonstration projects and our coding challenges. Other demonstrations included:

Name Tag

A micro:bit name tag that says, "Hi I'm Carl" and shows a star animation. Code: https://makecode.microbit.org/_aXHDJLCxA8jc

Dice Roll

Use the shake event on the micro:bit to generate a random number between 1-6 to display as a dice roll. Code: https://makecode.microbit.org/_Y6gDJCLiUPUy Instructions: https://goo.gl/EM4yUj

Pedometer

Created by Brookelyn (6th grade) It counted steps and allow steps to be set to 0 at the end of the day. It also displayed a "Good Job" message.

Micro:pet

An alligator (Micro:pet project) created and programmed by Peyton (age 7) and Raegan (age 4).

Water Alarm

This alarm is set up using a micro:bit, 2 probes, and a speaker. When water comes between the 2 probes, the micro:bit senses that current is passing between the probes and then displays a flashing sign on the micro:bit and then keep playing an alarm tune until the problem is fixed. Code: https://makecode.microbit.org/_UWsdyy72pFEW Instructions: https://goo.gl/W7yMTN

4 Function Calculator

The calculator was programmed in about an hour by Jax (age 12). The buttons are used to select the numbers and the math operation and then the answer is displayed. Code: https://makecode.microbit.org/_AWUUrTW8Pa7d

Soil Moisture Tester

Using the micro:bit with 2 probes the moisture in soil can be checked and displayed by sensing the amount of current that will pass between the probes. A log can be kept of the date and the measurement displayed. Observation sheet: https://goo.gl/rGBrbS Code: https://makecode.microbit.org/_YACi3Uf6o5y9 Instructions: https://goo.gl/fA6AdQ

Reaction Game

The micro:bit is programmed to check how fast you can react when a signal is displayed on the micro:bit. The reaction time is then displayed in milliseconds. Directions & Code: https://makecode.microbit.org/projects/reaction-time

### Micro:bit Coding Challenges

We also had 4 laptops setup for students to try coding the micro:bit on their own. The projects included:

Name, Initials, and Design

Using the on start event a person's name is displayed. Then using the "A" & "B" buttons and events a person's initials are displayed and a design. Code: https://makecode.microbit.org/_0Rz64ugMAegF Instructions: https://goo.gl/VJmyRU

Flashing Heart

Using the LEDs on the micro:bit an animation is created to resemble a beating heart. Code: https://makecode.microbit.org/_aibMJU1tKCvA Instructions: https://goo.gl/BVBChp

Fill the LED Display

One the students wrote code to fill the LED display one LED at a time as the micro:bit was rotated in different directions. Here is his project: https://makecode.microbit.org/_9qAhi0h8tXX4