Using a BS2 for a game controller..
ryfitzger227
Posts: 99
I have started the board of education with the BS2 and almost finished. Well I fly on a flight simulator a lot and was going to build a homemade flight sim cockpit. Well the modules are expensive! So I was going to build my own! My first, test, module will be a 4 toggle switch board. I was wandering how do I connect the stamp to my computer, using a usb connection, and show it as a game controller. And when it shows up as a game controller I would like for it to show up as a button.. So when I flip the switch it should show that the button was pressed and was let go, when the toggle switch is still on... If your confused please watch this video, http://www.youtube.com/watch?v=WU1e-UuUSyw . It's a video of a pulse generator, connected using a usb connection, with thoggle switches, as a game controller, for flight sim. Im not sure what chip that is, but I wanna use a BS2. Any way possible??
Thanks!!
~Ryan
Thanks!!
~Ryan
Comments
There's not a way to program a BS2 to make a PC recognise it as such a thing.
How much are they charging for it?
Thanks once more!
~Ryan
I guess the rest is up to you.
???
I just looked - they're $34. A Stamp costs more than that.
Grab any computer keyboard/mouse, carefully take it apart, then run wires to your switches.
The only problem with this idea is that you can't leave the switches continuously closed, they need to be momentary. A closed switch will behave the same as a stuck key! This can be corrected with additional electronics between the switches and keyboard, but makes your project slightly more difficult.
You could also try an arcade interface. Converting old arcade cabinets and/or arcade style controls to interface to a computer running MAME is very doable. Here is an example: http://www.ultimarc.com/ipac1.html
Another: http://www.hagstromelectronics.com/products/modules.html
These are designed to talk to MAME, but again, the computer sees them as keyboards (or mice.)
Does the computer have a PS2-type keyboard connector? Those requirements are simpler, and I think it could be done with a Propeller. I don't have any experience with the Propeller though, so take with a large grain of salt.
I hope this helps!
One last detail--when a computer boots, your "cockpit" could confuse the BIOS. Make sure you test this out by shutting down and restarting a few times.
Well see heres my problem.. My first option was an IPAC! I understand completly thats why I came here. See heres the deal with the flight sim.. When you're programming the functions into the program it shows up as a keyboard, because you can fly a plane on this sim with a keyboard! So it's not the same functions as an actual game controller switch would be. Thats why I need it to show up as a game controller! Haha. I did alot of research in the IPAC and finnaly turned it down. I thought I could use a BS2 and then saw this YouTube video and it showed this game controller device, with a toggle switch, for flight sim! That's why I know you can do it. This guy is a one man buisness so I know I can build it WAY cheaper than you can buy it! But if you think about it.. I'm buildin an actual Boeing 747 cockpit so there will be alot of switches!! There will be alot less money if I build it myself! Haha. Well thanks for thay last tip! Might need that! Thanks alot!
thanks,
~Ryan
When the BS2 & Propeller communicate over USB, they do it through a USB-serial convertor chip. That's all the chip does. It converts the signal. The best you could do with them is to send some data over a USB connection, and write your own USB "interface" driver that would sit between your flight simulator and the BS2/Propeller.
If you want to build your own pilse generator, that's fine. If you need the pulse generator to identify as an HID device, you need something other than the BS2 or Propeller. You can find HID dev boards on SparkFun. They should give you some idea what to look for.