Cover image for
Title:
Arduino in action / Martin Evans, Joshua Noble, Jordan Hochenbaum.
Author:
Evans, Martin.

Noble, Joshua J., 1977-

Hochenbaum, Jordan.
Publication Information:
Shelter Island, NY : Manning Publications Co., [2013]
Call Number:
TJ223.P76 E93 2013
ISBN:
9781617290244
Physical Description:
xxii, 346 pages : illustrations ; 24 cm
General Note:
Includes index.
Contents:
Machine generated contents note: pt. 1 Getting started -- 1.Hello Arduino -- 1.1.A brief history of the Arduino -- 1.2.The Arduino hardware -- Arduino Uno -- Arduino Duemilanove -- Arduino Ethernet -- Arduino Mega -- Other Arduino boards -- Attack of the clones -- Getting an Arduino -- 1.3.Setting up your working environment -- Software for Arduino -- Basic hardware setup -- Your Arduino toolbox -- 1.4.Make something happen! -- Your first blinking LED -- Sketch to make an LED blink -- Connecting everything -- Uploading and testing -- 1.5.Touring the IDE -- The main editor -- Serial monitor -- Catching errors -- Process -- 1.6.Anatomy of a sketch -- A routine called setup -- The endless loop -- 1.7.Commenting code -- 1.8.Summary -- 2.Digital input and output -- 2.1.Getting started -- Using a breadboard -- Circuit diagram -- Adding the LEDs -- Connecting the hardware -- Sketch to flash five LEDs -- Upload and test -- 2.2.Gaining control -- Circuit diagram -- Connections -- Interrupts butting in -- Sketch to control the LEDs with a push button -- Upload and test -- Time for a break -- Upload and test -- 2.3.Reaction tester -- Circuit diagram -- Connections -- Sketch to test reaction speed -- Upload and test -- 2.4.Reactometer: Who really has the fastest reaction time? -- Sketch to measure reaction speed -- Upload and test -- 2.5.Summary -- 3.Simple projects: input and output -- 3.1.Time to get analog -- What's the difference between analog and digital? -- Reading a potentiometer -- Connecting the hardware -- Sketch to read a potentiometer -- Upload and test -- 3.2.A piezoelectric transducer -- The circuit diagram -- Connecting the hardware -- Sketch to measure output from a piezoelectric transducer -- Upload and test -- Circuit with added speaker -- Connecting the hardware -- Sketch to generate a tone -- Upload and test -- 3.3.Making a pentatonic or five-tone keyboard -- Circuit diagram -- Connecting the hardware -- Sketch to create a pentatonic keyboard -- Upload and test -- 3.4.Summary -- pt. 2 Putting Arduino to work -- 4.A Extending Arduino -- 4.1.Extending the Arduino with libraries -- 4.2.Core library -- 4.3.Standard libraries -- Test-driven development with ArduinoTestSuite -- Storing values using EEPROM -- Storing more data with SD -- Get connected with Ethernet -- Serial communication with Firmata -- Displaying data using the LiquidCrystal library -- Controlling a servo motor -- Turning a stepper motor -- Communicating with SPI peripherals -- Communicating with the two-wire interface -- Get more serial ports with SoftwareSerial -- 4.4.Contributed libraries -- Installing a new library -- 4.5.Expanding the Arduino with shields -- Common shields -- Gotchas: will it work with my Arduino? -- 4.6.Summary -- 5.Arduino in motion -- 5.1.Getting up to speed with DC motors -- Stopping and starting -- Sketch to turn a small DC motor on and off -- Connecting the hardware -- Upload and test -- 5.2.Speed control and reverse -- PWM to the rescue -- The H-bridge for motor control -- The L293D dual H driver -- Connecting the hardware -- Sketch to control a motor with an L293D -- Upload and test -- Changing motor speed -- Upload and test -- 5.3.Stepper motors: one step at a time -- Unipolar or bipolar -- Connecting the hardware -- Stepper motor library functions -- Sketch to control a stepper motor -- Upload and test -- 5.4.Try not to get in a flap with servomotors -- Controlling a servomotor -- Servomotor functions and methods -- Sketch to control a servomotor -- Connecting the hardware -- Upload and test -- 5.5.Mighty power comes in small packages with brushless DC motors -- Why go brushless -- Gaining control -- Sketch to control a brushless motor -- Connecting the hardware -- Upload and test -- Reverse -- Sketch to reverse a brushless motor -- Connecting the hardware -- Upload and test -- 5.6.The motor control shield for more motors -- 5.7.Summary -- 6.Object detection -- 6.1.Object detection with ultrasound -- Choosing an ultrasonic sensor -- Three wires or four -- Sketches for ultrasonic object finding -- Connecting the hardware -- Upload and test -- 6.2.Infrared for range finding -- Infrared and ultrasound together -- The Sharp GP2D12 range finder -- Nonlinear algorithm for calculating distance -- Sketch for range finding -- Connecting the hardware -- Upload and test -- 6.3.Passive infrared to detect movement -- Using the Parallax PIR sensor -- Sketch for infrared motion detection -- Connecting the hardware -- Upload and test -- 6.4.Summary -- 7.LCD displays -- 7.1.Introduction to LCDs -- String variables: String type vs. char type -- 7.2.Parallel character LCDs: the Hitachi HD44780 -- 4-bit or 8-bit? -- Library and functions -- Circuit diagram -- Connecting everything up in 4-bit mode -- Sketch for writing-to the Hitachi HD44780 -- Upload and test -- 7.3.Serial LCD weather station -- Serial vs. parallel LCDs -- SerLGD library and functions -- The Maxim IC DS18B20 temperature sensor -- OneWire and Dallas Temperature libraries -- Circuit diagram -- Connecting everything up -- Sketch for an LCD weather station -- Upload and test -- 7.4.Graphic LCDs: the Samsung KS0108 GLCD -- Library and functions -- Circuit diagram -- Connecting everything up -- Sketch for drawing to a GLCD -- Upload and test -- 7.5.Summary -- 8.Communications -- 8.1.Ethernet -- The Ethernet library -- Ethernet Shield with SD data card -- 8.2.Arduino web server -- Setting up the server -- Sketch for creating a web server -- Upload and test -- Troubleshooting -- 8.3.Tweet tweet: talking to Twitter -- Of Twitter and tokens -- Libraries and functions -- Circuit diagram and connecting the hardware -- Sketch for the Twitter button-press tweeter -- Upload and test -- 8.4.Wi-Fi -- Arduino Wifi Shield -- WiFi library and functions -- Gestures: wireless accelerometers -- Connecting the hardware -- Sketch for Bluetooth communication -- Upload and test -- 8.5.Bluetooth wireless -- ArduinoBT -- Adding Bluetooth -- Establishing a Bluetooth connection -- Sketch for Bluetooth communication -- 8.6.Serial peripheral interface (SPI) -- SPI library -- SPI devices and digital potentiometers -- Circuit diagram and connecting the hardware -- Sketch for a digital LED dimmer -- 8.7.Datalogging -- Types of memory -- SD cards and SD library -- Sketch for an SD card sensor logger -- 8.8.Cosm -- Sign up for an account and get an API key -- Creating a new data feed -- Sketch for Cosm sensor logging -- Upload and test -- 8.9.Summary -- 9.Game on -- 9.1.Nintendo Wii salutes you -- Wii Nunchuk -- Nunchuk connections -- Wii will talk -- Wii will test -- 9.2.Release the Xbox -- Getting connected -- USB Host library -- Learning about the Xbox controller using the USB Host Shield -- Xbox reporting for duty -- Let's boot it -- Interfacing with code -- Xboxhid.ino -- Hardware connections and testing -- 9.3.Summary -- 10.Integrating the Arduino with iOS -- 10.1.Connecting your device to the Arduino -- The Redpark serial cable -- The final connection -- 10.2.iOS code -- Creating a single-view application in Xcode -- Writing the code -- 10.3.The Arduino gets involved -- Sketch to switch LED from iOS device -- Testing the sketch -- 10.4.Doing more with Xcode -- Adding a Slider control -- 10.5.Arduino sliding -- Arduino slider circuit -- Testing the circuit -- 10.6.Moving data to the iOS device -- Xcode coding -- The GP2D12 IR distance sensor -- Testing -- 10.7.Summary -- 11.Making wearables -- 11.1.Introducing the LilyPad -- LilyPad accessories -- Conductive thread and fabric -- 11.2.Creating a turn-signal jacket -- 11.3.Creating a wearable piano -- 11.4.The Arduino Pro Mini -- 11.5.Creating a smart headphone -- 11.6.Creating a jacket with a compass -- 11.7.Summary -- 12.Adding shields -- 12.1.shield basics -- 12.2.The Adafruit motor shield -- The AFMotor library -- Using the motor shield with a stepper motor -- Using the motor shield with a DC motor -- Getting a motor shield -- 12.3.Creating your own shield -- Memory -- Leve shifters -- The SD card holder -- Connecting the SD card to the Arduino -- Preparing theperfboard -- Testing the shield -- 12.4.Summary -- 13.Software integration -- 13.1.The serial channel -- 13.2.Servos for face tracking -- Assembling the face-tracking hardware -- Code for face-tracking -- 13.3.Using Firmata to create an equalizer -- Using Firmata in your application -- Audio analysis in Processing -- Assembling the equalizer hardware -- Code for the equalizer -- 13.4.Using Pure Data to create a synthesizer -- Assembling the synthesizer hardware -- Code for the synthesizer -- 13.5.Using Python to monitor temperatures -- The Serial library in Python -- Assembling the thermometer hardware -- Code for monitoring temperatures -- 13.6.Summary.
Personal Author:
Copies: