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.

Filter by
Sorted by
Tagged with
9
votes
5answers
12k views

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 ...
6
votes
2answers
12k views

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 ...
5
votes
4answers
1k views

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 ...
5
votes
1answer
260 views

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 ...
5
votes
2answers
13k views

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 ...
5
votes
1answer
625 views

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 ...
5
votes
3answers
2k views

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 ...
5
votes
1answer
109 views

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 ...
4
votes
2answers
1k views

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 ...
4
votes
1answer
4k views

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 ...
4
votes
4answers
90 views

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 ...
4
votes
1answer
210 views

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

#include <LiquidCrystal.h> 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 ...
4
votes
1answer
854 views

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 ...
3
votes
2answers
7k views

IR Receiver interrupt and arduino sleep mode

I need to put my arduino into the sleep mode in order to consume less power. My arduino receives IR data and do some work with it, but I need to make it sleep until there is no data. If the data has ...
3
votes
1answer
2k views

How to send unmodulated IR-Signal via cable?

I need to generate en (extended) NEC signal. I have connected an Arduino with a display-device via an IR cable. Arduino --> IR-cable --> IR-input of display device IR-cable: One plug is ...
3
votes
1answer
333 views

Controlling relays with IR and button

What I have: 1 x 8 channel relay 1 x IR receiver 1x Arduino Uno 1x momentary switch 1x breadboard 1x 10K resister I think the wiring is all ok as for the most part things are working as they should.....
3
votes
1answer
2k views

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 ...
3
votes
2answers
122 views

Is an Ultrasonic Sensor or Infrared Sensor better for measuring distance (to/from a human body)?

I'm trying to make a sensor to detect that a person is within 50cm to trigger a function. But when I use the HR-SR04 sensor, it works accurately on flat surfaces (e.g. walls, books) with a margin of ...
3
votes
1answer
2k views

Breaking out of while loop using IR remote input

I'm trying to control a series of LEDs using an IR remote. I have a problem when I try to play a sequence with the LEDs where they all light up in a line and turn off accordingly. I loop through the ...
3
votes
4answers
9k views

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. ...
3
votes
1answer
513 views

Arduino UNO IR blaster - storing codes in PROGMEM

I've setup an IR LED on my UNO, with the IRremote library, and have the code working to control an RGB LED strip from certain serial input, however as i'm storing the Raw infrared data in variables, i'...
3
votes
2answers
2k views

How to wire an analog IR sensor for digital input?

How do you wire a phototransistor so that it outputs a clean digital signal in response to certain light levels? I've wired a QRD1114 to an Arduino analog pin to detect a white or black surface. ...
3
votes
1answer
1k views

A/C doesn't detect IR codes sent from Arduino

I have an IR receiver and an IR LED I got from a kit (I don't have the datasheets for them). I uploaded an Arduino sketch to record my A/Cs IR codes. Those were NEC encoded 32bit integers. After ...
3
votes
0answers
3k views

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 ...
3
votes
0answers
2k views

Converting between NEC and HEX values from IR receiver

I jacked one of the IR receivers from my LED strip and hooked it up to my ESP8266 NodeMCU (running Arduino code). I found a great library called IRremoteESP8266. With this library, I can basically ...
3
votes
0answers
169 views

2D cross correlation code for small images [closed]

I am working on a arduino Uno project* to detect eye pupil movement and I am thinking of using a serial low-res jpeg camera. I am thinking of implementing a cross-correlation function to detect when ...
2
votes
3answers
705 views

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 ...
2
votes
1answer
133 views

What is micro C in a circuit diagram?

This is probably a simple question but I am a beginner with these things. What does the micro C part of the circuit diagram mean? The diagram is from the datasheet of the tssp77038 IR receiver. Does ...
2
votes
2answers
648 views

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 ...
2
votes
5answers
4k views

Why is Arduino resetting while driving motors?

I am driving motors for my line-follower project . The circuit schematic is given below The power source is a 11.1V 2200mAh 25C Lipo . Practically the cells give 11.5-12V. I used a switching buck ...
2
votes
2answers
498 views

Can I power two 5V with Arduino powered with 9V power adapter?

I have a setup where I have a 5V IR receiver and 5V relay board and Arduino Uno. I am currently powering the Arduino from the PC USB and both the IR receiver and the relay board from the Arduino. ...
2
votes
1answer
4k views

How to power IR LEDs with arduino?

I need a circuit or something to power up IR leds as arduino only give 5v and IR leds needs 1.2V. Is there a way to make one arduino pin a power supply of 1.2 V code or something ?
2
votes
2answers
3k views

Reliably duplicate custom IR remote control with ATTiny85

This is something I'm struggling with for a while and fail to find solid solution. The Arduino IR library provides method for recording arbitrary IR code and re-sending it. This gave me different ...
2
votes
2answers
188 views

Which one is IR led?

I've ever been so confused in my life. I'm new to Arduino and electronics but I just can't figure it out which diode is IR transmitter/receiver or even if it is IR. I know that IR is not visible to ...
2
votes
1answer
624 views

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 ...
2
votes
2answers
5k views

How do i generate exact number of PWM pulses in arduino?

So my code here generates a PWM wave of 38Khz on Port B pin 7 of arduino Mega 2560 . For that I have used a prescaler of 8 and then set the ICR1 register value to 51 . I have also set the WGM10 ,WGM11,...
2
votes
1answer
784 views

Error in IR receiver project

I'm trying to receive remote information with an IR receiver and this is my code: #include <IRremote.h> int RECV_PIN = 11; IRrecv irrecv(RECV_PIN); decode_results results; void setup() { ...
2
votes
2answers
308 views

Manipulating 3 IR led's on Arduino Uno

I have an Arduino Uno and 3 IR led's. Each of my IR led's works fine individually if I connect them to pin 11. However I want to connect all 3 of the led's to the Uno and have them send different ...
2
votes
1answer
53 views

Nikon IR remote trigger (ML-L3) emulator not working

I have tried to follow along/reproduce the results from several sources for emulating the Nikon infrared remote trigger: Adafruit Guide DIY Nikon ML-L3 IR Wireless Remote Hack with Arduino UNO ...
2
votes
1answer
177 views

I am facing a problem of firing multiple interrupts on nodemcu 1.0 on single rising edge pulse.what is problem and what are the solutions?

I am working on a project which involves counting the drops falling in a drip chamber of a IV fluid gravity based therapy bottle(saline bottle).I am using IR trans-receiver at the drip chamber to ...
2
votes
1answer
671 views

Using the Broadcom AFBR-S50 with Arduino

I'm trying to interface with a Broadcom AFBR-S50MV85G ToF sensor over SPI using an Arduino, which is complicated by the fact that the provided library and reference application is written for Cortex ...
2
votes
1answer
3k views

Convert LIRC config file to Arduino IR remote command

I have a LED 24 button remote with a few broken buttons and I want to simulate all the buttons with an esp8266 using an IR remote library. I would like to know if someone can help me translate the ...
2
votes
1answer
686 views

How to make universal remote controller?

I am trying to make simple TV remote using Arduino. I got this link from Google for making a remote. Code uploaded perfectly on my device. But all it does is blink a the LED on pin 13. I hope I ...
2
votes
0answers
34 views

Infrared Reciver doesn't work properly after the first signal

i'm trying to play a passive buzzer with an IR reciver My Code #include <IRremote.h> IRrecv irrecv(10); decode_results results; void setup() { // put your setup code here, to run once: ...
2
votes
0answers
93 views

Problem with incrementing values of an RGB LED

I'm trying to use a remote control to control the red/green/blue values of an RGB LED using an Arduino Uno. Here's what I've got so far: #include <IRremote.h> #define IRPin 7 #define bluePin 9 #...
2
votes
0answers
336 views

ESP8266 based wifi IR Universal Remote for A/Cs

I have been working on a prototype for a wifi based universal remote controller and i have been using the IR-Remote library for the same. But i have a couple of questions which google couldn't help ...
2
votes
0answers
165 views

Hacking a Chinese Audio Selector Board: IRLib2 with Low Power Sleep Issue [closed]

I have an issue getting an arduino based hacked-board to sleep whilst performing ir remote commands properly. What am i hacking? Exactly this: tl;dr it's a 4 in 1 out audio selector with motorised ...
2
votes
0answers
188 views

Unable to send IR command

I am trying to switch the TV on using Arduino. Following is my set of code #include <IRremote.h> IRrecv receiver(2); IRsend sender; decode_results results; long repeatitions; long count; ...
2
votes
0answers
449 views

Problem with Arduino line follower

I am making a line follower robot. My code is like this #define motI1 10 #define motI2 6 #define motI3 5 #define motI4 3 int left=9; // left sensor int right=1; // right sensor void setup() { ...
2
votes
0answers
2k views

ESP8266 library / function for IR remote control

I am using IRremoteESP8266 for reverse engineering Hitachi AX-M76E mini stereos IR controller. I want to read the signal that the remote sends and send the same hexas to the stereos with IR led. ...