PS2 Programming

Hello,
I recently purchased a PS2 controller to control my quadruped with an SSC-32 controller.

I have a few questions regarding the Lynxmotion code that you guys have published and the setup:

  1. Do I need to upload any code to the PS2 - such as the “PS2X_lib” - to have it receive commands from the Lynxmotion remote and pass it on to the BotBoarduino? If so, how would I do this

  2. How do I mount the PS2 onto the BotBoarduino with the standoffs that the kit came with? They are extremely short and cannot be used to mount the PS2 on top of the BotBaorduino. For your reference, I attached an image of the issue I am describing.


  3. In the configuration file, it asks for the PIN number of all the Servos. However, I am unsure as to what orientation the robot should be in to determine which leg is ‘rear right’ or ‘front left.’ Do you know how I should have my robot oriented when determining the PIN numbers?

Thanks in advance for your assistance.
Best,
Christopher

Hi,

Here are answers to your questions & comments:

The PS2 itself does not need any code; it is a closed embedded system that follows a set protocol. The PS2X_lib is used with the BotBoarduino code to perform tasks with the PS2 (the PS2 receiver acts as a slave, the BotBoarduino as a master).

Between the standoffs included with the SQ3 platform and the ones from the RB-Lyn-899 you should have enough of them to mount the PS2 adapter board on top of the BotBoarduino, typically facing outside the BotBoarduino. The smallest nylon standoff is a few millimeters taller than the highest component of the BotBoarduino, so you should have no issue with height clearance.

Could you link to the configuration file you are referring to? In theory, the code we offer already sets pins for each joint by default. Simply use those pin assignment (no changes needed) on the SSC-32U. We recommend choosing the side opposite the switches as the front.

Sincerely,