Contents

 About the Authors

 About the Technical Reviewer

 Acknowledgments

 Introduction

images Chapter 1: Arduino 1.0.4 Core Changes

Changes to the Arduino IDE

Changes to Sketches

API Updates

pinMode

Return Types

uint_8

Arduino API Core 1.0.4

Arduino.h

Updated Serial Object

Updated Stream Class

Print

New Printable Class

Updated String Library

Wire Library Updates

HardwareSerial Updates

Physical Board Updates and USB Compatibility

Avrdude Update

The New Arduino Leonardo Board

Board Variants

Uploader Options Renamed to Programmers

New Bootloaders

USB Firmware for 16u2

Summary

images Chapter 2: Arduino Development and Social Coding

Components of Social Coding and Project Management

What Is a Project and How Is It Organized?

Overview of Version Control

Overview of Issue Tracking

Documentation

Project Management for Social Coding

Version Control with Git and GitHub

What Is Git?

Installing Git

GitHub Tools

Version Control, Basic Workflow

Creating Your Own Project

Editing Code and Checking for Changes

Work process

Workflow Summary: Creating Your Own Project

Workflow Summary: Forking Another Project

Creating a Pull Request

Creating a Pull Request

How To Merge a Pull Request

What is issue management?

Issue management with Github

Connecting Version Control with Issue Management

Documentation

Github wiki

Creating Pages

Using Markdown

Contributing to Arduino Development

Forking Your Own Copy of Arduino

How to build the Arduino IDE from source

Community Resources

Summary

images Chapter 3: openFrameworks and Arduino

Getting Started

Arduino Code

Verifying the Code

Arduino Serial Functions

openFrameworks Setup

Connecting to the Arduino from openFrameworks

Verifying the Code

openFrameworks Serial Functions

Coding Once Using Firmata and ofArduino

Setting Up Firmata

Controlling the Arduino with openFrameworks

Verifying the Code

Key Constants Used by ofArduino

ofArduino Reference of Class Functions

Expanding on the Idea

Changing Code

Verifying the Code

More Ideas to Work With

Summary

images Chapter 4: Android ADK

Android Devices

What to Check For

Known Working Devices

Modding

Arduino IDE Setup

Android Application Creation

The Arduino Sketch

The Android ADK Application

Completing the Framework

Completing the Application

Arduino

Verifying the Code

SPI and ADK

Summary

images Chapter 5: XBees

Buying XBees

Simple Setup

Transparent (AT Command) Mode

Module Configuration

Arduino Setup

Verifying the Code

API Mode

Module Configuration

API Packet Construction

Sending Commands

Sending Data

Request Packets

Reply Packets

Arduino Data Echo

Endpoint Firmware

Summary

images Chapter 6: Simulating Sensors

Analog Sensors

Analog Sensor Reader

RC Low-Pass Filter

Verifying the Code

Resistor Ladder

Verifying the Code

Digital Sensors

PWM

Gray Code

Serial Sensors

Outputting Serial Data

Verifying the Code

I2C

The TWCR Register

The TWAR Register

The TWDR Register

The TWSR Register

Outputting I2C Data

Verifying the Code

Summary

images Chapter 7: PID Controllers

The Mathematics

The Proportional Statement

The Integral Statement

The Derivative Statement

Adding It All Up

Time

PID Controller Setup

Wiring the Hardware

Verifying the Code

PID Tuner

Comparing PID, DEAD BAND, and ON/OFF Controllers

PID Can Control

Tuning

PID Library

PID Library Functions

Other Resources

Summary

images Chapter 8: Android Sensor Networks

Setting Up a Sensor Network

openFrameworks

The Arduino

The Android Application

Summary

images Chapter 9: Using Arduino with PIC32 and ATtiny Atmel Chips

Arduino and Nonstandard Environments

The MPIDE and chipKIT PIC32

Example: Object Detection using the Task Manager service

Arduino Support for the ATtiny Family

ATtiny 85/45/25

ATtiny 84/44/24

ATtiny 4313 and 2313

Using the Arduino as an ISP Programmer

Project: Secret Knock Box

What the Device Does

Bill of Materials

Summary

images Chapter 10: Multiprocessing: Linking the Arduino for More Power

I2C

Serial Peripheral Interface

Connecting Two Devices

Setting Up a Master SPI Device

Verifying the Code

Interrupting Vectors

SPI by the Registers

Verifying the Code

Multiple Slaves

Master in Register

Verifying the Code

Symmetric Architecture Bipolar Bus

SABB by the Code

Verifying the Code

Connecting SABB to SPI

Conversion to Mega

Physical Best Practices

Summary

images Chapter 11: Game Development with Arduino

Games Suitable for the Arduino

A Simple Game

Proof of Concept

Coding Stop It

Verifying the Code

Dirty Little Tricks,

Adding Better Displays and Graphics

Gameduino Library

A New Stop It

Art

Coding Stack It

Verifying the Code

Making Sounds

Adding a Bit of Splash

Programming the Game to Play Itself

The Finishing Polish

Arcade and Game Resources

Summary

images Chapter 12: Writing Your Own Arduino Libraries

What you need to know to write your own libraries

Creating a simple library

Making a Motor Library

The anatomy of an Arduino library folder

Examples Folder

License

keywords.txt

Installing Arduino Libraries

Using Arduino Libraries

Arduino Objects and Library Conventions

Summary

images Chapter 13: Arduino Test Suite

Installing the Arduino Test Suite

Getting Started with Testing

Arduino Test Result Format

Test Result Section Format Details

Arduino Test Suite Basic Functions

ATS_begin

ATS_PrintTestStatus

ATS_end

Using the Basic Functions

Arduino Test Suite Built-In Tests

Strategies for Testing Your Own Arduino Derivative

Memory Testing

Example: Testing for a Memory Leak

Testing Libraries

SPI.transfer() Test

setBitOrder() Test

setClockDivider() Test

setDataMode() Test

SPI Test Results

Summary

Index

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset