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
- 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 ads by
Signing UpStep 1Components & Preparation
- Arduino ATMEGA Microcontroller
- Apple IR Remote
- IR Receiver Diode
- 5v 5mm LED
- 220 ohm Resistor
- 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
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 Step | Download PDFView All Steps | Next Step » |









































C:\Users\Owner\Documents\Arduino\libraries\IRremote/IRremoteInt.h:92: error: 'uint8_t' does not name a type
#include <WProgram.h> so that it correctly reads #include <Arduino.h>
Hope this works out for you :)
I've recently used this diode without changing the arduino sketch and it works just the same...
http://www.coolcomponents.co.uk/catalog/product_info.php?products_id=169
You'll need this library mentioned in Step 1 :
Ken Sherriff's Blog & IR Remote Library
http://www.arcfn.com/2009/08/multi-protocol-infrared-remote-library.html
Sorry, I don't really have any experience with Attiny2313 devices.
Hope this helps a little anyway ;)