Hi,

I'm trying to connect the 3DR Radios to my Arduino Uno board to do wireless communication.

My first example is a simple echo code which just echoes the data back. But the echo does not work. When I type something on the terminal I see the Tx (red light blinking) happening on the "Ground" radio but there is no corresponding blink on the "Air" radio.

The Air radio's +5V, GND, Tx and Rx cables are connected to the corresponding ones of the Uno and the Uno is disconnected from the USB and powered by an adapter.

The Ground Radio is connected to the computer on COM6 and the green lights on the both the Ground and the air radios are on and not blinking which seems to indicate that they have connected.

I had to install FTDI drivers to get the Ground radio recognized by my Windows 7.

Any help to get this working would be much appreciated!

Thanks

Vikrant

---------- Arduino Code -------------

void setup() {
  Serial.begin(57600);
}

void loop() {
  if (Serial.available()) {
    Serial.print((char) Serial.read());
    delay(10);
  }
}

-----------End Code ------------------

Views: 6045

Reply to This

Replies to This Discussion

OK figured this out after reading about the basics of Serial communication here: https://learn.sparkfun.com/tutorials/serial-communication/all

I was connecting Serial Tx to Tx and Rx to Rx on the "Air module", which is wrong. Rather it should be Tx to Rx and Rx to Tx.

Fixing the wires as above and rerunning the 3DR Radio Configuration Utility, the above Arduino code works.

Also need to make sure that all the baud rates are the same: The local and remote baud rates in the Utility, the baud rate specified in the code above (Serial.begin(...)) and the baud rate in the Serial terminal.

Vikrant

Hey,

We are trying to do something similar: http://diydrones.com/forum/topics/3dr-radio-wireless-control#, however we want to use mission planner?

Where did you connect the 3DR radios to the uno, analog input/digital pins?

Also, we hope to use the mission planner to talk through the radio - any thoughts?

Thanks

Thanks! The uno has them built in. Will mission planner work with an uno?

Well, the main goal is to control a robots servos and speed controls etc through a PC using a controller and the 3DR radios.

I wanted to use mission planner because i could also hook up some senors, gyros etc and have a nice interface. But if it is too much trouble i guess i will have to find some other way of using a PC gamepad > channeling into the serial tunnel > and the arduino using these as commands.

The main part i am unsure about is how are multiple channels and such channeled through a single serial tunnel!? Which is why i just wanted to let mission planner do the work!

Any ideas - you seem knowledgeable!

Can mission planner be used with the APM 1?

I was looking at the original APM and it says "arduino compatible" so perhaps i could load on the APM 1 sketch onto an arduino uno and that way use mission planner?

Reply to Discussion

RSS

© 2019   Created by Chris Anderson.   Powered by

Badges  |  Report an Issue  |  Terms of Service