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 #223 background imageLoading...
Page #223 background image
remote, it will send the same code over and over again as long as you press
the key. An Apple remote will send the keys command code only once, and
after that it sends the code 0xffffffff as long as you press the key.
Figure 30Capture the IR codes of a Samsung remote
After youve grabbed a remotes control codes, you can use them to build your
own remote. Youll learn how to do that in the next section.
Cloning a Remote
As soon as you know the protocol and the
command codes a remote uses, you can
clone it. You need only an infrared LED
that doesnt differ much from the LEDs
weve used before. The only difference is
that it emits invisible light. The figure
shows how to connect it to pin 3 of an
Arduino. (The library were using in this
section expects the infrared LED to be
connected to pin 3.) Note that you cant
use an LED without a resistor. (See Cur-
rent, Voltage, and Resistance, on page 239,
to learn more about it.)
We could try to generate the infrared sig-
nals ourselves, but thatd be tedious and
error-prone. Its better to use the existing
implementation in the IRremote library.
Well use it to create our own
TvRemote
class that encapsulates all of the gory protocol details. Heres the class:
report erratum discuss
Cloning a Remote 207
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