3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

Control Arduino with IR Apple Remote

Control Arduino with IR Apple Remote
This quick Instructable will show you how to interface Apple's IR Remote to control your Arduino. 

This little project was inspired by the need to have a low cost form of communication for a device embedded with the Arduino Pro Mini board. Although I have been particularly impressed with reliable Xbee RF modules in the past, I had planned for the components contained within the device to be permanently sealed for waterproofing. I therefore felt that I needed a more affordable solution, something that I wouldn't be too disappointed if it got damaged. The proposed device is extremely compact and only requires 'line of sight' operation so infra-red seemed like the perfect solution. 

Why use Infra-red?
  • Much more affordable than other forms of wireless communication e.g. RF
  • Only requires single diode component to receive data
  • Ideal for projects with limited space available
  • Low power consumption
 The sketch and setup will allow you to do the following:
  • Control the brightness of an LED using '+' and '-' buttons
  • Use the 'play/pause' to switch on/off
  • Cycle through modes with 'previous/next' buttons
  • Use 'menu' button to reset device
 
Remove these adsRemove these ads by Signing Up
 

Step 1Components & Preparation

Components & Preparation
«
  • IR Disable.tiff
  • All Icons.tiff
Components that you'll need:
  • Arduino ATMEGA Microcontroller
  • Apple IR Remote
  • IR Receiver Diode
  • 5v 5mm LED
  • 220 ohm Resistor
IR Remote Library:
  • You'll need to download the 'IRremote.h' library for the Arduino to make sense of those IR signals.
  • Click on the link and check out Ken Shirriff's blog whilst downloading the IRremote.zip.
  • Extract the file into arduino/hardware/libraries
Ken Shirriff's Blog & IR Remote Library
http://www.arcfn.com/2009/08/multi-protocol-infrared-remote-library.html

Other Preparation
Chances are that if you've got an Apple Remote, you probably have a Mac too. To prevent accidentally flicking through Front Row or your iTunes library, you might want to disable your Mac's IR receiver for a while.This is really easy to do. Just open up System Preferences / Security / 'Disable remote control infrared receiver'.
« Previous StepDownload PDFView All StepsNext Step »
9 comments
Jan 14, 2012. 5:36 PMhhhh1997 says:
Keep on getting an error , Yes i have installed the library


C:\Users\Owner\Documents\Arduino\libraries\IRremote/IRremoteInt.h:92: error: 'uint8_t' does not name a type


Sep 14, 2011. 9:10 AMarduino man says:
Help I cant find the IRremoteInt.h library.
Sep 11, 2011. 4:11 PMjan-marius says:
I want to use the press and hold gestures on the apple remote. Do you know the codes for those?
Aug 28, 2011. 5:07 PMx.h says:
Thanks a lot!
Mar 15, 2011. 12:56 PMkotofeiivanovich says:
Which IR Reveiver Diode did you use? What protocol is used in Apple's IR remote? Can I use that code without Arduino on my Attiny2313 device?

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
45
Followers
8
Author:Alexdlp