I am new to arduino and i dnt knw is this correct to post this here.
I am using arduino and Zigbee RS232 RFM75 board for transfering data wirelessly.
I need to transfer data from one arduino to another wirelessly using Zigbee RS232 RFM75 (RFM75 is the one which works similarly to the principle of CC2500).
I used the code below but it's not working.
Please help me to transfer data from one arduino to another using Zigbee RS232 RFM75 wirelessly.
I have attached Zigbee RS232 RFM75 board's picture.
Thanks in advance.
/*
The circuit:
* RX is digital pin 10 (connect to TX of other device)
* TX is digital pin 11 (connect to RX of other device)
*/
#include <SoftwareSerial.h>
SoftwareSerial mySerial(10, 11); // RX, TX
void setup()
{
// Open serial communications and wait for port to open:
Serial.begin(9600);
while (!Serial)
{
; // wait for serial port to connect. Needed for native USB port only
}
Serial.println("Goodnight moon!");
// set the data rate for the SoftwareSerial port
mySerial.begin(9600);
mySerial.println("Hello, world?");
}
void loop()
{ // run over and over
if(mySerial.available() // if Data available in RFM
{
Serial.write(mySerial.read()); // then transmits to PC
}
if (Serial.available()) { // if Data available in PC
mySerial.write(Serial.read()); //then transmits to RFM
}
}