APC220 PC to Arduino connection

Hello

I have been troubled y this problems for a few days now(connecting the arduino to pc using a pair of APC220 radio transceivers) and my deadline is coming up, so any and all help to fix this issue would be much appreciated.

What I've done is

1)Installed the Silicon blah blah UART bridge
2)Configured both APC220 transceivers using RF Magic with every property the same except for NODE ID
3)Uploaded the following code to the arduino using USB

int val = 0;
int ledPin = 13;
void setup()
{
 Serial.begin(9600);
  pinMode( ledPin, OUTPUT );
}

void loop()
{
 val = Serial.read();
 if (-1 != val) {
  if ('A' == val || 'a' == val) {
    Serial.println("Hello from Arduino!");
  }else if ('B' == val || 'b' == val) {
     digitalWrite(ledPin, HIGH);
     delay(500);
     digitalWrite(ledPin, LOW);
   }
 }
}
  1. Disconnect the USB, attach external power as shown in the images( it's a 9V battery, should be enough. yes?)

5)Connect one APC220 to the laptop using the UART Bridge
6) Connect the other to the arduino with GND, 5V and the RX and TX(crossed with those on the APC220)

  1. Switched the Arduino software to the serial port used by the APC220, opened the serial monitor and send A and B, as would be needed by the code.

Absolutely nothing happens

I have been trying to get this to work for a few days now. Speedy advice on how to solve this issue would be very much appreciated.

1 Like