Start of section
Production, amateur Radio amateurs Aircraft model, rocket-model Useful, entertaining |
Stealth Master
Electronics Physics Technologies Inventions |
Secrets of the cosmos
Secrets of the Earth Secrets of the Ocean Tricks Map of section |
|
Use of the site materials is allowed subject to the link (for websites - hyperlinks) |
Navigation: => |
Home / Electronics / Circuits / Special devices ... / |
Scheme of connecting different devices through
Printer port (LPT)
The LPT port on the computer is used to control the printer. It can be successfully used to control a device.
To explain the work we use the control circuit of eight LEDs.
As you know LPT port consists of 25 pins. In the work of this scheme, all 25 conclusions are optional. It is enough to use eight pins to control the LEDs. The connection diagram is shown below.
![]() |
2 D0 |
Resistors with a resistance of 470 Ohm. LEDs should be used with a small current consumption.
An example of a control program you can download here . The program works in the MS-DOS system. It also works in Borland Pascal 7.0 code when unloading into the compiled program.
Program lpt1_output;
Uses Dos;
Var
Addr: word;
Data: byte;
E: integer;
Begin
Addr: = MemW [$ 0040: $ 0008];
Val (ParamStr (1), data, e);
Port [addr]: = data;
End.
In addition to controlling the LEDs, it is also possible to control the electromagnetic relay by connecting it through the circuit shown below.

Attention!
With careless LPT experiments, the port may be damaged, which will result in the replacement of the computer's motherboard. Therefore, when experimenting, use an inexpensive computer and be very careful.Date of publication 19.04.2003gg.
Comments
When commenting on, remember that the content and tone of your message can hurt the feelings of real people, show respect and tolerance to your interlocutors even if you do not share their opinion, your behavior in the conditions of freedom of expression and anonymity provided by the Internet, changes Not only virtual, but also the real world. All comments are hidden from the index, spam is controlled.