# Meeting Time Keeper Stick

## Overview

Nobody likes a meeting that drags on forever. But how to keep people on topic and the meeting moving along? Circuit Playground to the rescue!

This simple device allows you to increase the efficiency of meetings by putting a countdown timer in the hands of the speaker.&nbsp;

![](https://cdn-learn.adafruit.com/assets/assets/000/073/501/medium800thumb/leds_Untitled2.2018-12-31_12_34_05.jpg?1553111062)

This talking stick gives warnings of&nbsp;increasing urgency as the speaker's time runs down, and an alarm goes off when they've run over their allotted speaking time.

A 60 second countdown starts when user presses the **A button**. At 30 seconds it beeps and the onboard NeoPixels illuminate yellow. At 15 seconds it turns orange and beeps again, and at 5 seconds beeps again and goes red. The countdown can be paused by flipping **slide switch** to the left, and can be restarted by flipping switch back to the right and pressing the **A button** again. When the countdown hits 0 it&nbsp;beeps and flashes continually until it's tossed to the next speaker (basically shaken), at which point the countdown automatically restarts.&nbsp;

This project is an extension of the "talking stick" concept, except this talking stick provides active feedback, limiting the amount of time the holder has to make their point and ensuring everyone equal opportunity to speak ([other examples&nbsp;](https://makecode.adafruit.com/learnsystem/hot-potato)of this concept also exist [elsewhere on the internet](https://platisd.github.io/scrumtato/)).&nbsp;

![](https://cdn-learn.adafruit.com/assets/assets/000/068/673/medium800thumb/leds_Untitled.2019-01-04_14_09_38.jpg?1546629197)

## Required Electronics
### Circuit Playground Express

[Circuit Playground Express](https://www.adafruit.com/product/3333)
 **Circuit Playground Express** is the next step towards a perfect introduction to electronics and programming. We've taken the original Circuit Playground Classic and made it even better! Not only did we pack even more sensors in, we also made it even easier to...

In Stock
[Buy Now](https://www.adafruit.com/product/3333)
[Related Guides to the Product](https://learn.adafruit.com/products/3333/guides)
![A Black woman's manicured hand holds a round microcontroller with lit up LEDs.](https://cdn-shop.adafruit.com/640x480/3333-05.jpg)

### USB cable - USB A to Micro-B

[USB cable - USB A to Micro-B](https://www.adafruit.com/product/592)
This here is your standard A to micro-B USB cable, for USB 1.1 or 2.0. Perfect for connecting a PC to your Metro, Feather, Raspberry Pi or other dev-board or microcontroller

Approximately 3 feet / 1 meter long

Out of Stock
[Buy Now](https://www.adafruit.com/product/592)
[Related Guides to the Product](https://learn.adafruit.com/products/592/guides)
![USB cable - USB A to Micro-B - 3 foot long](https://cdn-shop.adafruit.com/640x480/592-01.jpg)

## Enclosures

You may want to enclose your Circuit Playground Express somehow and make it easy to toss around. These two enclosures are both good options. The enclosure has a screw mount which works with the adapter for making a handle.

### Adafruit Circuit Playground Express or Bluefruit Enclosure

[Adafruit Circuit Playground Express or Bluefruit Enclosure](https://www.adafruit.com/product/3915)
We've got nice cases for many of our beloved boards, but the [Circuit Playground Express](https://www.adafruit.com/product/3333)&nbsp;and [Circuit Playground&nbsp;Bluefruit](https://www.adafruit.com/product/4333) has been left out of couture enclosure...

Out of Stock
[Buy Now](https://www.adafruit.com/product/3915)
[Related Guides to the Product](https://learn.adafruit.com/products/3915/guides)
![Top down view of a clear acrylic Adafruit Circuit Playground Express or Bluefruit Enclosure.](https://cdn-shop.adafruit.com/product-videos/640x480/3915-06.jpg)

### 1/4" to 1/4" Screw Adapter - For Camera / Tripod / Photo / Video

[1/4" to 1/4" Screw Adapter - For Camera / Tripod / Photo / Video](https://www.adafruit.com/product/2632)
_"Simplicity is the ultimate sophistication"_ - [Leonardo da Vinci](http://en.wikipedia.org/wiki/Leonardo_da_Vinci)

This **1/4" screw to 1/4" screw** is very simple but you'll find it an essential adapter for video/photo...

In Stock
[Buy Now](https://www.adafruit.com/product/2632)
[Related Guides to the Product](https://learn.adafruit.com/products/2632/guides)
![1/4 to 1/4 Screw Adapter with thumb-ring](https://cdn-shop.adafruit.com/640x480/2632-01.jpg)

### DIY Ornament Kit - 6cm Diameter - Perfect for Circuit Playground

[DIY Ornament Kit - 6cm Diameter - Perfect for Circuit Playground](https://www.adafruit.com/product/4036)
Have you put up with mainstream, uninspiring, low-tech tree ornaments for too long? This season why not deck the halls with _codes_ of holly?

This **DIY Ornament Kit** is just the right size (6 cm diameter) for a Circuit Playground Express, 500mAh LiPoly battery, and...

In Stock
[Buy Now](https://www.adafruit.com/product/4036)
[Related Guides to the Product](https://learn.adafruit.com/products/4036/guides)
![6cm Diameter DIY Ornament Kit with Circuit board inside](https://cdn-shop.adafruit.com/640x480/4036-00.jpg)

## Power

In addition to the Circuit Playground Express, you will need some way to power it so you can use it without being attached to a computer. Choose an option that works best for you.

### 3 x AAA Battery Holder with On/Off Switch and 2-Pin JST

[3 x AAA Battery Holder with On/Off Switch and 2-Pin JST](https://www.adafruit.com/product/727)
This battery holder connects 3 AAA batteries together in series for powering all kinds of projects. We spec'd these out because the box is slim, and 3 AAA's add up to about 3.3-4.5V, a very similar range to Lithium Ion/polymer (Li-Ion) batteries and have an on-off switch. That makes...

In Stock
[Buy Now](https://www.adafruit.com/product/727)
[Related Guides to the Product](https://learn.adafruit.com/products/727/guides)
![Front angled shot of 3 x AAA battery holder with on-off switch and 2-pin JST PH connector.](https://cdn-shop.adafruit.com/640x480/727-07.jpg)

### Alkaline AAA batteries - 3 pack

[Alkaline AAA batteries - 3 pack](https://www.adafruit.com/product/3520)
Battery power for your portable project! These batteries are good quality at a good price, and work fantastic with any of the kits or projects in the shop that use AAA's. This is a pack of **3 AAA batteries**.  
  
These batteries are Alkaline (MnO2) chemistry, with a...

In Stock
[Buy Now](https://www.adafruit.com/product/3520)
[Related Guides to the Product](https://learn.adafruit.com/products/3520/guides)
![Angled shot of 3 PKcell AAA batteries. ](https://cdn-shop.adafruit.com/640x480/3520-00.jpg)

### Lithium Ion Polymer Battery Ideal For Feathers - 3.7V 400mAh

[Lithium Ion Polymer Battery Ideal For Feathers - 3.7V 400mAh](https://www.adafruit.com/product/3898)
Lithium-ion polymer (also known as 'lipo' or 'lipoly') batteries are thin, light, and powerful. The output ranges from 4.2V when completely charged to 3.7V. This battery has a capacity of **400mAh** for a total of about 1.9 Wh. If you need a larger (or smaller!)...

Out of Stock
[Buy Now](https://www.adafruit.com/product/3898)
[Related Guides to the Product](https://learn.adafruit.com/products/3898/guides)
![Slim Lithium Ion Polymer Battery 3.7v 400mAh with JST 2-PH connector and short cable](https://cdn-shop.adafruit.com/640x480/3898-05.jpg)

If you choose to use a LiPo battery, be sure you have a way to&nbsp;[charge it](https://www.adafruit.com/categories/575).

## Materials

For this project you may also want to have:

- Cardboard tube
- Masking tape
- Hot glue &&nbsp;[hot glue gun](https://www.amazon.com/dp/B006IY359K/ref=cm_sw_r_tw_dp_U_x_K0DeCbCR4A6B5)
- [Double-sided foam tape](https://www.amazon.com/dp/B003W0R4PE/ref=cm_sw_r_tw_dp_U_x_Y2SGBb4DV10TX)
- Potato (optional)

# Meeting Time Keeper Stick

## MakeCode

## Getting Familiar

The code was created using&nbsp; **Microsoft MakeCode for Adafruit** , a web-based code editor. MakeCode provides a block editor, similar to Scratch or Code.org, and also a JavaScript editor for more advanced users.

If you'd like to learn more about MakeCode,&nbsp;[this guide is a good place to start](https://learn.adafruit.com/makecode/downloading-and-flashing?embeds=allow).

## Bootloader Mode

Your Circuit Playground Express board comes ready to work with CircuitPython. When you connect the board to your computer for the first time, it will appear as a flash (or thumb) drive named&nbsp; **CIRCUITPY**.

BUT

We'd like to make it work with MakeCode, which is done by putting it into "bootloader mode".

All that's required to do this is to&nbsp; **connect the board to your computer** &nbsp;with a micro USB cable and&nbsp; **click the small reset button** &nbsp;in the center of the board.&nbsp;The available thumb drive should eject itself and show up again as&nbsp; **CPLAYBOOT**. Your code file will be placed on&nbsp; **CPLAYBOOT**.

![](https://cdn-learn.adafruit.com/assets/assets/000/067/772/medium800thumb/makecode_circuit_playground_projects_CPX_bootloader_mode.jpg?1545238473)

Click&nbsp;[this link](https://makecode.adafruit.com/17417-74169-22301-77411)&nbsp;or the button below to enter the portal to interact with the code for this project (you may need to zoom out to see all the blocks).

https://makecode.adafruit.com/88428-93707-90816-91802

## How to Upload Code

To upload code, connect you Circuit Playground Express to your computer using the micro USB cable, click the&nbsp; **Download** &nbsp;button to download the **&nbsp;.uf2 file** &nbsp;to your computer, and&nbsp; **drag 'n drop that .UF2 file onto the CPLAYBOOT** &nbsp;drive in your computer's file explorer or finder.

The drive will automatically eject itself. (Your computer may give you a "failed to eject drive correctly" error, you can ignore this.) The code is now on your Circuit Playground Express and ready to run!

![](https://cdn-learn.adafruit.com/assets/assets/000/067/782/medium800/makecode_Screen_Shot_2018-12-19_at_3.10.14_PM.png?1545250270)

If you'd like to play with this code, click " **Edit**" and a new window will open in which you can create your own version.

## Troubleshooting

**Problem:&nbsp;** My Circuit Playground Express doesn't show up as&nbsp; **CPLAYBOOT**!

**Solution:&nbsp;** Your Circuit Playground Express board comes ready to work with CircuitPython, and will show up as a flash drive named&nbsp; **CIRCUITPY** &nbsp;the first time it's connected to your computer. To switch over to work with MakeCode,&nbsp; **connect the board to your computer** &nbsp;with a micro USB cable and&nbsp; **click the small reset button** &nbsp;in the center of the board.&nbsp;&nbsp;

When Circuit Playground Express is in Bootloader mode, all the LEDs will flash&nbsp; **red briefly, then turn green.&nbsp;** Your computer should now show removable drive called&nbsp; **CPLAYBOOT.&nbsp;** Now you can copy the MakeCode file to the&nbsp; **CPLAYBOOT** &nbsp;flash drive.

# Meeting Time Keeper Stick

## Understanding the Code

## Deep Dive

Before moving forward, let's take a moment to more closely examine the code for this project and how it works.

This MakeCode example provides instructions for a 60 second countdown and provides visual & audible warnings at 30 seconds, 15 seconds, and 5 seconds. The code also allows the user to pause and restart the countdown whenever they need to. When the countdown hits 0 it&nbsp;beeps and flashes continually until it's tossed to the next speaker, at which point the countdown automatically restarts.&nbsp;

Let's take a look at how each of these functions are coded in MakeCode.

![](https://cdn-learn.adafruit.com/assets/assets/000/067/843/medium800/leds_Screen_Shot_2018-12-17_at_10.16.02_PM.png?1545342749)

## Startup

&nbsp;

In the green&nbsp;`on start` block there are a series of instructions for Circuit Playground Express to perform as soon as it's powered on.

&nbsp;

Here you can set the length of the timer, adjust the sensitivity to being shaken, change the volume of the beeps, etc.

&nbsp;

On startup, the board will show the rainbow animation for 1 second before illuminating two NeoPixel LEDs at their starting point, indicating it is ready.

![makecode_on_start.png](https://cdn-learn.adafruit.com/assets/assets/000/067/826/medium640/makecode_on_start.png?1545335137)

![](https://cdn-learn.adafruit.com/assets/assets/000/067/828/medium800thumb/makecode_hot_potato_startup.2018-12-20_15_19_21.jpg?1545337206)

## Tick Tock

&nbsp;

In this pink input block, there are some instructions telling the timer when and how to operate.

&nbsp;

As you can see in the `while` statement, the slide switch must be slid right in order for the timer to start. Once this condition is met, pressing the A button will start the countdown.

![makecode_on_button_A_click.png](https://cdn-learn.adafruit.com/assets/assets/000/067/789/medium640/makecode_on_button_A_click.png?1545256742)

This while statement also allows the user to pause the timer if necessary and restart it again right where it left off.

Flipping the slide switch to the left will pause the countdown.

![](https://cdn-learn.adafruit.com/assets/assets/000/067/785/medium800thumb/makecode_hot_potato_pause.jpg?1545256591)

Flipping the switch to the Right again primes the countdown, and pressing the A button starts it counting down again.&nbsp;

![](https://cdn-learn.adafruit.com/assets/assets/000/067/786/medium800thumb/makecode_hot_potato_unpause.jpg?1545256615)

## Forever

&nbsp;

In the green `forever` block are the instructions that are always running in the background, watching the countdown and waiting for it to hit certain numbers.

&nbsp;

The blue `if` statement at the end of this block tells Circuit Playground Express to beep and flash red continually until it detects a shake.

![makecode_forever.png](https://cdn-learn.adafruit.com/assets/assets/000/067/822/medium640/makecode_forever.png?1545333746)

![](https://cdn-learn.adafruit.com/assets/assets/000/067/827/medium800thumb/makecode_hot_potato_color_change.2018-12-20_15_11_35.jpg?1545336721)

## Shake to Restart

&nbsp;

In the `on shake` block there are instructions for how Circuit Playground Express should reset itself when it detects a sudden change in acceleration.

![makecode_on_shake.png](https://cdn-learn.adafruit.com/assets/assets/000/067/790/medium640/makecode_on_shake.png?1545257505)

![](https://cdn-learn.adafruit.com/assets/assets/000/067/784/medium800thumb/makecode_hot_potato_shake_restart.jpg?1545256535)

# Meeting Time Keeper Stick

## Make it Portable

The [clear plastic enclosure](https://www.adafruit.com/product/3915) for Circuit Playground Express is an excellent way to encase and protect your project. This enclosure has a threaded adapter which fits a handy [1/4" to 1/4" screw adapter](https://www.adafruit.com/product/2632).

Adding a cardboard handle to this enclosure makes it into a handy and functional "talking stick" that can easily be passed or tossed around in meetings.

![](https://cdn-learn.adafruit.com/assets/assets/000/067/810/medium800/makecode_IMG_0922.jpg?1545330162)

## Cardboard Handle

&nbsp;

Cut a short piece of cardboard tube lengthwise.

&nbsp;

Roll into a compact cylinder.

![makecode_IMG_0909.jpg](https://cdn-learn.adafruit.com/assets/assets/000/067/811/medium640/makecode_IMG_0909.jpg?1545330180)

![makecode_IMG_0910.jpg](https://cdn-learn.adafruit.com/assets/assets/000/067/812/medium640/makecode_IMG_0910.jpg?1545330193)

![makecode_IMG_0911.jpg](https://cdn-learn.adafruit.com/assets/assets/000/067/813/medium640/makecode_IMG_0911.jpg?1545330205)

![makecode_IMG_0914.jpg](https://cdn-learn.adafruit.com/assets/assets/000/067/815/medium640/makecode_IMG_0914.jpg?1545330266)

## Attach Screw Adapter

&nbsp;

The&nbsp;[1/4" to 1/4" Screw Adapter](https://www.adafruit.com/product/2632) is excellent for connecting things to the Circuit Playground Express.

&nbsp;

Roll the tube so that it matches the diameter of the screw adapter, then hold the tube in place with a strip of tape.

&nbsp;

A ring of hot glue is sufficient to make a strong connection between the screw adapter and cardboard tube.

![makecode_IMG_0918.jpg](https://cdn-learn.adafruit.com/assets/assets/000/067/816/medium640/makecode_IMG_0918.jpg?1545330793)

![makecode_IMG_0916.jpg](https://cdn-learn.adafruit.com/assets/assets/000/067/817/medium640/makecode_IMG_0916.jpg?1545330852)

![makecode_IMG_0917.jpg](https://cdn-learn.adafruit.com/assets/assets/000/067/818/medium640/makecode_IMG_0917.jpg?1545330911)

![makecode_IMG_0920.jpg](https://cdn-learn.adafruit.com/assets/assets/000/067/819/medium640/makecode_IMG_0920.jpg?1545331064)

As a final touch, two strips of differently colored tape (in this case, black and green), can add a beautiful spiral pattern to your handle, and make it much easier to find besides.

![](https://cdn-learn.adafruit.com/assets/assets/000/068/446/medium800/leds_IMG_0526.jpg?1546211903)

If a toss-able orb is more enticing, the Circuit Playground Express fits nicely inside one of these [6cm diameter globes](https://www.adafruit.com/product/4036).&nbsp;

![](https://cdn-learn.adafruit.com/assets/assets/000/067/797/medium800thumb/makecode_Untitled.2018-12-19_17_59_02.jpg?1545260842)

3D Printing a case is also an option if you have access to a 3D printer. [This ornament](https://www.thingiverse.com/thing:3260431) fits a Circuit Playground Express and could easily be re-purposed for this project.&nbsp;

![](https://cdn-learn.adafruit.com/assets/assets/000/067/799/medium800/makecode_IMG_0903.jpg?1545261519)

# Meeting Time Keeper Stick

## Making Changes

This project has the benefit of being highly adaptable, with changes able to be made in MakeCode and implemented with lightning speed.&nbsp;

If you would like to lengthen the amount of time the speaker has before the timer starts beeping, it's as simple as adjusting two numbers, downloading the new UF2 file, and dragging it over onto your Circuit Playground Express.

Firstly, go to the `on start` block and change the value in `set seconds to` from `60` to, say,&nbsp;`120` to change it to a 2 minute timer. Make sure you mirror this change in the same instance in the `on shake` block, otherwise the timer will reset itself back to a 1 minute timer when it's shaken!

![](https://cdn-learn.adafruit.com/assets/assets/000/067/781/medium800/makecode_Screen_Shot_2018-12-17_at_10.16.02_PM_copy.png?1545250148)

## Game Time?

If you like this MakeCode project but wish it was more of a game than an efficiency device for meetings, check out [this Hot Potato project](https://learn.adafruit.com/circuit-playground-hot-potato)!

## Exploring Further

If you want to continue exploring you can check out&nbsp;[lots more MakeCode projects on the Adafruit Learn System](https://learn.adafruit.com/category/makecode).


## Featured Products

### Circuit Playground Express

[Circuit Playground Express](https://www.adafruit.com/product/3333)
 **Circuit Playground Express** is the next step towards a perfect introduction to electronics and programming. We've taken the original Circuit Playground Classic and made it even better! Not only did we pack even more sensors in, we also made it even easier to...

In Stock
[Buy Now](https://www.adafruit.com/product/3333)
[Related Guides to the Product](https://learn.adafruit.com/products/3333/guides)
### USB cable - USB A to Micro-B

[USB cable - USB A to Micro-B](https://www.adafruit.com/product/592)
This here is your standard A to micro-B USB cable, for USB 1.1 or 2.0. Perfect for connecting a PC to your Metro, Feather, Raspberry Pi or other dev-board or microcontroller

Approximately 3 feet / 1 meter long

Out of Stock
[Buy Now](https://www.adafruit.com/product/592)
[Related Guides to the Product](https://learn.adafruit.com/products/592/guides)
### DIY Ornament Kit - 6cm Diameter - Perfect for Circuit Playground

[DIY Ornament Kit - 6cm Diameter - Perfect for Circuit Playground](https://www.adafruit.com/product/4036)
Have you put up with mainstream, uninspiring, low-tech tree ornaments for too long? This season why not deck the halls with _codes_ of holly?

This **DIY Ornament Kit** is just the right size (6 cm diameter) for a Circuit Playground Express, 500mAh LiPoly battery, and...

In Stock
[Buy Now](https://www.adafruit.com/product/4036)
[Related Guides to the Product](https://learn.adafruit.com/products/4036/guides)
### Adafruit Circuit Playground Express or Bluefruit Enclosure

[Adafruit Circuit Playground Express or Bluefruit Enclosure](https://www.adafruit.com/product/3915)
We've got nice cases for many of our beloved boards, but the [Circuit Playground Express](https://www.adafruit.com/product/3333)&nbsp;and [Circuit Playground&nbsp;Bluefruit](https://www.adafruit.com/product/4333) has been left out of couture enclosure...

Out of Stock
[Buy Now](https://www.adafruit.com/product/3915)
[Related Guides to the Product](https://learn.adafruit.com/products/3915/guides)
### Lithium Ion Polymer Battery Ideal For Feathers - 3.7V 400mAh

[Lithium Ion Polymer Battery Ideal For Feathers - 3.7V 400mAh](https://www.adafruit.com/product/3898)
Lithium-ion polymer (also known as 'lipo' or 'lipoly') batteries are thin, light, and powerful. The output ranges from 4.2V when completely charged to 3.7V. This battery has a capacity of **400mAh** for a total of about 1.9 Wh. If you need a larger (or smaller!)...

Out of Stock
[Buy Now](https://www.adafruit.com/product/3898)
[Related Guides to the Product](https://learn.adafruit.com/products/3898/guides)
### 1/4" to 1/4" Screw Adapter - For Camera / Tripod / Photo / Video

[1/4" to 1/4" Screw Adapter - For Camera / Tripod / Photo / Video](https://www.adafruit.com/product/2632)
_"Simplicity is the ultimate sophistication"_ - [Leonardo da Vinci](http://en.wikipedia.org/wiki/Leonardo_da_Vinci)

This **1/4" screw to 1/4" screw** is very simple but you'll find it an essential adapter for video/photo...

In Stock
[Buy Now](https://www.adafruit.com/product/2632)
[Related Guides to the Product](https://learn.adafruit.com/products/2632/guides)

## Related Guides

- [Adafruit Circuit Playground Express](https://learn.adafruit.com/adafruit-circuit-playground-express.md)
- [Make It Bubble](https://learn.adafruit.com/make-it-bubble.md)
- [The Tilt Trumpet](https://learn.adafruit.com/the-tilt-trumpet.md)
- [Sound Activated Shark Mask](https://learn.adafruit.com/sound-activated-shark-mask.md)
- [Sensors in MakeCode](https://learn.adafruit.com/sensors-in-makecode.md)
- [Drama Piñata](https://learn.adafruit.com/customizable-reusable-pinata.md)
- [Glowing Bottle Castle and Capacitive Touch Piano](https://learn.adafruit.com/glowing-bottle-castle-and-capacitive-touch-piano.md)
- [Circuit Playground Morse Code Flasher](https://learn.adafruit.com/circuitplayground-morse-code-flasher-makecode-circuit-python.md)
- [Tightrope Unicycle Bot](https://learn.adafruit.com/tightrope-unicycle-bot.md)
- [Stand-alone programming AVRs using CircuitPython](https://learn.adafruit.com/stand-alone-programming-avrs-using-circuitpython.md)
- [Circuit Playground Express Treasure Hunt](https://learn.adafruit.com/circuit-playground-treasure-hunt.md)
- [How Tall Is It?](https://learn.adafruit.com/how-tall-is-it.md)
- [Cartoon Network MakeCode: Garnet's Gauntlets from Steven Universe](https://learn.adafruit.com/cartoon-network-makecode-garnets-gauntlets-from-steven-universe.md)
- [Crawling Animatronic Hand](https://learn.adafruit.com/crawling-hand-with-cpx-and-makecode.md)
- [MakeCode for Circuit Playground Express](https://learn.adafruit.com/makecode.md)
