IRremote No such file or directory

I attempted to create an Arduino based robot. I created the following code on an old computer and emailed the Arduino file to this new one. I created a folder for it when it asked to make a folder so that it could be run by the programming software. I attempt to upload it to my robot and I get an error that reads “/Users/PFVN/Downloads/IRlaskjdjf.zip/IRlaskjdjf.zip.ino:1:22: fatal error: IRremote.h: No such file or directory
#include <IRremote.h>
^
compilation terminated.
exit status 1
Error compiling for board Arduino/Genuino Uno.”

If you would like to look at the code here it is.

#include <IRremote.h>
#include <IRremoteInt.h>
#include <IRremoteTools.h>
#define X 16712445
#define A 16736925
#define D 16754775
#define B 16720605
#define C 16761405

int ENB = 5;
int ENA = 10;
int IN1 = 9;
int IN2 = 8;
int IN3 = 7;
int IN4 = 6;
int ABS = 130;
int LED = 13;
int recvPin = 12;
unsigned long input;
IRrecv irrecv(recvPin);
decode_results result;
void setup() {
 Serial.begin(9600);
 irrecv.enableIRIn();
 pinMode(LED, OUTPUT);
 pinMode(IN1, OUTPUT);
 pinMode(IN2, OUTPUT);
 pinMode(IN3, OUTPUT);
 pinMode(IN4, OUTPUT);
 pinMode(recvPin, INPUT);
 analogWrite(ENA, ABS);
 analogWrite(ENB, ABS);
}
char q() {
 digitalWrite(LED, HIGH);
 delay(100);
 digitalWrite(LED, LOW);
 delay(100);
}
char f() {
   digitalWrite(IN1, HIGH);
   digitalWrite(IN2, LOW);
   digitalWrite(IN3, HIGH);
   digitalWrite(IN4, LOW);
}
char b() {
   digitalWrite(IN1, LOW);
   digitalWrite(IN2, HIGH);
   digitalWrite(IN3, LOW);
   digitalWrite(IN4, HIGH);
}
char r() {
   digitalWrite(IN1, LOW);
   digitalWrite(IN2, HIGH);
   digitalWrite(IN3, HIGH);
   digitalWrite(IN4, LOW);
}
char l() {
   digitalWrite(IN1, HIGH);
   digitalWrite(IN2, LOW);
   digitalWrite(IN3, LOW);
   digitalWrite(IN4, HIGH);
}
char s() {
   digitalWrite(IN1, LOW);
   digitalWrite(IN2, LOW);
   digitalWrite(IN3, LOW);
   digitalWrite(IN4, LOW);
}
void loop() {
 if(irrecv.decode(&result)) {
   input = result.value;
   irrecv.resume();
   if (input==A) {
     f();
   }
   else if (input==B) {
     l();
   }
   else if (input==C) {
     r();
   }
   else if (input==D) {
     b();
   }
   else if (input==X) {
     s();
   }
   else {
     q();
   }
 }
}

Help

(deleted)

So, do you have the file that its says does not exists and if so where is it located on your PC ?

You can copy the error text from the IDE by clicking on the “Copy error messages” button.

When you post code ot error text here please select the text after pasting it and click the code tag icon ( </> ) top/left of the forum edit window to make the code and/or error text easier to deal with here

I attempted to create an Arduino based robot. I created the following code on an old computer and emailed the Arduino file to this new one. I created a folder for it when it asked to make a folder so that it could be run by the programming software. I attempt to upload it to my robot and I get an error that reads “/Users/PFVN/Downloads/IRlaskjdjf.zip/IRlaskjdjf.zip.ino:1:22: fatal error: IRremote.h: No such file or directory
#include <IRremote.h>
^
compilation terminated.
exit status 1
Error compiling for board Arduino/Genuino Uno.”

If you would like to look at the code here it is.

#include <IRremote.h>
#include <IRremoteInt.h>
#include <IRremoteTools.h>
#define X 16712445
#define A 16736925
#define D 16754775
#define B 16720605
#define C 16761405

int ENB = 5;
int ENA = 10;
int IN1 = 9;
int IN2 = 8;
int IN3 = 7;
int IN4 = 6;
int ABS = 130;
int LED = 13;
int recvPin = 12;
unsigned long input;
IRrecv irrecv(recvPin);
decode_results result;
void setup() {
 Serial.begin(9600);
 irrecv.enableIRIn();
 pinMode(LED, OUTPUT);
 pinMode(IN1, OUTPUT);
 pinMode(IN2, OUTPUT);
 pinMode(IN3, OUTPUT);
 pinMode(IN4, OUTPUT);
 pinMode(recvPin, INPUT);
 analogWrite(ENA, ABS);
 analogWrite(ENB, ABS);
}
char q() {
 digitalWrite(LED, HIGH);
 delay(100);
 digitalWrite(LED, LOW);
 delay(100);
}
char f() {
   digitalWrite(IN1, HIGH);
   digitalWrite(IN2, LOW);
   digitalWrite(IN3, HIGH);
   digitalWrite(IN4, LOW);
}
char b() {
   digitalWrite(IN1, LOW);
   digitalWrite(IN2, HIGH);
   digitalWrite(IN3, LOW);
   digitalWrite(IN4, HIGH);
}
char r() {
   digitalWrite(IN1, LOW);
   digitalWrite(IN2, HIGH);
   digitalWrite(IN3, HIGH);
   digitalWrite(IN4, LOW);
}
char l() {
   digitalWrite(IN1, HIGH);
   digitalWrite(IN2, LOW);
   digitalWrite(IN3, LOW);
   digitalWrite(IN4, HIGH);
}
char s() {
   digitalWrite(IN1, LOW);
   digitalWrite(IN2, LOW);
   digitalWrite(IN3, LOW);
   digitalWrite(IN4, LOW);
}
void loop() {
 if(irrecv.decode(&result)) {
   input = result.value;
   irrecv.resume();
   if (input==A) {
     f();
   }
   else if (input==B) {
     l();
   }
   else if (input==C) {
     r();
   }
   else if (input==D) {
     b();
   }
   else if (input==X) {
     s();
   }
   else {
     q();
   }
 }
}

Help

"/Users/PFVN/Downloads/IRlaskjdjf.zip/IRlaskjdjf.zip.ino:1:22: fatal error: IRremote.h: No such file or directory

Are you working directly on the zip? If so, it might work if you extract it first. Also, is the library (correctly) installed?

sterretje:
Are you working directly on the zip? If so, it might work if you extract it first. Also, is the library (correctly) installed?

I do not believe I am working directly on a .zip file given that the file code that I provided is the same name. I am not sure if it is properly installed because I am new to this programming thing. If you could find a solution to this that would be great. I automatically created a file after I emailed it to my self when switching computers. I sent the file directly and Arduino needed to make it a folder to run it, so it made a folder itself. This didn't create any problems for other projects.

PFVN:
I automatically created a file after I emailed it to my self

What do you mean, "automatically"?

Threads merged.

Back to basics.

Have you installed the IRremote library on the new computer ?

What exactly is the full name of the program file ?

aarg:
What do you mean, "automatically"?

By automatically I meant that the when you open a file sent to you by email, (a .ino file) when you open it, it tells you that the file "File Name #1" Needs to be inside a sketch folder. It will ask you to if you want to create the folder, move the file into it, then continue. If you press "Ok" then it will create the folder and move on. If I needed to do extra then simply send myself the Arduino code, then please tell me what I have to do

UKHeliBob:
Back to basics.

Have you installed the IRremote library on the new computer?

What exactly is the full name of the program file?

I have no idea if I installed the IRremote library on my new computer. The program file that I am using is called "IRlaskjdjf.zip." When I look at the emailed copy it appears to be "IRlaskjdjf.zip.ino" so I assume that the name contains ".zip" inside of it. How do I install the IRremote library on my computer? Thank you

(deleted)