Solved

Engineering: Connect a input/output device to computer

Posted on 2003-11-14
6
287 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
OLD CPUs 12 105
"Video DataSource is Offline or not responding"  - why? 1 112
Dell Power edge R310 10 71
asset tags - importance 3 52
In this article we have discussed the manual scenarios to recover data from Windows 10 through some backup and recovery tools which are offered by it.
I use more than 1 computer in my office for various reasons. Multiple keyboards and mice take up more than just extra space, they make working a little more complicated. Using one mouse and keyboard for all of my computers makes life easier. This co…

679 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