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
brreaker

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
LMiller7

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
brreaker

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
.

Reply

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




Thread Tools




Similar help and support threads
Thread Forum
A range of BSOD problems coming from a faulty piece of hardware
Hello Everybody, Sorry for this being long but it should cover everything. See attached for BSOD zip files. I have a Windows 7 32 Bit Toshiba Satellite A500 Laptop. Basic specs are a 500GB Toshiba Hard drive, 8GB of Ram, Intel Core 2 Duo P7450 CPU, Insyde H20 Version 1.8 Bios and a NVIDIA...
BSOD Help and Support
The funniest user review of a piece of hardware
User review of an OCZ SSD from Newegg. This cracked me up. Had to share it.
Hardware & Devices
piece by piece upgrade of an old computer?
hi i lately got a 500W psu from my father who got it from his job becouse they didnt need it, now that my power problems in my computer is out of the way, i figured that i accually can get a good gpu! i can soon afford an GTX 660 or a GTX 650Ti but my cpu is an old amd phenom x3 2.4Ghz and my...
PC Custom Builds and Overclocking
Windows 7: How To Get All Hardware Information Completely?
Windows 7 Professional Is there a convenient way, say with one command or click, to get all the hardware information of my system ( example, CPU, RAM, motherboard, video card, sound card, etc ) put into one file? Thanks Steve
Hardware & Devices
BSOD while using NetBeans to send commands through serial port
Hi, I recently experienced BSOD while using NetBeans IDE to send commands to my robot(project) through serial port. I actually connected a ZigBee module to my Serial Port and sent commands to my robot using interface created in NetBeans. This occurs everytime i use NB IDE.If using emulator no...
BSOD Help and Support
How to check what piece of hardware is broken
How would I test which piece of hardware is broken: a sata to usb adapter or an internal harddrive? Sometimes, nothing is wrong at all. Other times, the harddrive keeps on disconnecting from my computer at random times, and im afraid it might destroy the platters from constantly stopping abruptly. ...
Hardware & Devices


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 19:01.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App