I want to control LED with C# using only USB port. I don't want to attach any other device with USB. I just want to attach LED directly to USB port pins and program it (blink etc). How can i do that? I am new to hardware programming and it will be my first program.
EDIT: I can do it already (blink LED) using printer port
by attaching one led pin to data pin
and other to ground
. How can i do the same with USB port? My motherboard does not have a printer port. USB is the only option.
This is not possible.
4 usb pins
| | | |
| | | |
1 2 3 4
1: +5V
2: D-
3: D+
4: Ground
To trun on LED connect with 1 and 4
Current on Data pins is too low therefore LED will never turn on if connected with 5V
and any Data pin. Hence LED can not be controlled directly using data pins on USB port