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:15] 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 10: Line 51:
 {{ http://u-shopping.net/data/cheditor/1107/024.gif?300 |}} {{ http://u-shopping.net/data/cheditor/1107/024.gif?300 |}}
  
-캘리브레이션: 출처+캘리브레이션: 참고출처 
 http://luckylarry.co.uk/arduino-projects/arduino-using-a-sharp-ir-sensor-for-distance-calculation/ http://luckylarry.co.uk/arduino-projects/arduino-using-a-sharp-ir-sensor-for-distance-calculation/
  
-{{{+<code c>
 int IRpin = 1;                                    // analog pin for reading the IR sensor int IRpin = 1;                                    // analog pin for reading the IR sensor
 void setup() { void setup() {
Line 24: Line 65:
   delay(100);                                     // arbitary wait time.   delay(100);                                     // arbitary wait time.
 } }
-}}}+</code> 
 + 
 +===== 미션 ===== 
 +GP2YOA02에 스펙에 맞추어 캘리브레이션 하기!
sensor.1318889717.txt.gz · Last modified: 2018/07/18 14:09 (external edit)