Hi Jim,
Robot Dude wrote:
Hey wow, sounds like we're getting very close.
We sure are, but still I’m having some problems initializing the PS2 remote. Here is a sample of the code that I’ve borrowed from powerpod.
Code:
Ps2Input:
low PS2SEL
shiftout PS2CMD,PS2CLK,FASTLSBPRE,[$1\8]
shiftin PS2DAT,PS2CLK,FASTLSBPOST,[DS2Mode\8]
high PS2SEL
pause 1
low PS2SEL
shiftout PS2CMD,PS2CLK,FASTLSBPRE,[$1\8,$42\8]
shiftin PS2DAT,PS2CLK,FASTLSBPOST,[DualShock(0)\8, DualShock(1)\8, DualShock(2)\8, DualShock(3)\8, |
DualShock(4)\8, DualShock(5)\8, DualShock(6)\8]
high PS2SEL
pause 1
if DS2Mode <> PadMode then
low PS2SEL
shiftout PS2CMD,PS2CLK,FASTLSBPRE,[$1\8,$43\8,$0\8,$1\8,$0\8] ;CONFIG_MODE_ENTER
high PS2SEL
pause 1
low PS2SEL
shiftout PS2CMD,PS2CLK,FASTLSBPRE,[$01\8,$44\8,$00\8,$01\8,$03\8,$00\8,$00\8,$00\8,$00\8] ;SET_MODE_AND_LOCK
high PS2SEL
pause 1
low PS2SEL
shiftout PS2CMD,PS2CLK,FASTLSBPRE,[$01\8,$4F\8,$00\8,$FF\8,$FF\8,$03\8,$00\8,$00\8,$00\8] ;SET_DS2_NATIVE_MODE
high PS2SEL
pause 1
low PS2SEL
shiftout PS2CMD,PS2CLK,FASTLSBPRE,[$01\8,$43\8,$00\8,$00\8,$5A\8,$5A\8,$5A\8,$5A\8,$5A\8] ;CONFIG_MODE_EXIT_DS2_NATIVE
high PS2SEL
pause 1
low PS2SEL
shiftout PS2CMD,PS2CLK,FASTLSBPRE,[$01\8,$43\8,$00\8,$00\8,$00\8,$00\8,$00\8,$00\8,$00\8] ;CONFIG_MODE_EXIT
high PS2SEL
nap 4
;sound P9,[100\4000, 100\4000, 100\4000]
return
endif
serout s_out, i9600, [dec DS2Mode, " ", dec dualshock(0), " ", dec dualshock(1), " ", dec dualshock(2), " ", dec dualshock(3), |
dec dualshock(4), " ", dec dualshock(5), " ", dec dualshock(6), 13]
return
I call this subroute from the main loop. What it does right now is just start beeping which means that it is initializing the whole time (DS2Mode <> PadMode). But the strange thing is, when I open the connection from my pc to read out the data. It stops beeping and starts sending me the data of the controller!! Once done, I can disconnect it from my pc and start using it!!!
Maybe you can have Laurent take a look at it?
Robot Dude wrote:
The PS2 cable did have a wire or two change color on the last batch. The online tutorials and stuff are correct, but the Bot Board manual is not up to date. The Bot board manual is to be replaced with an HTML version soon. We just finished the SSC-32 manual conversions, although we will be adding more example code and more detailed troubleshooting stuff.
Here is the new SSC-32 (2.01XE) Users Manual.
http://www.lynxmotion.com/images/html/build136.htm You will notice in the shorting bar jumpers and connections diagrams I've standardized the bidirectional communications connections. It can easily be done with a modified servo extender style cable.
I like the html format and it doesn’t take long to open

Great that you’ve included the bidirectional communication. Since I needed to reconnect everything for this test I’m not using it for this test but I will use it again after the tests.
Robot Dude wrote:
We will post your code as soon as we receive it.
Thanks, it is on his way!
Hi Zenta,
zenta wrote:
Hi Xan,
Congratz with your new Phoenix kit!
Looking forward to see your new code. If its correct that your code is too fast without the synchronisation part, that is somehow good news? I think..
Hopefully you'll figure it out!
Have a nice trip!
Thanks, I can’t wait to put everything together once I’m back! My code being to fast is a very good thing!! Check my latest video, I’ve disconnecting the synchronization and increased the speed of the servos. It is so fast right now, it even gives me the creeps
But I still need to figure out how to make the synchronization part faster. Maybe I’ll think that over on the beach
Here is the latest video, sry for the bad light, I was in a hurry
http://www.youtube.com/watch?v=w92gXdfE1kY
The tape on the legs is just for calibrating, I would never hurt a innocent bot
CU in a couple of weeks!
Xan