How to build test circuits for infrared IoT projects

27.08.2015
If you are using infrared (IR) communications in an IoT, embedded, or mobile hardware project and are experience difficulty debugging IR communication, you can use the circuits below to eliminate a few doubts regarding the "physical layer."

In other words, using these circuits can help you ascertain that the device is indeed broadcasting IR signals and that infrared LED(s) and drive chips are working. 

This easy-to-construct circuit causes a standard LED bulb to glow when infrared is detected by an infrared photo-diode or phototransistor. The third, remaining part, is a common 2N2222 (or equivalent) NPN transistor.    

However if you would rather hear an infrared beam instead of watching for one, this circuit should fill the bill. It uses a common 555 timer to pump a tone through a standard 8 ohm speaker, but only when the IR source is strong enough to be detected by a photo diode.

Because this circuit can generate a very loud tone, a 5K potentiometer can be used to turn down the volume. Press the (normally open) test button to validate that the tone circuit works properly, and when you adjust maximum volume. 

If you want to test drive your newly constructed detector but don't have an IR source within reach, the next circuit should help you out. It too implements a 555 timer IC, but instead of driving a speaker, it pulses an infrared LED emitter five to seven times a second (5-7 Hz). An additional non-infrared LED is also wired in parallel, used to indicate the instant each IR flash takes place.

The following video demonstrates the IR pulse generator and both detector circuits 

Finally, if you are curious about the Apple Remote's IR signals, watch this:

(www.itworld.com)

Stephen Glasskeys

Zur Startseite