ir emitter not working

i have ir emitter that is reading a volage going throught when its turned on but looking at it through a camera its not flashing have tested the camera with a remote and that worked.

the code has no errors have double checked the raw timings are right and had someone read it for me

is my problem going to be the code or the emitter?

gizzmo341:
is my problem going to be the code or the emitter?

Probably

Probably code?
or
Probably emitter?

gizzmo341:
Probably code?
or
Probably emitter?

Unless you post your code and a circuit, how could anyone possibly make any kind of reasoned answer?

What does this....

ir emitter that is reading a volage going throught

....actually mean?

What frequency is it supposed to flash at?- would you be able to see the flashing by eye?

looking at it through a camera its not flashing

edit... is it just an IR LED?- replace it with a normal LED and see if that works.

this is the info i have about the emitter it was form the 37 in 1 keyes sensor set

This is their specific physical map
First, the introduction of This time we want to introduce an infrared transmitter and receiver
modules, in fact, they are now in our daily life plays Important role in who is now on a lot of
household appliances are used in such a device, such as air conditioning, TV, DVD, etc.,
It is based on wireless sensing, but also can be more remote control, very easy to use, then we
today Day it is necessary to study the fundamentals and how to use. Second, Products
1, infrared emission control, also known as infrared emitting diode, it belongs to two Tube can be
directly converted into electrical energy near-infrared lightAnd a light emitting device can radiate
SunFounder
out, its structure, with the general principle of the light emitting diode similar, but with a
semiconductor
Different materials;
2, the infrared receiver is set to receive, amplify, demodulate one of the devices, which has been
completed within the demodulation IC output
Is a digital signal;
3, the principle of infrared communication
Let's look at the structure of the infrared receiver: infrared receiver inside there are two important
elements, namely the IC andPD. IC is a receiver processing elements, mainly composed of silicon
crystals and circuits, is a highly integrated device, the main
To function as a filter, shaping, decoding, zoom and other functions. Photodiode PD is, the main
function is to receive the optical signal Number.
The following is a brief schematic work
The modulated infrared emitting diode signal emitted, infrared receiver after receiving, decoding,
filtering, and a series of operations After the signal for recovery;
IV Notes
1, infrared emitting diodes: clean, good condition; various parameters during operation must not
exceed limit values (positive
To the current 30 ~ 60 mA, Pulse Forward Current 0.3 ~ 1 A, reverse voltage 5 V, power
dissipation 90 mW, the working temperature
Range -25 ~ +80 ?, storage temperature range of -40 ~ +100 ?, soldering temperature of 260
?) infrared emission tube and then
Closed head should be paired with, otherwise it will affect the sensitivity;
2, the infrared receiver: in a low humidity environment storage and use; Please pay attention to
protect the infrared receiver receiving surface,
Contamination or wear will affect reception, and do not touch the surface; Do not wash this;
polluting gas in
Body or the sea (salty) environment storage and use; without any external pressure, and affect the
quality of the environment

// This sketch will send out a Nikon D50 trigger signal (probably works with most Nikons)
// See the full tutorial at http://www.ladyada.net/learn/sensors/ir.html
// this code is public domain, please enjoy!
int IRledPin = 13; // LED connected to digital pin 13
// The setup() method runs once, when the sketch starts
void setup() {
  // initialize the IR digital pin as an output:
  pinMode(IRledPin, OUTPUT);
  Serial.begin(9600);
}
void loop()
{
  Serial.println("Sending IR signal");
  SendNikonCode();
  delay(1000); // wait one minute (60 seconds * 1000 milliseconds)
}
// This procedure sends a 38KHz pulse to the IRledPin
// for a certain # of microseconds. We'll use this whenever we need to send codes
void pulseIR (long microsecs) 
{
  // we'll count down from the number of microseconds we are told to wait
  cli(); // this turns off any background interrupts
  while (microsecs > 0) 
  {
    // 38 kHz is about 13 microseconds high and 13 microseconds low
    digitalWrite(IRledPin, HIGH); // this takes about 3 microseconds to happen
    delayMicroseconds(10); // hang out for 10 microseconds, you can also change this to 9 if its not working
    digitalWrite(IRledPin, LOW); // this also takes about 3 microseconds
    delayMicroseconds(10); // hang out for 10 microseconds, you can also change this to 9 if its not working
    // so 26 microseconds altogether
    microsecs -= 26;
  }
  sei(); // this turns them back on
}
void SendNikonCode() {
  // This is the code for my particular Nikon, for others use the tutorial
  // to 'grab' the proper code from the remote
  pulseIR(3680);
  delayMicroseconds(1460);
  pulseIR(680);
  delayMicroseconds(140);
  pulseIR(720);
  delayMicroseconds(1020);
  pulseIR(660);
  delayMicroseconds(160);
  pulseIR(720);//
  delayMicroseconds(140);
  pulseIR(700);
  delayMicroseconds(160);
  pulseIR(680);
  delayMicroseconds(180);
  pulseIR(680);
  delayMicroseconds(160);
  pulseIR(700);
  delayMicroseconds(160);
  pulseIR(680); //
  delayMicroseconds(180);
  pulseIR(660);
  delayMicroseconds(180); 
  pulseIR(680);
  delayMicroseconds(180);
  pulseIR(680);
  delayMicroseconds(160);
  pulseIR(680);
  delayMicroseconds(180);
  pulseIR(660); //  
  delayMicroseconds(1040);
  pulseIR(660);
  delayMicroseconds(200);
  pulseIR(660);
  delayMicroseconds(180);
  pulseIR(600);
  delayMicroseconds(280); 
  pulseIR(480);
  delayMicroseconds(380);
  pulseIR(480);//  
  delayMicroseconds(1220);
  pulseIR(480);
  delayMicroseconds(380);
  pulseIR(480);
  delayMicroseconds(1220);
  pulseIR(480);
  delayMicroseconds(1240);
  pulseIR(460);
  delayMicroseconds(1240);
  pulseIR(480);//  
  delayMicroseconds(1220); 
  pulseIR(480);
  delayMicroseconds(380);
  pulseIR(460);
  delayMicroseconds(1240);
  pulseIR(480);
}

Power.txt (943 Bytes)

Do you see any activity on the built-in LED on pin 13?

You won't see the 38kHz flashing by eye of course, but I suppose the LED should at least show as "on" during a burst.

Change the code or write a new one, just to use pulseIR (long microsecs) with a longish value in there, then you should see the LED (either the IR one or the built-in one). I guess you would see that as "on" although it will be pulsing at 38k.

On the other hand, assuming you have a receiver like a TSOP34848 you could test to see if it reads anything.

Ok I loaded that code in my Uno and I see the pin 13 LED pulsing. So diagnostically that tells me the code is working. I have an IR led, I'm going to hook it up and I should see it through a camera.

So, if you see the pin 13 LED pulse, the code's ok I guess.

EDIT.... I hooked an IR led on pin 13 and yep it's visible as a pulse through a camera, in time with the pin 13 led. So the code's good at least in the sense that it's pulsing. Whether or not it's accurately modulated at 38k when it's on I can't say yet, but I do have a TSOP so I'll check.

Note that I don't have an IR module like yours with 5v, gnd and signal; just used an IR led with series resistor.

the arduinos led in 13 is flashing, setting up my mega as the receiver it wasnt reading and signel from the emitter but was from a tv remote

Well if L13 is flashing and the IR led isn't, clearly the emitter isn't working, since it will flash in time with L13 and the pulse is long enough to see.

thanks for all your help
i'm now guessing it is the emitter i'll go o a trip today and buy a new one

I did a quick further test: I pointed the emitter at a 38k TSOP receiver, and it pulsed high on its output during each pulse. So not only is the code pulsing, it's also modulating at 38k correctly.

Glad to help....

gizzmo341:
thanks for all your help
i'm now guessing it is the emitter i'll go o a trip today and buy a new one

You sure you had it wired the right way round? And what value of resistor were you using with it?

Grumpy_Mike:

gizzmo341:
thanks for all your help
i'm now guessing it is the emitter i'll go o a trip today and buy a new one

You sure you had it wired the right way round? And what value of resistor were you using with it?

Mike it looks to me from that huuuuuuuuge photo, that he has a module which has a resistor built in. I'm wondering what the module does, why 3 wires?- simple enough just to put the IR led across an i/o pin and ground with a series resistor. edit.. red and black look the right way round on the Uno.

Might be an idea to take pin 13 direct to the anode and ground the cathode, series resistor on side of choice; bypass the pcb.

Note to OP... please use much smaller pix, hundred or so k, not megabyte order, which requires lots of scrolling.

And check pin 13's working to the outside world by sticking a normal led and series resistor across 13 and ground.

And or move the whole thing to another pin.... (change the code :stuck_out_tongue: )

And check the 5V pin has 5V

ive just look at the modlue again and it has a space for a surface mounted resistor but no resistor when i continuity the signal (pin13) and 5v both are conected to the + side of the emitter if that helps

pin13 is working i had the ir reciver sketch running throught that pin last night

I can't picture what that module does. Just bypass it, take croc clips to the IR led where it sticks out of the board; treat it like any other led, two wires with a resistor on one side for current limiting.

I'm just wondering if..... maybe that module you have has electronics on board for 38kHz already, why else would it have three leads? So maybe the 5V / GND drives the electronics which gives 38kHz modulated output when the signal is high. If that's the case, then the adafruit code which provides modulation is redundant and all you need to do is provide the message.

Pure speculation on my part, mind.

why else would it have three leads?

Because there is a transistor driving the LED to get more current than a single logic signal can provide?

If you have this Keyes module, then it's already 38k capable, you don't need the code to do that fancy timing. So stick 5V in the signal and it should transmit a modulated burst.

JimboZA:
If you have this Keyes module, then it's already 38k capable, you don't need the code to do that fancy timing. So stick 5V in the signal and it should transmit a modulated burst.

It does look like the same module as the OP. However, based on the photos, its just an IR LED mounted on a small PCB (=module). It seems to be the same board used for several different modules. No point in just having an IR Led on the board.

There appears to be no other components at all on the board. Therefore unlikely to do modulation at all. Connecting 5v in directly will most likely blow the IR LED.

You will have to trace out the connections manually using a multimeter (or sharp eye....you could even use your arduino!). Then go through the examples provided with IRremote or IRLib to get you started. Don't connect directly to the Arduino without a resistor in series with the IR LED.