HOW TO CONTROL 4WD ROBOT SMART CAR USING IR REMOTE WITH ARDUINO

แชร์
ฝัง
  • เผยแพร่เมื่อ 10 พ.ย. 2024

ความคิดเห็น • 31

  • @cristinaborghi5183
    @cristinaborghi5183 5 ปีที่แล้ว +6

    when i compile the program it says 'IRrecv' does not name a type please can clarify that

  • @johnpaulpineda9821
    @johnpaulpineda9821 3 ปีที่แล้ว

    Thank You! so much @MYTECTUTOR . Your video tutorial is a big help to me.

  • @BilgiSebili
    @BilgiSebili 5 ปีที่แล้ว +1

    Hi there; I have one question : What "error: 'RECV_PIN' was not declared in this scope"

    • @mytectutor
      @mytectutor  5 ปีที่แล้ว +1

      Check the initialization part of your code and make sure you have declared the pin number for the output of the IR receiver.

    • @BilgiSebili
      @BilgiSebili 5 ปีที่แล้ว +1

      @@mytectutor Problem Solved. Thank you very much. Problem is "One word mistake" IRrecv "IRecv"
      This code RUNNING :) Thanks

    • @BilgiSebili
      @BilgiSebili 5 ปีที่แล้ว +1

      #include
      int RECV_PIN = 3; //Kızılötesi alıcısı
      #define code1 16718055 // kumanda 2 nolu tuş
      #define code2 16730805 // kumanda 8 nolu tuş
      #define code3 16734885 // kumanda 6 nolu tuş
      #define code4 16716015 // kumanda 4 nolu tuş
      #define code5 16726215 // kumanda 5 nolu tuş
      IRrecv irrecv(RECV_PIN);
      decode_results results;
      void setup()
      {

      irrecv.enableIRIn(); //Kızılötesi modülünü aç.
      pinMode(13, OUTPUT);
      pinMode(12, OUTPUT);
      pinMode(11, OUTPUT);
      pinMode(10, OUTPUT);
      }
      void loop() {
      if (irrecv.decode(&results)) {
      unsigned int value = results.value;
      switch(value) {
      case code1: //ileri tuşu 2 nolu buton
      digitalWrite(13,HIGH);
      digitalWrite(12,LOW);
      digitalWrite(11,LOW);
      digitalWrite(10,HIGH);
      break;
      case code2: //geri tuşu 8 nolu buton
      digitalWrite(13,LOW);
      digitalWrite(12,HIGH);
      digitalWrite(11,HIGH);
      digitalWrite(10,LOW);
      break;
      case code3: //sağ tuşu 6 nolu buton
      digitalWrite(13,HIGH);
      digitalWrite(12,HIGH);
      digitalWrite(11,HIGH);
      digitalWrite(10,LOW);
      break;
      case code4: //sol tuşu 4 nolu buton
      digitalWrite(13,HIGH);
      digitalWrite(12,LOW);
      digitalWrite(11,LOW);
      digitalWrite(10,LOW);
      break;
      case code5: //durdur tuşu 5 nolu buton
      digitalWrite(13,LOW);
      digitalWrite(12,LOW);
      digitalWrite(11,LOW);
      digitalWrite(10,LOW);
      break;
      }
      irrecv.resume(); // sonraki komutları algıla
      }
      }

  • @jackbrian5237
    @jackbrian5237 6 ปีที่แล้ว +1

    Nice explanation sir

  • @jeannickumba8561
    @jeannickumba8561 6 ปีที่แล้ว +2

    well done Mr

  • @BlueSpirit_YT
    @BlueSpirit_YT 3 ปีที่แล้ว

    Hi I really want to make a this project I made everything but when I upload the code Arduino ide is saying that irremote.h file or library not found.i have already installed irremote but I tried to install irremote.h but in library there is no file like irremote.h please tell me what to do

  • @kiyimbaedward1655
    @kiyimbaedward1655 6 ปีที่แล้ว +1

    its so interesting brother

  • @log1855
    @log1855 4 ปีที่แล้ว

    How to get information about code of different remote

  • @poonamkaushik3574
    @poonamkaushik3574 6 ปีที่แล้ว

    U helped me out

  • @abhilashpanicker4041
    @abhilashpanicker4041 5 ปีที่แล้ว +3

    Where is the coding

  • @ericgeorge1797
    @ericgeorge1797 2 ปีที่แล้ว

    thx

  • @nasergrshi7854
    @nasergrshi7854 5 ปีที่แล้ว +3

    code plaese

  • @Dogukan449
    @Dogukan449 6 ปีที่แล้ว

    nice project

    • @mytectutor
      @mytectutor  6 ปีที่แล้ว

      Thanks...pliz don't forget to subscribe to my channel

    • @Dogukan449
      @Dogukan449 6 ปีที่แล้ว

      mytectutor where is the code

    • @mytectutor
      @mytectutor  6 ปีที่แล้ว

      Watch the video beginning from 5:40 u'll see the code

  • @angelo3195
    @angelo3195 6 ปีที่แล้ว +1

    Good

    • @mytectutor
      @mytectutor  6 ปีที่แล้ว

      pliz subscribe to my channel

    • @angelo3195
      @angelo3195 6 ปีที่แล้ว

      Subscribed long ago

    • @mytectutor
      @mytectutor  6 ปีที่แล้ว

      but i don't see u among my subscribers. Is your identity private?

    • @angelo3195
      @angelo3195 6 ปีที่แล้ว

      May be private! I dont know how to set it being private.
      But my youtube writes subscribed on your channel.

    • @mytectutor
      @mytectutor  6 ปีที่แล้ว

      ok

  • @videoshub1311
    @videoshub1311 5 ปีที่แล้ว

    Remote control ka program sir kha se mile ga

  • @rajeshshrestha6461
    @rajeshshrestha6461 4 ปีที่แล้ว

    code please

  • @aldo-0596
    @aldo-0596 4 ปีที่แล้ว

    Its asmr lol

  • @haydendec6991
    @haydendec6991 5 ปีที่แล้ว

    do u want me to subscribe