usb port interfacing

Status
Not open for further replies.

alwindawee

New Member
Hi there ...

I wana to build a device that makes me able to turn on and off a led connected to pc through usb port.

any one can help me do this ??

thax alot
 
The outer pins of the USB connector are supply voltage.

Pin1=+5VDC, pin2=data-, pin3=data+, pin4=ground.

Connect the load only to the outer pins. Use a 180Ω current limiting resistor for the LED.

Boncuk
 

Attachments

  • usb_a_b_male.gif
    933 bytes · Views: 439
thanx to your reply, but I want to be able to turn on and turn off the LED through a programe that written in vb6.

I mean "controlling the USB port".

thanx again.
 
Look at the USB Wacker link in my signature.
The example code uses Liberty Basic instead of VB
but it should be easy to translate.

EDIT: That link seems to be down just now. Sparkfun sells one.
 
Last edited:
I think you can wire and read data from USB using **broken link removed** activeX in visual basic
 
Last edited:
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…