Learning JavaScript Robotics
暫譯: 學習 JavaScript 機器人技術

Kassandra Perch

  • 出版商: Packt Publishing
  • 出版日期: 2015-11-25
  • 售價: $1,450
  • 貴賓價: 9.5$1,378
  • 語言: 英文
  • 頁數: 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)和事件 API 來用 JavaScript 編寫機器人程式碼
- 通過將您的 JavaScript 程式設計的機器人連接到互聯網,並使用外部數據和 API,開啟一個充滿激動人心的可能性世界
- 將您的專案程式碼從 Arduino Uno 移動到多種其他機器人平台

本書適合誰
如果您之前有使用過 Arduino,或是對電子學感到陌生並希望嘗試用 JavaScript 編寫程式,那麼這本書適合您!對 JavaScript 和 Node.js 的基本知識將幫助您充分利用本書。

您將學到什麼
- 熟悉 Johnny-Five 的讀取、評估和列印迴圈(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。