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
35 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
28 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
65 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 ...
1
vote
1answer
64 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 ...
1
vote
0answers
25 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
1answer
26 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
40 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 ...
0
votes
2answers
40 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 ...
1
vote
1answer
37 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
35 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
87 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
389 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(...
1
vote
0answers
121 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 ...
0
votes
1answer
64 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,...
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 ...
0
votes
1answer
78 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 ...
1
vote
2answers
69 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 ...
1
vote
1answer
26 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
34 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
92 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
139 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
387 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
142 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
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
105 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
105 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
327 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
88 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 ...
0
votes
2answers
46 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?
2
votes
1answer
189 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 ...
0
votes
1answer
52 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 ...
2
votes
2answers
195 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 ...
-1
votes
1answer
108 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 ...
1
vote
0answers
38 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 ...
1
vote
0answers
32 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 ...
0
votes
1answer
300 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 ...
0
votes
2answers
42 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 ...
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
407 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 ...
0
votes
1answer
1k views

Write an array to SD

I'm new to the Arduino and I asked some questions around here and they were really helpful so I'm hoping I will get help once more #define maxLen 800 volatile unsigned int irBuffer[maxLen]; //...
2
votes
1answer
690 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 ...
0
votes
1answer
157 views

MOSFET dimmer IR controlled

I am trying to make a group of LED dim with PWM to a MOSFET. The code seems to work for this, but the trouble is that the IR receiver will only receive the signal to turn on the lights and then IR ...
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 ...
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 ...
1
vote
1answer
585 views

Using Serial.write() to send a uint32_t send one byte x4 or send 4 bytes x1

In the IRremote library, IR signals are decoded and held in results.value. My project uses the NEC protocol which is 32 bits, so the IR code will always be 4 bytes. uint32_t dCodedIR; // // code ...
0
votes
1answer
91 views

Measure position of gear with arduino

So, my plan is to be able to turn a motor, with a gear on the end, for a certain amount of gear teeth then stop it. I can’t find a data sheet for the motor but it is very fast, brushed and DC. I was ...
0
votes
1answer
123 views

Arduino IDE upload error

I've recently been trying to make program using IRremote(library) in my Arduino IDE(v1.8.9), but whenever I hit the upload button this error message is returned Sketch uses 7514 bytes (23%) of ...
1
vote
1answer
212 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 ...
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 ...
-1
votes
2answers
117 views

Problems when racing multiple IR controlled Arduino robots

We are attempting to race 3 IR-controlled Arduino robots (Elegoo IR kit), but the IR signal from each remote seems to be picked up by all three receivers. It is possible to create a unique bond ...