Sign in to follow this  
-Fruz-

custom game controller (COM port)

Recommended Posts

Hi all i'm currently in the making of a custom controller for my computer, and has just gotten to the level where i i am dealing with controller->pc comunication. for this i think i have found a simple solution i wanted to test on you guys, and maybe get some feedback. the solution i came up with, is this: Software sends some data through one of the com'ports ports, controller then make that line connected or disconnected, sort of like a normal on/off switch. then software checks if that data has come back. let me demonstrate: 1 2 3 | | | SOFTWARE SENDS DATA | | | / / | CONTROLLER SWITCH (on/off) | | | | | | SOFTWARE RECIEVES ONLY DATA FROM LINE 3 now, would this be possible? or can you suggest maybe some other simple way of doing this that might be better? Any help apreciated! Thanx JFK

Share this post


Link to post
Share on other sites
The thing is, it will. The RS-232 COM port requires voltage levels to vary between -25 and +25 volts.

Share this post


Link to post
Share on other sites
Just make sure you know what you're doing before you start hooking homemade electronics to your PC, and even if you're sure you're ready, test it on some garage sale computer before risking damage to your Pentium 12 machine.

Share this post


Link to post
Share on other sites
Are integrated UARTs opto-isolated? (I somehow doubt it)

-Fruz-, that type of mechanism works best with the parallel port, as you have a dedicated pin for each bit (hence the name, parallel) as opposed to the serial port which requires a stroked signal.

If you add a uC to your joystick, you can make it send an rs-232 string whenever a button is pushed an periodically send position updates. ...or maybe you could use the game-port which is probably alot like a parallel port and made for what you are doing?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this