473,473 Members | 1,415 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Parallel port control with USB->Parallel converter

Hi,

I want to control some motors using the parallel port.. however, my
laptop does not have any parallel ports (very few do). What I do have
is a USB->Parallel converter... I thought about using PyParallel, but
the USB->Parallel converter doesn't actually map to the LPT port ..
and PyParallel only looks for LPT ports?

Has anyone tried doing this? What are my options for controlling
parallel connections on a laptop with no parallel port?

I also thought about controlling the USB natively.. but since I dont
have any instructions on how to do this with my Velleman USB->Parallel
port converter... i guess I would be totally blind.

Any help would be appreciated!

Soren
Feb 14 '08 #1
4 15266
Soren wrote:
Hi,

I want to control some motors using the parallel port.. however, my
laptop does not have any parallel ports (very few do). What I do have
is a USB->Parallel converter... I thought about using PyParallel, but
the USB->Parallel converter doesn't actually map to the LPT port ..
and PyParallel only looks for LPT ports?

Has anyone tried doing this? What are my options for controlling
parallel connections on a laptop with no parallel port?

I also thought about controlling the USB natively.. but since I dont
have any instructions on how to do this with my Velleman USB->Parallel
port converter... i guess I would be totally blind.
You could try and see how far you get with pyusb, the wrapping for libusb.
However, any decent usb2<somewhat>-adapter should register itself as device
of the mapped kind. For example, usb2serial-converters appear as
COMx:-ports.

So I *guess* you are having driver-problems if the converter doesn't show up
as parallel port.

Apart from that, you might consider using products like atmel's USB-Key or
similar to attach a microcontroller to the USB-port that then will use it's
own ports to control the motors.
Diez
Feb 14 '08 #2
Hey Diez, thanks for your answer!
You could try and see how far you get with pyusb, the wrapping for libusb.
However, any decent usb2<somewhat>-adapter should register itself as device
of the mapped kind. For example, usb2serial-converters appear as
COMx:-ports.
That was my thought too, and that's why I bought one (actually I
bought two), but it turns out that people only use these to interface
with old printers.. and so the converter is listed as a USB printer
port, and does not directly map itself to the LPT port.. Of course,
there must be some way of controlling the USB2PAR the way I want, but
without something like PyParallel or an API for this converter.. im
pretty much in the blind.. :/
Apart from that, you might consider using products like atmel's USB-Key or
similar to attach a microcontroller to the USB-port that then will use it's
own ports to control the motors.
I thought about it.. this would be my last option however... mostly
because it would take too much time to get acquainted with it. I need
the thing running before the beginning of March among other
things.. :) I do have a LabJack USB DAQ, which is really nice... but
unfortunately it's too slow for running 5+ motors in parallel by
sending pulses. I also thought about extending the labjack with faster
pulse generators that could be triggered from the labjack.

Using the parallel port or USB2PARALLEL on the pc would just be so
much simpler, cheaper and faster... So if anyone know how to hack an
USB-Parallel converter to let me send bytes to it.. I'm all ears!! :)

Soren

Feb 14 '08 #3
Soren,
I don't know about the USB parallel port converters but there are
variousways you can add USB connectivity yourself.

A simple way are the USB devices from FTDI
(http://www.ftdichip.com/FTProducts.htm)

Either the FT232R or the FT245R. These are both single chip solutions
that provide a USB interface on one side and an 8 bit bi-directional fifo
on other. The 232 is mapped as a serial port at the system level, whilst
the 245 is higher bandwidth and accessed through an API (use ctypes etc.)
Windows, Linux & Mac OS X are supported.

FTDI provide evaluation modules (tiny, USB powered) that you can be up and
running with in no time:

http://www.ftdichip.com/Products/Eva...45RModules.htm

Good luck!

regards
cds

Soren (so****************@gmail.com) wrote:
: Hi,

: I want to control some motors using the parallel port.. however, my
: laptop does not have any parallel ports (very few do). What I do have
: is a USB->Parallel converter... I thought about using PyParallel, but
: the USB->Parallel converter doesn't actually map to the LPT port ..
: and PyParallel only looks for LPT ports?

: Has anyone tried doing this? What are my options for controlling
: parallel connections on a laptop with no parallel port?

: I also thought about controlling the USB natively.. but since I dont
: have any instructions on how to do this with my Velleman USB->Parallel
: port converter... i guess I would be totally blind.

: Any help would be appreciated!

: Soren
Feb 14 '08 #4
Doh!

It's been a while since I used these.

I was slightly wrong; actually both the 232 and 245 devices can be
accessed either via a serial port interface (COMx on windows, /dev/??? on
linux etc.) or via a direct API.

The 245 provides a parallel FIFO and the 232 a serial data link, so you'd
want the 245.

regards
cds

c d saunter (ch*****************@durham.ac.uk) wrote:
: Soren,
: I don't know about the USB parallel port converters but there are
: variousways you can add USB connectivity yourself.

: A simple way are the USB devices from FTDI
: (http://www.ftdichip.com/FTProducts.htm)

: Either the FT232R or the FT245R. These are both single chip solutions
: that provide a USB interface on one side and an 8 bit bi-directional fifo
: on other. The 232 is mapped as a serial port at the system level, whilst
: the 245 is higher bandwidth and accessed through an API (use ctypes etc.)
: Windows, Linux & Mac OS X are supported.

: FTDI provide evaluation modules (tiny, USB powered) that you can be up and
: running with in no time:

: http://www.ftdichip.com/Products/Eva...45RModules.htm

: Good luck!

: regards
: cds

: Soren (so****************@gmail.com) wrote:
: : Hi,

: : I want to control some motors using the parallel port.. however, my
: : laptop does not have any parallel ports (very few do). What I do have
: : is a USB->Parallel converter... I thought about using PyParallel, but
: : the USB->Parallel converter doesn't actually map to the LPT port ..
: : and PyParallel only looks for LPT ports?

: : Has anyone tried doing this? What are my options for controlling
: : parallel connections on a laptop with no parallel port?

: : I also thought about controlling the USB natively.. but since I dont
: : have any instructions on how to do this with my Velleman USB->Parallel
: : port converter... i guess I would be totally blind.

: : Any help would be appreciated!

: : Soren
Feb 14 '08 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: MNQ | last post by:
Hi All I want to use my parallel port of my PC to control some external devices. I am writing a program in ANSI C using the PacificC compiler. What I need to know is how to access the parallel...
3
by: Danijel Babic | last post by:
Hi! Is there any way to control parallel port from VB.NET. I want to be able to send or read data from parallel port on Windows XP. Some ActiveX or dll, API or anything. Thx!
2
by: Panu's | last post by:
Hi, I want to measure the battery voltage through PC in my college project. How can I do so. I mean the interface and programming. Everything welcome.
12
by: david.brown.0 | last post by:
I'm trying to make a Java program access a parallel port. Java's comm API does not provide me with the control I need. I need to be able to write to the data and control pins and read the status...
11
by: Timothy Smith | last post by:
hello people. i've been trying to send an 8 byte string to my parallel port under freebsd. the purpose is it to control a relay board. the board simply responds to the output byte coming from...
4
by: Christopher Tidy | last post by:
Hi folks, I have a Sun workstation which doesn't have USB. I want to be able to download photos from SmartMedia cards onto the workstation. As far as I know there are no drivers available for...
3
by: thye | last post by:
Hi, I'm a very beginner in C++.....:) How to start a new project? Whats the simple code to control parallel port? Can show me step by step? Thanks a lot........
1
by: Riddler | last post by:
I am working with the latest (as of March 2008) version of MS VB 2008 Express and I am looking for some code examples to write to the parallel port. Basically turning pins off and on. I see many...
0
by: faztech | last post by:
Hello, I appreciate if you guys can help me clarifying the proper setup for my proposed development project that may be using parallel to serial/usb converter. Please see this image before I...
0
by: Paul Warner | last post by:
I have a hardware key (dongle) that's needed to launch and use an earlier version of Quark. I often need to go back to that earlier version to work on some legacy files. I've upgraded to Windows 7...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.