# Synchronized Eyes with Two HalloWings

## Overview

![](https://cdn-learn.adafruit.com/assets/assets/000/064/264/medium800thumb/graphic_tfts_anim-cat.jpg?1540419468)

The Adafruit HalloWing board ships with a spooky eyeball demo pre-installed by default. But what if you want _two_ eyeballs peeking around?

Some prior projects have you soldering up two graphic displays and either a [microcontroller](https://learn.adafruit.com/animated-electronic-eyes-using-teensy-3-1) or [Raspberry Pi](https://learn.adafruit.com/animated-snake-eyes-bonnet-for-raspberry-pi)…but neither was “HalloWing simple.”

Now we’ve cooked up a way for two HalloWing eyes to sync up and **move together** …and it requires **no soldering at all!&nbsp;** And with our ready-made designs, you might not even need to touch a code editor.

The eyes are great for things like Halloween, as part of a jack-o’-lantern or a window decoration (we even have some templates you can print and use)…or for cosplay, where they might go on a hat or be part of a companion prop.

# Synchronized Eyes with Two HalloWings

## Wiring

There’s a couple ways to physically link the two boards. One’s quite tidy, the other may be easier with stuff you already have around.

This **[4-pin JST STEMMA cable](https://www.adafruit.com/product/3568)** connects between the I2C sockets on both HalloWing boards. Click, click, done!

&nbsp;

If you go this route, both boards will **share one power source** …you only need a battery or USB cable to **ONE** of the HalloWing boards, the other will receive power through the STEMMA cable. In fact, **use of&nbsp;two batteries is a bad idea in this setup** , since they would be connected and the voltages may be slightly different.

&nbsp;

But two boards means half the runtime from the single battery…you may want to switch to something bigger than the 400 mAh battery included in Adabox 009, if that’s what you’ve got. Or leave off the battery and use a **USB cable** to connect one of the HalloWings to a **USB battery bank** , the kind used for charging phones. That should run for **hours!**

![graphic_tfts_StemmaCable.jpg](https://cdn-learn.adafruit.com/assets/assets/000/064/217/medium640/graphic_tfts_StemmaCable.jpg?1540354830)

![graphic_tfts_hallowing-link-1bat-stemma.jpg](https://cdn-learn.adafruit.com/assets/assets/000/064/218/medium640/graphic_tfts_hallowing-link-1bat-stemma.jpg?1540354848)

The **alternative** is to use a few **jumper wires** to connect the two boards. These can be inserted into the FeatherWing socket pins on the back of the board.

Connect the **same** &nbsp;pins across&nbsp; **both** boards:

- GND (there are two GND pins, either one will work)
- SDA
- SCL

Connect SDA on one board to SDA on the other board, SCL to SCL and so forth. You should **not** cross the wires; this is not a “null modem” connection.

![](https://cdn-learn.adafruit.com/assets/assets/000/064/219/medium800/graphic_tfts_hallowing-link-2bat.png?1540354874)

Wired this way, each board can safely use its own separate battery. But if you’d prefer a single power source as with the STEMMA cable technique mentioned above, add one more jumper wire between the two boards:

- BAT

Do NOT make this connection if using two batteries!

![](https://cdn-learn.adafruit.com/assets/assets/000/064/220/medium800/graphic_tfts_hallowing-link-1bat.png?1540354906)

Remember with the single-battery approach that run time is halved. Consider using a USB power bank!

## One More Jumper

**NOW:** in either case, whether using the STEMMA cable or jumper wires, ONE of the two HalloWing boards needs to control the show (while the other follows along).

Connect a jumper wire between a **GND** pin (there are two, use either one) and **A2**. Do this on only **one** of the boards. This one will now track the other when **both** are switched on.

In the diagrams above, we’ve added the wire to the left board (it’s highlighted in yellow)…but it can go on either one. But not both!

# Synchronized Eyes with Two HalloWings

## Software — Easy Recipes

We’ve put together a few drag-and-drop “recipes” for this project that **don’t require any programming** know-how. More experienced users can see the Customizing page for insights about getting into the code and **fine-tuning various details**.

Also we’ve created some Halloween-themed **cut-out shapes** you can use. Of course you can just **freehand** a design, or there’s tons of freely-available **clip art** elsewhere on the web…but since these are our own, we can legitimately **share** them! You can print them out and trace onto cardboard or foam-core, then cut out with a hobby knife…or maybe you have one of those fancy vinyl cutters that also handles construction paper. Use whatever tools and materials you’re comfortable with, it’s all good! When finished, the silhouettes can be taped in a window, or use a hot glue gun to add a “kickstand” in the back, like a photo frame, or a dowel or tomato stake to poke it in the ground.

If designing your own character: the eye holes should be circles about **26 mm** in diameter (a smidgen over 1 inch), spaced about **56 mm** (2¼") apart center-to-center.

These particular examples **do not use the light sensor** , since the HalloWing board will most likely be situated just behind an opaque layer of cardboard or similar. But if you poke a hole in your design to keep the light sensor exposed, and if you make the necessary changes to the code, it’s an option. Otherwise the pupils do their own thing.

# Installing

Plug one **HalloWing** board into your computer with a **USB** cable. Make sure the power switch is set to the “ **on** ” position, then **double-click the RESET button** on the back of the board.

After a moment, a small flash drive called **HALLOBOOT** should appear on your system. Drag-and-drop one of the **.UF2 files** &nbsp;(downloadable below) on to this flash drive. There will be a few seconds of LED flashing, then the HALLOBOOT drive will be ejected.

**Unplug** the first HalloWing board and connect the USB cable to the **second** HalloWing, repeating the process: power switch on, double-click reset, wait for the HALLOBOOT drive and drag-and-drop a .UF2 file there.

With the same software on both boards now…if they’re properly wired and powered on, you should see a pair of blinky eyes!

## If it doesn't work:

- Confirm BOTH boards are switched on.
- Check your wiring against the diagrams on the prior page.
- Make sure ONE board has a jumper between A2 and GND.

(The candle effect seen in the animations below is _not_ part of this project…those are separate Circuit Playground Express boards running code from [our Jack–o’–Lantern guide](https://learn.adafruit.com/circuit-playground-jack-o-lantern).)

# Attach HalloWing Boards to Silhouette

Like a Hollywood building façade, nobody’s gonna see this side of things and it’s okay to take short cuts. Line up the eyes with the eye cutouts and hold the boards in place with some masking tape. For something a little more durable, a few dabs of hot glue can work, and is easily removed later using a cotton swab dipped in rubbing alcohol.

![](https://cdn-learn.adafruit.com/assets/assets/000/064/404/medium800/graphic_tfts_boards-taped.jpg?1540524104)

# Cat
![](https://cdn-learn.adafruit.com/assets/assets/000/064/256/medium800thumb/graphic_tfts_anim-cat.jpg?1540419151)

A Halloween classic! Two bright yellow eyes with slit pupils. Unlike the original default eye which is a bit _too_ creepy and real, this instead uses a 2D “flat” color, like a cartoon.

[2EYES-CAT.UF2](https://cdn-learn.adafruit.com/assets/assets/000/064/099/original/2EYES-CAT.UF2?1540274301)
The cut-out for this one (PDF file) is a larger design that won’t fit on a single letter-size page…so maybe you can “tile” it across two pages and tape them together.

[Silhouette-Cat.pdf](https://cdn-learn.adafruit.com/assets/assets/000/064/102/original/Silhouette-Cat.pdf?1540274333)
# Owl
![](https://cdn-learn.adafruit.com/assets/assets/000/064/257/medium800thumb/graphic_tfts_anim-owl.jpg?1540419154)

The _other_ Halloween classic! Again, this one uses a 2D, cartoon-like look, with blue irises in case you’d like to make a [Minerva](https://learn.adafruit.com/circuit-playground-n-is-for-noise) owl rather than a generic Halloween owl.

[2EYES-OWL.UF2](https://cdn-learn.adafruit.com/assets/assets/000/064/100/original/2EYES-OWL.UF2?1540274311)
This one’s a simple one-page PDF. You can dress up the silhouette with a paint pen (as shown above), or cut and glue shapes from colored construction paper or fabric scraps to give it more variety.

[Silhouette-Owl.pdf](https://cdn-learn.adafruit.com/assets/assets/000/064/103/original/Silhouette-Owl.pdf?1540274341)
# Nauga
![](https://cdn-learn.adafruit.com/assets/assets/000/064/258/medium800thumb/graphic_tfts_anim-nauga.jpg?1540418811)

Wait, what? Okay, so Naugas have _nothing to do_ with Halloween…but resemble something Tim Burton would stick in his films.

The _Nauga_ is a mythical species from the 1960s that served as a mascot for Uniroyal’s _Naugahyde_ material (a brand of artificial leather).

Simplest eyes of all…white with round black pupil, no iris. Just like the original Nauga.

![graphic_tfts_nauga-ad.jpg](https://cdn-learn.adafruit.com/assets/assets/000/064/356/medium640/graphic_tfts_nauga-ad.jpg?1540438491)

[2EYES-NAUGA.UF2](https://cdn-learn.adafruit.com/assets/assets/000/064/101/original/2EYES-NAUGA.UF2?1540274318)
Another one-page PDF. This might be just a _tiny_ bit too wide for some printers…the edges of the arms might be clipped off…but it’s very little, and you can just freehand those lines.

As with the owl, this can be dressed up with paint pens, or get all fancy with different-colored paper cutouts, or suitably vintage tacky fabric scraps.

[Silhouette-Nauga.pdf](https://cdn-learn.adafruit.com/assets/assets/000/064/104/original/Silhouette-Nauga.pdf?1540274348)
# Deer

Something a bit more Christmas-themed. Cartoon deer eyes with huge specular highlights:

[2EYES-DEER.UF2](https://cdn-learn.adafruit.com/assets/assets/000/066/755/original/2EYES-DEER.UF2?1543603144)
# Synchronized Eyes with Two HalloWings

## Software — Customizing

Customizing the eye features isn’t as drag-and-drop simple…you’ll need some familiarity editing code in the Arduino IDE, installing libraries, compiling and uploading software to the HalloWing board and so forth.

Our “**[Electronic Animated Eyes using Teensy 3.1/3.2](/animated-electronic-eyes-using-teensy-3-1/overview)**” guide has a link to the source code and some insights on modifying the configuration. It also explains prerequisite libraries. Here we’re focusing just on how to get two HalloWing boards talking to each other (which is _not_ enabled in that code by default)…

In the file config.h, you’ll see a section that looks like this (starting around line 50):

```
// DISPLAY HARDWARE SETTINGS (screen type &amp; connections) -------------------

#ifdef ADAFRUIT_HALLOWING
  #include &lt;Adafruit_ST7735.h&gt; // TFT display library
  #define DISPLAY_DC       38  // Display data/command pin
  #define DISPLAY_RESET    37  // Display reset pin
  #define DISPLAY_BACKLIGHT 7
  #define BACKLIGHT_MAX   128
  //#define SYNCPIN          A2  // I2C sync if set, GND this pin on receiver
  //#define SYNCADDR       0x08  // I2C address of receiver
                               // (Try disabling SYMMETRICAL_EYELID then)
#else
  // Enable ONE of these #includes to specify the display type being used
  #include &lt;Adafruit_SSD1351.h&gt;  // OLED display library -OR-
  //#include &lt;Adafruit_ST7735.h&gt; // TFT display library (enable one only)
  #define DISPLAY_DC        7    // Data/command pin for ALL displays
  #define DISPLAY_RESET     8    // Reset pin for ALL displays
#endif
```

Un-comment the two SYNC lines (remove the leading “//”), like so:

```
  #define SYNCPIN          A2  // I2C sync if set, GND this pin on receiver
  #define SYNCADDR       0x08  // I2C address of receiver
```

Also, if using one of the cardboard cutouts and you haven’t made an opening for the light sensor, comment out the `LIGHT_PIN` line so the pupils will change size on their own:

```
//#define LIGHT_PIN      A1 // Hallowing light sensor pin
```

OPTIONAL: since we’ll have distinct left and right eyes now, you might want to enable the part of the code that gives the eyelids a more interesting shape. That’s near the top of the code, starting around line 6:

```
// GRAPHICS SETTINGS (appearance of eye) -----------------------------------

// If using a SINGLE EYE, you might want this next line enabled, which
// uses a simpler "football-shaped" eye that's left/right symmetrical.
// Default shape includes the caruncle, creating distinct left/right eyes.
#ifdef ADAFRUIT_HALLOWING // Hallowing, with one eye, does this by default
  #define SYMMETRICAL_EYELID
#else                     // Otherwise your choice, standard is asymmetrical
  //#define SYMMETRICAL_EYELID
#endif
```

Comment out the first `SYMMETRICAL_EYELID` definition like this:

```
  //#define SYMMETRICAL_EYELID
```

While you’re in there, you can select one of the alternate eye designs if you like (the `#include` lines near the top).

Now compile and upload the code to **both boards**.

## More Control

If you want to create _completely_ custom eyes…not just tweaking some settings like we’ve done here…the [Electronic Animated Eyes](https://learn.adafruit.com/animated-electronic-eyes-using-teensy-3-1/overview) guide explains how to delve deeper into this project and use your own images. This requires some additional skills including image editing and running Python scripts from the command line.


## Featured Products

### Adafruit HalloWing M0 Express

[Adafruit HalloWing M0 Express](https://www.adafruit.com/product/3900)
[This is Hallowing..this is Hallowing... Hallowing! Hallowing!&nbsp;](https://www.youtube.com/watch?v=kGiYxCUAhks&t=39s)

Are you the kind of person who doesn't like taking down the skeletons and spiders until after January? Well, we've got the development board for...

In Stock
[Buy Now](https://www.adafruit.com/product/3900)
[Related Guides to the Product](https://learn.adafruit.com/products/3900/guides)
### STEMMA Cable - 4 Pin JST-PH 2mm Cable–Female/Female

[STEMMA Cable - 4 Pin JST-PH 2mm Cable–Female/Female](https://www.adafruit.com/product/3568)
This 4-wire cable is a little over 150mm / 6" long and fitted with JST-PH female 4-pin connectors on each end. These types of JST cables are commonly found on small rechargeable battery packs, RC receivers and transmitters, tiny cameras, and other small electronic devices

We're...

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

[AdaBox009 - HalloWing](https://www.adafruit.com/product/3863)
Are you the kind of person who doesn't like taking down the skeletons and spiders until after January? Well, we've got the ADABOX for you. This is electronics at its&nbsp;_most spooky!_&nbsp;ADABOX 009 is Halloween themed, for all of us who love scares, costumes,&nbsp;and (of...

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

## Related Guides

- [Adafruit Hallowing M0](https://learn.adafruit.com/adafruit-hallowing.md)
- [HalloWing Macintosh](https://learn.adafruit.com/hallowing-mac.md)
- [HalloWing Case](https://learn.adafruit.com/hallowing-case.md)
- [HalloWing Googly Eye](https://learn.adafruit.com/hallowing-googly-eye.md)
- [Circuit Playground or Hallowing Jack-o'-Lantern](https://learn.adafruit.com/circuit-playground-jack-o-lantern.md)
- [HalloWing All-Seeing Skull](https://learn.adafruit.com/hallowing-all-seeing-skull.md)
- [Glowing Mirror Mask](https://learn.adafruit.com/glowing-mirror-mask.md)
- [HalloWing Jump Scare Trap](https://learn.adafruit.com/hallowing-jump-scare-trap.md)
- [CircuitPython Display Support Using displayio](https://learn.adafruit.com/circuitpython-display-support-using-displayio.md)
- [HalloWing Flapping Bat](https://learn.adafruit.com/hallowing-flapping-bat.md)
- [HalloWing Lightsabers](https://learn.adafruit.com/hallowing-lightsaber.md)
- [HalloWing Interactive Cat Toy](https://learn.adafruit.com/hallowing-cat-toy.md)
- [Introducing Adafruit Feather](https://learn.adafruit.com/adafruit-feather.md)
- [HalloWing Light Paintstick](https://learn.adafruit.com/hallowing-light-paintstick.md)
- [3D Printed Starro Face Mask](https://learn.adafruit.com/3d-printed-starro-face-mask.md)
- [The Great Seal Mask](https://learn.adafruit.com/the-great-seal-mask.md)
