Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: What port do I use to send information to a piece of hardware?

01 Sep 2013   #1

Windows 7 ultimate x64
What port do I use to send information to a piece of hardware?

This isn't really related to windows 7 (although I am using it and doing my programming based on it), I have a simple circuit consisting of a battery, a transistor and an LED.
I want to use the transistor to light up the LED by sending voltage to a cable. I tried using the USB port, however, it has a positive, negative and 2 data cables. Both cables are continuously sending data, so I cannot make the voltage 0 on any of them and stop the LED.
I've heard I must use a printer port, or an ATA connector, I am fairly unsure of what control software has over hardware. Any help is greatly appreciated!
Later edit: I mean other than using an USB interface

My System SpecsSystem Spec

01 Sep 2013   #2

Windows 7 Home Premium 32 bit

With a 16 bit OS or even Windows 9x this would be a relatively simple task. But with the NT platform direct access to hardware is the exclusive domain of system level code. Actually it is done by the HAL but that can only be called with system level code, or in other words a device driver. Writing a device driver is not a simple thing.

You really need to find a device driver that can do what you want.
My System SpecsSystem Spec
02 Sep 2013   #3

Windows 7 ultimate x64

I see, thank you for the time you took to reply. However, I understand that using an ATA connector I can trick the pc into thinking it is sending data to the CDRom via VB. But I think the safest and easiest way is buying an USB interface that has a microchip and allows you to control hardware via programming. At 30 bucks they are fairly inexpensive. Thank you again for your time.
My System SpecsSystem Spec


 What port do I use to send information to a piece of hardware?

Thread Tools

Similar help and support threads for2: What port do I use to send information to a piece of hardware?
Thread Forum
Windows 7: How To Get All Hardware Information Completely? Hardware & Devices
BSOD while using NetBeans to send commands through serial port BSOD Help and Support
A piece of history Chillout Room
Solved How to check what piece of hardware is broken Hardware & Devices
So you want your next piece of kit FOR FREE Chillout Room
Right click --> Send to --> Send to mail recipient Browsers & Mail

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 11:08 PM.
Twitter Facebook Google+

Windows 7 Forums

Seven Forums Android App Seven Forums IOS App

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33