Solved

Interfacing to my PC

Posted on 2002-07-17
5
226 Views
Last Modified: 2010-04-26
I am interested in exploring the possiblities of creating a few sensors that I can connect to my pc.  The main sensors will detect say light activation and trigger an event on the computer.  I am okay working on the code but wondered what i would need to simply attach this unit to my PC?
0
Comment
Question by:andyuk
5 Comments
 
LVL 2

Expert Comment

by:tandy
ID: 7159271
Hi ,

Check this out and see if it is what you require:

http://www.fawcette.com/javapro/2002_03/magazine/features/mnadelson/

Hold this helps,

Tand
0
 
LVL 63

Expert Comment

by:SysExpert
ID: 7159499
0
 

Author Comment

by:andyuk
ID: 7159860
I am really a beginner when it comes to hardware and electronics so the simpler the solution (and cheaper the better), I had hope that a simple circuit could send information into the device and when it changes my vb program could notice and trigger and event?
0
 
LVL 63

Expert Comment

by:SysExpert
ID: 7161134
Either the serial or parallel ports can be used. There is plenty of sample code for manipulating these ports available.
NT/2k/XP make it harder to access the hardware directly.

What OS are you planning to use.

I hope this helps !

0
 
LVL 1

Accepted Solution

by:
lordxeroth earned 50 total points
ID: 7161905
I think the most simple thing is to use the parrallel port. You'll have 8 bidirectional channels (or 8 bit bidirectional). If you use ECP it's fast and relatively easy to use (electronical and software). Mind that you shouldn't use things as WinNT as OS because low level hardware access is more complicated there.
The ECP uses hardware based handshakes for data transfer. This handshake can be easily made on you device by using some simple logic gates. Data can be buffered into some register (simple chip).
I once thought of using the parrallel port to control a railtrack. It's possible to 'transform' the 8 lines to 256 lines that are able to switch something on or off. Getting 256 inputs to 8 bits is a bit more complicated and that is why I didn't go further with the project.

Send me an email to lordxeroth@yahoo.com and give a description of what you exactly want to do and we can talk a bit about it.

regards,
Jan
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Stuck in voice control mode on your Amazon Firestick?  Here is how to turn it off!!!
This paper addresses the security of Sennheiser DECT Contact Center and Office (CC&O) headsets. It describes the DECT security chain comprised of “Pairing”, “Per Call Authentication” and “Encryption”, which are all part of the standard DECT protocol.
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…

809 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