Sending joystick position with IR transmitter

Hello all,

I have an IR receiver and transmitter module and I am using the IRremote library. I would like to transmit the position of a joystick continuously using only these two modules. I do not know how I would go about sending "raw" data, eg. coordinates received from the joystick.

Any suggestions? Is there a feasible way to do this using IR communication?

Perhaps you can get help if you gave actual examples of what you want to send. And perhaps what you have tried.

Paul

The library is normally used to imitate certain IR remote control handsets, and to send predefined codes to certain types of receivers (or vice versa).

What sort of IR receiver and transmitter do you have? Post links to the data sheets or product pages.

Paul_KD7HB:
Perhaps you can get help if you gave actual examples of what you want to send. And perhaps what you have tried.

The joystick I am using outputs three values: an X coordinate, a Y coordinate, and whether the joystick's button is pressed. Both X and Y coordinates range from 0 to 1024 and the value returned by the button is either 0 or 1. However, I am trying to control a robot with four DC motors with that joystick so the aforementioned range for the X and Y coordinates are mapped so the new range is between 0 and 256. Those three values are the data I am trying to send with an IR transmitter.
As for what I have tried: unfortunately nothing yet. I am a beginner and I cannot find any "starting point", a foothold, an article that would point me towards the right direction. I have no idea how something like this would be done; that's why I'm posting here.

jremington:
The library is normally used to imitate certain IR remote control handsets, and to send predefined codes to certain types of receivers (or vice versa).

Does that mean that it is not possible to send an integer or a string trough IR?

jremington:
What sort of IR receiver and transmitter do you have? Post links to the data sheets or product pages.

IR receiver: KY-022; IR transmitter: KY-005.

Does that mean that it is not possible to send an integer or a string trough IR?

It is certainly possible, but it may be quite difficult with that library. Look through all the library documentation and study the provided examples, to see if there are anything even remotely close to what you would like to do.

This is a very challenging project for a beginner. Get one small part of it working at a time before even thinking of putting everything together.

How do you plan to read the joystick output? That would be one place to start. You also need to learn how to control robot motors. Those are completely independent projects.

Oh, when I said beginner, I meant beginner with IR (and the forums). I already know how to read the output of a joystick and use the results to control DC motors. The only thing I don’t know is how to use IR in my desired way.