Libraries

Hi im working on a project and im getting this error "multiple definition of `__vector_11'"

here is my code

#include <NewTone.h>
#include <Servo.h>
#include <IRremote.h>
#include <Ultrasonic.h>
#include <LiquidCrystal.h>

unsigned long Value1 = 0x1FE58A7; // where XXXXXXXX is on our your remote's values
unsigned long Value2 = 0x1FEA05F; // where XXXXXXXX is another button on your remote

int buzzer = 7;
int distance;
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
Ultrasonic ultrasonic(A0,A1);
int RECV_PIN = 6;
IRrecv irrecv(RECV_PIN);
decode_results results;

Servo servo1;

// the setup routine runs once when you press reset:
void setup() {
lcd.begin(16, 2); //16 rows, 2 columns
pinMode(buzzer, OUTPUT);

Serial.begin(9600);
irrecv.enableIRIn(); // Start the receiver

// initialize the digital pin as an output.

servo1.attach(10); // attack servo to digital pin 10
}

// the loop routine runs over and over again forever:
void loop() {
lcd.clear();
lcd.print(" Ptuxiakh "); // You can change this message.
lcd.setCursor(0, 1);
lcd.print("Apostash: ");
lcd.print(ultrasonic.Ranging(CM));
lcd.print("cm");

delay(1000); // 1sec delay
Serial.print(ultrasonic.Ranging(CM));
Serial.println("cm");

distance = ultrasonic.Ranging(CM);

if (distance >= 10 && distance <=20){
NewTone(buzzer, 3000, 50);

}
else if (distance >=5 && distance <10){
NewTone(buzzer, 5000, 200);
}
else if (distance <5){
NewTone(buzzer, 4000, 800);
}

if (irrecv.decode(&results)) {
Serial.println(results.value, HEX);
irrecv.resume(); // Receive the next value
}

if(results.value == Value1) {
servo1.write(160);
}
else if (results.value == Value2){
servo1.write(75);
}
}

i searched the forum and i found that some libraries conflict with each other.
The problem is that when i use the tone library it conflicts with iremote library and when i use newtone library it conflicts with the servo library.
What i can do to make the project works?
Thank you in advance

Not use 4 things that require owning their own timer (the first is millis/delay) on a chip with three timers?

I don't know that any of those libraries have a software implementation (ie, one that doesn't require a hardware timer)...

Can i disable the timer in any of these to make it work?

Can i disable the timer in any of these to make it work?

Think about that. If the Servo library needs a timer to work, and you disable the timer in that library, is the library still going to work?

What you need is a board with more timers. The Mega has 5.

ok i get it.
next question if you can answer.
i have 2 arduino unos.Can i give analog signal both to the boards from 1 sensor?(hc-sr04)

Can i give analog signal both to the boards from 1 sensor?(hc-sr04)

The HC-SR04 does not provide an analog signal. Even if it did, no it can not be shared by two boards.

Of course, one board could talk to the HC-SR04 and share the data with the other board via a data transfer mechanism... that would be the usual way.