Society of Robots - Robot Forum

Electronics => Electronics => Topic started by: jakx12 on May 31, 2009, 05:46:20 AM

Title: does anyone know how to do this?
Post 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
Title: Re: does anyone know how to do this?
Post by: SmAsH on May 31, 2009, 06:01:23 AM
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.
Title: Re: does anyone know how to do this?
Post by: jakx12 on May 31, 2009, 07:06:17 AM
thanks :)
Title: Re: does anyone know how to do this?
Post by: jakx12 on May 31, 2009, 07:58:51 AM
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.

Title: Re: does anyone know how to do this?
Post by: paulstreats on May 31, 2009, 08:06:53 AM
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
Title: Re: does anyone know how to do this?
Post by: jakx12 on May 31, 2009, 08:11:57 AM
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
Title: Re: does anyone know how to do this?
Post by: jakx12 on May 31, 2009, 08:17:56 AM
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?


Title: Re: does anyone know how to do this?
Post by: GearMotion on May 31, 2009, 11:16:19 AM
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.
Title: Re: does anyone know how to do this?
Post by: jakx12 on June 02, 2009, 11:58:32 AM
thanks, but i still dont know were to put the wires :P
Title: Re: does anyone know how to do this?
Post by: Admin on June 04, 2009, 06:48:17 PM
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.
Title: Re: does anyone know how to do this?
Post by: jakx12 on June 07, 2009, 02:39:14 AM
But i use  RAMB II, iv got a fair idea but im not 100% sure.
Title: Re: does anyone know how to do this?
Post by: SmAsH on June 07, 2009, 02:42:32 AM
well, post what you are thinking here and we can go from there.
Title: Re: does anyone know how to do this?
Post by: jakx12 on June 07, 2009, 02:45:20 AM
ok so...
data in - 12
clock - 11
atn - 10
data_out - 9
Title: Re: does anyone know how to do this?
Post by: jakx12 on June 07, 2009, 10:03:44 AM
im not a beginner ! I just suck at electronics :D
Title: Re: does anyone know how to do this?
Post by: dellagd on June 08, 2009, 06:12:35 AM
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
Title: Re: does anyone know how to do this?
Post by: jakx12 on June 08, 2009, 03:10:40 PM
yh, i think i figured most of it out :)
Title: Re: does anyone know how to do this?
Post by: dellagd on June 08, 2009, 06:25:17 PM
k
tell us if it works!