|
|
|
|
|
The application for infrared goes well beyond the infrared object detection & navigation experiments shown in the IR Navigation project. With a handful of inexpensive parts [included with each Micro-Bot], and a little ingenuity, you can easily put together a half-duplex wireless infrared communications system for all kinds of fun & handy applications. If you have two robots you can use these circuits for wireless communications between them for some really interesting fun.
|
||
|
The infrared LED transmitter circuit
shown below in Figure #1 is capable of sending infrared serial data. Simply
turn ON hardware PWM on PortB.3, then send serial data in TRUE mode as shown
below. These circuits and techniques can be used for infrared wireless
communications between several robots, and even to send wireless
infrared data to a remote serial LCD or the PC serial port for debugging.
Note: The 2N3904 NPN transistor, LED, 430 and 10KΩ resistor in the NPN circuit shown below in Figure #2 circuit are optional. This optional circuit provides visual feedback to indicate when the circuit is receiving infrared data. The LED will blink while receiving data. Serial data from the detectors output is as read using the PicBasic Pro SERIN command with the simple receiver circuit shown below in Figure #2. The output of this receiver circuit will also directly control serial LCDs, and can be input directly to most PC serial ports. |
||
|
There are several reasons for this particular type or receiver circuit. #1. As shown below in Figure #4 we can see that the IR detector modules idle output state is +5V as seen through the internal 80K pull-up resistor. Inverted serial devices such as serial LCDs, and the PC serial port require the idle state to be logic 0 which is the normal idle logic state for all inverted serial communications. The 2N3906 PNP transistor provides an inverting circuit and the logic 0 idle state expected by serial devices that require inverted serial data. #2. The 10K base pull-up resistor connected to the 2N3906 PNP transistor aids the infrared detectors weak internal pull-up in holding the PNP transistor off during non-transmit or idle periods. It also helps improve pulse forming to clean up the data signal in electrically noisy operating environments.
Using these simple circuits and techniques, you can easily add infrared communications to Micro-Bot, create your own wireless infrared serial LCDs, and much more. Micro-Bot includes NPN & PNP transistors for you to experiment with. |
||
|
Copyright © 2007
Reynolds Electronics |
||