Hands-On Robotics with JavaScript
| Learn |
|
|---|---|
| About |
There has been a rapid increase in the use of JavaScript in hardware and embedded device programming. JavaScript has an effective set of frameworks and libraries that support the robotics ecosystem. Hands-On Robotics with JavaScript starts with setting up an environment to program robots in JavaScript. Then, you will dive into building basic-level projects such as a line-following robot. You will walk through a series of projects that will teach you about the Johnny-Five library, and develop your skills with each project. As you make your way through the chapters, you’ll work on creating a blinking LED, before moving on to sensors and other more advanced concepts. You will then progress to building an advanced-level AI-enabled robot, connect their NodeBots to the internet, create a NodeBots Swarm, and explore MQTT. By the end of this book, you will have gained hands-on experience in building robots using JavaScript |
| Features |
|
| Page Count | 214 |
| Course Length | 6 hours 25 minutes |
| ISBN | 9781789342055 |
| Date Of Publication | 30 Aug 2018 |
| Technical requirements |
| Looking at the LED and LED.RGB API |
| PWM pins and GPIO expanders |
| Bringing in other node packages |
| The REPL – a powerful tool in Johnny-Five |
| Summary |
| Questions |
| Further reading |
| Technical requirements |
| More about motors |
| Preparing for a motor-driven project with Raspberry Pi |
| The Johnny-Five motor object |
| Troubleshooting your motorized projects |
| Project – cat toy |
| Project – using two gearbox motors and the motors object |
| Summary |
| Questions |
| Technical requirements |
| Differences between motors and servos |
| Getting a servo working with Johnny-Five |
| Project – two servos and the REPL |
| Project – light meter with the servo |
| Project – the continuous servo |
| Summary |
| Questions |
| Technical requirements |
| Why connect your NodeBots to the internet? |
| Getting weather data on our Pi with OpenWeatherMap |
| Building a weather dashboard with an LCD |
| Project – scraping data from websites with your Pi |
| Summary |
| Questions |
| Further reading |
| Technical requirements |
| IoT device communications |
| MQTT - an IoT PubSub protocol |
| Setting up MQTT on the Pi with AdafruitIO |
| Project – adding an LCD and button to see and send MQTT events |
| Project – social media notifier bot with IFTTT |
| Summary |
| Questions |
| Further reading |
| Technical requirements |
| Project – connecting multiple NodeBots |
| Expanding your NodeBots knowledge |
| Continuing on your NodeBots adventure |
| Summary |