#6775
Hi crusher,


Since the APC modules use the Arduino's Tx/Rx pins, when you have one connected to arduino and the other connected to the pc, you should be able to communicate through the Arduino Serial monitor.


So try making a code that when a key is entered in the serial monitor the pin13 LED will turn on/off...
That is the most basic test.


[code]



/*
  Blink
  Turns on an LED on for one second, then off for one second, repeatedly.

  This example code is in the public domain.
*/


void setup() {               
  // initialize the digital pin as an output.
  // Pin 13 has an LED connected on most Arduino boards:
  pinMode(13, OUTPUT); 
  Serial.begin(9600);
  Serial.println("  Lets test the bluetooth module");
  Serial.println("Press 1 to light the LED, and 2 to turn it off");
  Serial.println("Entery: "); 
  digitalWrite(13, HIGH);
}


void loop() {
  if (Serial.available()){
  char input = Serial.read();
  switch (input){
  case '1': //turn led on
  digitalWrite(13, HIGH);  // set the LED on
  delay(100);              // wait for a second
  Serial.println("it works on!!"); 
  break;
  case '2':
  digitalWrite(13, LOW);    // set the LED off
  delay(100);              // wait for a second
  Serial.println("it works off!!");
  break;
}
  }
}


[/code]