AMX IRLIB Manuel d'utilisateur

Naviguer en ligne ou télécharger Manuel d'utilisateur pour Logiciel AMX IRLIB. AMX IRLIB User manual Manuel d'utilisatio

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer

Résumé du contenu

Page 1 - Created by Chris Young

Using an Infrared Library on ArduinoCreated by Chris YoungLast updated on 2015-02-26 05:00:06 PM EST

Page 2

ignore that sequence which forces the user to release and repress the button each time or you canstore the previously received code and process it wh

Page 3 - Overview

Controlling NeoPixels with IRIn this very simple example we will change the color of a NeoPixel by pushing buttons on theremote. We are using a single

Page 4 - About IR libraries

We create a NeoPixel strip with one pixel connected to pin 6. Also create a receiver objectconnected to pin 11 and a decoder object. Reinitialize the

Page 5 - Hardware Needed

actually change the color and My_Receiver.resume() to reset the receiver so it can collect anothercode.Upload the sketch and try pressing the volume

Page 6

Controlling a Servo with IRSetting up the ExampleIn this example we will control the servo using an IR remote. We can adjust the speed that the servom

Page 7 - Decoding IR Data

Upload the CodeBelow is a version of the IRservo.ino sketch from the IRLib examples folder. It has been modified tobe used with the Adafruit Mini Remo

Page 8

Upload the sketch and try pushing the left and right arrow buttons. The servo should turn left andright. Pushing the enter button should center the se

Page 9 - Protocol Specific Issues

How It WorksThe program creates a receiver on object, a decoder object and a servo object. You can find moreinformation on the standard Arduino Servo

Page 10 - RC5 and RC6 Toggle Bits

You will need to put // in front of #define IR_SEND_TIMER1 to comment out that line. Then removethe slashes from in front of one of the other two opt

Page 11 - Controlling NeoPixels with IR

Sending IR CodesHardware IssuesIRLib not only receives and decodes IR signals but it can transmit them as well using an IR LED anda driver circuit. Th

Page 12

234555789910101114141517171919212223Guide ContentsGuide ContentsOverviewAbout IR librariesReceiving and Decoding IRSoftware installationHardware Neede

Page 13

control air conditioners and fans however protocols used for air-conditioners are extremely difficultto implement and we have not directly supported s

Page 14 - Setting up the Example

While we can connect an IR receiver to any available digital input pin, you can only use very specificpins for output. The library uses PWM pins and m

Page 15 - Upload the Code

Inside the loop the send command would then be:Some protocols such as NEC always use the same number of bits and so you do not need tospecify as an ad

Page 16

In a separate tutorial we will show you how to use IRLib to create your own universal remote byeither sending data through the serial port into the A

Page 17 - How It Works

OverviewMost consumer electronic devices such as TV, cable box, DVD players and other devices useinfrared signals for remote control. Each manufactur

Page 18

About IR librariesIR signals consists of a series of modulated pulses called "marks" separated by intervals called"spaces". Typic

Page 19 - Sending IR Codes

Receiving and Decoding IRSoftware installationInstallation of the IRLib library is as follows:1. Visit the IRLib page on GitHib (http://adafru.it/ez9

Page 20

Connecting the IR receiver is very simple. Connect the left-hand pin to any digital input pin on yourArduino. In our examples we will use pin 11. Conn

Page 21 - Loading the Software

IR Receiver Selection Guide fromVishay (PDF format)http://adafru.it/ezbMore information on receivers as well as schematics for using multiple receiver

Page 22 - My_Sender.send(0xa8bca, 20);

0:m500 s600 1:m550 s550 2:m500 s600 3:m550 s600 4:m500 s600 5:m500 s600 6:m500 s600 7:m550 s550 8:m500 s1750 9:m500 s1700 10:m500 s1700 11:m550 s1650

Page 23

uses the timing information and the number of bits to see if it matches one of the supportedprotocols. If it succeeds, it returns "true" alt

Commentaires sur ces manuels

Pas de commentaire