61262128 when-arduino-met-node-js
Upcoming SlideShare
Loading in...5
×
 

Like this? Share it with your network

Share

61262128 when-arduino-met-node-js

on

  • 7,316 views

 

Statistics

Views

Total Views
7,316
Views on SlideShare
1,857
Embed Views
5,459

Actions

Likes
3
Downloads
12
Comments
0

7 Embeds 5,459

http://frends.kr 5440
http://localhost 9
http://blog.frends.kr 5
http://playground.frends.kr 2
http://qna.frends.kr 1
http://translate.googleusercontent.com 1
http://180.67.206.12 1
More...

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

61262128 when-arduino-met-node-js Presentation Transcript

  • 1. @kyungw00k  
  • 2. Topic  •  Arduino  •  node.js  +  Arduino   –  Demo  
  • 3. 자주  쓰는  API  •  Digital  I/O   –  pinMode()   –  digitalRead()   –  digitalWrite()  •  Analog  I/O   –  analogRead()   –  analogWrite()  
  • 4. Pros/Cons  •  Pros   –  (전자과 안나와도)  쉽게 사용할 수 있다.   –  Prototyping이 쉽다.  •  Cons   –  단가가 비싸다.   –  부피가 크다.  
  • 5. Let’s  hook  up  with  
  • 6. Requirements  •  SoKware   –  node.js   –  node-­‐arduino   •  node-­‐serialport  •  Hardware   –  Any  Arduino  Board  
  • 7. node-­‐arduino  •  Arduino  Simple  API  Wrapper   –  Using  node-­‐serialport   –  Lacks  of  API  support     –  Can’t  use  digital/analog  Read!  WTF!!!  
  • 8. node-­‐arduino  개선하기   digitalRead(7)   Serial.println(  digitalRead(  Serial.read()  )  );  
  • 9. node-­‐arduino  개선하기   hRp://www.twitvid.com/HAGDJ      
  • 10. node-­‐arduino  개선하기  •  node-­‐arduino쪽  read  함수를 비동기화.   –  Ex.  digitalRead(  7,  funcZon(data)  {}  );  •  Read한 값에  Pin  값 실어 보내기   –  long이  4byte인걸 감안해  pin값을 상위  2byte, 읽 은 값을 하위  2byte에 실어  node로 전송한다.  •  hRp://github.com/kyungw00k/node-­‐arduino    
  • 11. Arduino-­‐based  RC  Project  
  • 12. “아놔!  나도!”  
  • 13. Demo  hRp://www.twitvid.com/KJBWT    
  • 14. QuesZons?