RobotGeek TeamWade Filewich
Published © CC0

Using an IR Receiver with Arduino

Want a low cost solution to wirelessly control your next project? You can use an IR Receiver and an old remote you have lying around.

BeginnerProtip1 hour7,067
Using an IR Receiver with Arduino

Things used in this project

Hardware components

RobotGeek Geekduino
RobotGeek Geekduino
×1
RobotGeek Sensor Shield
RobotGeek Sensor Shield
×1
RobotGeek IR Receiver
RobotGeek IR Receiver
×1
RobotGeek LED Driver
RobotGeek LED Driver
×2
RobotGeek Micro USB Cable
×1
Mini IR Remote Control
×1
RobotGeek 9G Micro Servo
×1
Arduino UNO
Arduino UNO
OPTION: Can be used in place of Geekduino
×1

Software apps and online services

Arduino IDE
Arduino IDE

Story

Read more

Code

Code snippet #2

Plain text
Samples=1
Decoded Sony(2): Value:A8B92 (20 bits)
Raw samples(42): Gap:300
  Head: m2300  s650
0:m1100 s650	1:m550 s650		 2:m1100 s700	3:m500 s650		 
4:m1100 s700	5:m500 s650		 6:m600 s600	7:m600 s600		 
8:m1100 s650	9:m500 s700		 10:m1100 s650	11:m1100 s700		 
12:m1100 s650	13:m500 s700		 14:m500 s650	15:m1100 s700		 

16:m550 s600	17:m600 s600		 18:m1100 s650	19:m550
Extent=31250
Mark  min:500	 max:1100
Space min:600	 max:700

	 #	Low	High	Avg.
Mark	20	500	1100	792
Space	19	600	700	655

Marks		 #	Low	High	Avg.
Above Avg	9	1100	1100	1100
Belows Avg.	11	500	600	540

Spaces		 #	Low	High	Avg.
Above Avg.	6	700	700	700
Below Avg.	13	600	650	634

Ratios		Below	Above
Head Mark	4.26	2.09
Head Space	1.03	0.93

Mark Above/Below=	2.04
Space Above/Below=	1.10

Code snippet #8

Plain text
IR Code Block: 
 
 
 
 
const unsigned long MY_PROTOCOL = SONY;
const unsigned long RIGHT_BUTTON = 0x9EB92;
const unsigned long LEFT_BUTTON = 0xDEB92;
const unsigned long UP_BUTTON = 0x9EB92;
const unsigned long DOWN_BUTTON = 0x5EB92;
const unsigned long SELECT_BUTTON = 0xD0B92;
const unsigned long ONE_BUTTON = 0xB92;
const unsigned long TWO_BUTTON = 0x80B92;
const unsigned long THREE_BUTTON = 0x40B92;
const unsigned long FOUR_BUTTON = 0xC0B92;
const unsigned long FIVE_BUTTON = 0x20B92;
const unsigned long SIX_BUTTON = 0xA0B92;
const unsigned long SEVEN_BUTTON = 0x60B92;
const unsigned long EIGHT_BUTTON = 0xE0B92;
const unsigned long NINE_BUTTON = 0x10B92;
const unsigned long ZERO_BUTTON = 0x90B92;
const unsigned long SPECIAL_1_BUTTON = 0x481;
const unsigned long SPECIAL_2_BUTTON = 0xC81;

Github file

https://github.com/robotgeek/robotGeekLibrariesAndtools/archive/master.zip

Credits

RobotGeek Team

RobotGeek Team

35 projects • 208 followers
The RobotGeek team is a 6-man operation that wants to make it even easier to use Arduino to make electronics and robots.
Wade Filewich

Wade Filewich

35 projects • 103 followers
I make technology that makes plants grow

Comments