Questions tagged [ir]

Infrared (IR) is a form of light which is not visible to the human eye. It can be used in a variety of applications, including remote controls, data transfer, reflectance sensing, and proximity/motion detection.

Use this tag for any question which involves infrared in an Arduino project. This can cover a broad range of topics, so please try to use other tags as well, where appropriate.

207 questions
3
votes
4 answers

How to connect IR Transmitter and Receiver Module?

The IR Transmitter and Receiver module has both receiver and transmitter in same board. I tried Arduino IR Remote library example to decode Remote signal using below connection, but its not working. IR MODULE: ARDUINO Ground -> Ground 5V …
Kalaivanan
  • 131
  • 1
  • 2
2
votes
0 answers

How to fix an IR remote signal

I am using the following code to send an IR signal: #include IRsend irsend; void setup() { } void loop() { unsigned int IRsignal[] =…
Hoytman
  • 747
  • 5
  • 13
  • 26
2
votes
1 answer

Wiring an IR blaster+receiver board

I've salvaged this small IR blaster+receiver board from an old computer toy: As you can see the board was connected to the main unit via a 4-wire cable labelled like this: LED (yellow) (I guess this is the IR LED/blaster) IR (white) (I guess this…
eadmaster
  • 183
  • 8
2
votes
3 answers

how to prevent IR signal to go through 3d printed plastic?

I'm working on two arduino (one a dock, the other one on a robot) communicating through a IR to let the latter know about its location. I 3D printed a piece which goal was to channel the 3 IR led lights, to prevent them from overlapsing (exactly in…
2
votes
1 answer

How do I write the codes in #define in an IR Receiver circuit?

So I'm trying to turn an ON LED OFF or an OFF LED ON using a TV Remote. In the #define line, I write the hex code received from pressing the designated button on the TV remote. However, during compilation, an error saying unable to find numeric…
2
votes
2 answers

What's wrong with my IR sensor

I bought some 'lucky dip' IR sensors from China, no idea what they are, but they appeared to get lost in the post so instead I bought some of these from a reputable place in the UK that come with a datasheet. The next day, both items arrived…
MalphasWats
  • 304
  • 1
  • 10
1
vote
1 answer

How fast are IR sensors with Arduino

For an industrial project which requires detecting whether some text is printed on the cable at regular intervals or not, I was wondering if Arduino with IR sensor could work? The cable would be typically black with white text printed at each metre…
Deep
  • 11
  • 1
1
vote
0 answers

Using arduino as a remote control

I have old Sony amplifier (F117R) and CD player (CDP-590), both equipped with IR remote controls. The problem is that I bought them as vintage without remotes. I have a rough idea how to build dedicated RC for both units but I'm missing the…
Crowley
  • 111
  • 2
1
vote
1 answer

Blue LED not switching off

I have a circuit with a blue led, 470ohm resistor and one IR led. I want the led to be switched off when the IR led has a digitalRead value of LOW(i move my hand over it). So I wrote the code:- void setup() { // initialize digital pin 13 as an…
user2468338
  • 113
  • 2
1
vote
1 answer

Why is resolution 20?

I am using an amazing code to send/read infrared pulses without any external library. The code is fine and I took about 1 hour to fully understand it. The only thing I didnt understand is the variable RESOLUTION. I believe it should be 0 not 20. I…
Samul
  • 215
  • 2
  • 9
1
vote
1 answer

Increase IR transmitter directivity and range

I am working on a project to control different devices with arduino and IR LED so I am testing with this circuit: So, everything is working fine but I want to increase range of my transmitter. For now its barely giving response at 1 meter distance.…
Teja Allani
  • 75
  • 1
  • 2
  • 10
1
vote
2 answers

IR basic connection

Can I know how to change or connect from this circuit (three pin IR receiver) to two pin IR receiver because when I change the connection (3 pin to double pin), my arduino cannot receive the signal from transmitter. I dont know because of my…
muhisma92
  • 61
  • 2
  • 9
1
vote
3 answers

Change range of IR programatically

I am building a IR-based laser tag system. The basics are working fine. One feature, that I want to have, is different weapon modes with different ranges. How can I change the range of an IR transmitter with as little hardware as possible, or at…
Dakkaron
  • 229
  • 1
  • 7
1
vote
1 answer

IR receiver transmitter High frequency

I build photo gate, to detect throwing ball. It works fine when delay time in main loop for max 40 milliseconds. Problems start when I delay every loop only for 20 milliseconds, now my LED which indicates if something broke path between IR led and…
kosnkov
  • 111
  • 1
0
votes
1 answer

Measure position of gear with arduino

So, my plan is to be able to turn a motor, with a gear on the end, for a certain amount of gear teeth then stop it. I can’t find a data sheet for the motor but it is very fast, brushed and DC. I was thinking putting something like this below the…
Vosem Media
  • 100
  • 8
1
2