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
11k 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 ...
5
votes
2answers
8k 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
1answer
394 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
1k 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
101 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
699 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
4answers
969 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 ...
4
votes
1answer
187 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 ...
4
votes
1answer
178 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
1answer
6k 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 ...
3
votes
2answers
6k 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
1k 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
110 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
4answers
7k 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
93 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 ...
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
769 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
0answers
144 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
1answer
106 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
389 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
3k 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
309 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
2k 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
1answer
432 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
1answer
2k 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
1answer
922 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 ...
2
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 ...
2
votes
1answer
478 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
1answer
390 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'...
2
votes
1answer
2k 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
381 views

IR sensor readings at different voltages

I am currently working on a photo-transistor like this: http://www.ebay.com/itm/10pcs-ITR8307-S18-TR8-Optical-Switches-Reflective-Phototransistor-Output-/381374566327?hash=item58cbb20fb7:g:...
2
votes
1answer
649 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
139 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
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 ...
2
votes
1answer
365 views

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

Arduino Neopixel affecting IR receiver module

I have tried this on both an Arduino Uno and an Arduino Mega2560. my issue is as follows. Without a 150 LED string of addressable pixels attached, I can pretty consistently capture and read the input ...
2
votes
1answer
990 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 ...
1
vote
1answer
84 views

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 ...
1
vote
1answer
261 views

How to run 50 IR LEDs off an Arduino UNO?

Hi I have 50 camera devices I want to program. Luckily the camera devices have a param.xml file I can import. I have already loaded the param.xml file on each of the camera devices however, now I need ...
1
vote
1answer
64 views

Change data-type String

I'm currently working with an ESP8266 NodeMCU V3 and an IR transmitter breakout board. The module receives NEC IR commands trough a HTTP request and then sends them trough the IR transmitter. Getting ...
1
vote
2answers
1k views

Delay a part of the void loop

I have two different programs written for my Arduino. One checks the room temperature every 5 seconds. The other one looks for IR remote signals. I would love to combine those 2 programs, yet the ...
1
vote
1answer
247 views

Sending IR via a wire

So i have taken apart this old remote i found, and removed the IR-LED and replaced it with wires. I thought that i would just be able to put the wire that used to go to the positive side of the IR-...
1
vote
1answer
84 views

HUGE deviation in Sharp IR sensor values if other pins are defined in void setup()

I wrote this code for a project - int sensorpin = A5; int val = 0; double avgval = 0; int E1 = 11; int brake = 12; char data = ' '; void setup() { Serial.begin(115200); pinMode(E1, ...
1
vote
3answers
415 views

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 ...
1
vote
1answer
113 views

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 ...
1
vote
2answers
471 views

Can I use an IR distance sensor in rain? [closed]

I am planning on using 'SHARP IR Distance Sensor - GP2Y0A710K0F' in an outdoor environment. Assuming the casing I design for the sensor is waterproof, can I use this IR sensor without any trouble? If ...
1
vote
2answers
4k 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,...
1
vote
2answers
214 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 ...
1
vote
3answers
2k views

Calculate time between 2 data of a sensor

I'm working on a project in my university and I'm having a trouble in calculate time. I have a conveyor and an IR sensor which I use to calculate the maximum and minimum distances of a box when it is ...
1
vote
1answer
77 views

Gesture sensing TV coffee table - what sensors would you use?

A 32 inch flat screen was embedded in a coffee table and covered by a protective layer of glass. Sensors around the edge of the glass surface need to be able to detect the precise location of an ...