By Leff
#7087
(62.35 KiB) Downloaded 4992 times

1 Pre-Setting

Could be found on the wiki .
:!: Tips:
how to avoid to Run as Administrator every time
:!: Use the setting below to both APC220
Settings
(12.6 KiB) Downloaded 4983 times


2 Upload sketch to each board

My test was on Uno & Leonardo( Serial1) :!:
Uno as receiver:
Code: Select all
//uno as receiver
void setup(){
  Serial.begin(9600);
  pinMode(13,OUTPUT);
}

void loop(){
  char Data = '2';
  if(Serial.available()>0){
    Data = Serial.read();
    Serial.flush();
  }
  switch ( Data ) {
  case  '0':
    blink0();
    break;

  case  '1':
    blink1();
    break;
  default :
    break;   
  }
}

void blink0(){
  int i=0;
  while(i<3){
    i++;
    digitalWrite(13,HIGH);
    delay(500);
    digitalWrite(13,LOW);
    delay(500);
  }
}

void blink1(){
  int i=0;
  while(i<2){
    i++;
    digitalWrite(13,HIGH);
    delay(100);
    digitalWrite(13,LOW);
    delay(1000);
  }
}


For Leonardo as sender:
Code: Select all
//leonardo as sender
boolean flo = 0;
void setup(){
  Serial1.begin(9600);
}

void loop(){   
  Serial1.println(flo);
  Serial1.flush();
  delay(3000);
  flo=!flo; 

}



3 Plug into two arduino boards
(133.23 KiB) Downloaded 1225 times

4 Result

After all above, you could see the Uno LED blink in different way according different data send by another Apc220 on Leonardo.
(558.92 KiB) Downloaded 4995 times


:idea:
And I take it downstairs to test its transmission distance:

(447 KiB) Downloaded 4983 times


1. I was in 4 floor, another one( Romeo ) was put on my table on the 6 floor. I could still received the signal.
2 I went out from the building to the lakeside, it's still flashing, the distance might be 100-200m. And there's a lot of buildings around.
(147.36 KiB) Downloaded 1213 times


Another similar one on both Uno.
Last edited by Leff on Mon Jun 01, 2015 9:33 am, edited 3 times in total.
By walkabout
#7401
Very interesting... Only other useful info I could find was here: http://www.emartee.com/product/41855/

Questions I'm wondering about are:
1. What is true typical practical range? How is it affected by say... walls, etc.
2. Is it possible to to have say several Arduino Mega communicating with say BBB (Beagle Bone Black)? Which has more horsepower to be a hub (for several Arduinos) and process incoming data and be a web server...

Thanks in advance for any insight on this... ;)
By Leff
#7405
1 the available range should be what the software allows to set. And any obstacle could interfere the signal including wall, besides, other signals like wifi, bluetooth, radio etc can also affect the signal.

2 Sure, it use Serial for data transmission. And most devices could receive serial data.

by the way, I don't know the cool product bbb, thanks for sharing :)