Make a directory inside your “tessel-code” folder called “ir”, change directory into that folder, and initialize a tessel project:
mkdir ir; cd ir; t2 init
Plug the IR module into Tessel port A with the hexagon/icon side down and the electrical components on the top, then plug Tessel into your computer via USB.
Install by typing npm install ir-attx4
into the command line.
Rename “index.js” to “ir.js” and replace the file’s contents with the following:
Save the file.
In your command line, t2 run ir.js
Try turning on your TV! Look at the IR LED through a camera.
Bonus: Change the code to turn on a different device.
To see what else you can do with the IR module, see the module docs here.
What else can you do with a IR module? Try a community-created project.
What are you making? Share your invention!
If you run into any issues you can check out the ir forums.