I've written a simple code on the arduino uno just to check for the version of mulitWii. But nothing received from the MultiWii.
This is the code on the arduino.
Code: Select all
int Byte;
void setup() {
Serial.begin(115200); // Serial Monitor
Serial1.begin(115200); // Mwii
}
void loop() {
/* Data request */
Serial1.write('$');
Serial1.write('M');
Serial1.write('<');
Serial1.write(100); // supposedly returns multiWii version
/* Read Data from Mwii */
while (Serial1.available() > 0) {
Byte = Serial1.read();
Serial.println(Byte); // Print data from Multiwii
}
}