WELCOME
wifi
pixelbar / 1337hacker
chat
pixelbar.herokuapp.com
TODAY
• Introductions
• Requirements
• How to hardware
• Let's hack!
• How to software
INTRO
• My name is David
• Member of this hackerspace
• Programmer for a living
• Please ask me questions,
or the person next to you
Code of conduct (aka anti harassment policy) at
https://nodeschool.io/rotterdam/
Download Node.js at https://nodejs.org/
and a code editor like Visual Studio Code at https://code.visualstudio.com
Espruino
ARDUINO
mini usb
microcontroller
digital pins
analog pins
ground pin
5V in/out
3.3V in/out
LEDs
magic smoke goes out,
but doesn't go in anymore :(
const { Led, Board } = require('johnny-five');
const board = new Board();
board.on('ready', onReady);
function onReady() {
// if no pin is specified as an argument it will fall back to the default
// pin which is the on-board LED
const led = new Led();
// This will grant access to the led instance
// from within the REPL that's created when
// running this program.
board.repl.inject({
led: led
});
led.blink();
// run led.stop() in the REPL for the LED to stop blinking
}
The workshop and all the code | https://github.com/pixelbar/nodebots-workshop |
The presentation of today | https://goo.gl/Wv2W6M |
Great presentation to learn the basics about electronics & soldering |
https://goo.gl/NzDbhr |
Another workshop you can do on your own (even without hardware!) | https://github.com/tableflip/ nodebot-workshop |
RESOURCES
NodeSchool Rotterdam #7 (Fabcity edition)
By David van Leeuwen
NodeSchool Rotterdam #7 (Fabcity edition)
- 547