Quick Started Guide

Introduction

The Peakduino UNO is an Arduino-compatible development platform that enables quick-and-easy project prototyping. It can interact with real-world sensors, control motors, display information, and perform near-instantaneous calculations. It enables anyone to create unique, nifty projects.

The Peakduino UNO also serves as an excellent physical computing learning platform. We’ve designed the Peakduino UNO to be as easy-to-use as possible. It can be used to help teach both programming and electronics concurrently – two skills that are becoming significantly important in today’s high-tech world.

This tutorial aims to familiarize you with the Peakduino UNO and help you get started using it. To begin we’ll go over the ins and outs of the board, then we’ll explain how to install in, and finally we’ll go over how to use it with the Arduino software.

Requirements

Of course, to follow along with this guide, you’ll need a Peakduino UNO . You’ll also need a mini-B-to-A USB cable. The USB interface serves two purposes: it powers the RedBoard and allows you to upload programs to it.

You’ll also need a computer – Mac, PC, or Linux will do – with the Arduino IDE installed on it. You can download Arduino from their website. They’ve got installation instructions there, but we’ll also go over installation in this tutorial.

Meet the RedBoard

Below is an annotated image, and a quick overview, of all of the important stuff on the Peakduino UNO:

Annotated image of RedBoard

Supplying Power

The Peakduino UNO can be powered via either the USB or barrel jack connectors. If you choose to power it via USB, the other end of the USB cable can be connected to either a computer or a (5V regulated) USB wall charger.

The power jack accepts a center-positive barrel connector with an outer diameter of 5.5mm and inner diameter of 2.1mm. Our 12V adapters are good choices if you’re looking to power the Peakduino UNO this way. Any wall adapter connected to this jack should supply a DC voltage between 7 and 15V.

USB is usually the easiest way to power the board, especially when you’re programming it, because the USB interface is required for uploading code too. Why would you use the barrel jack? Usually it’s because you need more power. A USB port is usually only allowed to supply 500mA, if you need more than that a wall adapter may be your only choice.

USB and barrel jack wires connected

It is acceptable to connect both a barrel jack and a USB connector at the same time. The Peakduino UNO has power-control circuitry to automatically select the best power source.

 

Download/Install Arduino

Before you plug the Peakduino UNO into your computer, you’ll need to install Arduino first.

Installing Arduino

To begin, head over to Arduino’s download page and grab the most recent, stable release of Arduino. Make sure you grab the version that matches your operating system.

Download Arduino!

The installation procedure is fairly straightforward, but it varies by OS. Here are some tips to help you along. Checkout the sparkfun's Installing Arduino tutorial if you get really stuck.

Windows Install Tips

The Windows version of Arduino is offered in two options: an installer or a zip file. The installer is the easier of the two options, just download that, and run the executable file to begin installation. If you’re prompted to install a driver during installation, select “Don’t Install” (the Peakduino UNO doesn’t use the same drivers). Don’t forget which directory it installs to (defaults to “Program Files/Arduino”).

Windows Installer

Windows install steps. Click the image to get a bigger view.

If, instead, you choose to download the zip file version of Arduino, you’ll need to extract the files yourself. Don’t forget which folder you extract the files into! We’ll need to reference that directory when we install drivers.

Mac Install Tips

The Mac download of Arduino is only offered in a zip file version. After the download is finished, simply double-click the .zip file to unzip it.

Mac Install Screenshot

Following that, you’ll need to copy the Arduino application into your applications folder to complete installation.

Linux Install Tips

As you Linux users are no doubt aware, there are many flavors of Linux out there, each with unique installation routines. Check out the sparkfun's Linux section of the Installing Arduino tutorial for some helpful links for an assortment of Linux distributions.

For Ubuntu and Debian users, installing Arduino should be as easy as running a little “apt-get” magic, with a command like:

 
COPY CODE

sudo apt-get update && sudo apt-get install arduino arduino-core

And other Linux distros aren’t too dissimilar from that.


With Arduino downloaded and installed, the next step is to plug the Peakduino UNO in and install some drivers! Pretty soon you’ll be blinking LEDs, reading buttons, and doing some physical computing!

Install FTDI Drivers

Once you have downloaded and installed Arduino, it’s time to connect the Peakduino UNO ​to your computer! Before you can use the board, though, you’ll need to install drivers.

Windows Driver Installation

After initially plugging your Peakduino UNO in, your computer will try to search for a compatible driver. It may actually succeed! The FTDI drivers are pretty common, so Windows Update may know a little something about them. If the drivers do automatically install, you should see a little bubble notification saying so:

Driver Success!

If your computer failed to find drivers, we’ll have to install them manually. Check out Sparkfun's Windows FTDI Driver Install guide for driver install instructions.

Mac Driver Installation

If you’re lucky, the FTDI drivers should automatically install on Mac OS X, otherwise you’ll have to manually install the drivers. Check out the Mac FTDI Driver Installation guide for help installing the drivers.

Mac Driver installation

In short, the process involves heading over to the FTDI driver website, and downloading the most up-to-date VCP drivers. Then you’ll simply run the “FTDIUSBSerialDriver_v2_2_18.dmg” file you downloaded, and follow the installation prompts.

Linux Driver Installation

Linux is actually pretty good about automatically installing the drivers. If you have any trouble, check out our Linux FTDI Driver guide.


Now it’s time to breathe easy! You’ll only have to run through this driver installation process once, the first time you connect the board to your computer. Now it’s time to upload a sketch!

Uploading The LED Wing Test Sketch

Now it’s finally time to open up the Arduino software. You’ll be presented with a window that looks a little something like this:

Lets upload a Blink sketch to make sure our new Peakduino UNO setup is totally functional. Go up to the File menu in Arduino, then copy and paste the code below.

/*
  LED Wing Test
  Turns on all LEDs on for 100 millisecond, then off for 100 millisecond, Sequentially and repeatedly.

  More information about your Peakduino UNO, check
  the documentation at http://duinopeak.com/content/getting-know-about-peakduino-uno-geek-plus-...

  This example code is in the public domain.

  modified 8 May 2016
  by Kevin Liu
 */
 
void setup() {
  // put your setup code here, to run once:
  for (int i = 0; i < A7; i++) {
    pinMode(i, OUTPUT);
    digitalWrite(i, LOW);
  }
}

void loop() {
  for (int i = 0; i < A7; i++)
  {
    digitalWrite(i, HIGH);
    delay(100);
  }

  for (int i = 0; i < A7; i++)
  {
    digitalWrite(i, LOW);
    delay(100);
  }
}

Before we can send the code over to the Peakduino UNO , there are a couple adjustments we need to make.

Select a Board

This step is required to tell the Arduino IDE which of the many Arduino boards we have. Go up to the Tools menu. Then hover over Board and make sure Arduino Uno is selected.

Board Selection

Select a Serial Port

Next up we need to tell the Arduino IDE which of our computer’s serial ports the Peakduino UNO is connected to. For this, again go up to Tools, then hover over Serial Port and select your Peakduino UNO’s COM port.

Port Selection

If you’ve got more than one port, and you’re not sure which of the serial ports is your RedBoard, unplug it for a moment and check the menu to see which one disappears.

Upload!

With all of those settings adjusted, you’re finally ready to upload some code! Click the Upload button (the right-pointing arrow) and allow the IDE some time to compile and upload your code. It should take around 10-20 seconds for the process to complete. When the code has uploaded, you should see something like this in your console window:

alt text

When everything done, you will see the effect below:

Something Wrong?

Uh oh! If you didn’t get a “Done Uploading” message, and instead got an error, there are a few things we can double-check.

If you got an avrdude: stk500_getsync(): not in sync: resp=0x00 error in your console window.

Upload error

Either your serial port or board may be incorrectly set. Again, make sure Arduino Uno is the board selection (under the “Tools > Board” menu). The serial port is usually the more common culprit here. Is the Serial Port correctly set (under the “Tools > Serial Port” menu)? Did the drivers successfully install? To double check your RedBoard’s serial port, look at the menu when the board is plugged in, then unplug it and look for the missing port. If none of the ports are missing, you may need to go back to driver installation.