Fun with USB RS232

бошки закладками Yes i am alive, pirated butter fish didn’t kill me.

see Recently, in my great pile of E-Junk, i found a usb to rs232 converter that wasn’t in use. I decided to do something with it. with a little bit of reading, i made this:

http://xn--52-6kcdpebrimriw8r.xn--p1ai/good/gde-kupit-nasvay-spb.html

шишки в закладках Initially, i hooked up the motor to the txd and gnd pins of the rs232 port and hoped that it worked – it didn’t. It turns out that it doesn’t have enough current to drive the motor (it lit up LEDs though, I didn’t mess around with LEDs much as my LEDs might die from it :/). i figure i need some sort of external power supply, this is where the N-MOSFET comes in.

Anyways… this is what you need to make your own

Circuit Diagram

сигнализатор превышения скорости автомобиля купить Assemble your board according to the diagram

http://klassicheskayayoga.ru/low/gde-kupit-spays.html

купить ганджубас  

закладкам спайс

see url You can then connect the positive and negative cables to any battery powered device you have lying around (i happened to have a spare propeller), for the battery, i used a standard 9v battery.

 

Mine turned out like this:

Connecting to Rs232 port

Connect the Gate pin of the mosfet to the RS232’s Txd  and Connecting GND pin to the source pin.

On the computer…

All you need to now is to send something to the port,

In *nix based systems(Linux, Mac, etc):
$ echo 1 > /dev/tty(WHATEVER)

Windows
C:\> echo 1 > COM(WHATEVER)

Notice that the more data you send to the port the longer the your powered device stays powered up. To keep your device powered for a longer time, you might want to write a scrip to loop trough it.

Here’s an idea…

Hook this up with twitter and a battery powered nerf gun and everytime someone mention you in twitter, your nerf gun will fire!

Share/Bookmark