Hi everybody!
I'm making a little robot using Arduino and it works fine (you can see how it works on the embedded video).
The robot walk alone perfectly but today I tried to use an infrared remote with an infrared receptor to use my robot like an RC car, and I had this error at compilation (I'm using IRremote library):
core.a(Tone.cpp.o): In function `__vector_7':
D:\Program Files\Arduino\hardware\arduino\cores\arduino/Tone.cpp:535: multiple definition of `__vector_7'
IRremote\IRremote.cpp.o:D:\Program Files\Arduino\libraries\IRremote/IRremote.cpp:311: first defined here
So I searched that error on the internet and I found something wich looks like a solution. I changed the code of "IRremoteInt.h" putting this
#define IR_USE_TIMER1 // tx = pin 9
//#define IR_USE_TIMER2 // tx = pin 3
instead of this
//#define IR_USE_TIMER1 // tx = pin 9
#define IR_USE_TIMER2 // tx = pin 3
But then compilation failed again:
IRremote\IRremote.cpp.o: In function `__vector_11':
D:\Program Files\Arduino\libraries\IRremote/IRremote.cpp:311: multiple definition of `__vector_11'
Servo\Servo.cpp.o:D:\Program Files\Arduino\libraries\Servo/Servo.cpp:103: first defined here
I think that both timers (timer1 and timer2) are busy because of the servo and the tone() functions. I don't know what timers are and I don't know how to use IR receptor without change my robot arquitecture.
I'm noob at making robots and I don't know what to do so any help would be appreciated.
Sorry for my english but I don't speak this lenguage very well...
https://www.youtube.com/watch?v=KB23F5sOBRM