User Tools

Site Tools


sensor

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
sensor [2011/10/17 22:20] 61.74.205.7sensor [2018/07/18 14:10] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +====== 스위치 ======
 +
 +디지털 4번에 pull up으로 버튼연결
 +
 +<code c>
 +int buttonPin = 4;
 +int ledPin = 13;
 +boolean value;
 +
 +void setup() {
 +  pinMode(buttonPin, INPUT);
 +  pinMode(ledPin, OUTPUT);      
 +}
 +
 +void loop() {
 +  value = digitalRead(buttonPin);
 +  if (value == HIGH) {
 +    digitalWrite(ledPin, HIGH);
 +  } else {
 +    digitalWrite(ledPin, LOW);
 +  }
 +}
 +</code>
 +
 +
 +====== CdS =====
 +
 +{{ http://i.imgur.com/MWuax.png }}
 +{{http://i.imgur.com/kedj4.png?500}}
 +
 +  * http://learn.adafruit.com/photocells/example-projects
 +  * http://www.adafruit.com/blog/2009/05/19/piezo-with-an-arduino-photoresistor/
 ====== 플렉스 센서 ====== ====== 플렉스 센서 ======
 FLEX-01 FLEX-01
Line 4: Line 36:
 {{ :bend.jpg?400 |}} {{ :bend.jpg?400 |}}
 {{ :flexs.gif?400 |}} {{ :flexs.gif?400 |}}
 +====== 온도 센서 ======
 +LM35
 +
 +http://www.national.com/ds/LM/LM35.pdf
 +
 +adafruit
 +http://www.ladyada.net/learn/sensors/tmp36.html
 +
 +캘리브레이션: http://www.arduino.cc/playground/Main/LM35HigherResolution
  
 ====== 적외선 센서 ====== ====== 적외선 센서 ======
Line 28: Line 69:
 ===== 미션 ===== ===== 미션 =====
 GP2YOA02에 스펙에 맞추어 캘리브레이션 하기! GP2YOA02에 스펙에 맞추어 캘리브레이션 하기!
- 
sensor.1318890023.txt.gz · Last modified: 2018/07/18 14:09 (external edit)