Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
0answers
34 views

pin voltage output from ir send is too low [on hold]

I'm trying to use Arduino to send IR code through an infrared LED to my TV and haven't found luck so far. My schematic looks similar to the one at https://electronics.stackexchange.com/questions/...
0
votes
0answers
32 views

Precise On/Off control for IR LED

My goal is to be able to send/receive IR messages in my own custom format and send messages ~10 bytes long. My message object will get serialized down to individual bits, which are transmitted by ...
-1
votes
1answer
26 views

Problems with Arduino + IR + Raw code low memory

im having a problem with my new project with arduino + ir emitter + big raw codes. I've tryed this way: https://gist.github.com/jjmjr/41ed083c8229d0218c962641c5af27b0 As you can see each of my raw ...
-1
votes
0answers
24 views

Sharp IR sensor

I want to measure an inner diameter with a distance sensor . First i used ultrasonic sensor . But always i gives wrong answers . When actual distance is 295mm the sensor gives me 210mm. This gap is ...
0
votes
1answer
51 views

Arduino RGB LED not working all the time?

I was creating an RGB LED System with one 1 RGB LED controlled by an IR Remote. I wanted to assign a button to trigger a mood-light which cycles through the rainbow, and that works fine. But when I ...
-1
votes
0answers
31 views

Human body height sensor

I am making a Weight-Height measurement device. Brief looking of a product has the same principle : So in height measurement, I've tested HC-SR04, For normal height it measured a 191 cm as an ...
1
vote
1answer
34 views

Sanity check for dual IR LED circuit [closed]

If the intent is to drive the two LED's with 200-400mA (using PWM @ 38Hz), is there anything wrong with this solution? Perhaps this is a better solution, as it ensures the current is exactly the same ...
0
votes
2answers
58 views

Time between two IR beam sensors

I am working with two sets of IR beam, they are to be placed in X distance. My goal is to measure speed. I would like to measure time between the first IR beam to the second beam when the beam breaks. ...
0
votes
1answer
40 views

Arduino Uno keeps looping on setup() everytime I press a specific button on the remote

I'm trying to decode my Panasonic television remote using the IR_RECEIVE sketch below. When I press the remote's buttons it works fine and Iget the values, except from when I press the power button - ...
0
votes
1answer
34 views

Use IR remote with arduino

I would like to use the IR remote with Arduino to turn on a LED and turn off the same LED when I push on the remote. That is to say : If I push on 1 I would like the LED turn on If I push on 2 I ...
3
votes
2answers
491 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 ...
1
vote
0answers
30 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 #...
1
vote
1answer
80 views

IR receiver starts giving nonsense readings in LED colour change setting

First of all, I'm very new to this so sorry if it's a dumb question. I have an IR module which I'm using to control an LED strip. I have set buttons 1–3 on the remote to select three basic static ...
0
votes
2answers
120 views

Arduino Switching Between Loops IR Remote

I've been working on an LED strip project. However, I've come to a stand still at the moment. Within the program I am wanting to assign different lighting effects to each button on my IR remote. I am ...
1
vote
0answers
188 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 ...
0
votes
1answer
162 views

Breaking out of a while loop using IR remote for neopixel

I've been piecing together various lighting effects. I am wanting to have each lighting effect loop until another button is pressed to trigger another lighting effect. I've come to a bit of ...
0
votes
0answers
40 views

Looking for a faster, simpler IR protocol

I'm tracking fast-moving infrared LEDs with machine vision cameras, and I also have an IR decoder running for object identification. Object ID is working ok with the standard IR library, but I find ...
1
vote
2answers
124 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 ...
0
votes
0answers
33 views

IR Transmit, using arduino uno for middle range

after searching a lot in this forum and couldnt find an answer ,im asking you guys. Im looking to trans' ir for atleast 2.5m or more or sure. I tried 555 chip for 38khz with moduling of 1 hz and the ...
0
votes
1answer
306 views

Can I connect more than one IR receiver to an Arduino Uno?

I want to use #include <IRremote.h> to receive information from an infrared remote control. It works perfectly with one IR receiver. But I want to put three or four IR receivers: IRrecv ...
0
votes
1answer
150 views

Get IR Signal and its strength

Using an IR sensor, how can I get and decode signals from other IR devices? I've seen the IRRemote library and its forks, but it doesn't fulfill my second requirement which is that I need to be able ...
0
votes
1answer
126 views

Servo issue, won't go into negative range

I'm trying to create a small laser "turret" with x-axis control. The arduino receives input through IR sensor. I'm having a problem where my servo will preform my up and reset function(moves and ...
0
votes
1answer
284 views

How do I properly send variables using IR? [closed]

I want a transmitter unit to read some sensors and use IR to send the data to the receiver to display it on an LCD display. I used the examples IRrecDemo and IRsendRawDemo but the received data on ...
1
vote
1answer
276 views

KY-022 IR receiver, LED always on, no output

I've been trying to use a KY-022 to read IR signals. However no output is being produced and the LED on the board is constantly on. Board: Arduino Uno R3 I followed the procedure found here. The ...
0
votes
2answers
76 views

how can I break from this case by IRremote even if it's not finished yet?

I want to give a pause to case 0xFF02FD or at least to break from that case by entering the case 0xFFA25D even if the 1st case not finished, when I press power button wich has hexa code ( 0xFFA25D) I ...
0
votes
0answers
120 views

Need Help on Code involving IR Obstacle Sensor and Multiple Neopixels

Can someone please check my code for me since I am a coding no0b :( I'm working on a project involving 2 neopixels strips and an IR obstacle sensor. The first strip changes effects when the IR sensor ...
-1
votes
1answer
119 views

IR sensor not incrementing or decrementing inside the loop

My project is automatic room light controller with visitor counter using Arduino. My project was running correct upto this, but the problem started when we connected GSM module to our project because ...
0
votes
1answer
432 views

Transmit IR-Signal A, Receive IR-Signal B

I used the following program to send an IR code and I got the an unexpected result as below: /* IRremote: IRsendDemo - demonstrates sending IR codes with IRsend An IR LED must be connected to ...
1
vote
1answer
306 views

Problem with PWM function on RGB LED and IR

I'm having an issue in controlling a RGB LED with Arduino and a remote control. When including the library IRRemote.h (version 2.2.3), the blue channel only works in on/off logic instead of PWM. If I ...
-2
votes
2answers
1k views

Counting number of people inside a room [closed]

I want to count the number of people in a room using a microcontroller (Arduino Uno). I have 2 ultrasonic sensors at a doorway about a 1.5m apart from each other. I want to increment the number when ...
-1
votes
2answers
124 views

Whats wrong with my code?

Basically what i am trying to do is use an ir remote to turn an rgb on/off and have a few preset colors as well as being able to increase/decrease red/green/blue independently. I don't know much about ...
1
vote
1answer
81 views

How to use IRremote library with atmega8a

A few days ago I tested a circuit on a breadboard based on a ATmega8a with 1 MHz internal oscilator. It sould turn on and off a relay based on a IR code that is received and if it matches the ...
0
votes
1answer
74 views

Arduino emits signal A (infrared) but another Arduino receives everything but A (IR-LED problem)

Situation: I was trying to make a simple Arduino program that mimics my TV-Remote ON-OFF button. Diagnosis: It just won't work. So just to check I grabbed another Arduino (2) and added my IR-Sensor ...
0
votes
1answer
37 views

Using an IR sensor from another manufacturer

I am currently trying to create a line tracing robot with my Arduino Uno. I have an IR Sensor (http://support.robotis.com/en/product/auxdevice/sensor/irsensor_manual.htm) but I am not sure if I can ...
3
votes
0answers
122 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 ...
1
vote
0answers
78 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; ...
1
vote
0answers
256 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
1answer
1k 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 ...
0
votes
1answer
201 views

Simulate V1838B IR LED output

I have a HDMI switcher which uses a TL1338 IR LED that's connected via a 3.5mm audio jack. It has its own remote for switching between the inputs, but I want to use my TV remote. In order to do that ...
1
vote
2answers
787 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 ...
2
votes
1answer
258 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'...
1
vote
0answers
1k 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. ...
0
votes
2answers
55 views

compiler says I have to declare my hexidacimal I try to compare

#include <IRremote.h> int RECV_PIN = 11; // IR Receiver - Arduino Pin Number 11 IRrecv irrecv(RECV_PIN); decode_results results; int led = 12; void setup() { pinMode(led, ...
2
votes
0answers
1k 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
303 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 ...
0
votes
0answers
165 views

Ir sensor wakes Arduino too often from sleep

I have an arduino which I want him to sleep till he gets something from the IR sensor. I wrote my code according to this post: IR Receiver interrupt and arduino sleep mode The most important part ...
1
vote
0answers
174 views

Sleep mode Arduino Due through IR receiver control

I need to put my Arduino Due into sleep mode in order to consume less power. My Arduino Due receives IR data and does some work with it, but I need to make it sleep until there is no data. If data ...
1
vote
0answers
605 views

IR remote-control clone [closed]

I have found this project (https://create.arduino.cc/projecthub/richardosgood/clone-infrared-signals-with-arduino-3a3cb2?f=1) about cloning a remote control. I set up the Arduino and managed to copy ...
1
vote
2answers
3k 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
294 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() { ...