Page 1 of 1

VB and DB9

PostPosted: Sat Jan 31, 2015 2:27 am
by pic16
hello everyone,

i want to use visual basic to make the pin-3 (which is Transmit, i search online) of DB9 port from my laptop always have voltage come out, is that possible?
so i can use it to turn on my super bright LED when room is dark :P

but i fail to get the voltage :(

anyone can help?

Re: VB and DB9

PostPosted: Sat Jan 31, 2015 3:10 am
by pic16
here my VB stuff with visual studio 2013...

Re: VB and DB9

PostPosted: Mon Feb 02, 2015 10:52 pm
by ober
Why don use multimeter to measure the voltage first?

Re: VB and DB9

PostPosted: Mon Feb 02, 2015 11:33 pm
by pic16
ober WROTE:Why don use multimeter to measure the voltage first?



LED blink just awhile then very quickly gone...
i need keep to press and release the ON button in VB hundred time to keep the voltage??? :o

Re: VB and DB9

PostPosted: Tue Feb 03, 2015 8:55 am
by Idris
Instead of using TX pin, how about controlling the DTR pin on DB9 connector?

Re: VB and DB9

PostPosted: Wed Feb 04, 2015 10:09 am
by pic16
Idris WROTE:Instead of using TX pin, how about controlling the DTR pin on DB9 connector?



thanks for the guide, after recoding and change pin i got the power from DTR :lol:

one more question, if i stubborn want to use that TX for continuing supply voltage, it is possible?

Re: VB and DB9

PostPosted: Wed Feb 04, 2015 9:35 pm
by ober
Try it, don need to wait for answer. Learn by trying and understand it.