Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Learning Javascript Robotics
  • Table Of Contents Toc
Learning Javascript Robotics

Learning Javascript Robotics

By : Kassandra Perch
4.3 (6)
close
close
Learning Javascript Robotics

Learning Javascript Robotics

4.3 (6)
By: Kassandra Perch

Overview of this book

There has been a rapid rise in the use of JavaScript in recent times in a variety of applications, and JavaScript robotics has seen a rise in popularity too. Johnny-Five is a framework that gives NodeBots a consistent API and platform across several hardware systems. This book walks you through basic robotics projects including the physical hardware builds and the JavaScript code for them. You'll delve into the concepts of Johnny-Five and JS robotics. You'll learn about various components such as Digital GPIO pins, PWM output pins, Sensors, servos, and motors to be used with Johnny-Five along with some advanced components such as I2C, and SPI. You will learn to connect your Johnny-Five robots to internet services and other NodeBots to form networks. By the end of this book, you will have explored the benefits of the Johnny-Five framework and the many devices it unlocks.
Table of Contents (11 chapters)
close
close
10
Index

Exploring I2C devices


We touched on I2C devices back in Chapter 4, Using Specialized Output Devices—you may have used an I2C LCD to display some data. You may have noticed that the I2C LCD was much easier to wire up, and had the same API as the non-I2C LCD. Luckily, this is because Johnny-Five strives to give every component a similar API, regardless of its implementation or protocol. But how does I2C work, and what makes it a useful protocol?

How I2C works

I2C, which stands for Inter-Integrated Circuit, is a protocol that input and output components can use to communicate with microcontrollers. It's very standardized, and nearly all I2C devices operate in the same way. I2C also has the major benefit of being recognized and implemented by many major microcontroller manufacturers—including Arduino. Any Arduino platform that is compatible with Johnny-Five is also compatible with I2C devices.

However, implementing an I2C device in Johnny-Five can be a tricky proposition. To understand why, we...

CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Learning Javascript Robotics
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon