• Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

Usb Digital I/o / Parallel Port

Status
Not open for further replies.

Briam

New Member
Hi

I'm working on a system that will be able to control my curtains from my computer. My plan is to use 2 l298 dual h-bridge and 4 DC motors together with 4 optic transistors for RPM. My problem is that there is no parallel port on my motherboard (and no pci either) and I've read that a parallel to usb adapter won't allow me to control each pin.

So what's the solution to this? Is there a usb thingy out there with programmable I/O's or a special usb to parallel adapter? Hope you know a solution :)

thanks in advance.
 

trennonix

New Member
i'm not sure why you wouldn't be able to control each pin if it's a full emulation of the parallel port.
But for controlling my built-in port, i used a DLL called inpout32.dll which you can easily find on the net and you can use it with VS2005
it allows you to control each pin; give it a try

Hope this helped in any way
 

trennonix

New Member
have you consiered getting USB to RS232 converter?
these are widely available and you can find kits that give you control over four or more relays through the serial port
you can always build your own, based on a PIC micro
 

BeeBop

Active Member
Hi,
Before I got into pics I tried one of these

Velleman nv

but they are expensive. You could make one easily with a PIC or AVR, etc...

they show up on eBay:

Velleman K8055 USB Experimenter's Interface Board Kit on eBay.ca (item 360030187391 end time 28-Jul-09 11:01:47 EDT)

For the same money, you could buy yourself a pic programmer-experimenter board. Go here and look for the 'JuneBug'

blueroomelectronics - Smart Kits Build Smart People

or more specific:
blueroomelectronics Junebug PICkit2 / MPLAB PIC Programmer, Debugger with Tutor


Then you can build tons of stuff; PICs vary in price but start at around a buck each up to a few bux for the high end devices.

Hi

I'm working on a system that will be able to control my curtains from my computer. My plan is to use 2 l298 dual h-bridge and 4 DC motors together with 4 optic transistors for RPM. My problem is that there is no parallel port on my motherboard (and no pci either) and I've read that a parallel to usb adapter won't allow me to control each pin.

So what's the solution to this? Is there a usb thingy out there with programmable I/O's or a special usb to parallel adapter? Hope you know a solution :)

thanks in advance.
 
Last edited:

BeeBop

Active Member
Briam,
That is only because you are new. Keep posting and it will change soon.

Yes, the bit whacker would serve you well; sorry I missed that!:eek:
 

Nigel Goodwin

Super Moderator
Most Helpful Member
Thanks for the help.

Do you know how i would access it in a c++ based program under linux?
Like any other serial port - the BitWhacker requires a driver on the PC that emulates a serial port via USB. Assuming there's such a driver for Linux, then you simply send out serial port text strings from the C++ program.
 

Briam

New Member
Thanks. I read a few places that it doesn't need a driver for ubuntu as it should be regonized as a serial.

Do you know a great place for c++ code examples using serial under linux?
 

Nigel Goodwin

Super Moderator
Most Helpful Member
Thanks. I read a few places that it doesn't need a driver for ubuntu as it should be regonized as a serial.

Do you know a great place for c++ code examples using serial under linux?
Sorry, I don't use either Linux or C++.

Surely there must be loads of LInux code for using the serial port?.
 

Briam

New Member
I ordered the UWB from sparkfun. Will be interesting to see if i can get this working or not.

I'll return when i got it working :)
 

Briam

New Member
Nice! I was thinking of building it myself aswell but it don't have alot of components in stock and therefore it would be more expensive than buying the finished thing.
 
Status
Not open for further replies.

Latest threads

EE World Online Articles

Loading
Top