Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
Hands-On Robotics with JavaScript

You're reading from   Hands-On Robotics with JavaScript Build robotic projects using Johnny-Five and control hardware with JavaScript and Raspberry Pi

Arrow left icon
Product type Paperback
Published in Aug 2018
Publisher Packt
ISBN-13 9781789342055
Length 214 pages
Edition 1st Edition
Languages
Concepts
Arrow right icon
Author (1):
Arrow left icon
Kassandra Perch Kassandra Perch
Author Profile Icon Kassandra Perch
Kassandra Perch
Arrow right icon
View More author details
Toc

Table of Contents (19) Chapters Close

Title Page
Dedication
Packt Upsell
Contributors
Preface
1. Setting Up Your Development Environment 2. Creating Your First Johnny-Five Project FREE CHAPTER 3. Building Interactive Projects with RGB LED 4. Bringing in Input with Buttons 5. Using a Light Sensor to Create a Night-Light 6. Using Motors to Move Your Project 7. Using Servos for Measured Movement 8. The Animation Library 9. Getting the Information You Need 10. Using MQTT to Talk to Things on the Internet 11. Building a NodeBots Swarm 1. Assessments 2. Other Books You May Enjoy Index

Wiring up an LED


Now that we've gone through the documentation and figured out what goes where, we can start assembling our Raspberry Pi project. You'll need your Raspberry Pi, Pi Cobbler, two breadboard wires, an LED (doesn't matter what color), and a 300-ohm resistor.

Putting together and attaching the cobbler

In order to make sure the cobbler is seated correctly, you'll want to make sure that the ribbon cable points outward from the Raspberry Pi when placed on the GPIO pins, and that the little tab on the side of the connector faces the right way in the cobbler itself (this is usually ensured by a plastic wall around the pins that the ribbon cable plugs into; make sure that you check that it's lined up before applying too much pressure!). 

You'll want to seat the cobbler on a breadboard that's at least half sized, though I tend to prefer full size for Raspberry Pi projects. Make sure the two rows of pins on the cobbler are on opposite sides of the groove down the center of the breadboard...

Visually different images
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.
Hands-On Robotics with JavaScript
You have been reading a chapter from
Hands-On Robotics with JavaScript
Published in: Aug 2018
Publisher: Packt
ISBN-13: 9781789342055
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime
Visually different images
Modal Close icon
Modal Close icon