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.

206 questions
9
votes
5 answers

How can an Arduino output a specific (i.e. 56 kHz) carrier frequency?

I'm working on a free space optics project to send data wirelessly between two points. To accomplish this I'm using an IR LED connected to an Arduino Uno that pulses with a 56 kHz carrier frequency for the transmitter and a second Arduino with a…
jlbnjmn
  • 978
  • 2
  • 9
  • 15
7
votes
2 answers

Using a transistor to get 100mA on a IR led

What i saw is that the led use 1.3V on 100mA with a 1:10 Cycle (100ms). Im currently at 30mA using only a 100 resistor, but the range of the led is 20cm at max, i want to get at least 2 meters. Since i know the max output of the Arduino pin is 40mA…
Luke
  • 73
  • 1
  • 1
  • 4
6
votes
2 answers

Tone() conflicts with IRremote library (multiple definition of `__vector_7')

I have just started with Arduino and C++ so I apologise if my question is very basic. I am trying to use tone() with a passive buzzer to create a sound while also using the IRremote library for a remote. However, whenever they are used together, it…
rgiller
  • 63
  • 1
  • 6
6
votes
1 answer

ESP32 IR remote

my board is a firebeetle esp32 that I am using as an IR remote. After using the Ken Shirrif IRremote library for about 6 months successfully, then the time came to change a few things on the web front end. This has been a disaster. I tried to…
user53695
6
votes
4 answers

Infrared TV Remote to Arduino

On the hardware side of things, what is involved in making the Arduino receive signals from a TV Remote? What kind of infrared receiver is needed? Do TV remotes use some kind of channels, encoding, or encryption requiring special receivers or else…
HK1
  • 397
  • 1
  • 4
  • 10
5
votes
2 answers

How to choose a transmit pin in the IRremote library for an Arduino Uno?

I am looking for a way to choose a pin on the Arduino Uno. This pin will be used to send the signal of an IR LED. I am using the IRremote library. e.g. Below is the IR send demo which uses pulse width modulation pin 3 to send the IR signal. I want…
MALKAVIAN
  • 91
  • 1
  • 1
  • 5
5
votes
1 answer

bitClear doesn't work on most significant bit

I'm currently working on a project where I read a 32 bit sequence. The digitalPin is always HIGH when no sequence is received and starts oscilating with about 1kHz when the sequence starts (RC5). I am setting and clearing bits of an uint32_t…
elhe
  • 85
  • 1
  • 6
5
votes
1 answer

Nokia32/RCMM IR decoding issues

I am trying to decode the IR signals from a remote. I'm using an Arduino Pro Micro, and a TSOP38238 IR receiver. I found out that the remote uses the Nokia32(RCMM) protocol, and I have been able to partially decode it using cyborg5/IRLib…
Duom
  • 151
  • 3
5
votes
3 answers

Decoding IR codes with IR sensor rather than IR receiver module

I'm looking for a library to decode RAW IR signals from an IR sensor (looks like a black LED, two legged) rather than an IR module (3 legged, rated for a particular frequency - such as 38kHz). Is there a library that supports IR sensors? A picture…
omribahumi
  • 189
  • 4
5
votes
1 answer

IR frequency difference

I want to create a device that interfaces with the Light Strike Lasertag system using an Arduino Leonardo. The Light Strike system uses not laser but regular infrared signals. According to a site that I found…
Dakkaron
  • 239
  • 1
  • 10
4
votes
1 answer

Can I use IR Transmitter/Receiver for heart beat detecting?

Specifically, I want to know if the KY-022 module and KY-005 module can be used for heart beat detecting according to this tutorial? KY-005: KY-022: If so, can you please explain to me how can I achieve such thing with respect to the…
AWTahhan
  • 59
  • 3
4
votes
1 answer

Value of the counter collide on my lcd while decreasing. How can I remove it?

#include LiquidCrystal lcd(12,11,5,4,3,2); int visitor=0; //variable for counting visitor number unsigned long timer_1,timer_2; //variables for recording time for ir_1 and ir_2 void setup() { lcd.begin(20,4); …
Rappy Saha
  • 43
  • 7
4
votes
1 answer

Help solving "collect2.exe: error: ld returned 1 exit status" error in code

I just got an Elegoo UNO starter kit the other day and have been working my way through the little tutorials on all the parts it came with. I am using VSCode with Platform.io plugin and (after getting it set up) it has been working nicely. The code…
wileyrivers
  • 61
  • 1
  • 1
  • 5
4
votes
4 answers

What is the best and most reliable way to detect if a book is pulled out of a book case?

What is the best and most reliable way to detect if a book is pulled out of a book case? I have a book case which I want to mount sensors to so that I can detect when certain books are pulled out, I don't need to know how much, all I need is a…
JensB
  • 151
  • 3
4
votes
2 answers

Locally declared variable takes up global variable space in dynamic memory/SRAM

I'm trying to make my Arduino Uno control the air conditioner by recording the raw IR signal of several of the AC remotes temperatures using AnalysisIR. However these IR codes are quite long (array with 343 items). Declaring more than one IR code…
ihish52
  • 41
  • 3
1
2 3
13 14