JavaScript & "Robots"

What do you want to build?

10.1.10.99:4000

Breakdown

  • Lights
  • Relays
  • Board
  • JavaScript Framework
  • Browser

Lights

Outputs

Relays

A physical switch we can control through code

How does a relay work?

Ideas for how to use relays...

Board: Arduino UNO

Microcontroller

Like frameworks

Shields

Like our libraries/modules/packages for hardware

JavaScript Framework

But first, why JavaScript?

Rick Waldron, author of Johnny-Five

Also...

Lots of different libraries

Browser as an input and output

How?

The inspiration


$("livingroom").bind("motion", function() {
  $(this).find("lights").brightness("75%").dimAfter("120s");
});
            

Browser

Inputs

Endless possibilities!

Let's dive into the code...

Let's code one right now


var five = require("johnny-five"),
  board, led;

board = new five.Board();

board.on("ready", function() {

  // Create a standard `led` hardware instance
  led = new five.Led({
    pin: 12
  });

  // "strobe" strobes the light
  led.strobe();

});
            
See also docs for johnny-five LED strobe

Beep-boop

Chasis, servos, and power

Our robot guest friend

Now What?

This list can also be found here.

Getting Started

From the talk

Inspirational things

Places to get things

People leading the charge

Stay in touch with HoustonJS for community events.