IoT Prototyping Workshop: Robot building

Here are a bunch of videos that show how to add components to your project.

You are not limited to these components. There are other goodies in your NodeBot kit and even more in the community parts pile.

Servo Motors

Video

Servo motors are like tiny self-contained robots that want to one thing: move to a position and stay there. They’re the easiest way to make things flap or go back and fourth.


  • 00:20 - What you need & prerequisites
  • 02:08 - Attach cardboard arm to servo
  • 03:47 - Wire up the servo
  • 05:50 - Add code to sweep servo on button press
  • 06:50 - Demo moving servo from button
  • 07:12 - Use repl to move servo to 90 degrees

Source code

Motors with a dual H-bridge

Motors make things spin. Your creation can use this to move around or make things spin.

An H-bridge chip manages power, and controls your motor’s speed and direction.

Video


  • 00:20 - What you need & prerequisites
  • 02:06 - Wire up the H-bridge
  • 07:18 - Wire up the motors
  • 09:40 - Add H-bridge & motor code
  • 10:50 - Verify the motors work
  • 12:20 - How to implement steering

Source code

Photoresistor

Use a photoresistor to sense ambient light, like how dark it gets for your robot when it’s upside down.

Video


  • 0:22 - What you need & prerequisites
  • 1:04 - Build the circuit
  • 3:24 - Add code to sense light level
  • 4:54 - Verify & calibrate for sensing upside-down-ness
  • 6:10 - Demo

Source code

NeoPixels

NeoPixels are individually addressable RGB LEDs. Use them to make your robot produce sparkly rainbows, or display information in a cool way.

Video


  • 0:22 - What you need & prerequisites
  • 1:04 - Install nodebots-interchange
  • 2:30 - Install node-pixel firmata with nodebots-interchange
  • 3:44 - Install node-pixel library
  • 4:00 - Add code to change colors on button press
  • 6:04 - Wire up NeoPixels
  • 7:25 - Demo

Source code

What’s next?

You’re mostly on your own from here on out. Grab some parts from the community parts pile and follow an example on the Johnny-Five examples list. Use the resources you’ve learned about to build something cool.

Return to the workshop index.