Hi,
ErickIR wrote:Please try to make it simple to understand, I tried researching a circuit diagram but they look complicated.
Communication via light (visible or IR/UV) is highly prone to environment "noise" - if you have a very simple circuit that works in the nighttime, then, most likely, it would not during daytime due to light saturation. If you tune it to daytime intensity, then its working point drops outside the range during night time...
Ok, so you need to filter-out environment light from sun, lights, etc. Since the changes of the sun intensity are slow, your communication must be based on quick changes of light intensity. This allows you to perform mentioned filtering.
Going further... your communication contains "1" and "0" states... so, in case of "1", you have to create "some pulses" (= changes of light intensity), in case of "0", you don't generate any light on sender side.
Ok, so ... what would be proper frequency of pulses ? Something what is away from 50 (or 60) Hz AC frequency, because some lights radiate light related to this frequency (actually doubled). Ok, so our lower limit is 120Hz... but we need to take some margin and the carrier frequency needs to be higher, to be on the safer side...
But, we don't want to complicate our life here, so we take a look what elements are available... and we see, that there are quite some of them fine-tuned to accept signals with carrier frequency around 38kHz...
So, they are designed to "pass trough" just digital signals with mentioned carrier frequency...
Ok... so what you need to do on the sender side ? ... You have to create a generator for base (carrier) signal equal to the receiver's frequency (eg. 38kHz) and you need to feed this signal to LED. (Since most receivers are sensitive to IR light, you need to take IR LED.)
When you want to send one logical state, you "turn on this 38kHz generator for some moments". For the other state, you leave it turned off. If you don't want to deal with the carrier signal generator in sofware, you can search for a circuit to make a discrete one with electronics. Most likely, you will google one built around NE555 chip.
So, what you need to do next... go to Google and type "38kHz IR sender" and "38kHz IR receiver".. and you'll find circuit examples. Pick one that meets your needs best... and spent some time reading additional descriptions. Uncle google knows all about this...
Best wishes, Ivan Zilic.