11 years, 1 month ago.

RF receiver with LPC1768

How can i connect RF 434 Mhz receiver with LPC1768 and get the data please help me with coding....

Question relating to:

It's often useful to provide details of what you have tried, perhaps even code examples. Details of how the data is encoded/modulated would be useful too.

posted by Stephen Paulger 13 Mar 2013

2 Answers

9 years, 4 months ago.

First you need to identify what kind of interface does your tx and rx has, are they rs232 or rs485. Assuming you are using rs232, what you need to do is to connect the 2 wires coming from the receiver to the tx and rx pins of the lpc1768 which are p9 and p10 respectively.

Once you connected them you need to write a piece of code for them. For example you can receive the bit stream like this:

Serial rf(p9,p10);

int main()
{
string msgbuffer;

if (rf.readable()){
while(rf.readable(){
char c=rf.getc();
msgbuffer+=c;
}
}

printf("msg is %s",msgbuffer);
}

try this I hope you will be able to receive the msg, but can you tell us how are you sending a message, at what baud rate and what is the bitstream. I hope it will help