![]() |
![]() |
![]() |
|
|
|||||||
| General Electronics Chat This forum is for general chat about electronics, eg: Dont know what a part does? Dont know how to read a circuit? Want to get an opinion? |
|
|
Thread Tools | Display Modes |
|
|
(permalink) |
|
Hi!
Could you help me in controlling a switch or a motor (i.e turning on /off and changing direction) by my computr via the parallel port . Also tell me how to programme it using Microsoft Visual Basic (i have a little experience using it , in my school course ) |
|
|
|
|
|
|
(permalink) |
|
hi jobbin,
If you are using Win XP you will require a routine called inpout32.dll, this will enable your VB programs to control the parallel port. If you have Win 98 or 98SE then your VB should have easy access to the port. Lets know what your Win operating system is.??? At the end of the printer cable you are using, you will need a small pcb, so that you can mount the LED's and other components. If you want to drive items like motors and relays, you will need a bench power supply to power them. If you cannot write your own VB program, we will guide you. Eric |
|
|
|
|
|
|
(permalink) |
|
i have windows XP
|
|
|
|
|
|
|
(permalink) |
|
the other end of the printer cable is just like the parallel port pin (female). How do i connect the pcb to a pin like this ! What PCB?
inpout32.dll - where do i get it from? I dont know if i have it! Last edited by JobbinJP; 13th March 2007 at 08:48 AM. |
|
|
|
|
|
|
(permalink) |
|
hi,
Do a google search for inpout32.dll, its freeware. When you have downloaded it, place it in your Windows/system32 directory. If the parallel cable you have is a spare one, you can either get the mating plug, so that you can solder wires to that or cut off the socket from the end of the cable. You will have to make a note of which wire goes to which pin on the other end. Which ever way you choose of connecting the 'free' end of the cable you will require a PCB [ printed circuit board] or something similar so that you can fix your LED's too. You could just hang them to the end of the wires, but that will soon become a 'pain' to keep working on. If you are not sure if you have inpout32.dll, use XP to search your hard drive, its unlikely that you already have it. Eric Last edited by ericgibbs; 13th March 2007 at 09:03 AM. |
|
|
|
|
|
|
(permalink) |
|
ok! i got the inpout32.dll and the source code ! now what do i do?
|
|
|
|
|
|
|
(permalink) |
|
hi,
When you have downloaded it, place it in your Windows/system32 directory Attached is VB5 i/o program that you can use and modify to suit your projects. Paste the inpout text part in your VB prog as a module, the rest of the text as the VB form, OK. When you have prepared the end of the printer cable, let us know and we will explain the next step. Do you have multimeter ? Eric Last edited by ericgibbs; 7th July 2008 at 11:18 AM. |
|
|
|
|
|
|
(permalink) |
|
how do i connect the pcb to the female end of the parallel port cable
yes i do have a multimeter . ok my cable is ready!! But i got a vb-test program along with it But what do i do for the form? I didnt get any VB5 o/i form with it! Last edited by JobbinJP; 13th March 2007 at 09:26 AM. |
|
|
|
|
|
|
(permalink) |
|
if you have the form can u send me an image of it ? i can make (i'll try to).
they are asking for 'dllport.dll' Last edited by JobbinJP; 13th March 2007 at 09:33 AM. |
|
|
|
|
|
|
(permalink) |
|
hi,
This from my previous post. If the parallel cable you have is a spare one, you can either get the mating plug, so that you can solder wires to that or cut off the socket from the end of the cable. You will have to make a note of which wire goes to which pin on the other end. Which ever way you choose of connecting the 'free' end of the cable you will require a PCB [ printed circuit board] or something similar so that you can fix your LED's too. You could just hang them to the end of the wires, but that will soon become a 'pain' to keep working on. You can use the VB program that came with the inpout32.dll if you wish. As a test, connect your meter to pins #2 and pin#19 of the cable and set the meter to 10 volts say, use the VB program to switch pin2 ON/OFF. The volt meter should read about 0v or +5v as you switch the pin. Google for parallel printer port pinout for the rest of the pin assignments. Eric |
|
|
|
|
|
|
(permalink) |
|
ok i got a program with the following txt box- (adress) and (data) and it has two command buttons (in) and (out).
How does this program work? this program had come with the 'inpout.dll' im very sorry but i'm using a digital multimeter! and all i have is DC , AC , Ohms , Continuity ! Last edited by JobbinJP; 13th March 2007 at 09:47 AM. |
|
|
|
|
|
|
(permalink) |
|
how do i switch pin 2 on?
what shouldd i type in adreess? What in data? which button to press in/out ? Hey! but without doing anything itself there is 5v between pin2 and pin19 (you might find me irritating but i'm just 14 and i dont kno much bout electronics) Last edited by JobbinJP; 13th March 2007 at 09:57 AM. |
|
|
|
|
|
|
(permalink) |
|
how do i switch pin 2 on? what shouldd i type in adreess? ............ Port 378
What in data? which button to press in/out ?.............. make data 0, press out. What in data? which button to press in/out ?............ make data 255, press out Its possible that you have +5v already on pin 2, its the way its configured. Using your DC meter can you turn pin #2 ON and OFF ??? Eric |
|
|
|
|
|
|
(permalink) |
|
there is no change in DC volts when data is 0 and 255!
|
|
|
|
|
|
|
(permalink) |
|
hey man!! it Worked!! koool .
But doesn't it have enough ampere for a motor? and how did you know that to activate pin# 2 it is port 378? how can i know how to activate pin# 5 or any other pin? Last edited by JobbinJP; 13th March 2007 at 10:37 AM. |
|
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Latest |
| Good Electronic Supply's Sites, Everyone Come On In! :P | Electric Rain | General Electronics Chat | 44 | 27th August 2007 11:05 PM |