Fuze Install Kit

Zubi Flyer Setup Instructions in 3 Steps
  1. Download Arduino IDE, Install Required Libraries
  2. Setup Zubi Flyer's Board
  3. Code the games!

To start coding the Zubi Flyer, follow these instructions:

Contact Support if you're running into any issues, we're happy to help you out!

1. Download the Arduino IDE

(This makes it easy to write and upload code to the Zubi Flyer!)

Download the Arduino IDE for Windows

Download the Arduino IDE for Mac

2. Install Required Libraries

(A "Library" is a bunch of code that somebody else wrote that you can use!)

First,
  1. Download Zubi Flyer's code library: Zubi Flyer .ZIP Library
  2. Open the Arduino IDE, and navigate to Sketch > Include Library. At the top of the drop down list, select the option to "Add .ZIP Library''.

    Import Library From Zip

  3. Find Zubi Flyer's .ZIP library that you just downloaded to your computer and open it.

    Select Zubi Flyer .ZIP file

Second,

  1. In the Arduino IDE, open the Library Manager by navigating to Sketch > Include Library > Manage Libraries...

    Open Library Manager

  2. Use the search field to find and install the following libraries:

    Library Manager

  • FastLED
    Which is used to control LEDs on Zubi Flyer

  • Bounce2
    Which is used to debounce button inputs so Zubi Flyer can read your input properly (basically, this makes Zubi Flyer work the right way!).

  • EnableInterrupt
    Which is used to handle button interrupts for some of the Zubi Flyer's menu buttons (also makes Zubi Flyer work the right way!).
  1. Once you've installed these libraries, you should see them listed below Contributed Libraries when you navigate to Sketch > Include Library

For more details on how to install Libraries, check out Arduino's official guide.

3. Install Zubi Flyer Board

  1. Set the Additional Boards Manager URL

Preferences

On Windows, go the the File Menu and select Preferences

On Mac, go to Arduino and then then Preferences

Preferences Additional Boards Manager URLs

Paste...

https://raw.githubusercontent.com/fuzeplay/flyer-dev-env-setup-instructions/master/package_fuze_index.json

...into the additional Boards Manager URLs box and then press OK.

  1. Open the Boards Manager

Open Boards Manager

Navigate to Tools > Board > Board Manager

Boards Manager

Search for "Fuze" in the Boards Manager and Install the FuzePlay Zubi Flyer by FuzePlay

  1. Confirm that your Arduino IDE lets you set the FuzePlay Zubi Flyer as your board by selecting Tools and then Board. You should see the option to select FuzePlay Zubi Flyer.

Select FuzePlay Zubi Flyer

4. Install Zubi Flyer Drivers

Install the Drivers on Windows

If you are using Windows, you will need to install the Arduino drivers.

Windows Drivers dialog


Since the Zubi Flyer is designed similar to the Sparkfun Pro Micro Board, you'll need to follow the Windows Driver Installation part of their instructions to setup the drivers.

If you are on Windows 8, you might need to follow additional installation steps to securely install the Drivers.

Install the Drivers on Mac

You don't have to do anything, Mac already has the drivers installed.

5. Now you're ready to code your first game!

*Reference the HACK section of your instructable for default Newbie Zubi game play.

Since the Zubi Flyer Games are open sourced, you can freely modify and change the game's source code.

If you want in-depth instructions on how to write Arduino code, then please read their Official Getting Started Guide.

In this short tutorial, we're going to explain how to change the Newbie Zubi game code!

First, open the Arduino IDE and open a copy of the Newbie Zubi source code by going to: File > Examples > Fuze > newbie_zubi.

At the top of the source code, you should see a section named User modifiable values. These are variables that you can easily modify to change the games!

//Newbie-Zubi
//Written by Jordan Rejaud for FUZE
#include <FastLED.h>
#include <Bounce2.h>

//Don't modify these, but they need to be defined before the button sequences
#define TRIANGLE_PUSH 1
#define SQUARE_PUSH 2
#define CIRCLE_PUSH 3
//******************************************************************************
// User modifiable values
//******************************************************************************
//These are the button sequences that you need to push in order to trigger the lights show!
//For example, if you want to trigger "Magellan's Envy", you need to push the square button,
//then the circle button, then the triangle button

//You also need to set the length variable for each sequence equal to the number of button pushes in each sequence
const int MAGELLAN_ENVY[] = {SQUARE_PUSH, CIRCLE_PUSH, TRIANGLE_PUSH};
#define MAGELLAN_ENVY_LENGTH 3
const int ROLLING_ORANGES[] = {TRIANGLE_PUSH, SQUARE_PUSH, CIRCLE_PUSH};
#define ROLLING_ORANGES_LENGTH 3
const int UNICORN_SPARKLE[] = {CIRCLE_PUSH, SQUARE_PUSH, TRIANGLE_PUSH, SQUARE_PUSH};
#define UNICORN_SPARKLE_LENGTH 4
const int FIESTA_GRANDE[] = {CIRCLE_PUSH, SQUARE_PUSH, TRIANGLE_PUSH, TRIANGLE_PUSH, SQUARE_PUSH, CIRCLE_PUSH};
#define FIESTA_GRANDE_LENGTH 6

You will see that to activate the Magellan's Envy Light Show, you need to enter the following sequence on your Zubi Flyer's Board: Square, Circle, Triangle.

const int MAGELLAN_ENVY[] = {SQUARE_PUSH, CIRCLE_PUSH, TRIANGLE_PUSH};
#define MAGELLAN_ENVY_LENGTH 3

Let's modify the sequence from Square, Circle, Triangle to Square, Circle, Triangle, Circle. Change the above lines of code to the following:

const int MAGELLAN_ENVY[] = {SQUARE_PUSH, CIRCLE_PUSH, TRIANGLE_PUSH, CIRCLE_PUSH}; //Square, Circle, Triangle, Circle
#define MAGELLAN_ENVY_LENGTH 4 //Remember to update the length of the sequence from 3 to 4 if you add a button push at the end

Once you've written new code, you need to upload the changed Newbie Zubi game code to your Zubi Flyer Board:

  1. Set board to FuzePlay Zubi Flyer (Tools > Board)

  2. Set programmer to USBTiny ISP (Tools > Programmer)

  3. Connect your Zubi Flyer Board to your laptop via a Micro-USB cable.

//Insert Image of cable connecting to board and laptop

  1. Push the upload button in the Arduino IDE to upload your new source code to the board.

Arduino Upload Button


If the upload worked correctly, you should see Done Uploading at the bottom of the Arduino IDE.

Upload Done

  1. You can now disconnect Zubi Flyer's Board from your computer and play the modified Newbie Zubi Game :P

To reset Zubi Flyer to factory settings:

Open a new copy of the Zubi Flyer's factory default code by going to File > Examples > Fuze > factory. Click the "upload" button in the Arduino IDE.
Once the factory default code is done uploading, disconnect Zubi Flyer from your computer and go play!

Tech Specs

In The Box 

Built-In Features

Electronics Parts

Microcontroller Specs 

The Zubi Flyer is the bomb dot com for makers: 5 PWM pins, 12 DIOs as well as hardware serial connections Rx and Tx. Running at 16MHz and 5V. The onboard switch-mode boost regulator is designed to operate on 3 Volts.  Power can be supplied from a 3 Volt CR123A battery or from a USB cable that provides regulated +5 Volts DC to the board. Do not run any power exceeding 5 Volts as the regulator cannot handle step-down voltage.

System Requirements

*Click HERE for the Fuze Install Kit

learn how stuff works!

stars in space on way to mars