0

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.

3
  • Yes. It's possible. Commented Jan 21, 2016 at 20:08
  • documentation ? library? website? Commented Jan 21, 2016 at 20:09
  • I don't know any of those. I know it is technically possible though, which is what you asked. Maybe Google knows where the websites are? Commented Jan 21, 2016 at 20:10

1 Answer 1

3

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!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.