Hello, I recently bought a kit ‘T-Hex’ robot and ‘Lynxmotion SSC-32 Visual Sequencer Software SEQ-01’, I have assembled the robot as the guide on Lynxmotion page but when I connect the board with the program it seems to be not “see” or do not “understand”.
What I have to do to connect the board with the software?
Hi, to control your T-Hex with the Visual Sequencer Software, you need to connect your computer directly to the SSC-32 board (without using the BotBoarduino).
To connect the SSC-32 to your computer, you need to connect the serial cable to the SSC-32 and your computer (using a USB-to-serial adapter), ensure that the TX/RX jumpers are both installed, and check that you are using the same baud rate for the board and in the software. The baud rate is determined by the jumpers identified by number9 in the following picture, and the TX/RX jumpers are number 14:
If you’ve followed these steps and still can’t connect, can you post a few pictures of your setup including the connections of the SSC-32 board so we can see?
Hello, I think I know how to connect the cable from the ssc-32 board to my computer, I have read that manual several times and think I’m doing well.
The jumpers are in the correct positions and the other jumpers to the servos are removed. I had a SSC-32 board a few years ago and that occasionally went well, I don’t know if its a cable problem or something else.
Unfortunately I do not have a digital camera to take the picture, but the jumpers are exactly in these positions. (9V battery)
I have to get a cable between today and next week, according to people who have purchased the SSC-32 board connects well with the computer.
I do not know exactly why the other SSC-32 board worked sometimes and it does not work. Unfortunately I can no longer use the old SSC-32 board as one of the smallest components has been released from his welding because of a screw.
Lynxmotion Botboarduino is an Arduino 328 board, which uses the Arduino IDE. Not sure if Robotshop has updated their T-Hex tutorials to be more inline with current stuff or not, but they have at least one tutorial for hexapods that give some details: lynxmotion.com/images/html/build99f.htm
And then extract the files inside your My Documents/Arduino/libraries folder. Once that’s done, restart the Arduino IDE and your code should now compile.
From the zip file he mentioned (github.com/Lynxmotion/Arduino-P … master.zip)
Extract the folder PS2X_lib into the folder that he mentioned (My Documents/Arduino/libraries folder.)
Note: the actual name of the folder may differ, depending on how you installed, but for example mine is installed in:
C:\Users\Kurt\Documents\Arduino\libraries
Obviously if your user name is not Kurt, your path will differ.
Now arduino lets compile the code, but now the problem is that the robot emits a series of beeps, most are “bip bip”.
What does that mean? Something I do wrong?
I can’t do anything with the ps2 controller and the robot does not want to move.
Sounds like the PS2 is not communicating properly. Not enough information to go on. Which PS2? Lynxmotion variety? If so V1 or V2 or V3. How is it wired. How are the jumpers on the Botboarduino set? Ideally a picture or pictures would help. There are many threads up on these forums talking about getting PS2s to work. Try doing a search for them. Also try loading up a simple PS2 test sketch. Again several have been posted to see if it is working or not
??? - I don’t understand? There are many examples of the programs that use the PS2 on Arduino… Here is one of my PS2 tests, which I often use to help debug if the PS2 is working or not…
#include <PS2X_lib.h>
#if defined(__MK20DX128__) || defined(__MK20DX256__)
// For my testing on Teensy
#define PS2_DAT 2
#define PS2_CMD 3
#define PS2_SEL 4
#define PS2_CLK 5
#else
// Botboarduino...
#define PS2_DAT 6
#define PS2_CMD 7
#define PS2_SEL 8
#define PS2_CLK 9
#endif
PS2X ps2x; // create PS2 Controller Class
void setup()
{
Serial.begin(57600);
delay(5000); // give time to open monitor
int error = ps2x.config_gamepad(PS2_CLK, PS2_CMD, PS2_SEL, PS2_DAT); // Setup gamepad (clock, command, attention, data) pins
Serial.print("PS2 Init: ");
Serial.println(error, DEC);
}
void loop() {
ps2x.read_gamepad(); //read controller and set large motor to spin at 'vibrate' speed
Serial.print("PS2 Input: ");
Serial.print(ps2x.ButtonDataByte() & 0xffff, HEX);
Serial.print(":");
Serial.print(ps2x.Analog(PSS_LX), DEC);
Serial.print(" ");
Serial.print(ps2x.Analog(PSS_LY), DEC);
Serial.print(" ");
Serial.print(ps2x.Analog(PSS_RX), DEC);
Serial.print(" ");
Serial.println(ps2x.Analog(PSS_RY), DEC);
delay(125);
}
It simply loops trying to read the PS2 and print out information to the serial monitor. The program is setup that you need to run the serial monitor at the baud rate 57600…
If you start to get valid data (not all 255 values… then you know that this part is working), if not then you need to look at things like:
Is it wired in properly? to the right IO pins?
Is the jumper set properly to give the PS2 +5v and not VS?
Do you have new battery in PS2 remote?
What are the lights doing on the PS2 receiver and remote?
…
If this is a new V3 PS2, did Lynxmotion put in my changes to timings in the PS2X library? If not maybe need to grab my copy of the library. github.com/KurtE/Arduino-PS2X
Hi dannides, can you share a few pictures of your setup including the connections of the BotBoarduino and SSC-32 boards? This would help us to troubleshoot. Note that the Basic Atom Pro 28 processor isn’t available anymore, so unless you already have one, the Bot Board II option won’t work for you…
The problem, you see, when I try to send the project to the microcontroller, the program tells me that there is no microcontroller. There are three options and I have proven all.