Learning JavaScript Robotics

Kassandra Perch

  • 出版商: Packt Publishing
  • 出版日期: 2015-11-25
  • 售價: $1,440
  • 貴賓價: 9.5$1,368
  • 語言: 英文
  • 頁數: 128
  • 裝訂: Paperback
  • ISBN: 1785883348
  • ISBN-13: 9781785883347
  • 相關分類: JavaScript機器人製作 Robots
  • 海外代購書籍(需單獨結帳)

相關主題

商品描述

Design, build, and program your own remarkable robots with JavaScript and open source hardware

About This Book

  • Learn how to leverage Johnny-Five's Read, Eval, Print Loop, and Event API to write robot code with JavaScript
  • Unlock a world of exciting possibilities by hooking your JavaScript-programmed robots up to the internet and using external data and APIs
  • Move your project code from the Arduino Uno to a multitude of other robotics platforms

Who This Book Is For

If you've worked with Arduino before or are new to electronics and would like to try writing sketches in JavaScript, then this book is for you! Basic knowledge of JavaScript and Node.js will help you get the most out of this book.

What You Will Learn

  • Familiarise yourself with Johnny-Five Read, Eval, and Print Loop (REPL) to modify and debug robotics code in real time
  • Build robots with basic output devices to create projects that light up, make noise, and more
  • Create projects with complex output devices, and employ the Johnny-Five API to simplify the use of components that require complex interfaces, such as I2C
  • Make use of sensors and input devices to allow your robotics projects to survey the world around them and accept input from users
  • Use the Sensor and Motor objects to make it much easier to move your robotics projects
  • Learn about the Animation API that will allow you to program complex movements using timing and key frames
  • Bring in other devices to your Johnny-Five projects, such as USB devices and remotes
  • Connect your Johnny-Five projects to external APIs and create your own Internet of Things!

In Detail

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.

Style and approach

This step-by-step guide to the Johnny-Five ecosystem is explained in a conversational style, packed with examples and tips. Each chapter also explores the Johnny-Five documentation to enable you to start exploring the API on your own.

商品描述(中文翻譯)

設計、建構和程式化您自己的令人驚嘆的機器人,使用JavaScript和開源硬體

關於本書
- 學習如何利用Johnny-Five的Read、Eval、Print Loop和Event API,使用JavaScript編寫機器人程式碼
- 通過將您的JavaScript編程機器人連接到互聯網並使用外部數據和API,開啟一個令人興奮的可能性世界
- 將您的項目代碼從Arduino Uno移植到多種其他機器人平台

本書適合對Arduino有經驗或對電子學新手,並希望嘗試使用JavaScript編寫程式的讀者!基本的JavaScript和Node.js知識將幫助您充分利用本書。

您將學到什麼
- 熟悉Johnny-Five的Read、Eval和Print Loop(REPL),以實時修改和調試機器人程式碼
- 使用基本輸出設備構建機器人,創建能發光、發聲等項目
- 使用Johnny-Five API創建具有複雜輸出設備的項目,並簡化需要複雜接口(如I2C)的元件的使用
- 利用傳感器和輸入設備,使您的機器人項目能夠調查周圍的世界並接受用戶輸入
- 使用Sensor和Motor對象,使移動機器人項目更加容易
- 了解動畫API,使用時間和關鍵幀編程複雜的運動
- 將其他設備引入到您的Johnny-Five項目中,例如USB設備和遙控器
- 將您的Johnny-Five項目連接到外部API,創建自己的物聯網!

詳細內容
近年來,JavaScript在各種應用中的使用迅速增加,JavaScript機器人技術也越來越受歡迎。Johnny-Five是一個框架,為NodeBots提供了一個跨多個硬體系統的一致API和平台。

本書將引導您進入基本的機器人項目,包括物理硬體構建和JavaScript程式碼。您將深入研究Johnny-Five和JS機器人的概念。

您將學習各種組件,例如數字GPIO引腳、PWM輸出引腳、傳感器、伺服馬達和馬達,以及與Johnny-Five一起使用的一些高級組件,例如I2C和SPI。您將學習將您的Johnny-Five機器人連接到互聯網服務和其他NodeBots,以形成網絡。通過本書的學習,您將探索Johnny-Five框架的優勢和它所解鎖的許多設備。

風格和方法
本書以對話方式解釋了Johnny-Five生態系統的逐步指南,並提供了豐富的示例和技巧。每章還探索了Johnny-Five文檔,讓您能夠自行開始探索API。