Hi- I have a couple questions about the Botboarduino, ssc32 & ssc32u.
I have a phoenix hexapod and recently changed the ssc32 to an ssc32u board.
I noticed in the ssc32u guide that the tx & rx pins are different then on the ssc32. The guide says to attach i/o pin 13 on the botboarduino to ssc-32 rx & i/o pin 12 on the botboarduino to ssc-32 tx.
Are those the only differences in regards to communication? Do I only need to change the Hex_cfg.h code?
Existing code-
/ Else we will user SoftwareSerial to talk to the SSC-32
#define cSSC_OUT 12 //Output pin for Botboard - Input of SSC32 (Yellow)
#define cSSC_IN 13 //Input pin for Botboard - Output of SSC32 (Blue)
#endif
Also, I see that the Botboarduino is set with a baud rate of 57600
[code]--------------------------------------------------------------------------
// SETUP: the main arduino setup function.
//--------------------------------------------------------------------------
void setup(){
I have the ssc32 u set at 38400, it does not have an option to set the baud rate to 57600. Do the Botboarduino and the ssc32u need to be on the same baud rate to communicate?
Concerning the TX/RX/GND pins, they simply changed to a different place on the board. Please note that when using the exposed headers for the TX/RX pins on the SSC-32U you cannot use simultaneously the USB port or the Bee socket, since they are all connected internally to the same TX/RX pins on the microcontroller of the SSC-32U. Only use one of those interfaces at a time.
We recommend that you set your SSC-32U to 38400 (mode details at the bottom of page 37 of the SSC-32U manual) as this is the rate used for the software serial communication between the BotBoarduino and the SSC-32(U). The “DBGSerial.begin(57600);” line refers to the debug serial interface which is the hardware serial interface of the microcontroller of the BotBoarduino that is internally connected to its USB interface.
The baud rate for BotBoarduino <-> SSC-32(U) [cSSC_BAUD] connection (software serial) is defined on line 67 here. This baud rate defined as cSSC_BAUD is later used on line 55 here.
Thank you for your response.
Ok, so the baud rate of 38400 for the ssc32u and 57600 for the botboarduino will work fine then?
In regards to the ssc32u The guide says to attach i/o pin 13 on the botboarduino to the rx pin on the ssc-32u, & i/o pin 12 on the botboarduino to the tx pin on the ssc-32u. (Page 23 of the user guide) lynxmotion.com/images/data/lynxmotion_ssc-32u_usb_user_guide.pdf
Do I only need to change the Hex_cfg.h code, which was written for the ssc32 and is different then what the ssc32u guide calls for?
from:
/ Else we will user SoftwareSerial to talk to the SSC-32
#define cSSC_OUT 12 //Output pin for Botboard - Input of SSC32 (Yellow)
#define cSSC_IN 13 //Input pin for Botboard - Output of SSC32 (Blue)
#endif
to:
/ Else we will user SoftwareSerial to talk to the SSC-32
#define cSSC_OUT 13 //Output pin for Botboard - Input of SSC32 (Yellow)
#define cSSC_IN 12 //Input pin for Botboard - Output of SSC32 (Blue)
#endif
Yes, it will. As mentioned previously, the 57600 setting of baud rate is for the hardware serial interface of the BotBoarduino (through the USB port) for debug purposes and is not related to the SSC-32 software serial connection.
Both pin 12 and 13 of the BotBoarduino can be used for software serial and can be switched between TX=12/RX=13 and TX=13/RX=12 without any issues as long as the defines and the wiring match. This is not a difference in the SSC-32U’s serial connection and simply a difference in the example shown in the manual (page 23) from the ones in the Lynxmotion GitHub & assembly manuals for the old SSC-32.