Rules | Recent posts | topic RSS | Search | Register  | Log in

how to make an led glow on one pin of USB port

 
Post new topic  Reply to topic    EDAboard.com Forum Index -> PC Programming and Interfacing
Author Message
ronydc



Joined: 17 Nov 2005
Posts: 88


Post25 Jun 2008 20:56   how to make an led glow on one pin of USB port

dear friends.
i hv a simple requirement . can some one help.?

i jsut need to glow an led on usb port... What should i do.. for tht.

can some one explain with code..? i am not known to VB. OR c++ or any but i know microcontrolers.

thanks in advance
RONY
Back to top
pranam77



Joined: 22 Apr 2008
Posts: 125
Helped: 9
Location: The heaven


Post26 Jun 2008 6:16   

Post DELETED

Last edited by pranam77 on 07 Jul 2008 12:59; edited 1 time in total
Back to top
ronydc



Joined: 17 Nov 2005
Posts: 88


Post07 Jul 2008 6:02   how to make an led glow on one pin of USB port

dear friend PRANAM,

72 ppl watched this topic.. no one made the sili comment like this.

u could understand .. my question.. if u have electronics bacKground.

think again and u will find the depth of the question.

regards.
--Rony.
Back to top
pranam77



Joined: 22 Apr 2008
Posts: 125
Helped: 9
Location: The heaven


Post07 Jul 2008 12:54   Re: how to make an led glow on one pin of USB port

Hai Friend.
You may have seen your Topic heading first, as it says something else. As you have told may be more than 72 PPL have seen your post but none of them got what you are asking. Hope no one has replied to this silly question. The headding itself says "how to make an led glow on one pin of USB port". Hope some one who knows better electronics will let you know how to glow an led on ONE pin of USB port. I am too intrested in this topic now...Just qurious to know HOW?
Back to top
389iaB4Yg6Xn



Joined: 26 Jun 2008
Posts: 5
Helped: 1


Post07 Jul 2008 13:42   Re: how to make an led glow on one pin of USB port

what pranam77 is trying to say and won't say is, that you need 2 pins to make anything in electronics. LED have 2 pins. if you need to light it permanently just connect diode between +5V pin and GND pin on the USB connector. also add some resistor in series to limit the current - let's say 150 Ohms - depends on the diode, you want to drive and on the current you want. google for "USB connector pinout" for more details
if you don't want to light it permanently, I'm affraid it will be MUCH MORE complicated...
Back to top
ronydc



Joined: 17 Nov 2005
Posts: 88


Post08 Jul 2008 17:32   

dear friends...
whom so ever replied to my post so far..

still u ppl are unable to get my point....
it gives u a hint in the other lines.. if u read the total message carefully.. so streach ur brains still more instead of teaching me how to glow an LED.

SOME OF MY LINES IN MY MESSAGE SAYS ----> " can some one explain with code..? i am not known to VB. OR c++ or any but i know microcontrolers"..

DEAR 2 FRIENDS.. read the above line in my message carefuly.. and think again wht this wise man try to say and why 72 ppl could not reply like u in sili maner..

i really feel like.. laughing.

ok any way waiting for an expert who can do this...
( i mean the one who know the VB and make the code to press a button in tht VB EXE and an LED glow on USB PORT....)

NOW I HOPE THT 2 PPL WHO HAVE REPLIED .. CAN UNDERSTAND .. WHT THAY COULD NOT UNDERSTAND PREVIOUSLY...

--LAUGHING rony.

Added after 8 minutes:

pranam77 wrote:
Post DELETED


why u deleted ur post..? u thaught ppl may laugh on u.? dont think ever like this.

its not necessary tht some one is wise and some one is not wise here.. but the thing is u dont reply to a question unless u know all about it.
u just read the title and .. in enxity.. ( or what ever..) u thaught i am just talking to lit and LED.. i learnt tht whn i was 4 years old.. man.. here in my question i am talking about making an led glow by a VB code.. on USB port. and ur undeveloped brain could not understood it..sorry but take care next time plz.or ppl will laugh on ur answers.
Back to top
Faizan Jawaid



Joined: 17 Jul 2008
Posts: 178
Helped: 17
Location: Karachi, Pakistan


Post21 Jul 2008 17:59   FT232

U cannot just glow a LED on usb port directly..First convert the serial data from USB to RS232 level using FT232(IC) . Then use a ucontroller to read data and convert it into parallel. Then connect as much LEDs as u like.
Back to top
ronydc



Joined: 17 Nov 2005
Posts: 88


Post22 Jul 2008 10:11   how to make an led glow on one pin of USB port

one more .. who has not understood my words..

ok any one there who understands wht i want. to learn.?

-- i wish some one is there. who can really understand wht i need .. ..
friends..!!!

- sad rony..
Back to top
DrBob13



Joined: 26 Mar 2008
Posts: 136
Helped: 36
Location: UK


Post23 Jul 2008 0:52   Re: how to make an led glow on one pin of USB port

Hello rony,
Sorry to join the negative league of replies but Faizan Jawaid is correct because a USB port is a high speed serial data bus, it is designed to output data as a very high speed bit stream, millions of bits per second, it is just not possible to make a LED glow in a controlled way without using an interface device of some sort to convert the serial message data to a parallel output, as you understand microcontrollers you must know what I mean by this.

It is possible to use some of the FTDI family of chips without a microcontroller to switch the LEDs as they have a parallel interface built in, so with transistor drivers you could then drive up to 8 high brightness LEDs directly from this port. Writing the LED driver program is then quite straigtforward, I think this is what you were originally asking for help with but it is impossible to write this code without details of the interface to the LED.

I realise it is difficult for you to make yourself understood on this forum because English is not your native language but as you have written your original post you seem to be asking for the solution to an impossible task, which is why you are getting some apparently laughable replies.
Best regards,
Bob.
Back to top
Eugen_E



Joined: 29 Nov 2004
Posts: 329
Helped: 30


Post23 Jul 2008 1:07   Re: how to make an led glow on one pin of USB port

Check this:
http://www.obdev.at/products/avrusb/powerswitch.html
The schematic is in the download archive
http://www.obdev.at/downloads/avrusb/PowerSwitch.2008-02-28.tar.gz

You need to burn program in the uC, build it simplified without relays, just LEDs. Connect it to PC, install the provided driver and use the provided command line program to toggle LEDs. It's really easy to modify the PC software to suit your needs.
Back to top
ronydc



Joined: 17 Nov 2005
Posts: 88


Post25 Jul 2008 14:31   how to make an led glow on one pin of USB port

dear dear dear...

all the friends starting from --> mr. pranam 77 up to mr . DRBob 13

PLEASE READ THE ANSWER PROVIDED BY MR.Eugen_E .

so all of you can understand that what was my question and what is the answer..

---> specially my very knowlegable friend
DRBob. YOU READ MR Eugen_E's answer ..?
so you will feel that there was no problem with my english but the problem was with the understanding ability of my dear friends here.

ANY WAY. my only intention in all this was to learn wht i asked for. and thanks for all of your co-operation.

Rony.
Back to top
DrBob13



Joined: 26 Mar 2008
Posts: 136
Helped: 36
Location: UK


Post26 Jul 2008 23:39   Re: how to make an led glow on one pin of USB port

Rony,
I FELT SORRY FOR THE WAY YOU HAD BEEN TREATED EARLIER IN THIS THREAD BUT CLEARLY THIS WAS A MISTAKE, ......the rest of this post would not be suitable for publication so I will not write anything that I will later regret...! Crying or Very sad
Regards,
Bob.
Back to top
389iaB4Yg6Xn



Joined: 26 Jun 2008
Posts: 5
Helped: 1


Post27 Jul 2008 11:34   Re: how to make an led glow on one pin of USB port

I really don't understand this forum. Why are you all being so nice to that apparent idiot, with poor english knwoledge and bad manners (OK I'm not much better right now either). One thing is, if you cannot express yourself in english, quite another is, when you insult anyone, who tries to clear the issue - tries to add some sense to quite stupidly (yes stupid is the word to use here) started topic. I guess all of you have much higher tollerance, than me. Or is he some sort of VIP, that I'm not aware of. And ronydc, if you are or aspire to be a professional engineer, I feel sorry for any poor soul, which will be forced to work with you!

!!!
Back to top
ronydc



Joined: 17 Nov 2005
Posts: 88


Post29 Jul 2008 7:48   how to make an led glow on one pin of USB port

mater ends here.
nothing to say more..
person with a level finaly got the my point about my question. and i got the answer.
enough.

see this is called the tollerence....

--sad rony
Back to top
mezo



Joined: 16 Jul 2007
Posts: 60
Helped: 2
Location: Egypt


Post18 Aug 2008 14:12   Re: how to make an led glow on one pin of USB port

well rony , i hope you have reach your point . i have made interfacing to a µc
through the Turbo C++ , and it was very easy just using two function in the C++ which is : oup, inp

these functions is designed to do interfacing all you have to do is to know the number of the port you want to make the interface on . send me if you want a code.



Hope this help you .
Back to top
Post new topic  Reply to topic    EDAboard.com Forum Index -> PC Programming and Interfacing
Page 1 of 1 All times are GMT + 1 Hour


Abuse
Administrator
Moderators
topic RSS 
sitemap