Think of the XBee DIY remote as a PS2 on steroids. That is we send a packet of data from the remote to the robot, Currently the packet has 2 bytes at the start which correspond to the 16 buttons on the keypad, followed by a byte for each of the different controls. 2 bytes per joystick (up down/Left right), 1 byte for each of the sliders and now one byte for each of the pots. With Zentas changes we have now used up all 20 IO pins of the BB2, including all 8 Analog pins).
The reason I mention all of the above is to say that it is up to each robot to choose to use those inputs. Example with Phoenix, we have different modes to update how we use the controls, but for example when configured for walking, we have 1 joystick controlling moving the robot in any of 360 degrees, the other joystick is used to rotate the robot, The sliders are use to control the speed and how high to lift the legs. The pots are used to control some rotation of the body and how high up the body is… But then if we choose a different mode, we may remap all of these controls.
The majority of the time we are not using the General purpose sequencer and updating the player, we are instead simply using servo group moves, where we have already done the calculation where we want each servo to go. We do have one mode that does run canned sequences using the player as well.
As I mentioned in a different thread, I recently purchased two new 4 function gimbals and am trying to decide if I will update my DIY remote, or build up a second one with different hardware as a second test bed. If I goes this route, I may also for the fun of it, use an Arduino Mega board as I don’t have any spare BB2 except for my test one…
If I go the Arduino route, I will probably go Mega as I have a couple of them sitting around and because the Arduinos like the UNO only have 6 Analog pins whereas the Megas have 16. Note our current (Zenta updated) remotes use 8 Analog pins. But that does not need to limit you as up till this recent hardware change, we were only using 6…
likewise you are at the limits of the number of digital pins as well. That is we are currently using:
9 pins for Keypad and extra buttons
1 pin LCD
2 XBEE
2 for hardware serial port (used for programming and debugging - USB port on UNO)
(Used to use 1 pin for speaker on BB2, but disabled when added pots)
So we are using 14 digital pins which would barely fit on UNO, again no room for speaker, with Mega you have plenty: 50+
Will probably need to use Software Serial on UNO as USB uses the hardware port, but with Mega you have 4 hardware serial port.
If I go this route, I will probably have code configured to allow both Arduino (Botboardunio) and Mega (Botborduino mega) configurations…
I hope I answered your question
Kurt