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
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: ...
1
vote
1answer
26 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 ...
1
vote
1answer
22 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, ...
0
votes
1answer
70 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 ...
0
votes
1answer
169 views

Question about infrared receiver with metal shell to detect heart pulse rate?

I'm newbie to the world of arduino and environmental sensing. I have been searching for a while about how can I measure the heart pulse rate, I came through the following tutorial: Click Here I ...
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 ...
0
votes
1answer
102 views

Separate Timer Instance

I'm trying my best attempt here after failing in Googling the answer, but here goes: I'm trying to get a separate instance to start running in the background when a pin goes HIGH. How should I ...
0
votes
1answer
911 views

Error compiling code (tv-b gone)

I have been getting started with the arduino and found a great project online called tv-b gone. It includes some code which I cannot compile. Yes I have included main.h and worldcodes.cpp. /* TV-B-...
0
votes
2answers
39 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 ...
0
votes
1answer
59 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,...
1
vote
1answer
63 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 ...
0
votes
1answer
46 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
1
vote
0answers
24 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?
1
vote
0answers
53 views

How can I detect the amount of water that must be filled in an arbitrary container?

So I am making a Smart Water Dispenser that must detect the amount of water that must be filled in an arbitrary shaped container. This is what I have thought: Installing an IR LED strip to first ...
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 ...
0
votes
5answers
61k views

Using VS1838B with Arduino

I just bought VS1838B IR module (from here) and I’m trying to make it work. Below you can find the circuit to see how I have connected the 1838B IR receiver: My Code (Here) : #include <IRremote.h&...
1
vote
1answer
357 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(...
0
votes
1answer
35 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 ...
1
vote
3answers
3k views

Arduino IRremote stops working

I'm using a standard 38kHz receiver with Arduino-IRremote library and it works fine for a while but then it stops working. The loop function is running time after time as expected but at some point ...
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
3answers
704 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 ...
1
vote
1answer
36 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 ...
1
vote
1answer
34 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 ...
1
vote
1answer
81 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 ...
1
vote
1answer
57 views

How many sensors can an ARDUINO UNO support? [closed]

I'm doing a project that requires me to use 4 different sensors, namely a load sensor, RFID tag sensor, 2 IR sensors and a Hall effect sensor on one Arduino Uno board, along with a L293D motor ...
1
vote
0answers
112 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 ...
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 ...
0
votes
0answers
52 views

IR remote signal interference

Im trying to make an arduino project which uses IR remote control and does certain thing. My doubt is the weather the hex codes of some remotes be similar and if they are how to tell arduino to only ...
1
vote
5answers
11k views

How to increase the detection distance on Arduino KY-032 obstacle Avoidance sensor?

We've got an Arduino KY-032 obstacle avoidance sensor, and have spent a decent time searching and researching to find a detailed data sheet/manual to figure out how it works; but there aren't any ...
2
votes
1answer
176 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 ...
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 ...
1
vote
2answers
67 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 ...
2
votes
1answer
670 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 ...
1
vote
1answer
22 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 ...
1
vote
0answers
33 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 ...
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 ...
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 ...
1
vote
1answer
367 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 ...
1
vote
0answers
137 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 ...
0
votes
2answers
4k views

How can I stop my Servo rotating?

I have a continuous servo motor connected to my Arduino UNO. I want it to react to the Hexadecimal code received by an Infrared remote. I want the motor to rotate once in one direction and then rotate ...
0
votes
1answer
64 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 ...
0
votes
1answer
102 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> ...
1
vote
1answer
100 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 ...
-1
votes
2answers
318 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 ...
0
votes
1answer
83 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 ...
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() { ...
0
votes
2answers
45 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?
0
votes
2answers
2k 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 ...
1
vote
2answers
2k views

how to use hx-53 (IR Transmitter Infrared Sensor Module) with ESP32?

ESP32 tx2 (pin17) and rx2 (pin16) uses 3.3v based signals. HX-53 data connect to tx2, gnd to gnd and vcc to vin(5v). But as i can understand HX-53 data input should be 5v based. How can i solve ...
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 ...