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 #220 background imageLoading...
Page #220 background image
youre using such a receiver, you dont have to deal with all the complicated
transmission details. You can focus on reading and interpreting the incoming
signals.
The image that follows shows how to connect a TSOP38238 receiver to an
Arduino. Its cheap, its easy to use, and it works at a frequency of 38 kHz,
so it detects signals from a broad range of devices. Connect its ground con-
nector to one of the Arduinos GND pins, the power supply to the Arduinos
5V pin, and the signal pin to digital pin 11.
You might be tempted to write a sketch that reads and outputs all incoming
data on pin 11, and I wont stop you. Call
digitalRead
in the
loop
method and
output the results to the serial port. Point your TV sets remote to the receiver
and see what happens.
Youll probably have a hard time understanding the data you see. The problem
is that decoding the incoming data isnt easy. Even if the receiver has already
processed the data, it still has to be transformed and interpreted according
to some complicated rules. Also, Arduinos
digitalRead
method is too slow to
deal with all types of incoming signals. You have to directly access the micro-
controller to get the best results.
Fortunately, we dont have to do this ourselves, because the IRremote library
2
hides the nasty details. It supports the most popular infrared protocols, and
it can both receive and send data.
After youve downloaded and extracted the zip file,
3
rename the resulting
directory to
IRremote
. Copy the directory
IRremote
to either
~/Docu-
ments/Arduino/libraries
(on a Mac) or
My Documents\Arduino\libraries
(on a Windows box).
Then restart your IDE.
2.
https://github.com/shirriff/Arduino-IRremote
3.
https://github.com/shirriff/Arduino-IRremote/archive/master.zip
Chapter 12. Creating Your Own Universal Remote Control 204
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