EasyManuals Logo

Arduino uno User Manual

Arduino uno
311 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #221 background imageLoading...
Page #221 background image
If youre using Arduino 1.6.0,
IRremote
collides with one of the Arduino IDEs
new standard libraries named
RobotIRremote
. In this case you have to delete
RobotIRremote
to make this chapters examples run. On a Mac you need to delete
/Applications/Arduino.app/Contents/Resources/Java/libraries/RobotIRremote/. On a Windows machine,
it's something like
C:\Program Files (x86)\Arduino\libraries\RobotIRremote.
With the following sketch, you can then decode incoming infrared signals, if
the IRremote library supports their encoding:
RemoteControl/InfraredDumper/InfraredDumper.ino
#include <IRremote.h>
Line 1
-
const unsigned int IR_RECEIVER_PIN = 11;
-
const unsigned int BAUD_RATE = 9600;
-
5
IRrecv ir_receiver(IR_RECEIVER_PIN);
-
decode_results results;
-
-
void setup() {
-
Serial.begin(BAUD_RATE);
10
ir_receiver.enableIRIn();
-
}
-
-
void dump(const decode_results* results) {
-
const int protocol = results->decode_type;
15
Serial.print("Protocol: ");
-
if (protocol == UNKNOWN) {
-
Serial.println("not recognized.");
-
} else if (protocol == NEC) {
-
Serial.println("NEC");
20
} else if (protocol == SONY) {
-
Serial.println("SONY");
-
} else if (protocol == RC5) {
-
Serial.println("RC5");
-
} else if (protocol == RC6) {
25
Serial.println("RC6");
-
} else if (protocol == DISH) {
-
Serial.println("DISH");
-
} else if (protocol == SHARP) {
-
Serial.println("SHARP");
30
} else if (protocol == PANASONIC) {
-
Serial.print("PANASONIC (");
-
Serial.print("Address: ");
-
Serial.print(results->panasonicAddress, HEX);
-
Serial.println(")");
35
} else if (protocol == JVC) {
-
Serial.println("JVC");
-
} else if (protocol == SANYO) {
-
Serial.println("SANYO");
-
} else if (protocol == MITSUBISHI) {
40
report erratum discuss
Grabbing Remote Control Codes 205
www.it-ebooks.info

Table of Contents

Other manuals for Arduino uno

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Arduino uno and is the answer not in the manual?

Arduino uno Specifications

General IconGeneral
Form factorArduino
CertificationRoHS, FC, CE
Processor model-
Processor frequency- MHz
Microcontroller modelATmega328
Microcontroller frequency16 MHz
DC input voltage7-12 V
Operating voltage5 V
DC current per I/O pin40 mA
Flash memory0.032 MB
Maximum internal memory- GB
SRAM (Static Random Access Memory)2 KB
EEPROM (Electrically Erasable Programmable Read-Only Memory)1 KB
Wi-FiNo
Number of analog I/O pins6
Number of digital I/O pins14
Weight and Dimensions IconWeight and Dimensions
Board dimensions53.4 x 68.6 mm

Related product manuals