Saturday, May 19, 2007

Picaxe -> macbook communication...

Using time i should have been spending differently, i whipped up this morning a simple picaxe -> mac thingy. It consists of an 18X, a cheapass Honeybee PSX controller, PS2 -> USB converter and a Max patch. It should be noted that if i didn't have a cheapass, crappy, useless controller at hand then i wouldn't have done this little exercise. It's just a matter of what i have around me, that's all. Call it an effort thing.

In the picture above you can see a pot connected for testing. You could call it pseudo parallel i suppose. Since USB is serial but the actual communication between the picaxe and the psx controller is taking place in parallel, so the data at the Max patch end has to be put back together from serial to parallel.

I couldn't get all 8 bits to work - think this may either have something to do with the crappiness of this controller or with the way that PSX pads operate in general (maybe their buttons operate in a matrix and thus can't see all buttons in a column or row pressed at once or something). Nonetheless it is a step in the right direction.

Below you can see the Max patch. I have been spending a bit of time trying to get stuff working the other way (from the macbook -> picaxe) that i thought it would be fun to try to hack something up to go the other way.