Okay, so I wanna know how to connect a Lilypad arduino simple board, to an xbee shield so I can send serial data from my computer (which is connected to an xbee on an xbee explorer board) to my arduino, and vice-versa.
Lilypad Simple: LilyPad Arduino Simple Board - DEV-10274 - SparkFun Electronics
Xbee shield: SparkFun XBee Shield - WRL-12847 - SparkFun Electronics?
So far I have it hooked up like this, not sure if its correct though:
Arduino Shield
- 3.3V
- GND
5(TX) RX
6 (RX) TX
Then this is the code im trying to use.
#include <SoftwareSerial.h>
#define rxPin 6
#define txPin 5
SoftwareSerial mySerial = SoftwareSerial(rxPin, txPin);
void setup() {
pinMode(rxPin, INPUT);
pinMode(txPin, OUTPUT);
mySerial.begin(9600);
}
void loop()
{
mySerial.print('H');
delay(1000);
mySerial.print('L');
delay(1000);
}
If anyone is able to help it'd be much appreciated!