ebook img

Programming the Intel Edison: Getting Started with Processing and Python PDF

305 Pages·2015·17.05 MB·English
Save to my drive
Quick download
Download
Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.

Preview Programming the Intel Edison: Getting Started with Processing and Python

About the Author Donald Norris has a degree in electrical engineering and an MBA specializing in production management. He is currently teaching undergrad and grad courses in the IT subject area at Southern New Hampshire University. He has also created and taught several robotics courses there. He has over 30 years of teaching experience as an adjunct professor at a variety of colleges and universities. Mr. Norris retired from civilian government service with the U.S. Navy, where he specialized in acoustics related to nuclear submarines and associated advanced digital signal processing. Since then, he has spent more than 20 years as a professional software developer using C, C#, C + +, Python, Node.js, and Java, as well as 5 years as a certified IT security consultant. Mr. Norris started a consultancy, Norris Embedded Software Solutions (dba NESS LLC), which specializes in developing application solutions using microprocessors and microcontrollers. He likes to think of himself as a perpetual hobbyist and geek and is always trying out new approaches and out-of-the-box experiments. He is a licensed private pilot, photography buff, amateur radio operator, avid runner, and, last but very important, a grandfather to a brand new baby girl—here’s to you, Evangeline. Copyright © 2016 by McGraw-Hill Education. All rights reserved. Except as permitted under the United States Copyright Act of 1976, no part of this publication may be reproduced or distributed in any form or by any means, or stored in a data base or retrieval system, without the prior written permission of the publisher. ISBN: 978-1-25-958789-4 MHID: 1-25-958789-4 The material in this eBook also appears in the print version of this title: ISBN: 978-1-25958833-4, MHID: 1-25-958833-5. eBook conversion by codeMantra Version 1.0 All trademarks are trademarks of their respective owners. Rather than put a trademark symbol after every occurrence of a trademarked name, we use names in an editorial fashion only, and to the benefit of the trademark owner, with no intention of infringement of the trademark. Where such designations appear in this book, they have been printed with initial caps. McGraw-Hill Education eBooks are available at special quantity discounts to use as premiums and sales promotions or for use in corporate training programs. To contact a representative, please visit the Contact Us page at www.mhprofessional.com. Information has been obtained by McGraw-Hill Education from sources believed to be reliable. However, because of the possibility of human or mechanical error by our sources, McGraw-Hill Education, or others, McGraw- Hill Education does not guarantee the accuracy, adequacy, or completeness of any information and is not responsible for any errors or omissions or the results obtained from the use of such information. TERMS OF USE This is a copyrighted work and McGraw-Hill Education and its licensors reserve all rights in and to the work. Use of this work is subject to these terms. Except as permitted under the Copyright Act of 1976 and the right to store and retrieve one copy of the work, you may not decompile, disassemble, reverse engineer, reproduce, modify, create derivative works based upon, transmit, distribute, disseminate, sell, publish or sublicense the work or any part of it without McGraw-Hill Education’s prior consent. You may use the work for your own noncommercial and personal use; any other use of the work is strictly prohibited. Your right to use the work may be terminated if you fail to comply with these terms. THE WORK IS PROVIDED “AS IS.” McGRAW-HILL EDUCATION AND ITS LICENSORS MAKE NO GUARANTEES OR WARRANTIES AS TO THE ACCURACY, ADEQUACY OR COMPLETENESS OF OR RESULTS TO BE OBTAINED FROM USING THE WORK, INCLUDING ANY INFORMATION THAT CAN BE ACCESSED THROUGH THE WORK VIA HYPERLINK OR OTHERWISE, AND EXPRESSLY DISCLAIM ANY WARRANTY, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. McGraw-Hill Education and its licensors do not warrant or guarantee that the functions contained in the work will meet your requirements or that its operation will be uninterrupted or error free. Neither McGraw-Hill Education nor its licensors shall be liable to you or anyone else for any inaccuracy, error or omission, regardless of cause, in the work or for any damages resulting therefrom. McGraw-Hill Education has no responsibility for the content of any information accessed through the work. Under no circumstances shall McGraw-Hill Education and/or its licensors be liable for any indirect, incidental, special, punitive, consequential or similar damages that result from the use of or inability to use the work, even if any of them has been advised of the possibility of such damages. This limitation of liability shall apply to any claim or cause whatsoever whether such claim or cause arises in contract, tort or otherwise. This book is dedicated to Linda Norris, who is a kind, loving, and generous person, and mother to Shauna, Heath, and Derek. She is also Mimi to grandchildren Hudson and Evangeline. CONTENTS AT A GLANCE 1 Introduction 2 Getting Started with the Intel Edison Arduino Board 3 Working with Processing and the Intel Arduino IDE 4 Edison-Controlled Robotic Car 5 Connecting to Edison Linux with the Command-Line Prompt 6 Debian Linux and Python Basics 7 Python Classes, Methods, and the libmraa Library 8 Hardware Interfaces 9 Web Server and Database 10 Wearables Index CONTENTS Preface 1 Introduction The Edison Computing Module Intel Arduino Development Board Intel Edison Breakout Board Sparkfun Block for Intel Edison–Console Summary 2 Getting Started with the Intel Edison Arduino Board Intel Edison Arduino IDE Powering the Arduino Development Board USB Communications Blink Sketch Modifying the Blink Sketch Summary 3 Working with Processing and the Intel Arduino IDE The Processing Language and the Intel Edison Arduino IDE Processing Language Basics Input and Output Statements Data Variables Average Voltage Measurement Sketch Switch Demo Sketch Mini-Servo Sketch Example Ping Sensor Sketch Summary 4 Edison-Controlled Robotic Car BOE-BOT Car How an Analog Servo Works Continuous Rotation (CR) Servos Servo1 Sketch Autonomous Operation Operating the Robot Car Summary 5 Connecting to Edison Linux with the Command-Line Prompt Intel Edison Breakout Board Setting Up Your First USB Communications Session FTDI Drivers Windows Drivers Connecting to the Client Computer Updating/Upgrading the Edison Firmware configure_edison Application Date and Time Web Server Python C/C++ Node.js Summary 6 Debian Linux and Python Basics How to Install the Debian Linux Distribution Step-by-Step Edison Debian Load Procedure WiFi Setup SSH Basic Python Python Help Data Types, Variables, and Constants User-Defined Functions Interpolated Sensor Measurements Summary 7 Python Classes, Methods, and the libmraa Library Basic OO Concepts The Class Installing the libmraa Library mraa Version Check Blink Program Servo Control Program CR Servo Control Program Analog Motor Control Program EMC Class Implementations Summary 8 Hardware Interfaces Serial Protocols UART Serial Protocol I2C Serial Protocol SPI Serial Protocol I2S Serial Protocol Parallel Protocols GPIO SD Card Interface Clock Outputs Summary 9 Web Server and Database LAMP Apache Web Server and the PHP Scripting Language MySQL Database Installation

Description:
Learn To Easily Create Robotic, IoT, and Wearable Electronic Gadgets!Get up-and-running building cutting-edge Edison devices with help from this DIY guide. Programming the Intel Edison: Getting Started with Processing and Python lays out the Edison’s powerful features and teaches the basics of Int
See more

The list of books you might like

Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.