Ardunio - pc - 3dr radio

Hi, I am trying  to connect pc  (serial terminal) and arduino with 3dr 915Mhz telemetry kit. I connected ground station to pc with usb only. Then I wrote the simple code for lighting  a led  with my command from keyboard. I  connected air module's  ground pin,  3.3V (also tried 5V) power pin and Serial Tx to Rx0 (0)and Rx to Tx0 (1)  on my arduino mega card. But I couldn't light the led and see anything on serial terminal. Also my baudrate's for two modules are the same.

My code is:

char data;
int Ledpin = 10;

void setup()
{
  Serial.begin (57600);
  pinMode(Ledpin, OUTPUT);
}
void loop()
{
 
 if (Serial.available()>0)
 {

   char data = Serial.read();
  
   Serial.println(data);
  if(data == 'a')
   {
      digitalWrite(Ledpin, HIGH);
   }
    else
    {
      digitalWrite(Ledpin, LOW);
 }
 }
 
}

On the other hand, I could light the led with usb cable. Please help me...

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

Join diydrones

Email me when people reply –

Replies

  • Developer
    The Radio needs 5V for power.

    You need to verify that the radio link works. Another way to do this, if you don't have an FTDI cable is to use Mission Planner to configure the radios. It should be able to connect to both at the sametime, if they can connect
  • Connect air module to PC via FTDI cable, open connection to both modules via terminal software (two instances) and check, whats transmitted.

This reply was deleted.

Activity