50MHz Transmitter for the IR detector
comming or leaving. I will not ask you why!
Okey, lets take a look at the blockdiagram. The first part is a IR-detector. Inside the detector is two or more IR-seisitive surfaces.
The IR-diod is most sensitive to IR-changes. To gain sensitivity, filtering and IR-viewing angle, one use a lens in front of the IR-diod.
This lens is called fresne lens. It is the window you see on the alarms. The output signal from the IR-diod has to be amplified to
obtain a useful signal. The next block is a preamplifier. This amplifier amplify the signal about 70dB or 5000 times.
Since the IR-change is quit low in frequency, the amplifier is built to work with low frequency about 1-5Hz. Imagin a person who
walks towards the detector, then the emitted IR from the person is focused into the fresne-lens with a low frequency.
At the output of the amplifier we have a DC signal wich is 2.5V +/- 1V depending
on the IR-diod. The output goes to an A/D converter and a microcontroller handles the rest.
The trigging level should of course be higher than the noise level, or else it will trigg continously. Since I use a 12 bit AD and my
calculating system is for 12 bit you will
need 2 bytes to set the trigging level. The two bytes are programmed into the EEPROM when you program the circuit.
When a trigg has occured the CPU power upp the transmitter and set the DTMF circuit to send some data.
The DTMF (dual Tone Modulated Frequency) circuit is a circuit wich code data into 2 tones with different frequencies.
You have probably heard this when you diale on your phone. The tones you hear are representing the number you are dialing.

I use a simple NPN (BC817-25) transistor to gain the signal. The resistor R1 and resistor R4 set the
gain and the DC-bias. If you use another transistor you might have to change the values of these two resistors.
Use an oscilloscope connected to the collector. You can use two potensiometers (500 ohm and 200k)
instead of R1 and R4.
R1 will set the DC bias and R4 will set the gain. Make sure you get a nice shape of the amplified signal.
I use two digit to make a call. One could use more to get a safer transmision, but in this version I use only 2.
The transmitter starts and after 2.5ms the DTMF-circuit send the first digit for 50ms. After first digit comes a 50ms pause and
then comes the next digit also for 50ms. After the last digit the power to the transmitter is shut down.| Code 19 | Tell that there has been a IR-detection. |
| Code 18 | "keep in touch" (sends every 10 second) |
| Code 17 | "beep" (Remote mode) |
The pic at right shows the antenna tuning part from the larg schematic.
| Ir_txr_t.zip | Test Program (The file Ir_txr_t.hex is zipped!) |
| Ir_txr.zip | Sharp Program (The file Ir_txr.hex is zipped!) |
| 07312861.pdf | Datasheets for AD1286.pdf |
| 07303688.pdf | Datasheets for MT8880 DTMF circuit |
| 07522402.pdf | Datasheets for CSL172 IR sensor |
