I want to use remote control DX9 and receiver ORANGERX DSM2(binded) connect to arduino mega(with moto driver) to control a two wheel rover. when i adjust the remote control the output voltage on receiver's pins will change from 0.19V to 0.3V.
but when i connect to the arduino analoge pins and write a program to read and print the voltage, the output never follow the remote control.
this is the program i write. even if i dont adjust the remote control the output also keep changing.
what should i do
// the setup routine runs once when you press reset:
void setup() {
// initialize serial communication at 9600 bits per second:
Serial.begin(9600);
}
// the loop routine runs over and over again forever:
void loop() {
// read the input on analog pin 0:
int sensorValue1 = analogRead(A8);
int sensorValue2 = analogRead(A9);
int sensorValue3 = analogRead(A10);
int sensorValue4 = analogRead(A11);
// Convert the analog reading (which goes from 0 - 1023) to a voltage (0 - 5V):
// print out the value you read:
Serial.println(sensorValue1);
Serial.println(sensorValue2);
Serial.println(sensorValue3);
Serial.println(sensorValue4);
Serial.println("end");
delay(1000);
}