Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Node Bots!

Avatar for Rakesh Pai Rakesh Pai
October 19, 2012

Node Bots!

Raspberry Pi + Node.js + Arduino + Web Server + WebSockets + SVG = Oh My! Node running on moving hardware!

Avatar for Rakesh Pai

Rakesh Pai

October 19, 2012
Tweet

More Decks by Rakesh Pai

Other Decks in Programming

Transcript

  1. THOSE EXTERNAL PINS ARE ENTICING! github.com/rakeshpai/pi-gpio v a r g

    p i o = r e q u i r e ( " p i - g p i o " ) ; g p i o . o p e n ( 1 6 , " o u t p u t " , f u n c t i o n ( e r r ) { g p i o . w r i t e ( 1 6 , 1 , f u n c t i o n ( ) { g p i o . c l o s e ( 1 6 ) ; } ) ; } ) ;
  2. PI-MOTOR github.com/rakeshpai/pi-motor v a r M o t o r

    = r e q u i r e ( " p i - m o t o r " ) ; v a r m = n e w M o t o r ( 7 , 1 1 ) ; m . c l o c k w i s e ( f u n c t i o n ( e r r ) { m . c o u n t e r c l o c k w i s e ( f u n c t i o n ( e r r ) { m . s t o p ( ) ; } ) ; } ) ;
  3. TALKING TO THE ARDUINO Small firmware on the Arduino in

    C Talk to it over USB using Huge thanks to Chris Williams! github.com/voodootikigod/node-serialport