# Buzzing Mindfulness Bracelet

## Overview

https://www.youtube.com/watch?v=DJfGhETxWlw

Info: 

Build yourself a buzzing bracelet for subtle haptic feedback as time passes! It's great for reminding yourself to get up and walk away from your desk for a few minutes each hour, or just as a way to have a new awareness of how the perception of passing time varies based on what you're doing.

You'll whip up a vibrating motor circuit using a transistor, resistor, and diode, and use GEMMA to control the frequency of vibration in between low-power microcontroller naps. The circuit lives inside a linked leather/rubber bracelet, but you could build it into whatever you please. This project involves some precision soldering, but is otherwise quite easy!

Before you begin, make sure you've read the following prerequisite guides:

- [Gemma M0 guide](https://learn.adafruit.com/adafruit-gemma-m0/circuitpython-digital-in-out?view=all)&nbsp;or [Classic Introducing&nbsp;GEMMA guide](https://learn.adafruit.com/introducing-gemma/introduction)&nbsp;
- [Adafruit Guide To Excellent Soldering](../../../adafruit-guide-excellent-soldering)
- [Battery Powering your Wearable Electronics](https://www.youtube.com/watch?v=U_Q3djsktQs)

![](https://cdn-learn.adafruit.com/assets/assets/000/025/868/medium800/gemma_mindfulness-bracelet-24.jpg?1433899818)

For this project, you will need:

- [Gemma M0](https://www.adafruit.com/product/3501)[&nbsp;or&nbsp;](http://www.adafruit.com/products/1138 "Link: http://www.adafruit.com/products/1138")[Gemma v2](http://www.adafruit.com/products/1222 "Link: http://www.adafruit.com/products/1222")&nbsp;or [Gemma v1 (discontinued)](https://www.adafruit.com/product/2470)
- [vibrating mini disc motor](http://www.adafruit.com/product/1201)
- [1N4001 diode](http://www.adafruit.com/product/755)
- [PN2222 NPN transistor](http://www.adafruit.com/product/756)
- ~200-1K ohm resistor
- [100mAh lipoly battery](https://www.adafruit.com/product/1570)
- [heat shrink tubing](http://www.adafruit.com/product/344)
- [soldering iron and&nbsp;accessories](../../../../adafruit-guide-excellent-soldering)
- scraps of leather or bike inner tube
- scissors
- snaps and snap setting tool or velcro tape
- utility knife
- ruler
- pen or marker

# Buzzing Mindfulness Bracelet

## Circuit Diagram

![](https://cdn-learn.adafruit.com/assets/assets/000/058/164/medium800/projects_Buzzing_Mindfulness_Bracelet_bb.png?1532731232)

Info: 

A see-through bracelet would show off the circuit above:

- ~220-1K ohm resistor to GEMMA pin 1
- NPN transistor base (center pin on PN2222) to resistor
- NPN transistor emitter to GEMMA ground
- NPN transistor collector to motor black wire AND diode anode
- GEMMA Vin to motor red wire AND diode cathode (gray stripe)
- Battery plugs into tan JST port

It's difficult to fit the circuit inside&nbsp;the bracelet if you build it first. We'll be building it as we go, interlocked with pieces of the bracelet for the most compact fit.

![](https://cdn-learn.adafruit.com/assets/assets/000/025/839/medium800/gemma_mindfulness-bracelet-09.jpg?1433892699)

# Buzzing Mindfulness Bracelet

## Bracelet

The bracelet is created from folded figure-8 shapes cut from leather or rubber. You can easily draw it yourself, or download this image&nbsp;and print it out ~1 inch wide (or trace the screen!):

Draw or glue the template to a piece of thick paper, illustration board, or piece of cardboard. Cut out the figure-8 shape using a sharp utility knife or craft blade.

&nbsp;

On the wrong side of your material, trace the template many times and carefully cut out a small pile of pieces using sharp scissors.

![gemma_mindfulness-bracelet-00.jpg](https://cdn-learn.adafruit.com/assets/assets/000/025/841/medium640/gemma_mindfulness-bracelet-00.jpg?1433892759)

![gemma_mindfulness-bracelet-01.jpg](https://cdn-learn.adafruit.com/assets/assets/000/025/842/medium640/gemma_mindfulness-bracelet-01.jpg?1433892833)

![](https://cdn-learn.adafruit.com/assets/assets/000/025/871/medium800thumb/gemma_mindfulness-bracelet-25.jpg?1448318273)

To create the bracelet closure, cut out two special pieces with elongated tabs as shown:

![](https://cdn-learn.adafruit.com/assets/assets/000/025/843/medium800/gemma_mindfulness-bracelet-03.jpg?1433892888)

Use a snap setting tool to attach the snap parts, or use velcro tape instead.

![gemma_mindfulness-bracelet-04.jpg](https://cdn-learn.adafruit.com/assets/assets/000/025/844/medium640/gemma_mindfulness-bracelet-04.jpg?1433892964)

![gemma_mindfulness-bracelet-05.jpg](https://cdn-learn.adafruit.com/assets/assets/000/025/845/medium640/gemma_mindfulness-bracelet-05.jpg?1433893022)

Sandwich the two pieces wrong sides together, and place a figure-8 through the center hole. Fold the figure-8 flat so it creates a new sandwich for inserting the next piece. Repeat to build up a few links.

![gemma_mindfulness-bracelet-06.jpg](https://cdn-learn.adafruit.com/assets/assets/000/025/846/medium640/gemma_mindfulness-bracelet-06.jpg?1433893126)

![gemma_mindfulness-bracelet-07.jpg](https://cdn-learn.adafruit.com/assets/assets/000/025/847/medium640/gemma_mindfulness-bracelet-07.jpg?1433893294)

GEMMA fits snugly between the layers, which expose the power switch but hide the USB connector and JST battery connector. Slide GEMMA in from the side, with digital pin 1 facing towards the working end of the chain.

![gemma_mindfulness-bracelet-08.jpg](https://cdn-learn.adafruit.com/assets/assets/000/025/848/medium640/gemma_mindfulness-bracelet-08.jpg?1433893347)

![gemma_mindfulness-bracelet-10.jpg](https://cdn-learn.adafruit.com/assets/assets/000/025/849/medium640/gemma_mindfulness-bracelet-10.jpg?1433893496)

Poke a small hole in the center of the next link and insert one leg of the resistor (doesn’t matter which), then also through GEMMA’s pin 1. Twist the lead so it makes good mechanical contact with the solder pad.

![gemma_mindfulness-bracelet-11.jpg](https://cdn-learn.adafruit.com/assets/assets/000/025/850/medium640/gemma_mindfulness-bracelet-11.jpg?1433893555)

![gemma_mindfulness-bracelet-12.jpg](https://cdn-learn.adafruit.com/assets/assets/000/025/851/medium640/gemma_mindfulness-bracelet-12.jpg?1433893614)

![](https://cdn-learn.adafruit.com/assets/assets/000/025/852/medium800/gemma_mindfulness-bracelet-13.jpg?1433894176)

Next up is the transistor. Splay the leads away from each other, and use pliers to carefully bend them into place. Pictured above, the flat side of the transistor faces the same way as the flat side of GEMMA. Solder the base and emitter pins, being careful not to singe the material of the bracelet (although black leather can be very forgiving in this regard).

To prepare the motor/diode assembly, set up your diode in a third hand tool and tin the leads close to the diode itself. Hold the delicate motor wires up to the leads and remelt the solder to affix the motor.

&nbsp;

Use heat shrink tubing to insulate the leads and help protect the tiny stranded wires connected to the motor.

![gemma_mindfulness-bracelet-20.jpg](https://cdn-learn.adafruit.com/assets/assets/000/025/865/medium640/gemma_mindfulness-bracelet-20.jpg?1433897202)

![gemma_mindfulness-bracelet-21.jpg](https://cdn-learn.adafruit.com/assets/assets/000/025/866/medium640/gemma_mindfulness-bracelet-21.jpg?1433897334)

Solder the motor/diode assembly to the transistor’s remaining pin (collector) and GEMMA Vin. The diode leads travel around the next link in the chain, concealing and protecting the circuit.

![gemma_mindfulness-bracelet-16.jpg](https://cdn-learn.adafruit.com/assets/assets/000/025/858/medium640/gemma_mindfulness-bracelet-16.jpg?1433895100)

![gemma_mindfulness-bracelet-18.jpg](https://cdn-learn.adafruit.com/assets/assets/000/025/859/medium640/gemma_mindfulness-bracelet-18.jpg?1433895132)

![](https://cdn-learn.adafruit.com/assets/assets/000/025/860/medium800/gemma_mindfulness-bracelet-17.jpg?1433895149)

# Buzzing Mindfulness Bracelet

## Arduino Code

Info: 

![](https://cdn-learn.adafruit.com/assets/assets/000/025/870/medium800thumb/gemma_mindfulness-bracelet-19.jpg?1448318261)

Load up the following code on Arduino GEMMA using the Arduino IDE. It should buzz the motor once per minute. If it's working, then adjust the interval variable to your desired number of seconds and reload the code.

https://github.com/adafruit/Adafruit_Learning_System_Guides/blob/main/Buzzing_Mindfulness_Bracelet/Buzzing_Mindfulness_Bracelet.ino

# Buzzing Mindfulness Bracelet

## CircuitPython Code

![](https://cdn-learn.adafruit.com/assets/assets/000/058/167/medium800/projects_gemma-cp.jpg?1532825249)

 **GEMMA&nbsp;M0** &nbsp;boards can&nbsp;run&nbsp; **CircuitPython** &nbsp;— a different approach to programming compared to Arduino sketches. In fact,&nbsp; **CircuitPython comes&nbsp;factory pre-loaded on GEMMA&nbsp;M0**. If you’ve overwritten it with an Arduino sketch, or just want to learn the basics of setting up and using CircuitPython, this is explained in the&nbsp;[**Adafruit GEMMA&nbsp;M0 guide**](https://learn.adafruit.com/adafruit-gemma-m0/circuitpython-setup-1).

Info: 

Below is CircuitPython code that works&nbsp;similarly (though not exactly the same) as the Arduino sketch shown on a prior page. To use this, plug the GEMMA M0 into USB…it should show up on your computer as a small&nbsp; **flash drive** …then edit the file “ **code.py** ” with your text editor of choice. Select and copy the code below and paste it into that file,&nbsp; **entirely replacing its contents** &nbsp;(don’t mix it in with lingering bits of old code). When you save the file, the code should&nbsp; **start running almost immediately** &nbsp;(if not, see notes at the bottom of this page).

**If GEMMA M0 doesn’t show up as a&nbsp;drive, follow the GEMMA M0 guide link above to prepare the board for CircuitPython.**

https://github.com/adafruit/Adafruit_Learning_System_Guides/blob/main/Buzzing_Mindfulness_Bracelet/code.py

# Buzzing Mindfulness Bracelet

## Wear it!

![](https://cdn-learn.adafruit.com/assets/assets/000/025/867/medium800/gemma_mindfulness-bracelet-23.jpg?1433899676)

Add enough links after your circuit for your bracelet to fit your wrist. Peel off the paper backing from the motor and stick it in between layers of material.

Put some black tape or heat shrink tubing around your battery and plug it in. Wind the wire through the bracelet and tuck the battery between the layers of material. Loop the closure tab through the last link and wear it!

https://www.youtube.com/watch?v=U_Q3djsktQs

Your bracelet is not waterproof! You can take steps to [ruggedize&nbsp;your circuit](https://www.youtube.com/watch?v=kolq3eSu4ug)&nbsp;to make it more splash resistant, if that's your thing.

You can customize your bracelet's vibration by changing up the Arduino code. Maybe try using PWM to give&nbsp;the vibration more nuance or create different buzz patterns for different spans of time passed-- how would you make this project your own?

![](https://cdn-learn.adafruit.com/assets/assets/000/025/853/medium800/gemma_mindfulness-bracelet-14.jpg?1433894191)

![](https://cdn-learn.adafruit.com/assets/assets/000/025/864/medium800/gemma_mindfulness-bracelet-22.jpg?1433896941)


## Featured Products

### Adafruit GEMMA M0 - Miniature wearable electronic platform

[Adafruit GEMMA M0 - Miniature wearable electronic platform](https://www.adafruit.com/product/3501)
The **Adafruit Gemma M0** is a super small microcontroller board, with just enough built-in to create many simple projects. It may look small and cute: round, about the size of a quarter, with friendly alligator-clip sew pads. But do not be fooled! The Gemma M0 is incredibly...

In Stock
[Buy Now](https://www.adafruit.com/product/3501)
[Related Guides to the Product](https://learn.adafruit.com/products/3501/guides)
### Adafruit GEMMA v2 - Miniature wearable electronic platform

[Adafruit GEMMA v2 - Miniature wearable electronic platform](https://www.adafruit.com/product/1222)
 **Deprecation Warning: The Gemma bit-bang USB technique it uses doesn't work as well as it did in 2014, many modern computers won't work well. So while we still carry the Gemma so that people can maintain some older projects, we no longer recommend it.** <a...></a...>

In Stock
[Buy Now](https://www.adafruit.com/product/1222)
[Related Guides to the Product](https://learn.adafruit.com/products/1222/guides)
### Arduino GEMMA - Miniature wearable electronic platform

[Arduino GEMMA - Miniature wearable electronic platform](https://www.adafruit.com/product/2470)
What do you get when you combine&nbsp;an Adafruit classic with geniuses at Arduino? The Arduino GEMMA!&nbsp;It's a tiny wearable platform board with a lot of might in a 1" diameter package. Powered by a Attiny85 and programmable with an Arduino IDE over USB, you'll be able to...

No Longer Stocked
[Buy Now](https://www.adafruit.com/product/2470)
[Related Guides to the Product](https://learn.adafruit.com/products/2470/guides)
### Vibrating Mini Motor Disc

[Vibrating Mini Motor Disc](https://www.adafruit.com/product/1201)
\*BZZZZZZZZZZ\* Feel that? That's your little buzzing motor, and for any haptic feedback project you'll want to pick up a few of them. These vibe motors are tiny discs, completely sealed up so they're easy to use and embed.  
  
Two wires are used to control/power the vibe....

Out of Stock
[Buy Now](https://www.adafruit.com/product/1201)
[Related Guides to the Product](https://learn.adafruit.com/products/1201/guides)
### 1N4001 Diode - 10 pack

[1N4001 Diode - 10 pack](https://www.adafruit.com/product/755)
This here is a 10 pack of the classic 1N4001 power blocking diode. These are good for reverse polarity protection (put it between your DC power jack and circuitry to avoid a negative-voltage that would zap your delicate electronics), kickback protection (place across your solenoids, relays...

Out of Stock
[Buy Now](https://www.adafruit.com/product/755)
[Related Guides to the Product](https://learn.adafruit.com/products/755/guides)
### NPN Bipolar Transistors (PN2222) - 10 pack

[NPN Bipolar Transistors (PN2222) - 10 pack](https://www.adafruit.com/product/756)
Transistors are powerful little electronic switches, and we really like these NPN transistors whenever we need to control medium-power electronics such as small motors, solenoids, or IR LEDs. We find them so handy, they come in a pack of 10!

Each transistor is a general-purpose...

Out of Stock
[Buy Now](https://www.adafruit.com/product/756)
[Related Guides to the Product](https://learn.adafruit.com/products/756/guides)
### Heat Shrink Pack

[Heat Shrink Pack](https://www.adafruit.com/product/344)
Heat shrink is the duct tape of electronics, it keeps your stuff all safe and kept together. Especially when wiring and soldering, use heat shrink to add mechanical strength to cables. We use this stuff all the time and having a zip-lock bag of all the possible sizes is super...

In Stock
[Buy Now](https://www.adafruit.com/product/344)
[Related Guides to the Product](https://learn.adafruit.com/products/344/guides)
### Lithium Ion Polymer Battery - 3.7v 100mAh

[Lithium Ion Polymer Battery - 3.7v 100mAh](https://www.adafruit.com/product/1570)
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 ~100mAh for a total of about 0.4 Wh. If you need a larger battery, <a...></a...>

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

## Related Guides

- [NeoPixel Punk Collar](https://learn.adafruit.com/neopixel-punk-collar.md)
- [Hidden Ink UV Message Reader](https://learn.adafruit.com/hidden-ink-uv-message-reader.md)
- [NeoPixel Spats with Gemma and MakeCode](https://learn.adafruit.com/neopixel-spats.md)
- [NeoPixel Ring Bangle Bracelet](https://learn.adafruit.com/neopixel-ring-bangle-bracelet.md)
- [Serial Debugging with GEMMA](https://learn.adafruit.com/serial-debugging-with-gemma.md)
- [Trinket / Gemma Mini-Theremin](https://learn.adafruit.com/trinket-gemma-mini-theramin-music-maker.md)
- [Neopixel Jewel 10 Minute Necklace](https://learn.adafruit.com/10-minute-neopixel-necklace.md)
- [How to Program SAMD Bootloaders](https://learn.adafruit.com/how-to-program-samd-bootloaders.md)
- [Trinket “Question Block” Sound Jewelry](https://learn.adafruit.com/trinket-question-block-sound-jewelry.md)
- [Let’s Put LEDs in Things!](https://learn.adafruit.com/lets-put-leds-in-things.md)
- [DIY Thermal Light Painting - Heat Map Photography](https://learn.adafruit.com/diy-flir-light-painting-heat-map-photography.md)
- [Celebration Spectacles](https://learn.adafruit.com/celebration-spectacles.md)
- [Trinket (& Gemma) Servo Control](https://learn.adafruit.com/trinket-gemma-servo-control.md)
- [Introducing Gemma](https://learn.adafruit.com/introducing-gemma.md)
- [Decorative Pointy Elf Ear Bud Holders](https://learn.adafruit.com/elf-ears.md)
