Skip to main content

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

I need help with code with two IR sensors using ATMega16

I'm working on a ball-counting project using two IR sensors to detect balls entering and exiting a room, but I'm currently stuck. I need help refining the logic in my while loop. Here's how I want it ...
cerouno's user avatar
  • 17
0 votes
1 answer
79 views

IR sketch keeps getting the same code: 4294967295

#include <Wire.h> #include <LiquidCrystal_I2C.h> #include <IRremote.h> // Khai báo địa chỉ I2C của màn hình LCD LiquidCrystal_I2C lcd(0x27,16, 2); // Khai báo chân analog A0 (cảm ...
user97498's user avatar
1 vote
1 answer
93 views

Problem adding IR receiver to smart car

I’m making a smart car using an arduino uno, sensor shield v5, motor control with a L298N and a servo motor + HC-SR04 ultrasound sensor. I want to add a IR receiver on the board so I can also control ...
AugustinS's user avatar
1 vote
0 answers
42 views

Incorrect HEX code from DMM IR RS232

I have an Amprobe 38XR-A (sometimes seen as a meterman), these DMM's have a IR RS232 port on top and transmit a HEX code. Using the official cable I get a hex value of: 08000400500A0 I am attempting ...
Ash_noob's user avatar
-2 votes
2 answers
199 views

IR Remote control on UNO

I am working on IR remote code run on Arduino UNO I can already get it work. but when I press the button and hold, the output is sent with the same value repeatly. So,the quesion is how can I do to ...
Tanwa Kankang's user avatar
0 votes
1 answer
232 views

IR Receiver Remote Controller for Windows

My dad watches netflix on his pc with his wireless mouse, hes gotten older and cannot hit the volume slide well enough. I have an arduino kit (ard nano), an IR recevier and remote controller laying ...
Marin Filipovic's user avatar
1 vote
0 answers
57 views

How to change between loops? IR Remote + led strip

#include <IRremote.h> #include <Adafruit_NeoPixel.h> #define LED_PIN 7 // define the LED strip data pin #define LED_COUNT 150 // define the number of LEDs in the strip Adafruit_NeoPixel ...
Martin's user avatar
  • 11
1 vote
1 answer
533 views

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 ...
Deep's user avatar
  • 11
1 vote
1 answer
219 views

Problem with IR remote and Pushbutton for digispark

As digispark is more compact and suitable for my electrical application. Following the same procedure in brtiberio answer. I tried to convert the script from Arduino UNO to digispark, but not succeed #...
Mah 's user avatar
  • 13
0 votes
1 answer
153 views

When using the IRremote library- why does it say 64 bits when after converting the hex to binary it comes out to be less?

I get this code output on my Serial when the IR receiver gets a signal: Protocol : GREE Code : 0x01C02350000000E0 (64 Bits) Mesg Desc.: Model: 1 (YAW1F), Power: Off, Mode: 1 (Cool), Temp: 16C, ...
Jeebus's user avatar
  • 3
0 votes
1 answer
4k views

HW-477 Module having VS1838B IR Sensor: Help with Pins

Ordered Universal IR Receiver and I got HW-477 module with VS1838B IR Sensor. Good thing is datasheet for VS1838B is available but not for HW-477. VS1838B pins as: Ref Signal | GND | VCC while HW-477 ...
fWd82's user avatar
  • 135
2 votes
0 answers
57 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: ...
Leonardo Scotti's user avatar
1 vote
1 answer
77 views

Mixed SHARP IR Sensor Readings

I'm using the GP2Y0A21YK Sharp IR Sensor in a ball and beam system where I'm trying to balance the ball in the center of the beam using the IR Sensor as a distance locator and a servo motor to tilt ...
Zelreedy's user avatar
1 vote
1 answer
433 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 ...
BrendanLuke15's user avatar
1 vote
1 answer
80 views

I need help with my final year project

I am building a project using bluetooth control as well as an ir sensor. The logic behind my program is when I press a key I want my robot to execute a series of program and while the program is ...
Krutarth's user avatar
1 vote
0 answers
121 views

can we use TCRT5000 sensor instead of IR proximity sensor?

I am planning to make a human following robot which requires two IR proximity sensors. I already have two TCRT5000 sensor. Can I use it instead of it?
cOde_monkey's user avatar
1 vote
1 answer
61 views

Will the noise from a voltage regulator interfere with IR LEDs and receivers on an Atmega328? (Arduino Uno sketch)

I have a project which uses an IR LED and receiver to communicate with other Arduinos. I am using the Atmega328 out of the Uno, rather than the whole Arduino board and I need it to be battery-powered, ...
Patrick's user avatar
  • 63
0 votes
1 answer
101 views

How to use LCD Screen and IR Remote to broadcast a countdown

I am trying to use an IR Remote to input date's and time's for a countdown, so then the LCD will display a countdown, like this: LCD: Enter Year Remote-Input: 2021 LCD: Enter Month Remote-Input: 08 ...
James Christaldi's user avatar
-1 votes
2 answers
141 views

How do I switch between while loops before the current loop finishes? IR Remote + LED's

I have a project that requires rotation of a tank tread. I've simulated LED's to go off in a rotation using an IR Remote. I want to stop the clockwise rotation halfway through so I can immediately ...
Nick's user avatar
  • 9
1 vote
1 answer
484 views

Multiple IR Sensors with Arduino

I am fairly new to working with sensors and Arduino. I am working on a project using Max MPS to control the volume of three audio files. There will be three framed photos, each having its own IR ...
Destiny Rodriguez's user avatar
2 votes
2 answers
213 views

IRremote and PCM sound libraries interfering

I have a simple sketch which sends IR codes, plays a sound and toggles an LED when you press a button and toggles another LED when it receives that code. The idea is that I have two Arduinos with this ...
Patrick's user avatar
  • 63
1 vote
1 answer
226 views

Cannot receive IR codes after sending IR on same Arduino (I have irrecv.enableIRIn();)

I have two Arduinos with identical wiring, they will (hopefully) end up being laser guns for my younger cousins. When they both have a sketch which simply toggles lights when the correct IR code is ...
Patrick's user avatar
  • 63
1 vote
1 answer
2k views

IR receiver receives only 0

I am trying to decode IR codes of my Samsung tv remote But the receiver always receiving "0" Schematics: Code: #include <IRremote.h> int RECV_PIN = 11; IRrecv irrecv(...
S.K.G Ezhil's user avatar
1 vote
0 answers
867 views

Unexpected and incorrect HEX codes coming from IR remote, but only in second function..?

Hello:) I'm working on a lil project with some NeoPixels being controlled by an IR remote, and with there being multiple strips, I felt it would be best to first select the desired strip, and then the ...
Tom's user avatar
  • 11
-1 votes
1 answer
169 views

Problem with sending IR with at ATMega328P-PU

I have a sketch that sends an IR code every second. It works fine (the correct code is received by my receiving Arduino next to it) on the Arduino but when I try to move the sketch to an ATMega328P-PU,...
Patrick's user avatar
3 votes
1 answer
12k 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 ...
wileyrivers's user avatar
-1 votes
1 answer
320 views

Problem with L293D controlled motors using IR pilot remote

I have a problem with my line follower: My robot has 4 wheels with DC motors connected to L293D shield (Arduino Uno). The robot is a line follower controlled by IR pilot with an IR receiver, it has 4 ...
Wojtek Hawryluk's user avatar
1 vote
2 answers
190 views

(very new to C) I'm trying to use irsend with what I think is char* but it won't take it. How can I convert it to what it needs?

I'm attempting to use a raspberry pi to send ir codes directly to my arduino to have as simple as a C program as possible. Here's my code I've been tinkering with that leads to errors or not working ...
Johnny Derpp's user avatar
1 vote
1 answer
101 views

Minimizing IR Detection Interference

I'll start by saying that the goal here is to have a hand/distance detection device. Basically touch-less button. I managed to get it working with a simple 2-pin IR emitter and 2-pin IR detector using ...
user7274456's user avatar
1 vote
0 answers
64 views

IR output won't stop

So I basically tried to control a Servo motor with an IR Remote. I'm a complete newbie in arduino programming but I just took some things from other scripts and tried them out until It worked, and it ...
HallOfRain's user avatar
4 votes
4 answers
323 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 ...
JensB's user avatar
  • 151
3 votes
2 answers
2k 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 ...
YJJcoolcool's user avatar
1 vote
1 answer
1k views

Measuring car speed between two points: What sensor to use and how to cover the distance?

PROBLEM Cars regularly exceed the speed limit in our street SOLUTION Measure each car's speed and clearly display the speed to the driver EXECUTION Measure the time the car takes to cover a set ...
Uralan's user avatar
  • 11
1 vote
0 answers
274 views

Atmega 2560 IR receiver returning random values with using NeoPixels

I am using atmega 2560 to control 590 LED lights with NeoPixels library. I also got an IR receiver connected so I could control the LED properties and it does work but only when the LEDs are not ...
user1031204's user avatar
0 votes
1 answer
394 views

Storing IR Sensor value not working

This is my first time working on Arduino for my project and I ran into an issue. I'm trying to make a very simple Vending Machine. Coin or any obstacle passes in front of the IR sensor and based on ...
Moeed Rehman Masood's user avatar
0 votes
1 answer
352 views

Circuit not working with 9 volt battery [duplicate]

I have made a simple circuit having an IR receiver and a Servo motor. Here is the diagram: Red wire: power Black wire: ground Orange wire: digital signal And here's the code: #include <Servo.h> ...
DeathVenom's user avatar
1 vote
1 answer
170 views

PROGMEM for IR command storage

I'm working on a code that is able to send raw data as IR signal to IR transmitter, the memory of arduino Nano is not enough to store the array in SRAM storage,so i'm about to use PROGMEM to store ...
M sayeh's user avatar
  • 31
-1 votes
2 answers
545 views

Running a motor for a 3 seconds continuously with and without interrupt

I have interfaced a dc motor and IR sensor to my nano. The DC motor is supposed to run only if the IR sensor detects an obstacle. Now, I'm trying to get the motor to turn off if continuously ...
user3796354's user avatar
1 vote
1 answer
302 views

motor controll holding ir remote button

im controlling some small dc motors using arduino uno and tle94112el shield. currently, i can independently controll motors by pressing remote's buttons, but i wanna keep one motor rotating by holding ...
Tincu Ioan's user avatar
0 votes
2 answers
78 views

IR Remote with Arduino

I want to build a remote with Arduino Nano. I have viewed many tutorials in the web, but I don't have the IR Receiver (TSOP1740). Is there any way to use Jjust an IR Led as the receiver?
Souradeep Das's user avatar
2 votes
1 answer
550 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 ...
CHETAN NIRADWAR's user avatar
0 votes
1 answer
130 views

Determining which raw IR code to use for AC

I'm new on this so go easy on me. I'm trying to make an IR blaster to control my TV and ACs. I realized that when I capture the IR code, power button/temp up and down/mode send raw codes that are ...
Calvin9's user avatar
2 votes
2 answers
2k 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 ...
Qiasm's user avatar
  • 123
-1 votes
1 answer
393 views

How to increase the range to IR transistor receiver

I have a Arduino project which controls LED using IR Receiver and Transistor.The circuits works fine,But the problem is the LED is Blinking Brightly only for short range basically between 5-8 cm,but ...
Arjun Achu's user avatar
1 vote
0 answers
68 views

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 ...
Crowley's user avatar
  • 111
1 vote
0 answers
40 views

Arduino and Processing- Conditionals only executing sometimes in response to IR codes

I am reasonably new to arduino and even newer to Processing so still struggle with trouble shooting my code. The intention of my sketch is have Processing receive IR codes from the arduino and ...
Harrie's user avatar
  • 11
0 votes
1 answer
609 views

How can I receive signal from remote control using tcrt5000 sensor module

how can I use tcrt5000 sensor module instead of TSOP31238 (TSOP1738) IR receiver to get signal from remote control? I want to create remote control for my PC to navigate through my slide shows. Thanks ...
user avatar
0 votes
2 answers
260 views

Follow black and white line simultaneously

I have a line following bot which uses IR sensors (LSA08, more specifically) to detect the white line on black surface and stay on track. For the project however, there is a trick in the track. At a ...
RishiC's user avatar
  • 125
0 votes
1 answer
52 views

Is it support to use Infrared radiation module in ESP12E?

I have a IR module -->image as shown is it possible to use the IR module in esp8266? how to do(sent and receive)? what is the packet format of IR module? please explain. Thanks
Jonson's user avatar
  • 29
1 vote
0 answers
674 views

Problem sending IR signal on Arduino Leonardo/Uno (IRRemote library)

I am trying to use my Arduino Leonardo (or Uno!) as a remote with the IRRemote library. The current setup picks up and decodes a signal perfectly, but fails to retransmit it. I have tested the ...
symtek's user avatar
  • 11

1
2 3 4 5