Phoenix code running on an Arduino Mega with an SSC-32

hello kurt, I hav more question :smiley:
ssc-32 and uno, how much battery power you give?
whether 9vdc like the picture below?
lynxmotion.com/images/assemb … oesch1.gif

hmm…
can I give 11.1v battery power?
for powering ssc-32 and uno,

and for servo I give 6.6v 2500mah
its will fine?

sorry my bad language…

Thanks kurt

Others are better at answering about voltage maximums. I know the document ion for the SSC-32 says maximum of 9V, but I believe the voltage regulator in it says something like max of 26V continuous. So the question becomes heat. That is the more voltage it has to drop, the more heat that is created, for a given amount of output current at 5V. My guess is that, if non of the SSC-32 outputs draw very much current, than it would be fine, but… Also the Arduino Uno says maximum recommended input voltage is 12V, but can handle up to 20…

As for 6.6V battery? Is that what the battery pack is called? Don’t know of any. However If you are simply measuring the voltage of fully charged battery pack like: lynxmotion.com/p-426-60-volt … -pack.aspx you will find that the fully charged voltage is higher than 6v, which work great with the servos I have like: HS-645MG. But again it depends on what servos you are using.

Kurt

hi kurt, thanks for fast respond,
so for uno and ssc-32 I give battery 11.1v is will okay?

im using 6 htx5010 and 12 htx12k
my planning for powering servo will use
hobbyking.com/hobbyking/stor … _Pack.html
if not recommend can i use 7.2v for servo, coz so hard find battery 6v in my country, if i buy from lynxmotion im worry about shipping, coz i dont have extra cost for shipping lol

hi kurt …
I do not understand the explanation about connecting the receiver to the UNO,
cable 1 black, red, yellow
and connect to pins 10,11,12 which began with the black wire to pin 10, is that correct?

and cable 2
black, red, yellow
black wire is connected to pin 13 while the red wire to pin 2, while the yellow is connected to the GND pin,
Aref empty unused pins?

you mean like my explanation above?

if you do not mind, like whether to explain using a picture? because I am not good at this …

Thank you so much kurt

I am waiting for your answer …

and for khalid, what whether you could help me in my current problem?
thanks

Sorry I don’t have time right now as I am busy with some other stuff. Maybe in a day or two. But before than you might try looking at: billporter.info/playstation- … rary-v1-0/

Kurt

oh ok I can understand your busy, thank you for the link, but I’ll still awaiting an explanation from you, thanks kurt

hello kurt, I hope u have more time to help me :slight_smile:
this is my configure im using sony ps2 wireless
imageshack.us/g/692/img2011072800006.jpg/
thanks kurt
have nice day

Not much :laughing: but hopefully enough to help some :smiley:

I looked at your images and it looks like you have the wires marked properly (GND had wrong number but right place…)

The next step I would take would be to download bill porters latest library and test sketch. I would then try to get your receiver to work with it. Depending on which pins you connect up to, you will need to update the config_gamepad call to which pins you are connected to. Note: I mostly use Lynxmotion PS2 controllers as I know they work, I have had luck in the past with some others and not with others… On some I needed to add power to the Motors wire…

So again I would first work on getting the basic controller to work, before I worried about getting the phoenix code to work.

Good Luck
Kurt

hehe thanks kurt,
ups my bad about numbering hehe

i will waiting u’r next step kurt, if in my country sell lyxmotion ps2 sure i will buy,
for this project I’ve spent about $ 300, and I really hope this project is not in vain :frowning:
about bill porters library, I thing in yours source code have last version 1.6

not just need luck, but I also need help god

,<

ok kurt thanks for reply me :slight_smile:
I hope you always be successful there

As I mentioned in the previous post, you should try to experiment with bill porters test program (sketch). It will at least let you know if the two are talking or not. That is what I do when I first start off. For example when I started testing the Beta of the Lynxmotion Botboarduino board, I wrote a test program that allowed me to test different things. I included it in this post as an example. One of the tests runs the PS2 code and prints out the state of buttons and the joysticks… The code is slightly specific to the board I mentioned as I loop until one of the buttons is pressed, but …

It is always easier to debug small things first and build from there…
Botboarduino_Test-110728a.zip (3.37 KB)

kurt hi thanks for replying, huh I feel my spirit began to decrease to complete this project, I’ve tried a variety of ways, but it still does not work as well,

it’s what you uploaded?

hey my friend …
in addition to using the PS2, using xbee too can?
if I use xbee, how do I control my robot? and can you explain step by step how to configure xbee uno?
hehe maybe you’re very busy, but I can wait for you at any time, a more important project I could finish and I can sleep in peace haha …

thanks kurt
happy weekend :wink:

@kurt sorry im forget to tell you
yesterday when Im try to connect ps2 nothing servo moved,
but…
when I press start button on my stick, some led ssc-32 give respon like blink,…
huwft just start button…

if such it really my PS2 connected to uno or not?

Sorry you have not had any luck.

It is difficult for me to help you without additional information. In an earlier post you showed pictures including the one that labeled the pins. So how did you connect these pins to your Arduino. What IO pins did you use? Which power pins did you use… If you downloaded Bill Porters stuff, did you edit it such that the config call matched the pins that you connected to? When you run the program and open a Serial monitor, what messages did it print out in the monitor? If it errored not finding the PS2 controller, double check the line: error = ps2x.config_gamepad(13,11,10,12, true, true); //setup pins and settings: GamePad(clock, command, attention, data, Pressures?, Rumble?) check for error

Try changing the two TRUEs and the end to FALSE. Does that help? (Phoenix code does not use pressures or rumble…)

If still not found try adding power to the vibration motor pin… (It is shown in store.curiousinventor.com/guides/ps2#hardware)

If that does not work, I have found a few of my controllers that the built-in pull-up resistor on the Arduino was not sufficient.

Update:from your last post it sounds like you had some luck now. It would still help to use a test program to verify your PS2 is working. But yes, you must press the start button to get the robot to do anything. At that point you should see the SSC-32 lights blinking with data being sent to it. If the servos don’t do anything at this point, could be you have the wrong baud rate configured on the SSC-32. I believe the code is setup for 38400, so check the baud rate jumpers. OR you don’t have power going to the VS inputs of the SSC-32…
If you click on the Start button, then maybe try clicking on the triangle button, which will lift the body off the ground… More details on what the buttons do in the PS2_Controller.cpp file.

Kurt

hu yeaah,…

when i see serial monitor n I press reset button on uno
this message print

Program Start Check GP Enable: After Pin Mode -650 -650 -650 -650 -650 -650 Before Init Controller Found Controller, configured successful After Init Controller Start button Pressed
but my servos nothing move, :frowning:
I tried pressing any button on my stick, but no one was moving servo hikz

this configure in my ssc-32
VS I give 9v
VS1 I give 6v
I’m sure if my settings are correct baud rate is 38400

and this how to I connect my uno to ssc-32
imageshack.us/photo/my-images/81 … 60104.jpg/

thanks kurt

First thing I should mention, is that the current code is by default running the SSC-32 in binary communications mode. This requires you to update the firmware to the most recent (EGP) version, which I think is 2.0.7EGP which you can download from lynxmotion.com/p-395-ssc-32- … oller.aspx

If you don’t wish to use binary mode than you might be able to run using a non-updated version of the firmware, by commenting out the line:

#define cSSC_BINARYMODE 1 in the hex_cfg.h file. This will cause the program to output the older command syntax. However if you do not update to a GP or an EGP version of the firmware you will not be able to run sequences with the code. Warning I have not compiled or tried this code in awhile and make no promises!!!

Looking at the diagram you put a link to in your last post, I get the impression that you are not using a Lynxmotion SSC-32, but some knockoff of it. If this is true, my guess is for sure you need to get the code out of binary mode. Also I hope you understand that I won’t be spending much time supporting a knockoff of a Lynxmotion board on the Lynxmotion forums… But I do hope it works out for you.

Kurt

I’ve updated the firmware last version of 2-07EGP_A1A.abl
yes well I use product dfrobot, I’ve been using real ssc-32 from lynxmotion but I got in trouble with the ssc-32 I viewtopic.php?f=2&t=7337

therefore I had to use clones ssc-32 :frowning:
because if I buy again ssc-32 of the original, it will take some time to get to my hands.

kurt ok I can understand, if you want to lift their hands and could not help me it’s okay,
and thanks for the help you have been given
happy weekend :slight_smile:

Understood, did the updated firmware help? i.e. are any of the servos moving now?

Kurt

i have update firmware but nothing servo moving,

hey my bro kurt, of the problem that I could over, are you sure if the cause is because I use ssc32 clones?
what about the ps2 stick that I use? whether to be one cause of my failure as well?

if only the ssc-32 maybe I’ll order ssc32 on lynxmotion without sticks ps2

thanks kurt

Maybe a couple of different things.

First I believe you are not running on a MEGA, but running on something like a demi… So it will be using a software serial connection. If you look at the file Hex_Cfg.h file you will see that I am probably using digital IO pins 8 and 9 to communicate with the SSC-32. the one that is defined as
cSSC_OUT should connect to the INPUT (RX) pin of the SSC-32. Likewise the one defined as cSSC_IN should connect to the output pin (TX) of the SSC-32.

Also in this build I may have defined the baud rate as 115200 with the define cSSC_BAUD. You may want to change this define to 38400. Hopefully that will get you a little farther… See if that helps.

As for PS2, it detected it and detected the start button, so it sounds like it is at least partially working. Will know more when you get other things working.

Kurt

what u mean im not running on mega? Arduino MEGA 2560 u mean?
hmm
im try to connect my RX on ssc32 to pin 8 uno, and TX to pin 9 gnd to gnd
like u say im change boud rate as 115200 to 38400,
and im my ssc im set boud rate 38400…
when i press start just 2 servos moved but I think coz my quality servo suck ( im using hx5010 for coxa) and (for femur n tiba im using hx12k and this servos not move)
and now when im press X button n other and move up n down my joystik/toggle on my stick, some led on my ssc32 give respon like blink
buuttt…
nothing servos moved…

imageshack.us/photo/my-images/19 … 11095.jpg/

thanks kurt