# 'Sup Brows

## Overview

https://youtu.be/78qAggC1ttc

We spend a lot of time trying to send messages to each through talking, texting, emailing, and more. What if you could send a message to your friend by simply raising your eyebrows?

In this wearable electronics project we'll learn to&nbsp;make muscles send text messages! This learning guide will show you how to use&nbsp;a MyoWare muscle sensor and a Bluefruit Feather microcontroller to transmit a signal through the phone to Adafruit IO and If This Then That to&nbsp;trigger an SMS. Let's get started!

![](https://cdn-learn.adafruit.com/assets/assets/000/030/058/medium800/biometric_SupBrows_parts.jpg?1453815684)

For this project you will need:

- [MyoWare Muscle Sensor](https://www.adafruit.com/products/2699)
- [EMG Electrodes](https://www.adafruit.com/products/2773)
- [Adafruit Feather 32u4 Bluefruit LE](https://www.adafruit.com/products/2829)
- [Lithium Ion Polymer Battery 3.7v (we used 500 mAh)](https://www.adafruit.com/products/1578)
- [Silicone Cover wire](https://www.adafruit.com/products/1970)
- [USB micro cable](https://www.adafruit.com/products/2185)

Before you begin, please review and understand the following prerequisite guides:

- [Getting Started with the MyoWare Muscle Sensor](../../1220)
- [Adafruit Feather 32u4 Bluefruit LE](../../../../adafruit-feather-32u4-bluefruit-le)
- [Adafruit IO](../../../../digital-display-badge/MQTT,%20Adafruit.IO%20&%20You!)
- [MQTT, Adafruit.IO & you!](../../../../digital-display-badge/MQTT,%20Adafruit.IO%20&%20You!)
- [Adafruit guide to excellent soldering](../../../../adafruit-guide-excellent-soldering)

![](https://cdn-learn.adafruit.com/assets/assets/000/030/127/medium800thumb/biometric_sup-brows-animation-07.jpg?1453845798)

# 'Sup Brows

## Circuit

The first thing we need to do is assemble our circuit. Because we want this circuit to be wearable, we will just connect the sensor directly to the feather board. We'll be working with silicone cover stranded wire because it is very flexible and also strong. Follow the steps below to complete your circuit.

Cut 3 lengths of the silicone cover wire and strip both ends of each piece. Tin the tips with solder to prevent the ends from splaying.

![biometric_SupBrows_circuit2.jpg](https://cdn-learn.adafruit.com/assets/assets/000/030/079/medium640/biometric_SupBrows_circuit2.jpg?1453834068)

Solder one end of the wires to the "+", "-", and "SIG" connections on the MyoWare Muscle Sensor.

![biometric_SupBrows_circuit3.jpg](https://cdn-learn.adafruit.com/assets/assets/000/030/080/medium640/biometric_SupBrows_circuit3.jpg?1453834160)

If you are using all of the same-colored wire like in the photo, label the other end of the wires so that you know which connection is which.

![biometric_SupBrows_circuit4.jpg](https://cdn-learn.adafruit.com/assets/assets/000/030/082/medium640/biometric_SupBrows_circuit4.jpg?1453834233)

![](https://cdn-learn.adafruit.com/assets/assets/000/030/112/medium800thumb/biometric_sup-brows-animation-03.jpg?1453844235)

Use some tape to secure the board to the table.

Braid the wires. This will prevent them from getting snagged&nbsp;on things when you are wearing the sensor and will create a lovely flexible cord.

Use a zip tie to finish off the end of the braid. Snip off the tail once it is in place.

![biometric_SupBrows_circuit5.jpg](https://cdn-learn.adafruit.com/assets/assets/000/030/083/medium640/biometric_SupBrows_circuit5.jpg?1453834267)

![biometric_SupBrows_circuit6.jpg](https://cdn-learn.adafruit.com/assets/assets/000/030/084/medium640/biometric_SupBrows_circuit6.jpg?1453834298)

![biometric_SupBrows_circuit7.jpg](https://cdn-learn.adafruit.com/assets/assets/000/030/085/medium640/biometric_SupBrows_circuit7.jpg?1453834368)

Position the end of the braid over the top of the Feather board and bring the wires around the edges and up from underneath. This will ensure that you don't have any scratching solder connections on the back that will rub against your clothing or skin.

Solder the connections in place.&nbsp;

The connections that are being made are as follows:

- MyoWare "+" to Feather BAT
- MyoWare "-" to Feather GND
- MyoWare "SIG" to Feather A0

![biometric_SupBrows_circuit8.jpg](https://cdn-learn.adafruit.com/assets/assets/000/030/086/medium640/biometric_SupBrows_circuit8.jpg?1453834428)

Trim the wire ends once your soldering is done. Your circuit is now complete!

# 'Sup Brows

## Bluetooth Test

# Upload the Code

Download the code and open it in Arduino. Connect the Feather to your computer and upload the code.

[SupBrows_V2.zip](https://learn.adafruit.com/system/assets/assets/000/030/067/original/SupBrows_V2.zip?1453824100)
# Place the Sensor

Disconnect the Feather from the computer. Connect the battery.

Clean your forehead with some rubbing alcohol to make sure it is free from dirt, oil, makeup, and lotion.

Attach 3 electrodes to the connectors on the sensor. Remove the paper backing from the two on the circuit board. &nbsp;Position the sensor on the forehead according to the image below. The wires should point up towards the hairline and the sensor should sit at a diagonal, with the lower end above the inside edge of the eyebrow and the higher end shifted away from the center.

Remove the paper backing from the third electrode and position it on your temple.

![](https://cdn-learn.adafruit.com/assets/assets/000/030/071/medium800/biometric_SupBrows_electrodesKate.jpg?1453827310)

# View Sensor Values Via Bluetooth

Open the Adafruit Bluefruit LE Connect App on your phone or tablet. Hit "Scan For Peripherals" and wait for the Adafruit Bluetooth LE to appear in the list. When it does, hit the "Connect" button next to it.

![](https://cdn-learn.adafruit.com/assets/assets/000/030/068/medium800/biometric_SupBrows_screenshot1.png?1453825833)

On the next screen select "UART".

![](https://cdn-learn.adafruit.com/assets/assets/000/030/069/medium800/biometric_SupBrows_screenshot2.png?1453825891)

Now you will see your sensor values on screen! Raise and lower your eyebrows to see the sensor values change.

If sensor values don't change try repositioning the sensor so that it sits more precisely on top of the muscle.

![](https://cdn-learn.adafruit.com/assets/assets/000/030/113/medium800thumb/biometric_sup-brows-animation-06.jpg?1453844649)

# 'Sup Brows

## IFTTT Test

# Adjust the Code

To get ready for connecting to If This Then That we are going to make a slight adjustment to our code.

Disconnect the sensor from your face and use a USB cable to connect the Feather to your computer. Go back to the loop in your code. Comment out the following line so it looks like this:

```auto
  // ble.println(sensorValue);
```

Then uncomment the block of code that follows so it looks like this:

```auto
if (sensorValue > threshold && oldSensorValue < threshold) {
    ble.println(sensorValue);
 }
  
oldSensorValue = sensorValue;
```

Once you've made these changes go ahead and upload the code to the Feather. Unplug the Feather from your computer, connect the battery, and reattach the sensor to your face.&nbsp;

# Create a Feed on Adafruit IO

Log in to Adafruit IO and create a feed for your brow activities.

![](https://cdn-learn.adafruit.com/assets/assets/000/030/074/medium800/biometric_SupBrows_screenshot5.png?1453829843)

# Adjust MQTT Settings

Open up the Adafruit Bluetooth LE Connect app on your mobile device. Reconnect with the Feather board and open the UART window. This time the sensor values will only appear when the sensor values pass a certain threshold - aka when you raise your eyebrows!

Select the MQTT icon in the upper right.

Configure your first two boxes&nbsp;as follows:

**Server**

Address: io.adafruit.com

Port: 1833

**Publish**

UART RX: **username** /feeds/ **feedname**

![](https://cdn-learn.adafruit.com/assets/assets/000/030/072/medium800/biometric_SupBrows_screenshot3.png?1453828361)

Under "Advanced," enter your username and AIO key, which can be found by clicking the key button in the upper right of any of your Dashboards.

Copy your AIO key into an email, file on dropbox, or other easy way to paste it into your device-- copying it from the screen is no fun (unless you love memorizing)!

![](https://cdn-learn.adafruit.com/assets/assets/000/030/073/medium800/biometric_SupBrows_screenshot4.png?1453828845)

After you've configured your settings, go ahead and click CONNECT&nbsp;at the top of the page.

You can then check your feed on Adafruit IO to make sure the data is uploading properly.

# Create a Recipe on IFTTT

Open your IFTTT&nbsp;account and create a recipe using the Adafruit channel. Use the "Any New Data" trigger and select the appropriate feed.

From there you can select your action. We used Android SMS to send a text message.

![](https://cdn-learn.adafruit.com/assets/assets/000/030/116/medium800/biometric_Screen_Shot_2016-01-26_at_4.45.52_PM.png?1453844786)

Now whenever you raise your eyebrows it will send a 'Sup message to your friend!

![](https://cdn-learn.adafruit.com/assets/assets/000/030/114/medium800thumb/biometric_sup-brows-animation-01.jpg?1453844714)

![](https://cdn-learn.adafruit.com/assets/assets/000/030/123/medium800thumb/biometric_sup-brows-animation-04.jpg?1453845454)

# 'Sup Brows

## Making It Wearable

There are lots of ways to make this wearable. The sensor it self already sticks directly to your face. The remaining question is where to put the rest of the circuit. You could attach it to a hair clip or to your shirt.

For ours we used a nifty [3D printed battery holder](../../../../mystical-led-halloween-hood/3d-printed-battery-pocket)&nbsp;and a magnetic pin back.&nbsp;

![](https://cdn-learn.adafruit.com/assets/assets/000/030/055/medium800/biometric_SupBrows_assembly1.jpg?1453786555)

The battery holder is attached to the Feather with some thread and the pin back is stuck to the back of the board.

![](https://cdn-learn.adafruit.com/assets/assets/000/030/063/medium800/biometric_SupBrows_assembly3.jpg?1453823102)

We then connect the battery and tuck the wire into the pin back to keep it from snagging on anything.

![](https://cdn-learn.adafruit.com/assets/assets/000/030/064/medium800/biometric_SupBrows_assembly4.jpg?1453823130)

Once it's assembled it can be clipped to any piece of clothing! If you want to get fancy you can create a pocket or a pouch to disguise the electronics and keep your circuit enclosed.

![](https://cdn-learn.adafruit.com/assets/assets/000/030/065/medium800/biometric_SupBrows_assembly5.jpg?1453823145)

The last bit to be dealt with is what to do with the sensor on your face. If you're into a cyborg look you may just want to leave the sensor exposed, maybe even accenting it with some fancy makeup.

![](https://cdn-learn.adafruit.com/assets/assets/000/030/078/medium800/biometric_SupBrows_bolts.jpg?1453833524)

For ours we used some paint and sparkles to create some Bowie bolts to bling up our brows. Trust us - it makes&nbsp;the message sending process feel extra zingy!

![](https://cdn-learn.adafruit.com/assets/assets/000/030/119/medium800/biometric_Lightning_Bolt_Portrait_ORIG_135.jpg?1453845321)

# 'Sup Brows

## 'Sup 'Sup and Away

![](https://cdn-learn.adafruit.com/assets/assets/000/030/118/medium800/biometric_Lightning_Bolt_Portrait_ORIG_141.jpg?1453845282)

'Sup Brows are just the beginning.&nbsp;Because it’s connected to If This Then That, the possibilities of what you can accomplish by just raising your eyebrows are endless!

Similarly you can also connect to a variety of other muscles in order to have activities triggered by other facial expressions, gestures, and actions.

What kinds of networked muscle sensing projects could you imagine?

![](https://cdn-learn.adafruit.com/assets/assets/000/030/117/medium800thumb/biometric_sup-brows-animation-05.jpg?1453845111)


## Featured Products

### MyoWare Muscle Sensor

[MyoWare Muscle Sensor](https://www.adafruit.com/product/2699)
Control your next project with your muscles with the **MyoWare 2.0 Muscle Sensor!&nbsp;** Pair the MyoWare with&nbsp;some&nbsp;[Muscle Sensor Surface EMG Electrodes](https://www.adafruit.com/products/2773) and a microcontroller (ie. <a...></a...>

No Longer Stocked
[Buy Now](https://www.adafruit.com/product/2699)
[Related Guides to the Product](https://learn.adafruit.com/products/2699/guides)
### Muscle Sensor Surface EMG Electrodes - H124SG Covidien

[Muscle Sensor Surface EMG Electrodes - H124SG Covidien](https://www.adafruit.com/product/2773)
Have your next project be controlled by your muscles with this pack of **Muscle Sensor Surface EMG Electrodes!** &nbsp;Pair the electrodes&nbsp;with the [MyoWare&nbsp;Muscle Sensor](http://www.adafruit.com/products/2699)&nbsp;and a microcontroller (ie. <a...></a...>

In Stock
[Buy Now](https://www.adafruit.com/product/2773)
[Related Guides to the Product](https://learn.adafruit.com/products/2773/guides)
### Adafruit Feather 32u4 Bluefruit LE

[Adafruit Feather 32u4 Bluefruit LE](https://www.adafruit.com/product/2829)
Feather is the new development board from Adafruit, and like its namesake it is thin, light, and lets you fly! We designed Feather to be a new standard for portable microcontroller cores.

This is the&nbsp; **Adafruit Feather 32u4 Bluefruit** &nbsp;- our take on an...

In Stock
[Buy Now](https://www.adafruit.com/product/2829)
[Related Guides to the Product](https://learn.adafruit.com/products/2829/guides)
### Silicone Cover Stranded-Core Wire - 2m 26AWG Black

[Silicone Cover Stranded-Core Wire - 2m 26AWG Black](https://www.adafruit.com/product/1881)
Silicone-sheathing wire is super-flexible and soft, and its also strong! Able to handle up to 200°C and up to 600V, it will do when PVC covered wire wimps out. We like this wire for being extremely supple and flexible, so it is great for wearables or projects where the wire-harness has to...

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

[Lithium Ion Polymer Battery - 3.7v 500mAh](https://www.adafruit.com/product/1578)
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 500mAh for a total of about 1.9 Wh. If you need a larger (or smaller!) battery, <a...></a...>

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

[Magnetic Pin Back](https://www.adafruit.com/product/1170)
These magnetic pin backs have two pieces: a metal bar with adhesive strip and a plastic piece with two strong rare-earth magnets. Affix the metal bar to your FLORA projects-- it's just the right size! Then attach your FLORA project to any garment without poking holes in your clothes. The...

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

## Related Guides

- [Using Bluefruit BLE to Give Disabled Users Switch Control Access to IOS Devices](https://learn.adafruit.com/ios-switch-control-using-ble.md)
- [Phone-Activated Talking Dog Collar](https://learn.adafruit.com/phone-activated-talking-dog-collar.md)
- [Bluefruit Controlled Macetech RGB LED Shades](https://learn.adafruit.com/ledshades.md)
- [Glowing LED Chair](https://learn.adafruit.com/glowing-led-chair.md)
- [BLE Feather Lamp](https://learn.adafruit.com/ble-feather-lamp.md)
- [Halo Energy Sword](https://learn.adafruit.com/halo-energy-sword.md)
- [Bluetooth LE MIDI Controller](https://learn.adafruit.com/bluetooth-le-midi-controller.md)
- [Festive Feather Holiday Lights](https://learn.adafruit.com/festive-feather-holiday-lights.md)
- [3D Printed Daft Punk Helmet with Bluetooth ](https://learn.adafruit.com/3d-printed-daft-punk-helmet-with-bluetooth.md)
- [My Mini Race Car](https://learn.adafruit.com/my-mini-race-car.md)
- [Wireless UNTZtrument Using BLE MIDI ](https://learn.adafruit.com/wireless-untztrument-using-ble-midi.md)
- [3D Printed Case for Adafruit Feather](https://learn.adafruit.com/3d-printed-case-for-adafruit-feather.md)
- [Introducing Adafruit Feather](https://learn.adafruit.com/adafruit-feather.md)
- [Bluetooth Controlled NeoPixel Headphones](https://learn.adafruit.com/bluetooth-controlled-neopixel-headphones.md)
- [What is Web MIDI & BLE MIDI?](https://learn.adafruit.com/web-ble-midi.md)
