Lights and Display Board Circuits

Simple IrDA Transmitter Schematic Circuit Diagram

Communication over the IrDA port uses a relatively complex protocol but its possible to send a single character using just a few components. In many cases, this will be sufficient to control a Palmtop. This circuit generates a single pulse of IR light that is interpreted by the Palmtop as a data byte with the value 255. The circuit could hardly be simpler, a 1 μF capacitor is charged via the 27 kΩ resistors and when the switch has pressed this charge will flow through the diode to generate an IR light pulse.

Simple IrDA Transmitter Schematic Circuit Diagram

The values have been optimized for a communication speed of 9600 Baud but the actual pulse length is not critical. The listing shows a simple receiver program for this IrDA signal. The IR interface is opened with the command ir and the line get$(#5,0) reads a single byte from the interface, if nothing has been received it will return –1. Each time a character is received a counter will be incremented and displayed on the screen and a short sound will be generated.

#irdacount.bas
open “com1:”,9600,ir as #5
z=0
draw -1
while 1
n =get$(#5,0)
if n>-1
z=z+1
t$=str$(z)
draw t$,75,60,2
sound 800,100,63
endif
wend

Tags

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

Check Also
Close
Back to top button
Close
Close