electrodoc2
- Feb 11, 2004
- 57
- Joined
- Feb 11, 2004
- Messages
- 57
SAFETY FIRST!!
NEVER CONNECT A PROJECT DIRECTLY TO YOUR P.C. ALWAYS USE OPTO ISOLATORS!!! THIS WILL SAVE MOTHERBOARD/PORT DAMAGE!
Before trying this, disconect your printer it may damage it!!!!
You can use your printer port as a controller for electronic projects. get QBASIC either from a dos disk or windows95/98 cd rom and run it then if you type in "out 888,1". This will send pin 2 of your printer port to +5 volts, to reset it back to 0 volts type in "out 888,0", The port has 8 binary outputs this is controlled by the "out" command. 888 is the number of the port you are addresing (printer port) and the second number corresponds to which of the 8 outputs you want going to +5 volts.
to set all of the 8 outputs to + 5 volts type "out 888,255". this is a very handy tip because when i was trying to control a stepper motor from my P.C. i couldn't find anything simple in which to do it but there you go enjoy.
also remember that this thing can switch states incredibly fast! and what ever you wish to interface can be done easily with a little basic knowledge of computer programing.
There is also the "IN" command which will read the state of the printer ports particular bit so you can have full interaction with your P.C. and your projects, I've never used the "IN" command on a project but i've browsed notes in magazines etc so i know it's possible.
Bye.. Rich... ;D
NEVER CONNECT A PROJECT DIRECTLY TO YOUR P.C. ALWAYS USE OPTO ISOLATORS!!! THIS WILL SAVE MOTHERBOARD/PORT DAMAGE!
Before trying this, disconect your printer it may damage it!!!!
You can use your printer port as a controller for electronic projects. get QBASIC either from a dos disk or windows95/98 cd rom and run it then if you type in "out 888,1". This will send pin 2 of your printer port to +5 volts, to reset it back to 0 volts type in "out 888,0", The port has 8 binary outputs this is controlled by the "out" command. 888 is the number of the port you are addresing (printer port) and the second number corresponds to which of the 8 outputs you want going to +5 volts.
to set all of the 8 outputs to + 5 volts type "out 888,255". this is a very handy tip because when i was trying to control a stepper motor from my P.C. i couldn't find anything simple in which to do it but there you go enjoy.
also remember that this thing can switch states incredibly fast! and what ever you wish to interface can be done easily with a little basic knowledge of computer programing.
There is also the "IN" command which will read the state of the printer ports particular bit so you can have full interaction with your P.C. and your projects, I've never used the "IN" command on a project but i've browsed notes in magazines etc so i know it's possible.
Bye.. Rich... ;D
Last edited by a moderator: