2014年1月13日星期一

How to Choose Arduino: A Practical Guide to The Most Common Boards

BY ALEX CASTLE 
Arduino is, as I’ve written about before, a great hardware platform for anyone interested in building almost any sort of homebrew electronics project. One of the best things about it is that it’s undergoing constant innovation. There are dozens of different Arduino boards on the market, so you can find the perfect hardware for any kind of project you’re working on.
Unfortunately, that same huge selection of Arduino boards can make it hard for a beginner to get started with the platform. On the official site alone, there are almost 20 current- or last-gen Arduino boards listed, and there are dozens more unofficial boards for sale on other sites. Picking the one that's exactly what you need is daunting—especially if you're not familiar with the vocab used to describe the various microcontrollers and boards.
To help make the process a little easier, I'm going to look at the most common Arduino boards on the market right now, and I'll explain how to distinguish between them.

There are three broad ways to differentiate the various Arduino boards. The first is to look at the board’s processing capabilities—the microcontroller’s memory, clockspeed, and bandwidth. The processing hardware is generally entirely determined by which microcontroller chip the board uses, and constrains what kinds of software can run on that board.
The second way to differentiate between the boards is their feature set. This includes all the stuff on the board other than the microcontroller, such as input and output pins, built-in hardware like buttons and LEDs, and the interfaces available on the board (USB, Ethernet, etc).
Finally, because Arduino is meant to be built into physical projects, form factor is very important. Arduino comes a variety of shapes and sizes.
With all that out of the way, let’s look at the boards you're most likely to want to use in your project (as of June 2013). I’ll break down the distinguishing characteristics and features of each model, as well as what kind of project that board is best for.
  • Processor: ATmega328 (8-bit CPU, 16MHz clock speed, 2KB SRAM, 32KB flash storage)
  • Features: 14 digital I/O pins, 6 analog input pins, removable microcontroller
  • Form Factor: 2.7” x 2.1” rectangle
  • Price: $30
The Arduino Uno is the most “standard” Arduino board currently on the market, and is probably the best choice for beginners just getting started with the platform. The board is compatible with more shields (add-on boards) than other models. Additionally, the ATmega328 microcontroller can be removed from its socket and replaced for as little as $6, in case you break it somehow.
The Uno's main limitation is the ATmega328 chip, which doesn’t have a lot of SRAM or flash memory. That limits the kinds of programs you can load on the chip—if your project involves a display or otherwise needs to store and use any form of images or audio data, 2KB of memory probably isn’t going to be enough.

  • Processor: ATmega32u4 (8-bit CPU, 16MHz clock speed, 2.5KB SRAM, 32KB flash storage)
  • Features: 20 digital I/O pins, 12 of which can be used as analog inputs, native USB support
  • Form Factor: 2.7” x 2.1” rectangle
  • Price: $25
The Leonardo is, essentially, a slight upgrade to the Uno. It looks a lot like the Uno, but it features a soldered-on ATmega32u4 microprocessor with a tiny bit more memory. The main advantage of the AtMega32u4 isn’t the extra SRAM, though, it’s the chip's built-in USB compatibility. This allows the Leonardo to interface with a PC, which sees it as a generic mouse or keyboard. It also features a few extra analog input pins.
Most impressively? The Leonardo is actually cheaper than the Uno, at $25. Before you start hammering that “add to shopping cart” button, note that the general impression around the web seems to be that the Leonardo still has a few bugs that need ironing out, and isn’t quite as beginner friendly as the Uno. For builders already familiar with Arduino, this is the better deal.
  • Processor: Atmel SAM3X8E ARM Cortex-M3 (32 bit CPU, 84MHz clock speed, 96KB SRAM, 512KB flash storage)
  • Features: 54 digital I/O pins, 12 analog input pins, 2 analog output pins, native USB port
  • Form factor: 4” x 2.1” rectangle
  • Price: $50

One of the newest Arduino boards, the Due is the heavy-hitter of the family, packing a 32-bit ARM processor that handily outclasses any of the processors found in other Arduino boards. The Due is primarily for more complicated projects that can make use of its muscular processor, or that need more I/O pins than are found on the smaller Arduino boards. That said, the Due is substantially bigger and more expensive than the Uno or Leonardo, so consider whether you really need the extra power before making a purchase.
One drawback to the Due is that it operates at 3.3 volts, which is different than the 5 volts that most other Arduino boards operate at. That limits the add-on hardware that’s compatible with the Arduino Due—if an add-on board tries to send a 5 volt signal to the Due’s I/O pins, it could damage the microcontroller. If you need a powerful Arduino board that still operates at 5 volts, you can look at the $58 Arduino Mega 2560, but for the most purposes that board is outperformed by the cheaper Due.
  • Processor: ATmega32u4 (8-bit CPU, 16MHz clock speed, 2.5KB SRAM, 32KB flash storage)
  • Features: 20 digital I/O pins, 12 of which can be used as analog inputs, native USB support
  • Form Factor: 1.9” x 0.7” rectangle
  • Price: $27

For projects where size matters, there are a number of miniaturized boards to consider, including the Micro, Nano and Mini (and that’s just on the official Arduino site!). For most builders, the best choice is going to be the Arduino Micro, a new board that includes all of the power and functionality of a full-sized Arduino Leonardo board in a much smaller form factor.
Due to the small form factor, the Arduino Micro won’t work with many add-on boards, but it is designed to easily slot into a breadboard, for faster prototyping.

  • Processor: ATmega328 (8-bit CPU, 16MHz clock speed, 2KB SRAM, 32KB flash storage)
  • Features: 14 digital I/O pins, 6 analog input pins
  • Form Factor: 2” diameter circle
  • Price: $22

The LilyPad is an Arduino board specifically designed for wearable devices. Its circular shape and standoff-less I/O pins are designed to make it easy to sew the LilyPad into fabric-based projects.
The hardware on a standard LilyPad board is basically the same as on and Arduino Uno. There are a number of other LilyPad options available as well, including the are a number of LilyPad boards available, including the LilyPad Arduino USB, which feature’s the Leonardo’s ATmega32u4 chip, theLilyPad Arduino Simple, which has fewer I/O connections than the basic model, and the LilyPad Arduino SimpleSnap, which can be snapped into and out of projects, so they can be safely washed.
  • Processor: ATmega32u4 (8-bit CPU, 16MHz clock speed, 2.5KB SRAM, 32KB flash storage)
  • Features: Lots of built-in input and output hardware
  • Form Factor: 6.5” x 2.4” oval
  • Price: $60
The Esplora is an Arduino board (based on the Leonardo hardware) that comes with a whole bunch of I/O hardware soldered directly to the board. On the input side you get a joystick, four buttons, a linear potentiometer (slider), a microphone, a light sensor, a temperature sensor and a three-axis accelerometer. For outputs, you get a buzzer, an RGB led, and a TFT display connector to attach a LCD screen (not included).
The tradeoff is that you do not get the standard set of digital and analog I/O pins, which allow you to wire up all sorts of hardware to your Arduino board. That sharply limits the kinds of projects you can make. The Arduino Esplora is best for people who want to learn to use the Arduino software to write programs that have access to a basic toolbox of I/O sources, without having to worry about the electronics side of things.
  • Processor: ATmega32u4 (8-bit CPU, 16MHz clock speed, 2.5KB SRAM, 32KB flash storage), Atheros AR9331 system on a chip
  • Features: Wi-fi enabled Linux based system on a chip, 14 digital analog I/O pins, 12 of which can be used as analog inputs. Native USB.
  • Form Factor: ~2.7” x 2.1” rectangle
  • Price: $65, available at the end of June
Not available for sale until the end of June, the Yun is an attempt to make it easier to connect to cloud-based services from the Arduino platform. Typically, the low-bandwidth, low-memory microcontrollers have a hard time handling the verbose protocols used to access those services—to get around this limitation, the Yun features a separate Linux-based system-on-a chip on the motherboard. The Linux system takes care of the networking tasks, while you can use the ATmega32u4 like a standard Arduino Leonardo.
  • Processor: 2 x ATmega32u4 (8-bit CPU, 16MHz clock speed, 2.5KB SRAM, 32KB flash storage)
  • Features: Wheels, 8 analogue input pins,6 digital I/O pins, LCD screen
  • Form Factor: Two 7.5” diameter circles
  • Price: $275, on sale online at the end of July.
At the risk of stating the obvious, the Arduino Robot is an Arduino board that’s also a little robot. It’s actually composed of two separate boards (a control board and a motor board) that each feature the Leonardo’s ATmega32u4 processor. The bottom board has a pair of wheels, space for 4 batteries, and infrared sensors. The top board has an LCD screen, 4 buttons, a speaker, a compass chip and some LEDs.
Though it’s designed with room to add your own custom hardware, the Arduino Robot is still more preconfigured than most Arduino boards. If you want to build your own, custom robot, you’ll have a lot more flexibility using an Uno or a Leonardo, along with a motor control shield and whatever motors, servos and actuators you want to use.

没有评论:

发表评论