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 #232 background imageLoading...
Page #232 background image
Building an Infrared Proxy
All of our previous remote control approaches have one major drawback: they
all depend on a serial connection to a PC. In this section, youll learn how to
replace this connection with an Ethernet connection, so you no longer need
a PC but only Internet access. You will directly plug your Ethernet cable into
an Ethernet shield connected to the Arduino, so it is available on your network.
Then youll connect an infrared LED to the Ethernet shield using the same
circuit as shown in Cloning a Remote, on page 207.
You dont necessarily have to use your PCs web browser to access the Arduino.
You could also use the browser on your PlayStation Portable or on your
iPhone. Yes, you can now control your TV set using your game consoles or
your smartphone. Oh, and you could replace the Ethernet shield with a Wi-
Fi shield so you dont have to connect your Arduino physically to your network
router.
Before we dive into the code, we should do a little planning ahead and make
clear what wed like to achieve. Well build an infrared proxya device that
receives commands via Ethernet and turns them into infrared signals. (See
the image on page 212.) To make it easy to integrate the device into a network,
well make it accessible via HTTP. This way, we can control it using a regular
web browser.
Well implement only a very small portion of the HTTP standard on the
Arduinowell support only a certain URL scheme. The URLs well support
look as follows:
http://«arduino-ip»/«protocol-name»/«command-length»/«command-code»
Well replace «arduino-ip» with the IP address of the Arduinos Ethernet shield.
The element «protocol-name» can be one of the supported protocols (NEC,
SONY, RC5, RC6, DISH, JVC, or SAMSUNG). «command-length»
specifies the length of the command code in bits, and «command-code» con-
tains the command code itself as a hexadecimal number.
Note that the sketch currently doesnt support Panasonic devices because
they dont fit our URL scheme.
Lets assume wed like to send the code for the power key on a Samsung
remote, and our Arduino has the IP address 192.168.2.42. Then wed have
to point our web browser to the following URL:
http://192.168.2.42/SAMSUNG/32/E0E040BF
Chapter 12. Creating Your Own Universal Remote Control 216
report erratum discuss
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