http://www.chanehart.co.za/prioriti/sitemap9.html 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:
Chem24 biz в обход 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
- Rs232 Port (USB one will do)
- Bread Board
- Jumper Cables for Bread Boards
- N-Channel Mosfet (You can salvage this from a old radio or something)
- Battery Powered device
купить Марка Никольское Assemble your board according to the diagram
курение мухомора 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.
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)
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!