Hello, I have an IR LED and VS1838b IR Receiver. I want to make this:
I want when the connection between the IR transmitter and IR receiver is disconnected (for example by putting my hand between) to get a signal on serial. I will use Arduino MEGA.
How do I do this? Should I continuously send a pulse train, or just continuous light from IR transmitter?
Next problem is the receiver.
It's likely designed for intermittend 38kHz bursts, like from a remote.
Only certain receivers, like the TSSP4038 (not TSOP), are made for continuous IR.
Leo..
I don't want to guess.
There are many different black IR receivers.
And I don't know what exactly you're trying to do (distance etc.).
Maybe you just need a reflection/distance sensor.
Be specific with your requirements.
Post a diagram, links to datasheets, code, etc.
Leo..
alex5678:
Thank you! If I use the classic (black painted) IR receiver is more simple to make the IR switch?
I think that you will find that the device is encapsulated in an IR transmissive polymer, rather than just being painted black!
The sketch using one may be a lot simpler, however I think it is worth persevering with the VS1838B if you already have one. It should be more insensitive to ambient light conditions, and interference from fluorescent lighting etc. and give you a better range.