@kyungw00k	  
Topic	  •  Arduino	  •  node.js	  +	  Arduino	      –  Demo	  
자주	  쓰는	  API	  •  Digital	  I/O	      –  pinMode()	      –  digitalRead()	      –  digitalWrite()	  •  Analog	  I/O	     ...
Pros/Cons	  •  Pros	      –  (전자과 안나와도)	  쉽게 사용할 수 있다.	      –  Prototyping이 쉽다.	  •  Cons	      –  단가가 비싸다.	      –  부피가 ...
Let’s	  hook	  up	  with	  
Requirements	  •  SoKware	     –  node.js	     –  node-­‐arduino	         •  node-­‐serialport	  •  Hardware	     –  Any	 ...
node-­‐arduino	  •  Arduino	  Simple	  API	  Wrapper	     –  Using	  node-­‐serialport	     –  Lacks	  of	  API	  support	...
node-­‐arduino	  개선하기	                  digitalRead(7)	    Serial.println(	  digitalRead(	  Serial.read()	  )	  );	  
node-­‐arduino	  개선하기	         hRp://www.twitvid.com/HAGDJ	  	  	  
node-­‐arduino	  개선하기	  •  node-­‐arduino쪽	  read	  함수를 비동기화.	    –  Ex.	  digitalRead(	  7,	  funcZon(data)	  {}	  );	  •...
Arduino-­‐based	  RC	  Project	  
“아놔!	  나도!”	  
Demo	  hRp://www.twitvid.com/KJBWT	  	  
QuesZons?	  
61262128 when-arduino-met-node-js
61262128 when-arduino-met-node-js
61262128 when-arduino-met-node-js
61262128 when-arduino-met-node-js
61262128 when-arduino-met-node-js
61262128 when-arduino-met-node-js
61262128 when-arduino-met-node-js
61262128 when-arduino-met-node-js
61262128 when-arduino-met-node-js
61262128 when-arduino-met-node-js
61262128 when-arduino-met-node-js
61262128 when-arduino-met-node-js
61262128 when-arduino-met-node-js
61262128 when-arduino-met-node-js
Upcoming SlideShare
Loading in...5
×

61262128 when-arduino-met-node-js

6,964

Published on

Published in: Technology, Business
0 Comments
3 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
6,964
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
13
Comments
0
Likes
3
Embeds 0
No embeds

No notes for slide

61262128 when-arduino-met-node-js

  1. 1. @kyungw00k  
  2. 2. Topic  •  Arduino  •  node.js  +  Arduino   –  Demo  
  3. 3. 자주  쓰는  API  •  Digital  I/O   –  pinMode()   –  digitalRead()   –  digitalWrite()  •  Analog  I/O   –  analogRead()   –  analogWrite()  
  4. 4. Pros/Cons  •  Pros   –  (전자과 안나와도)  쉽게 사용할 수 있다.   –  Prototyping이 쉽다.  •  Cons   –  단가가 비싸다.   –  부피가 크다.  
  5. 5. Let’s  hook  up  with  
  6. 6. Requirements  •  SoKware   –  node.js   –  node-­‐arduino   •  node-­‐serialport  •  Hardware   –  Any  Arduino  Board  
  7. 7. node-­‐arduino  •  Arduino  Simple  API  Wrapper   –  Using  node-­‐serialport   –  Lacks  of  API  support     –  Can’t  use  digital/analog  Read!  WTF!!!  
  8. 8. node-­‐arduino  개선하기   digitalRead(7)   Serial.println(  digitalRead(  Serial.read()  )  );  
  9. 9. node-­‐arduino  개선하기   hRp://www.twitvid.com/HAGDJ      
  10. 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. 11. Arduino-­‐based  RC  Project  
  12. 12. “아놔!  나도!”  
  13. 13. Demo  hRp://www.twitvid.com/KJBWT    
  14. 14. QuesZons?  
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×