Well here is the code as you said . The thing is that now it makes some weird vibrating sounds and the maping needs to be modified because the center of the joystick isn't the center of the servo . Also the shaking has been reduced dramatically
transmitter :
#include <SoftwareSerial.h>
int ROT ;
SoftwareSerial HC12(10, 11);
void setup() {
Serial.begin(9600);
HC12.begin(9600);
}
void loop() {
int ROT = analogRead(A0);
ROT = map(ROT , 515 , 1023 , 1200 , 1800) ;
Serial.println(ROT);
HC12.write(ROT);
delay(100);
}