2018 Jan - Nebo Coding Club
Nebo Coding Club Outline
Week 1 - Intro to App Lab - write() & HTML, Canvas Drawing
![](https://www.google.com/images/icons/product/drive-32.png)
Week 2 - Basic Calculations in App Lab
Week 3 - Microbits Introduction
The BBC's Microbit is a small programmable device. It has built in sensors and outputs. (http://microbit.org) It can be programmed using Microsoft's block style MakeCode. (http://makecode.org)
Week 4 - Microbit Counters
Event Counter. At different kinds of events (sporting, plays, ball games, music presentations, etc.) there may be a person who is counting the number of people entering the event by clicking a button on a counter.
To create an event counter a variable is needed to keep track of the count. In this project we will create and use the variable "counter"
. It is set to "0" on start up. Then an event is set up when the "A" button is pressed so that 1 is added to the variable and displayed. A second event is set up with the when "B" button is pressed to reset the counter back to "0" and then display it.
Sample Block Code
Sample JavaScript Code
basic.showString("COUNTER")
let counter = 0
input.onButtonPressed(Button.A, () => {
counter += 1
basic.showNumber(counter)
})
input.onButtonPressed(Button.B, () => {
counter = 0
basic.showNumber(counter)
})
Modifications
Umpire Counter. Can you modify the code to create an baseball umpires counter so that one button will count strikes and the other button will count balls and both buttons together will reset the counter?
Rock, Paper, Scissors Score Keeper. Can you modify the code or create a new app that will keep track of 2 people playing a game like "Rock, Paper, Scissors"? Can you add both buttons to keep track of "ties"? Can you use an "on Shake" event to display all the scores?
Pedometer. Can you create a pedometer using the "on Shake" event to keep track of steps taken during a day? Could you use one button to display steps and another button to reset the counter?
Game Piece. Can you create a game that uses a microbit as a part used to play the game?
Week 6 - Wearable Technology
Connecting an LED to a microbit. https://microbit-playground.co.uk/components/single-led
Building a traffic light. http://www.101computing.net/micro-bit-traffic-light/
Youtube video on connecting an LED to a microbit. https://www.youtube.com/watch?v=CpM4ZCNh7ak
Microbit and Neopixels. https://makecode.microbit.org/73963-86560-97793-76588
Neopixels and accelerator program. https://makecode.microbit.org/pkg/microsoft/pxt-neopixel
Light box and Neopixels. https://makecode.microbit.org/62048-14737-90573-58323
Wearables and textiles tutorial. https://www.kitronik.co.uk/blog/e-textiles-wearables-tutorials-resources/
Hack your headphones. https://makecode.microbit.org/projects/hack-your-headphones