• Complain

Backstop Media - Make: JavaScript Robotics: Building NodeBots with Johnny-Five, Raspberry Pi, Arduino, and BeagleBone

Here you can read online Backstop Media - Make: JavaScript Robotics: Building NodeBots with Johnny-Five, Raspberry Pi, Arduino, and BeagleBone full text of the book (entire story) in english for free. Download pdf and epub, get meaning, cover and reviews about this ebook. year: 2015, publisher: Maker Media, genre: Home and family. Description of the work, (preface) as well as reviews are available. Best literature library LitArk.com created for fans of good reading and offers a wide selection of genres:

Romance novel Science fiction Adventure Detective Science History Home and family Prose Art Politics Computer Non-fiction Religion Business Children Humor

Choose a favorite category and find really read worthwhile books. Enjoy immersion in the world of imagination, feel the emotions of the characters or learn something new for yourself, make an fascinating discovery.

Backstop Media Make: JavaScript Robotics: Building NodeBots with Johnny-Five, Raspberry Pi, Arduino, and BeagleBone
  • Book:
    Make: JavaScript Robotics: Building NodeBots with Johnny-Five, Raspberry Pi, Arduino, and BeagleBone
  • Author:
  • Publisher:
    Maker Media
  • Genre:
  • Year:
    2015
  • Rating:
    5 / 5
  • Favourites:
    Add to favourites
  • Your mark:
    • 100
    • 1
    • 2
    • 3
    • 4
    • 5

Make: JavaScript Robotics: Building NodeBots with Johnny-Five, Raspberry Pi, Arduino, and BeagleBone: summary, description and annotation

We offer to read an annotation, description, summary or preface (depends on what the author of the book "Make: JavaScript Robotics: Building NodeBots with Johnny-Five, Raspberry Pi, Arduino, and BeagleBone" wrote himself). If you haven't found the necessary information about the book — write in the comments, we will try to find it.

JavaScript Robotics is on the rise. Rick Waldron, the lead author of this book and creator of the Johnny-Five platform, is at the forefront of this movement. Johnny-Five is an open source JavaScript Arduino programming framework for robotics. This book brings together fifteen innovative programmers, each creating a unique Johnny-Five robot step-by-step, and offering tips and tricks along the way. Experience with JavaScript is a prerequisite.

Backstop Media: author's other books


Who wrote Make: JavaScript Robotics: Building NodeBots with Johnny-Five, Raspberry Pi, Arduino, and BeagleBone? Find out the surname, the name of the author of the book and a list of all author's works by series.

Make: JavaScript Robotics: Building NodeBots with Johnny-Five, Raspberry Pi, Arduino, and BeagleBone — read online for free the complete book (whole text) full work

Below is the text of the book, divided by pages. System saving the place of the last page read, allows you to conveniently read the book "Make: JavaScript Robotics: Building NodeBots with Johnny-Five, Raspberry Pi, Arduino, and BeagleBone" online for free, without having to search again every time where you left off. Put a bookmark, and you can go to the page where you finished reading at any time.

Light

Font size:

Reset

Interval:

Bookmark:

Make
Make: JavaScript Robotics

Rick Waldron, Anna Gerber, David Resseguie, Emily Rose, Susan Hinton, Sara Gorecki, Bryan Hughes, Andrew Fisher, Julian David Duque, Pawel Szymczykowski, Donovan Buck, Jonathan Beri, Kassandra Perch, Raquel Vlez, Lyza Danger Gardner

Make: JavaScript Robotics

by Backstop Media and Rick Waldron

Copyright 2015 Backstop Media, LLC. All rights reserved.

Printed in Canada.

Published by Maker Media, Inc. , 1160 Battery Street East, Suite 125, San Francisco, California 94111.

Maker Media books may be purchased for educational, business, or sales promotional use. Online editions are also available for most titles (http://my.safaribooksonline.com). For more information, contact our distributors corporate/institutional sales department: 800-998-9938 or .

  • Editor: Brian Jepson
  • Production Editor: Melanie Yarbrough
  • Copyeditor: Tracy Brown Hamilton
  • Proofreader: Jasmine Kwityn
  • Indexer: Meghan Jones, WordCo Indexing
  • Interior Designer: David Futato
  • Cover Designer: Brian Jepson
  • Cover Photographer: Pawel Szymczykowski
  • Illustrator: Rebecca Demarest
  • April 2015: First Edition
Revision History for the First Edition
  • 2015-04-03: First Release

See http://oreilly.com/catalog/errata.csp?isbn=9781457186950 for release details.

The Make logo and Maker Media logo are registered trademarks of Maker Media, Inc. Make: JavaScript Robotics and related trade dress are trademarks of Maker Media, Inc.

Many of the designations used by manufacturers and sellers to distinguish their products are claimed as trademarks. Where those designations appear in this book, and Maker Media, Inc., was aware of a trademark claim, the designations have been printed in caps or initial caps.

While every precaution has been taken in preparation of this book, the publisher and author assume no responsibility for errors or omissions, or for damages resulting from the use of the information contained herein.

978-1-4571-8695-0

[TI]

Preface

By Rick Waldron

I love programming and I also love making things. When I discovered Chris Williams node-serialport module (for Node.js), I remember thinking, Now I can program the things that I make. So I did! I contributed an Arduino sketch that printed a photoresistor sensor value to the open serial port and a small JavaScript handler program that listened for data and printed a graph to the terminal. Months later, I started contributing to Cam Pedersens duino project, until Julian Gaultier approached me with his JavaScript implementation of the Firmata protocol. From there, we set out to build a collection of high-level component classes with one goal: to make it easy and fun to control hardware with JavaScript. This book will show you what we built and how to use it to program the things that you make.

While the physical challenges of engineering a hardware project remain the same as they would for a project programmed in any other language, this book is going to show you how to think about that hardware in terms of objects that maintain state and provide control behaviors in the form of intuitively designed interfaces.

So, how would you verbally describe adding an LED to a project and then turning it on? You might say, Connect the LED to ground and pin 9, then turn it on. Using the Johnny-Five framework, that would be written as:

// Connect the LED to ground and pin 9varled=newfive.Led(9);// then turn it onled.on();

What about connecting a servo and then setting its horn to a specific angle in degrees? Attach the servo to pin 10 and position its horn to 110. Heres what that looks like:

// Attach the servo to pin 10varservo=newfive.Servo(10);// position its horn to 110servo.to(110);

These examples both illustrate an output, but what about input? Consider how Arduino sketches work: they generally rely on a program loop and often introduce some form of delay when reading and processing input. This means that your Arduino sketch is blocked whenever it is waiting for input. When writing programs in JavaScript, the process is never blocked; instead, your handlers wait for data to arrive and process it asynchronously:

varsensor=newfive.Sensor("A0");sensor.on("data",function(){console.log(this.value);});

These are trivial examples, but they illustrate the patterns that you will see repeated consistently throughout this book. Each project will show you how to construct it in the physical sense, then construct it in the abstract programming sense, and the latter will align with the former.

With these concepts, you will build and program:

  • Walkers, typers, swimmers, and rovers (Chapters )
  • A dancing hexapod ()
  • Voice-activated relay control ()
  • An indoor sundial ()
  • Holiday, mood, or anytime lighting (Chapters )
  • A security and notification system ()
  • Sonar-based artificial intelligence ()
  • A delta bot ()
  • Musical shoes ()

For me, the most exciting part about this book is the authors themselves. This group is an excellent representation of NodeBots community members that have stood out since the very beginning. They are more than just writers or engineers: they are teachers, communicators, leaders, and (in my opinion) heroes. It would be an understatement to say that I couldnt have done it without them.

Enough talk, more rock. These projects do not have to be done in any specific order, so take a look at the Table of Contents, find a project that sounds like fun, and start building!

Conventions Used in This Book

The following typographical conventions are used in this book:

Italic
Indicates new terms, URLs, email addresses, filenames, and file extensions.
Constant width
Used for program listings, as well as within paragraphs to refer to program elements such as variable or function names, databases, data types, environment variables, statements, and keywords.
Constant width bold
Shows commands or other text that should be typed literally by the user.
Constant width italic
Shows text that should be replaced with user-supplied values or by values determined by context.

This element signifies a tip, suggestion, or general note.



This element indicates a warning or caution.


The part numbers in each chapter use the following abbreviations:

  • MS: Maker Shed
  • AZ: Amazon
  • AF: Adafruit
  • SF: SparkFun
Using Code Examples

This book is here to help you get your job done. In general, you may use the code in this book in your programs and documentation. You do not need to contact us for permission unless youre reproducing a significant portion of the code. For example, writing a program that uses several chunks of code from this book does not require permission. Selling or distributing a CD-ROM of examples from Make: books does require permission. Answering a question by citing this book and quoting example code does not require permission. Incorporating a significant amount of example code from this book into your products documentation does require permission.

Next page
Light

Font size:

Reset

Interval:

Bookmark:

Make

Similar books «Make: JavaScript Robotics: Building NodeBots with Johnny-Five, Raspberry Pi, Arduino, and BeagleBone»

Look at similar books to Make: JavaScript Robotics: Building NodeBots with Johnny-Five, Raspberry Pi, Arduino, and BeagleBone. We have selected literature similar in name and meaning in the hope of providing readers with more options to find new, interesting, not yet read works.


Reviews about «Make: JavaScript Robotics: Building NodeBots with Johnny-Five, Raspberry Pi, Arduino, and BeagleBone»

Discussion, reviews of the book Make: JavaScript Robotics: Building NodeBots with Johnny-Five, Raspberry Pi, Arduino, and BeagleBone and just readers' own opinions. Leave your comments, write what you think about the work, its meaning or the main characters. Specify what exactly you liked and what you didn't like, and why you think so.