• Complain

Lyza Danger Gardner - JavaScript on Things: Hardware for Web Developers

Here you can read online Lyza Danger Gardner - JavaScript on Things: Hardware for Web Developers full text of the book (entire story) in english for free. Download pdf and epub, get meaning, cover and reviews about this ebook. year: 2018, publisher: Manning Publications, 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.

Lyza Danger Gardner JavaScript on Things: Hardware for Web Developers
  • Book:
    JavaScript on Things: Hardware for Web Developers
  • Author:
  • Publisher:
    Manning Publications
  • Genre:
  • Year:
    2018
  • Rating:
    3 / 5
  • Favourites:
    Add to favourites
  • Your mark:
    • 60
    • 1
    • 2
    • 3
    • 4
    • 5

JavaScript on Things: Hardware for Web Developers: summary, description and annotation

We offer to read an annotation, description, summary or preface (depends on what the author of the book "JavaScript on Things: Hardware for Web Developers" wrote himself). If you haven't found the necessary information about the book — write in the comments, we will try to find it.

Summary

JavaScript on Things is your first step into the exciting and downright entertaining world of programming for small electronics. If you know enough JavaScript to hack a website together, youll be making things go bleep, blink, and spin faster than you can say nodebot.

Purchase of the print book includes a free eBook in PDF, Kindle, and ePub formats from Manning Publications.

About the Technology

Are you ready to make things move? If you can build a web app, you can create robots, weather stations, and other funky gadgets! In this incredibly fun, project-based guide, JavaScript hardware hacker Lyza Danger Gardner takes you on an incredible journey from your first flashing LED through atmospheric sensors, motorized rovers, Bluetooth doorbells, and more. With JavaScript, some easy-to-get hardware, and a bit of creativity, youll be beeping, spinning, and glowing in no time.

About the Book

JavaScript on Things introduces the exciting world of programming small electronics! Youll start building things immediately, beginning with basic blinking on Arduino. This fully illustrated, hands-on book surveys JavaScript toolkits like Johnny-Five along with platforms including Raspberry Pi, Tessel, and BeagleBone. As you build project after interesting project, youll learn to wire in sensors, hook up motors, transmit data, and handle user input. So be warned: once you start, you wont want to stop.

Whats Inside

  • Controlling hardware with JavaScripti
  • Designing and assembling robots and gadgets
  • A crash course in electronics
  • Over a dozen hands-on projects!

About the Reader

Written for readers with intermediate JavaScript and Node.js skills. No experience with electronics required.

About the Author

Lyza Danger Gardner has been a web developer for over 20 years. Shes part of the NodeBots community and a contributor to the Johnny-Five Node.js library.

Table of Contents

PART 1 - A JAVASCRIPTERS INTRODUCTION TO HARDWARE
  1. Bringing JavaScript and hardware together
  2. Embarking on hardware with Arduino
  3. How to build circuits
PART 2 - PROJECT BASICS: INPUT AND OUTPUT WITH JOHNNY-FIVE
  1. Sensors and input
  2. Output: making things happen
  3. Output: making things move
PART 3 - MORE SOPHISTICATED PROJECTS
  1. Serial communication
  2. Projects without wires
  3. Building your own thing
PART 4 - USING JAVASCRIPT WITH HARDWARE IN OTHER ENVIRONMENTS
  1. JavaScript and constrained hardware
  2. Building with Node.js and tiny computers
  3. In the cloud, in the browser, and beyond

Lyza Danger Gardner: author's other books


Who wrote JavaScript on Things: Hardware for Web Developers? Find out the surname, the name of the author of the book and a list of all author's works by series.

JavaScript on Things: Hardware for Web Developers — 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 "JavaScript on Things: Hardware for Web Developers" 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
JavaScript on Things: Hacking hardware for web developers
Lyza Danger Gardner

JavaScript on Things Hardware for Web Developers - image 1

Copyright

For online information and ordering of this and other Manning books, please visit www.manning.com. The publisher offers discounts on this book when ordered in quantity. For more information, please contact

Special Sales Department Manning Publications Co. 20 Baldwin Road PO Box 761 Shelter Island, NY 11964 Email: orders@manning.com

2018 by Manning Publications Co. All rights reserved.

No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form or by means electronic, mechanical, photocopying, or otherwise, without prior written permission of the publisher.

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

Picture 2 Recognizing the importance of preserving what has been written, it is Mannings policy to have the books we publish printed on acid-free paper, and we exert our best efforts to that end. Recognizing also our responsibility to conserve the resources of our planet, Manning books are printed on paper that is at least 15 percent recycled and processed without the use of elemental chlorine.

Picture 3Manning Publications Co.20 Baldwin RoadPO Box 761Shelter Island, NY 11964
Developmental editor: Susanna KlineReview editor: Ivan MartinovicProject editor: Kevin SullivanCopyeditor: Andy CarrollProofreader: Melody DolabTypesetter: Gordan SalinovicCover designer: Leslie HaimesCover and interior illustrations: Lyza Danger Gardner

ISBN 9781617293863

Printed in the United States of America

1 2 3 4 5 6 7 8 9 10 EBM 23 22 21 20 19 18

Brief Table of Contents
Table of Contents
Preface

On a late summer day in 2013, I stood on a stage in a large tent on the grounds of Bletchley Park in England, the site where British codebreakers (famously including Alan Turing) defeated the Enigma machine in World War II. It was one of the better days of my life, as two fundamentally wonderful things had just happened.

First, Id just somehow managed to win a hacking contest (thats why I was onstage). The National Museum of Computingalso located on the grounds of Bletchley Parkwas seeking tech help in creating web-based, interactive timeline exhibits. Id stayed up through the night, extending an open source JavaScript library and building a prototype: this was my entry, which was, to my great delight, declared best in show. The second wonderful thing was that Id won a prizeand not just any prize.

The reward I received was one of the original Arduino Uno starter kitsan Arduino board, a collection of electronic components, and an instructional book. It profoundly changed my life. Id later find that combining my newly learned electronics skills with the stuff I did every daycoding open source, standards-based websites and appsresulted in one of the most fascinating alchemies Id ever experienced: JavaScript on Things. That is, I could use the JavaScript I already knew as a turbo boost to electronics hacking and the internet of things (IoT).

That came later, however. Initially, I learned how to construct simple electronic circuits by working through the examples in the kits book and, later, avidly searching the web to learn more. I learned how to apply logical control to these circuits by programming the Arduino Unos microcontroller, writing simple sketches (programs) in Arduinos (very) C/C++-like language, optimized for the boards (very) limited program space and memory.

And then, at the end of 2013, I discovered Johnny-Five. The open source Node.js framework was young at the time, but already powerful. Instead of writing lower-level, constrained Arduino code, I could write higher-level JavaScript programs to control my Uno. I thought, Wow, if Id only discovered this earlier.

The combination of JavaScript and microcontrollers isnt just a parlor trick, performed for the sake of coating the entire known world with JavaScript. At first, even I, a Node.js adherent, was skeptical: maybe this is pointless; maybe it will never take root.

Dont worry. Its not, and it did.

Adding JavaScript into the mix perversely simplified my experience, and made prototyping little projects much, much faster. I could use development workflows that were more familiar to me as a web developer. I didnt have to concern myself as much with lower-level memory and resource optimization. Johnny-Fives encapsulation of behavior into high-level component classes is intuitive: the resulting code can be cleaner and easier to work with than many Arduino libraries. And it allowed me to take advantage of the almost fathomless depths of the worldwide Node.js ecosystem via npm. I could simply import modules, just like any other Node.js script out there. It was wonderful.

I want to be very clear: theres nothing wrong with Arduino or more traditional C-based microcontroller programming. There are very good reasons to care about memory management, for example, especially if youre writing firmware or making production devices. And Arduino is rather a miracle: its entire raison dtre is to make embedded electronics accessible to novices. Starting from scratch with Arduino and the Arduino programming language is a perfectly reasonable, surmountable approach.

But JavaScript can help web developers get up to speed with electronics faster. For one thing, introductory materials for Arduino (and other platforms) often assume no pre-existing knowledge of programming whatsoever, which means you may end up wading through explanations of what an array is and how loops work. The finicky constraints and particulars of microcontrollers can be distracting when youre just learning how things work. IDEs can be clunky. In some cases, you can end up spending a lot of time getting things configured and not much time making things actually happen. JavaScript has the power to abstract much of this away, letting you focus on the essential new things you need to learn.

From that notion, this book arose: the idea that JavaScript can serve as a gateway to electronics, making it easier for more people to learn how to make cool stuff with a minimum of cognitive pain. JavaScript is the most popular programming language in the world, the de facto language of the web; and the internet of things and maker culture is tantalizing both creatively and commercially. Why not make a happy blend of the two?

At the end of the day, this stuff is fun. Its a kick to be able to dream up and make real your own inventions. Its confidence-lifting to have a basic competency with low-voltage electronic circuits, and to understand how embedded systems work in the real world.

Maybe youll really love this like I do. Maybe youll help contribute to open source projects. Maybe youll construct a wildly clever gadget. Maybe youll teach other people what youve learned.

Perhaps youll simply have fun. That, on its own, is more than enough.

Acknowledgments

My gratitude starts right where my love of hardware hacking began: with the Over the Air conference crew and The National Museum of Computing (UK), whence my initial Arduino Starter Kit originated. None of this would have happened without that serendipitous event. Dan Appelquist, Margaret Gold, and Matthew Cashmorethank you for creating such a superb conference and inviting me to it, more than once, even!

Next page
Light

Font size:

Reset

Interval:

Bookmark:

Make

Similar books «JavaScript on Things: Hardware for Web Developers»

Look at similar books to JavaScript on Things: Hardware for Web Developers. 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 «JavaScript on Things: Hardware for Web Developers»

Discussion, reviews of the book JavaScript on Things: Hardware for Web Developers 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.