Pro Arduino By Rick Anderson; Dan Cervo

Download Pro Arduino By Rick Anderson; Dan Cervo PDF




Pro Arduino By Rick Anderson; Dan Cervo
Pro Arduino By Rick Anderson; Dan Cervo





Information The Book :



Title: Pro Arduino.
Size: 22 MB
Year: 2013.
Edition: 1
Pages: 305.
Language: English
Author: Rick Anderson and Dan Cervo


About The Book:


Generally, Arduino books are good. They usually show what one can do with a particular function then go on with clear, easy to understand explanations and code. This, together with the great programming system and simple architecture has made Arduino famous. Writing to impress and baffling with unexplained detail is not usually an aspect of this hobby.

Not so this book. If you want to be impressed with the vastly superior knowledge of the two authors, you’ve got the right book. If being baffled with technicality and bitsy code fragments, this is for you.

To be sure, the book warns you that you need a basic knowledge of Arduino and coding but there are some (read many!) authors of Arduino books who are able to put across complex ideas very simply and show you how to make them work. These guys aren’t two of them.

If you want an idea of what you can do with an Arduino and you prefer getting you detail circuits and code off the net, then this book is probably ideal for you. Otherwise, there are many other VERY good books out there on the subject.



Book Content :


 Project 1: LED Light Bar

About the Authors
About the Technical Reviewer 
Acknowledgments 
Introduction 

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 
vii 
¦ CONTENTS


Uploader Options Renamed to Programmers 
New Bootloaders 
USB Firmware for 16u2 
Summary


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
viii 
¦ CONTENTS


Contributing to Arduino Development 
Forking Your Own Copy of Arduino 
How to build the Arduino IDE from source
Community Resources 
Summary


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


Chapter 4: Android ADK  

Android Devices 
What to Check For 

 
¦ CONTENTS


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 


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 


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 


Chapter 7: PID Controllers      

The Mathematics 
The Proportional statement
The Integral Statement 
The Derivative Statement 
Adding It All Up 
Time 



¦ CONTENTS


PID Controller Setup 
Wiring the code
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 


Chapter 8: Android Sensor Networks     

Setting Up a Sensor Network 
openFrameworks 
The Arduino 
The Android Application 
Summary 


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 


¦ CONTENTS


Project: Secret Knock Box 
What the Device Does 
Bill of Materials 
Summary 


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 


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, 

¦ CONTENTS


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 


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 

Chapter 13: Arduino Test Suite     

Installing the Arduino Test Suite 
Getting Started with Testing 
Arduino Test Result Format 
Test Result Section Format Details 


¦ CONTENTS


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 




Post a Comment

0 Comments