cannot connect 3DR radio to Arduino Uno

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 ------------------

You need to be a member of diydrones to add comments!

Join diydrones

Email me when people reply –

Replies

  • 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

  • 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

    Serial Communication - learn.sparkfun.com
This reply was deleted.

Activity

DIY Drones via Twitter
RT @chr1sa: After more than a year of only virtual races, @DIYRobocars returns to the newly renovated @circuitlaunch on May 22 for the resu…
22 hours ago
DIY Robocars via Twitter
RT @DAVGtech: And now available with LiDAR 🔥 https://twitter.com/Heavy02011/status/1381137016381964293
22 hours ago
DIY Robocars via Twitter
RT @Heavy02011: #VirtualRaceLeague: @DIYRobocars Race #9 - #ParkingLotNerds #thunderhillracetrack, CA Join us for the next race April 24th,…
22 hours ago
DIY Robocars via Twitter
RT @DWalmroth: Weather's finally cooperating, looking forward to racing 1:10 scale autonomous cars outdoors again! @diyrobocars, @NVIDIAEm…
Wednesday
DIY Robocars via Twitter
RT @AIDRI_: I finally succeeded in optimizing the trajectory and speed of a car on a #racetrack. Next step: implement a 2d controller and…
Wednesday
DIY Robocars via Twitter
@jetdillo @circuitlaunch Actually the second *in person* event in a year. We do virtual races every month
Apr 2
DIY Robocars via Twitter
Update: we're moving it back one day to Sunday (the 4th) at 11:00am instead
Apr 2
DIY Robocars via Twitter
@GrantEMoe @circuitlaunch Update: we're doing it on Sunday (4th) at 11:00am instead
Apr 2
Laurie J. Troy liked Jasper Kueppers's profile
Apr 1
DIY Robocars via Twitter
RT @chr1sa: Maybe we should have a mini @DIYRobocars race in our lower school's playground https://t.co/xLFeua1R6X
Mar 29
DIY Robocars via Twitter
If anybody wants to join us for an informal outdoors hack/race we're going to be meeting at the @CircuitLaunch park… https://twitter.com/i/web/status/1375907409223249923
Mar 27
DIY Robocars via Twitter
RT @SmallpixelCar: Ready to reopen, innovation has to continue. Inside/outside, LiDAR/GPS, race/delivery https://t.co/jpmvttoHEd
Mar 26
DIY Drones via Twitter
RT @DAVGtech: By far best race yet! Congratulations to the winner @Heavy02011 🥇🏆🍾👏👏👏 @diyrobocars @donkey_car @NVIDIAEmbedded https://t.co/…
Mar 20
DIY Robocars via Twitter
RT @Heavy02011: #VirtualRaceLeague: @DIYRobocars Race #8 - #ParkingLotNerds ⁦@DAVGtech⁩ ⁦@DWalmroth⁩ ⁦@OttawaAVGroup⁩ - join us tomorrow h…
Mar 20
DIY Drones via Twitter
RT @mrpollo: 11 years ago, the pxIMU was announced to the world on @DIYDrones, and it changed the life of many (mine included). The followi…
Mar 18
DIY Drones via Twitter
RT @ishcahealth: This is awesome! ☘️ @DroneDJ @DIYDrones @WorkerDrones @DroneMedia_UK @dublinaviation https://twitter.com/media_ireland/status/1372077878536462336
Mar 18
More…