user16323: for my rc robot I want to use ir to send/receive the value from a jostick.
Is it possible ? I can't use any other radio chip like nrf24l01.

user13432: Yes, it is possible. That is already supported by the IR library. Please see this tutorial for further details. The outline of the sender is:
 uint16_t sample = analogRead(A0);
 irsend.sendSony(sample, 16);

And the receiver:
 if (irrecv.decode(&decodedSignal)) {
    uint16_t sample = decodedSignal.value;
    ...
 }

Cheers!

16323: <p>for my rc robot I want to use ir to send/receive the value from a jostick.</p>

<p>Is it possible ? I can't use any other radio chip like nrf24l01.</p>
 13432: <p>Yes, it is possible. That is already supported by the IR library. Please see this <a href="http://garagelab.com/profiles/blogs/tutorial-arduino-ir-sender-and-receiver" rel="nofollow">tutorial</a> for further details. The outline of the sender is:</p>

<pre><code> uint16_t sample = analogRead(A0);
 irsend.sendSony(sample, 16);
</code></pre>

<p>And the receiver:</p>

<pre><code> if (irrecv.decode(&amp;decodedSignal)) {
    uint16_t sample = decodedSignal.value;
    ...
 }
</code></pre>

<p>Cheers!</p>
