Making Robots with LEGO

Usually...

You can make robots,

It's good for you and your family

This is mostly about

LEGO and Arduino

Let me tell you a story...

"...But, how do I make it move?"

"...But, how to I

get rid of the wires?"

A detour through

hobby electronics...

Arduino

  • Small and cheap

  • Inputs and outputs

Diode

  • Directional

  • Forces current
    1-way

LED

  • Directional

  • Lights up

  • Use a resister!

Resistor

  • Non-directional

  • Limits flow of current

Transistor

  • Directional

  • Switches currents, large or small

Programming an Arduino

Firmata!

composer require carica/firmata

I you're using a Mac

(and a wired connection to the Arduino)

brew install php@5.6
git clone https://github.com/oasynnoum/phpmake_serialport.git
phpize
./configure --enable-Gorilla
make
make install
brew install php@5.6
git clone https://github.com/oasynnoum/phpmake_serialport.git
phpize
./configure --enable-Gorilla
make
make install

Demo time!

Demo time!

Making Robots with PHP (NomadPHP 2018)

By Christopher Pitt

Making Robots with PHP (NomadPHP 2018)

  • 1,430