I want to communicate between 2 arduinos, now how do i do this using rf? Do i simply plug in the RF transmitter reciever pair and write the code? or do i need some aditional hardware/software to encode/decode? I tried the Virtualwire but it gives an error msg... :-[
Well, if you want to communicate between arduinos, id say first step is to actually get the communication working between them.
You know, real wires.
(theres a post around here about that if you haven't gotten that far)
Then, once you have the communication working, you should just be able to replace the wires with the modules. Most of them should be literally just plug and play, like a wireless wire... so to speak.
Have fun.
Search the forum for discussion of the VirtualWire library. Its well-designed code handles the tricky matters of data clock synchronization and error detection.
Another option to consider is to use a couple of Xbee modules Arduino Playground - Xbee01
They are more expensive than the modules supported by VirtualWire, but for some applications may be simpler to use and more flexible.