Make Action 2016, Elektronika

[ Pobierz całość w formacie PDF ]
//-->Make:ActionMovement, Light, and Sound withArduino and Raspberry PiSimon MonkTechnology & Engineering / RoboticsMake:ActionBeginning with the basics and moving gradually to greater challenges, thisbook takes you step-by-step through experiments and projects that showyou how to make your Arduino or Raspberry Pi create and control movement,light, and sound. In other words: action!The Arduino is a simple microcontroller with an easy-to-learn programmingenvironment, while the Raspberry Pi is a tiny Linux-based computer. Thisbook clearly explains the differences between the Arduino and Raspberry Pi,when to use them, and to which purposes each are best suited.Using these widely available and inexpensive platforms, you'll learn to controlLEDs, motors of various types, solenoids, AC (alternating current) devices,heaters, coolers, displays, and sound. You’ll even discover how to monitorand control these devices over the Internet. Working with solderlessbreadboards, you’ll get up and running quickly, learning how to make projectsthat are as fun as they are informative.InMake: Action,you'll learn to:»»»»»»»Build a can crusher using a linear actuator with your ArduinoHave an Arduino water your plantsBuild a personal traffic signal using LEDsMake a random balloon popper with ArduinoCool down your beverages with a thermostatic drink cooler you build yourselfUnderstand and use the PID control algorithmUse Raspberry Pi to create a puppet dance party that moves to your tweets!Learn how to control mechanisms and systems, and then jump into theInternet of Things (IoT) to connect with today's newest technology.Hello, World? Hello,Universe!US $34.99 CAN $40.99ISBN: 978-1-4571-8779-7Make: ActionMovement, Light, and Sound withArduino and Raspberry PiSimon MonkMake: Actionby Simon MonkCopyright © 2016 Simon Monk. All rights reserved.Printed in the United States of America.Published by Maker Media, Inc., 1160 Battery Street East, Suite 125, San Francisco, CA 94111.Maker Media books may be purchased for educational, business, or sales promotional use. Online edi-tions are also available for most titles (http://safaribooksonline.com).For more information, contactO’Reilly Media’s institutional sales department: 800-998-9938 orcorporate@oreilly.com.Editor:Roger StewartProduction Editor:Nicole ShelbyCopyeditor:Jasmine KwitynProofreader:Kim CoferIndexer:Ellen TroutmanInterior Designer:David FutatoCover Designer:Karen MontgomeryIllustrator:Rebecca DemarestJanuary 2016:First EditionRevision History for the First Edition2016-02-02: First ReleaseSeehttp://oreilly.com/catalog/errata.csp?isbn=9781457187797for release details.Make:, Maker Shed, and Maker Faire are registered trademarks of Maker Media, Inc. The Maker Medialogo is a trademark of Maker Media, Inc.Make: Actionand related trade dress are trademarks of MakerMedia, Inc.Many of the designations used by manufacturers and sellers to distinguish their products are claimedas trademarks. Where those designations appear in this book, and Maker Media, Inc. was aware of atrademark claim, the designations have been printed in caps or initial caps.While every precaution has been taken in the preparation of this book, the publisher and authorsassume no responsibility for errors or omissions, or for damages resulting from the use of the informa-tion contained herein.978-1-457-18779-7[TC]Table of Contents1.Introduction. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1Arduino and Pi. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1Raspberry Pi. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1Arduino. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3Choosing a Device: Arduino or Pi?. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4Alternatives. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5Summary. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62.Arduino. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9What Is an Arduino?. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9Installing the Arduino IDE. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11Uploading a Sketch. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13The Book Code. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14Programming Guide. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14Setup and Loop. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15Variables. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15Digital Outputs. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16Digital Inputs. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16Analog Inputs. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18Analog Outputs. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19iii [ Pobierz całość w formacie PDF ]

  • zanotowane.pl
  • doc.pisz.pl
  • pdf.pisz.pl
  • mement.xlx.pl
  •