2010年6月30日水曜日

Sensor 08 IR Receiver Breakout


This is a tutorial of How to use IR Receiver Breakout.

Requirement 

IR Receiver Breakout

Arduino

Arduino program

computer

Three wires

Something that can emit IR (Regular remote controller is fine)





Program

/* regular program for a circuit that use analog pin #0

to get a data from sensor.

*/ 


void setup(){

Serial.begin(9600); // Serial connection setup

}

void loop(){

Serial.println(analogRead(0)); //get data and send data

delay(100); // regulate a time

}




0 件のコメント:

コメントを投稿