EasyManuals Logo

Arduino Pro Mini User Manual

Arduino Pro Mini
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

Questions and Answers:

Question and Answer IconNeed help?

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

Arduino Pro Mini Specifications

General IconGeneral
BrandArduino
ModelPro Mini
CategoryMotherboard
LanguageEnglish

Related product manuals