mithilfe von einem mini (pro) und dem hier:
kann man sich um €15 einen eigenenkonverter basteln, der unter anderem auch noch ganz leicht zu einem liposaver "aufgerüstet" werden kann...
//Reads PPM signals from 6 channels of an RC reciever, translates the values to
//PWM and prints the values to serial port.
//Works with Spectrum DX7 (haven't tested anything else)
//Create variables for 8 channels
int RXCH[6];
volatile int RXSG[6];
int RXOK[6];
int PWMSG[6];
void setup() {
//Start communication to serial port
Serial.begin(115200);
//Assign PPM input pins. The receiver output pins are conected as below to non-PWM Digital connectors:
RXCH[1] = 4; //Throttle
RXCH[2] = 6; //Aile / Yaw
RXCH[3] = 5; //Elev. / Pitch
RXCH[4] = 2; //Rudd. / Roll
RXCH[5] = 7; //Gear
RXCH[6] = 8; //Aux / Flt Mode
for (int i = 1; i < 7; i++){
pinMode(RXCH, INPUT);
}
}
void loop() {
// Read RX values
for (int i = 1; i < 7; i++){ //for each of the 6 channels:
RXSG = pulseIn(RXCH, HIGH, 20000); //read the receiver signal
if (RXSG == 0) {RXSG = RXOK;} else {RXOK = RXSG;} //if the signal is good then use it, else use the previous signal
PWMSG = map(RXSG, 1000, 2000, 0, 511); //substitute the high values to a value between 0 and 511
constrain (PWMSG, 0, 2000); //make sure that the value stays within the disired boundries
// Print RX values
//Serial.print(" || Ch: ");
// Serial.print(i);
Serial.print(" / PWMSG: ");
Serial.print(PWMSG);
//Serial.print(" / RXSG: ");
//Serial.print(RXSG);
delay(20);
}
Serial.println();
}
//PWM and prints the values to serial port.
//Works with Spectrum DX7 (haven't tested anything else)
//Create variables for 8 channels
int RXCH[6];
volatile int RXSG[6];
int RXOK[6];
int PWMSG[6];
void setup() {
//Start communication to serial port
Serial.begin(115200);
//Assign PPM input pins. The receiver output pins are conected as below to non-PWM Digital connectors:
RXCH[1] = 4; //Throttle
RXCH[2] = 6; //Aile / Yaw
RXCH[3] = 5; //Elev. / Pitch
RXCH[4] = 2; //Rudd. / Roll
RXCH[5] = 7; //Gear
RXCH[6] = 8; //Aux / Flt Mode
for (int i = 1; i < 7; i++){
pinMode(RXCH, INPUT);
}
}
void loop() {
// Read RX values
for (int i = 1; i < 7; i++){ //for each of the 6 channels:
RXSG = pulseIn(RXCH, HIGH, 20000); //read the receiver signal
if (RXSG == 0) {RXSG = RXOK;} else {RXOK = RXSG;} //if the signal is good then use it, else use the previous signal
PWMSG = map(RXSG, 1000, 2000, 0, 511); //substitute the high values to a value between 0 and 511
constrain (PWMSG, 0, 2000); //make sure that the value stays within the disired boundries
// Print RX values
//Serial.print(" || Ch: ");
// Serial.print(i);
Serial.print(" / PWMSG: ");
Serial.print(PWMSG);
//Serial.print(" / RXSG: ");
//Serial.print(RXSG);
delay(20);
}
Serial.println();
}
kann man sich um €15 einen eigenenkonverter basteln, der unter anderem auch noch ganz leicht zu einem liposaver "aufgerüstet" werden kann...