Infrared Remote

Learn about Sparki's Infrared Remote


Lessons You Should Know

Sparki comes with an infrared remote control, similar to the kind used to control TVs. It is used to send infrared codes to Sparki, which it can receive with its infrared remote receiver.

How It Works

Each button on the remote sends a certain code to Sparki, which it can receive with its infrared remote receiver. The codes each button on the remote sends is listed below: Remote Cleared

Using the Part

With the basic Sparki code in place, you can measure an infrared sensor by using this command: This command returns the last code that was sent to Sparki. It returns this number in the form of an integer. If there has not been a code sent since the last time Sparki ran this command, it will send back a -1. SparkiDuino already has code examples for you to use: File > Examples > Remote

Also, you can try more complex programs, such as Sparki’s Default Program.