Grumpy_Mike:
You haven't said what you want to do with it.
Do you want to send code or do you want to detect a beam breaking?
I'm sorry for that.
I want to send codes to control TOSHIBA projector now. But the device could be any IR devices.
I successfully decode IR codes and send it via Arduino. I tested it and see that the decoder on Arduino is able to catch the signal correctly within short distance. The only concern is the available distance between IR transmitter and the projector.
According to your reply, I may need to purchase the modulated IR transmitter and connect it to Arduino on my purpose.
OK that changes things. The problem with not providing enough information is that you get poor answers.
As your system is working but the range is poor then you must have the code right so:-
If you are sending codes to a remote device you have to send exactly what that device wants. There are two major things:-
The wavelength of the IR produced by your diode must match the peak response wavelength of the receiver. That is you have to pick the right IR diode not any IR diode. Otherwise the range is poor.
If the receiver is expecting modulated IR then it won't work with unmodulated light, so your code must be producing that. Sorry but I didn't notice that the setup you had is actually drawing too much current out of the arduino pin with the result that you are damaging your arduino and you are not producing all the IR light your diode can produce. Therefore you need to drive the IR LED with a transistor.
Grumpy_Mike:
OK that changes things. The problem with not providing enough information is that you get poor answers.
As your system is working but the range is poor then you must have the code right so:-
If you are sending codes to a remote device you have to send exactly what that device wants. There are two major things:-
The wavelength of the IR produced by your diode must match the peak response wavelength of the receiver. That is you have to pick the right IR diode not any IR diode. Otherwise the range is poor.
If the receiver is expecting modulated IR then it won't work with unmodulated light, so your code must be producing that. Sorry but I didn't notice that the setup you had is actually drawing too much current out of the arduino pin with the result that you are damaging your arduino and you are not producing all the IR light your diode can produce. Therefore you need to drive the IR LED with a transistor.
Thanks.
I have checked the communication between the IR transmitter on Arduino and the Projector. It works well within short distance.
Sometimes it generates unexpected signals although the code is correct.
For this reason, I'm assuming that the signal from Arduino is right.
Now, I worry if my Arduino is damaged from the poor couple of test before. I will test it with a transistor.
This brings up an interesting point: What's the best way to drive a typical 38KHz ir signal from arduino??
How about a 555 driving an IR LED and gated by the Arduino??
Anyone seen an example??
[The rumors are not true that I get a commission on 555 sales, and I did not invent it, although I'm old enough to have done that, and wish I had!]
---( updating)----
OK, Two things:
This brings up an interesting point: What's the best way to drive a typical 38KHz ir signal from arduino??
How about a 555 driving an IR LED and gated by the Arduino??
Anyone seen an example??
[The rumors are not true that I get a commission on 555 sales, and I did not invent it, although I'm old enough to have done that, and wish I had!]
---( updating)----
OK, Two things: