Phoenix code running on Parallax Propeller

Yepp,

115200, both inserted.

Hm…
It’s getting late here in Norway, I will hook up my Serial monitor and see what data SCC is getting.

I use 1k resistors. I will try 10k…

So I don’t need to use a level converter chip like the Max233 (But one for 3,3v and 5v. Don’t remember the name)

I’m getting around the code now, and starting to get all the connections between the files, This is much fun :slight_smile:

/Niklas

Hi,

I hooked up a Max3232 interface to the serial from the prop.

There seems to be garbage coming out from the prop.
But when I clicked some times on the “Start” button on the PS2 controller I got this on the terminal screen :

#0P0#1P0#2P0#3P0#4P0#5P0#6P0#7P0#8P0#9P0#10P0#11P0#12P0#13P0#14P0#15P0#16P0#17P0#18P0#19P0#20P0#21P0#22P0#23P0#24P0#25P0#26P0#27
P0#28P0#29P0#30P0#31P0#32P0T200
#0P0#1P0#2P0#3P0#4P0#5P0#6P0#7P0#8P0#9P0#10P0#11P0#12P0#13P0#14P0#15P0#16P0#17P0#18P0#19P0#20P0#21P0#22P0#23P0#24P0#25P0#26P0#27
P0#28P0#29P0#30P0#31P0#32P0T200
#0P0#1P0#2P0#3P0#4P0#5P0#6P0#7P0#8P0#9P0#10P0#11P0#12P0#13P0#14P0#15P0#16P0#17P0#18P0#19P0#20P0#21P0#22P0#23P0#24P0#25P0#26P0#27
P0#28P0#29P0#30P0#31P0#32P0T200
#0P0#1P0#2P0#3P0#4P0#5P0#6P0#7P0#8P0#9P0#10P0#11P0#12P0#13P0#14P0#15P0#16P0#17P0#18P0#19P0#20P0#21P0#22P0#23P0#24P0#25P0#26P0#27
P0#28P0#29P0#30P0#31P0#32P0T200
#0P0#1P0#2P0#3P0#4P0#5P0#6P0#7P0#8P0#9P0#10P0#11P0#12P0#13P0#14P0#15P0#16P0#17P0#18P0#19P0#20P0#21P0#22P0#23P0#24P0#25P0#26P0#27
P0#28P0#29P0#30P0#31P0#32P0T200

Do this seem to be some good data??

This is the Free “servo command” scrolling on my terminal?

Ok… Then that part seems to send out valid text/data.

But when I press the “Start” button on the PS2controller it goes from that to garbage…

#0P0#1P0#2P0#3P0#4P0#5P0#6P0#7P0#8P0#9P0#10P0#11P0#12P0#13P0#14P0#15P0#16P0#17P0
#0P0#1P0#2P0#3P0#4P0#5P0#6P0#7P0#8P0#9P0#10P0#11P0#12P0#13P0#14P0#15P0#16P0#17P0
#0P0#1P0#2P0#3P0#4P0#5P0#6P0#7P0#8P0#9P0#10P0#11P0#12P0#13P0#14P0#15P0#16P0#17P0

And after clicking the “Start” button it goes to this:

€ð‰‚3„ë…††,ˆÛ‰†Š"ï‘8’—”Û•8–—˜ó™1š•¡È€ð‰‚3„ë…††,ˆÛ‰†Š"ï‘8’—”Û•8–—˜ó
â„¢1š•¡È€ð‰‚3„ë…††,ˆÛ‰†Š"ï‘8’—”Û•8–—˜ó™1š•¡È€ð‰‚3„ë…††,ˆÛ‰†Š"ï‘8’—”Û
•8–—˜ó™1š•¡È€ð‰‚3„ë…††,ˆÛ‰†Š"ï‘8’—”Û•8–—˜ó™1š•¡È€ð‰‚3„ë…††,ˆÛ‰†Š"ï
‘8’—”Û•8–—˜ó™1š•¡È€ð‰‚3„ë…††,ˆÛ‰†Š"ï‘8’—”Û•8–—˜ó™1š•¡È€ð‰‚3„ë…††,
ˆÛ‰†Š"ï‘8’—”Û•8–—˜ó™1š•¡È€ð‰‚3„ë…††,ˆÛ‰†Š"ï‘8’—”Û•8–—˜ó™1š•¡È€ð‰
‚3„ë…††,ˆÛ‰†Š"ï‘8’—”Û•8–—˜ó™1š•¡È€ð‰‚3„ë…††,ˆÛ‰†Š"ï‘8’—”Û•8–—˜ó™1Å¡
•¡È€ð‰‚3„ë…††,ˆÛ‰†Š"ï‘8’—”Û•8–—˜ó™1š•¡È€ð‰‚3„ë…††,ˆÛ‰†Š"ï‘8’—”Û•8–
—˜ó™1š•¡È€ð‰‚3„ë…††,ˆÛ‰†Š"ï‘8’—”Û•8–—˜ó™1š•¡È€ð‰‚3„ë…††,ˆÛ‰†Š"ï‘8

Any ideas?

Maby I should take this problem to another thread?

Regards,
Niklas

Yes, this makes total sense…

I should have mentioned that I have the code configured to do binary output to the SSC.
In the Hex_Config file you will see the definition: #define cSSC_BINARYMODE 1
Which if you remove will have the Arduino output text output instead…

There are some threads talking about binary mode. But basically you send three bytes per servo… The problem is that this mode requires the SSC-32 to be updated to a special firmware, which you can download from the SSC-32 product page: lynxmotion.com/p-395-ssc-32- … oller.aspx
In particular: 2-05EGP_A4.abl

Kurt

Hi…

Ahhhhhh :slight_smile:

I logged in to ask just that!
I was looking at the code tonight and found out that there has to be something that I was missing. And then I compared the output to the SSC with the BAP code and …

I will have a go later on today :slight_smile:

Regards,
Niklas

I’ve been using a propeller to control my hexapod for about a year and recently started a thread at Parallax with my code here:
forums.parallax.com/showthread.php?129632-Hexapods-and-Code-for-BS2-BS2sx-and-Propeller-post-your-own

A demo of it is here:

and a better demo of the actual walking program is here (although the code is running on a Basic Stamp 2sx, I later ported it to the propeller):


I know that the code isn’t optimized or anything, but you can at least see what’s going on. Having 8, 32 bit processors it great and it’s easy to get things going with objects from the object exchange (sd cards, GPS, sensors, ect)

Anyhow, I’ve found Lynxmotion + Parallax = much joy

I always forget about this, but Parallax sells the propeller in the Basic Stamp 2 form factor. The “Spin Stamp.” I think you could use the same carrier board for it.
parallax.com/StoreSearchResu … spin+stamp

Yep, I looked at it, but awhile ago, but it only had 24 pins and the IO pins were limited to 3.3V, so you would need to modify the hardware and the like…

Kurt