Society of Robots - Robot Forum
Electronics => Electronics => Topic started by: jakx12 on May 31, 2009, 05:46:20 AM
-
So does anyone know how to make a ps2 to serial adapter or a wii remote (or nunchuck) to serial adapter. Iv just playing with the idea of making a wii or ps2 controlled robot. Because i dont use the Arduino the most appealing method of the remote 'talking' to the micro-controller would be with serial. So any ideas? ;D
jakx12
-
there is a bit of info on this subject if you google around such as pinouts like so
(http://curiousinventor.com/images/guides/ps2/wiring.jpg)
and i believe dunk has a thread about interfacing a ps2 controller with the axon somewhere
which may be of use to you. http://www.societyofrobots.com/robotforum/index.php?topic=5220.0 (http://www.societyofrobots.com/robotforum/index.php?topic=5220.0)
there are other pages like this one http://www.lynxmotion.com/images/html/build036.htm (http://www.lynxmotion.com/images/html/build036.htm) that say how to connect it up although not to an arduino still shows the basics.
-
thanks :)
-
do you have any ideas which wires are necessary for just getting feedback from the controller. For examples, perhaps only three are needed, ground, signal and power.
-
I would imagine that the brown orange and blue make up an SPI bus. (most microcontrollers have SPI built in).
You would also need power and gnd.
the attention and acknowledge wires are probably a way of waking the console and letting it know that a command is ready
-
ok, so how would i wire my motherboard up (RAMB II) and get everything working with a bx-24 chip. Im not to good with electronics so i dont really know how i would start. But thanks for the info so far ;D
-
i found this, which is from the basicx.com website, (which is were i get my chip from). Isnt it just telling us the same as the picture above?
-
http://users.ece.gatech.edu/~hamblen/489X/f04proj/USB_PSX/psx_protocol.html (http://users.ece.gatech.edu/~hamblen/489X/f04proj/USB_PSX/psx_protocol.html)
http://www.gamesx.com/controldata/psxcont/psxcont.htm (http://www.gamesx.com/controldata/psxcont/psxcont.htm)
http://curiousinventor.com/guides/ps2 (http://curiousinventor.com/guides/ps2)
There is a lot of information out there, but it will take some research to see how to make routines for the ps protocol. At a quick look the protocol could easily be bit-banged - likely generic I/O ports could be used - if you don't use the BasicX SPI port.
-
thanks, but i still dont know were to put the wires :P
-
You have them go to digital pins on the Axon.
For example, the clock will go to a digital pin running PWM.
Make your best guess here and we'll tell you if its right or not.
-
But i use RAMB II, iv got a fair idea but im not 100% sure.
-
well, post what you are thinking here and we can go from there.
-
ok so...
data in - 12
clock - 11
atn - 10
data_out - 9
-
im not a beginner ! I just suck at electronics :D
-
well I'd say to hook up the attention pin to a ontput pin and bring that pin high, for like a few seconds or whatever. Itt sounds like this wire "wakes it up". If no signal is applied, you wont be able to get any readings out of it
-
yh, i think i figured most of it out :)
-
k
tell us if it works!