?? ????????? ?? ???? ???????? ????? ???? ????? ??? ???? ?? ????? ???? ????
Arduino ???? ??? ????? ?????? ??? ???? ?? TV-? Remote ???? ???? Control ???? ???? ?????? ???? Light/Fan?
?? ???? ????????
???? Arduino Board
???? IR (Infrared) sensor
?? Output ?? ???? 5V ?? Relay
?? ?????? ??? ?????? Basic Controlling? ???? ?????? ??????? ??? ??? ????? ?????? ???? ????? ?? ??? ?????
?????? ????? ???? ?? ???? ???? Remote ?? IR Sender Frequency ?????? ???? ???? ?? ???? Design ??????? IR receiver ?????? ????
??? ?? ????? Code Upload ?????
void
setup(){
Serial.begin(9600);
}
void
loop() {
if
(irrecv.decode(&results)) {
Serial.println(results.value, HEX);
irrecv.resume();
}
}
??? ?? ????? Code ? ??? ???? ?????? ????? ???????????? Number ????? ???? ?????? Device ????? Remote ?? ??? ??? ?? Program Condition ?????? ??? ???? ??? Program ???? ????? ?????? ?????? ???????? ??? ????? ??? ???? ??????
int RECV_PIN = 11;
int ledPin = 10;
boolean ledState = LOW;
IRrecv irrecv(RECV_PIN);
decode_results results;
void setup(){
Serial.begin(9600);
irrecv.enableIRIn();
pinMode(ledPin,OUTPUT);
}
void loop() {
if (irrecv.decode(&results)) {
Serial.println(results.value, HEX);
if(results.value == 0xFD00FF){
ledState = !ledState;
digitalWrite(ledPin,ledState);
}
irrecv.resume();
}
}
?? ?????? ??? ??? LED ???????? ????? ??? ?????? Relay ???????? ???? 220V Controll ??? ?????
?? Program Use ???? ??? Library ?? ??????? ???? Click To Download
Library ?????? Upload ???? ??...
???? ????? ??? Proteus File... http://workitbd.com/Remote control project.PDF
?? Device ?????? ???? ??? ?????? ??? ????? ??????? ???? ??????
???? Facebook ID : https://www.facebook.com/Kandyari
?? ???? ????? ??? ?? ???? ?? ??? ??????... ????? ??? ?? ?????? ??... ???? ???? ??? ????? ?? ????...