Solved

Engineering: Connect a input/output device to computer

Posted on 2003-11-14
6
286 Views
Last Modified: 2010-04-27
I'm not sure if this is the correct place to be asking this question, but here goes.  I'm trying to interface a device that will use one sensor and control one actuator.  The actuator I think will be analog from 0 - 5V and I'm not sure on what sensor I'm going to use yet.  At any rate, I would like to connect this device to a computer eventually, and my preference is USB...as its a growing standard.  I downloaded the spec for USB 2.0 and saw that two signals D+ and D- are used to send or recieve signals...but I don't know how I can change the voltage level or record from the sensor using these two signals?  If anyone has done something similar, or can provide some insight...that would be greatly appreciated.

Thanks,

Bryan Willman
0
Comment
Question by:Willman023
  • 2
6 Comments
 
LVL 12

Accepted Solution

by:
public earned 168 total points
ID: 9749838
You have to do a lot more than change voltage levels. USB uses  a complex protocol to recognize and to communicate with peripherals. You may be better off using the parallled port. There are many simple designs exactly as you describe available. Just use a google search for parallel port a/d.
0
 
LVL 31

Assisted Solution

by:rid
rid earned 166 total points
ID: 9750446
USB is for serial communication. If you want to measure/indicate or output a variable voltage you would need a different kind of interface. Some kind of Analog/Digital converter board comes to mind. These can be internal cards (often quite expensive) or external "pods" that connect to your parallel or serial port. I guess they will be available in USB flavour, too, as this interface is growing in popularity.
/RID
0
 
LVL 31

Expert Comment

by:rid
ID: 9750458
Take a look at:
http://www.picotech.com/

/RID
0
 

Assisted Solution

by:stressguy
stressguy earned 166 total points
ID: 9990144
Personally i also think you would be better off using a parallel port.  I ahve actually worked with parallel ports before and created an interface to run stepper motors for a robotic arm.

Parllel ports are very easy to control, from low level languages or languages like pascal and QBasic.

The outputs are all +5V or 0V and the inputs should be the same.

I would also strongly suggest that you add a diode to each output.  Any stray current leaking back into an output pin, might seriously damage your parallel port and (if it is onboard) even your mobo.
0

Featured Post

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Is it worth it to buy an Echo? In a word, yes! For me it was definitely worth it. I use mine on a daily basis. Prologue & Privacy At first, I was very skeptical about the Amazon Echo. In general, I don't like voice assistants. I don't li…
this article is a guided solution for most of the common server issues in server hardware tasks we are facing in our routine job works. the topics in the following article covered are, 1) dell hardware raidlevel (Perc) 2) adding HDD 3) how t…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

825 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question