int RECV_PIN = TKD2; // the pin the IR receiver is connected to

Hi all!

I've this error, but I not found where occurs.
The module is Setpper Mottor & IR Receiver, with program from Arduino book.

Please help me.

What error ?
What program ?

read this before posting a programming question

I've this error, but I not found where occurs.

Why not? The compiler told you EXACTLY which file and EXACTLY where the file is located and EXACTLY where in the file.

If you'd spent 15 seconds with Mr. Google, you'd know to just delete the offending file.

The program is:

//www.elegoo.com
//2016.12.12

#include "Stepper.h"
#include "IRremote.h"

/----- Variables, Pins -----/
#define STEPS 32 // Number of steps per revolution of Internal shaft
int Steps2Take; // 2048 = 1 Revolution
int receiver = 12; // Signal Pin of IR receiver to Arduino Digital Pin 12

/-----( Declare objects )-----/
// Setup of proper sequencing for Motor Driver Pins
// In1, In2, In3, In4 in the sequence 1-3-2-4

Stepper small_stepper(STEPS, 8, 10, 9, 11);
IRrecv irrecv(receiver); // create instance of 'irrecv'
decode_results results; // create instance of 'decode_results'

void setup()
{
irrecv.enableIRIn(); // Start the receiver
}

void loop()
{
if (irrecv.decode(&results)) // have we received an IR signal?

{
switch(results.value)

{

case 0xFF906F: // UP button pressed
small_stepper.setSpeed(500); //Max seems to be 500
Steps2Take = 2048; // Rotate CW
small_stepper.step(Steps2Take);
delay(2000);
break;

case 0xFFE01F: // DOWN button pressed
small_stepper.setSpeed(500);
Steps2Take = -2048; // Rotate CCW
small_stepper.step(Steps2Take);
delay(2000);
break;

}

irrecv.resume(); // receive the next value
digitalWrite(8, LOW);
digitalWrite(9, LOW);
digitalWrite(10, LOW);
digitalWrite(11, LOW);
}

}/* --end main loop -- */

And the error message is:
Arduino:1.8.3 (Mac OS X), Tarja: "Arduino/Genuino Uno"

/Users/Lidia/Desktop/Arduino.app/Contents/Java/libraries/RobotIRremote/src/IRremoteTools.cpp:5:16: error: 'TKD2' was not declared in this scope
int RECV_PIN = TKD2; // the pin the IR receiver is connected to
^
exit status 1
Error al compilar per a la placa Arduino/Genuino Uno.

Aquest informe tindria més informació amb
la opció "Mostra la sortida detallada durant la compilació"
activada a Fitxer -> Preferències.

Do you HAVE an Arduino Robot? Very few people do. If you do not, then delete the file that fails to compile. It is for a product you don't own.

Hi!

I don't know (Arduino Robot).

Where can I find this "Arduino Robot"? and how uninstall/delete?

Thanks in advance,

xavierpratscopovi:
Hi!

I don't know (Arduino Robot).

Where can I find this "Arduino Robot"? and how uninstall/delete?

Thanks in advance,

This is the file that is causing problems:

/Users/Lidia/Desktop/Arduino.app/Contents/Java/libraries/RobotIRremote/src/IRremoteTools.cpp

Delete it.

First of all, I apologize to you if I bother you or I'll have to waste your time with my question.
Secondly, it was a gift for my son, who has just finished primary school; And I totally ignore this world of Arduino.
Third, I always thought it was an original product of Arduino.
Fourthly, I tried (unsuccessfully) that the gentlemen of Elegoo would answer me this question.
Fifth, do you really know why the internet forums are served?

However, thank you very much for your dedication, in the future, I will take it into account, and I will not waste your time.

Best regards,

Thank you very much, PaulS.

Best regards,

spycatcher2k:
WHY are you asking for support in the Arduino forum for you 'www.elegoo.com' product? Are you that special, that the manufacturer (Who is suppose to support their products) won't support you? Are you so entitled that you expect to get FREE SUPPORT from a forum without actually buying official products?

The file that is causing issues comes with the IDE. The place to ask questions about the file's failure to compile is HERE.

(deleted)

Then we agree to disagree

I guess we will have to. OP's problem has nothing to do with the hardware he/she is compiling for. If it did, I would agree that the first line of defense ought to be the manufacturer of the hardware.

OP's problem has to do with the Arduino team f**king up a perfectly good library, without having the decency to at least give the class a different name, and of not incorporating a decent make system into the build process. Any decent make system would see that the file in question was in no way related to the sketch that OP was trying to compile, so it wouldn't even have been trying to compile it.

Now, OP does bear SOME (quite a bit, in my opinion) responsibility to google their error, and NOT post ANOTHER stinking thread looking for help solving a non-problem.

Hi Spycatcher2k!

I have not seen anywhere in the web page, where I have to pay to ask questions, or what is the rate. Maybe you know it, and you can tell me.
Thank you very much in advance