Putting robotics at your service™

Free shipping on orders over $200

Beta Phoenix 2.1 code

Print view Share :
Previous topicNext topic

Page 1 of 2 [ 26 posts ]

1, 2
User avatar
Guru ( offline )
Posts: 4913
Posted: 2011-09-27 13:39 
 Post subject: Beta Phoenix 2.1 code
As most of you probably already know, Xan has been readying a new version of the Phoenix code that has some new features, with some help from Zenta and a little from me. After playing around with it for quite awhile, we think it is good enough to allow others to try it out. :D

Warning: This version uses binary commands to communicate with the SSC-32. This implies that you will need to update your SSC-32 to a version that supports binary commands, such as: http://www.lynxmotion.com/images/files/ ... GP_A1A.abl Also by default we communicate with an SSC-32 at 115200, which requires a recent copy of Basic Micro IDE. Also you will need to set the appropriate baud rate jumpers on the SSC-32.

Some other features of V2.1 include:

New Gait Triple Tripod (Zenta) DONE, and it ROCKS!

More accurate PWM constant - If I remember correctly this has to do with how the conversion is done from angle to PWM...

Something about SSC/BAP sync timing. - Updated code to make the timings of the different sequences more accurate.

Configure leg lengths for each leg DONE - You now have the ability to have legs with different lengths of segments...

Optional 3DOF/4DOF using optional compiling - This part is still being tested. The code has the ability to be configured for 3DOF or 4DOF and may also allow you to mix and match. That is for example: you will be able to have a T-Hex with maybe the front legs be 4DOF and the rest be 3DOF. Again this part is still being tested. I should have some parts soon to convert my CHR-3 to a CHR-4...

LiPo Safety, useful for all LiPo owners - You can enable or disable and configure for what voltages will shut down the hex...

Movable Center Point of Rotation DONE

Change SSC/BAP/ARC specific functions to a separate driver file DONE - We have tried to minimize how many #ifdefs are in the main part of the code. To help with this, we moved all of the SSC-32 specific code into a separate file. We also have an ARC32 specific version that replaces those functions.

Update GP player for speed control (Zenta) - This is a lot of fun. Once you start up a sequence, if for example with the PS2 version, you move the right stick up and down while the sequence is playing you can control the speed and direction of the sequence. I believe by default we allow you to go up to double speed, but there are limits to this. That is the SSC-32 will only allow a step to speed up to the point that does not try to move the servo to the new location faster than some pre-defined max speed.

There are probably many other enhancements that I forgot to mention here.

Currently I have configurations built for a 3 DOF T-Hex running on a Bap28 with SSC-32 and a PS2 controller. I also have a similar configuration with the Serial control (works with the Powerpod serial test program). I also have a configuration for a Phoenix running with an Arc32 with PS2 control. Soon I will also upload some DIY XBee remote control versions, but these use my changes to the XBEE code.

Over the next week or so, I also hope to build a CHR-3 version as well, but currently my CHR-3 is being used to test the Arduino versions.

I hope you enjoy

Kurt


Attachment:
Phoenix Beta 2_1 T-Hex SSC-32 Serial.zip [21.13 KiB]
Downloaded 185 times
Attachment:
Phoenix Beta 2_1 T-Hex SSC-32 PS2.zip [21.19 KiB]
Downloaded 200 times
Attachment:
Phoenix Beta 2_1 Phoenix Arc32 Ps2.zip [31.17 KiB]
Downloaded 211 times
User avatar
Guru ( offline )
Posts: 4913
Posted: 2011-09-28 20:28 
Here is a version for the Phoenix that runs with Arc32 with the DIY XBee remote control. Note: this XBee version is using an updated version of the DIY transmitter code that has when only a few things change in the packet, it sends a different packet with delta information... The code is also setup to work with the old transmitter and the new transmitter code can work with the old clients... Also have updated Arduino DIY remote code updated for this as well... These updated programs will be updated in their threads...

The same control file also works with T-Hex running on Bap28 with SSC-32 as well. I have not generated the zip file for it yet as I reconfigured my T-Hex to use PS2 on the standard pins, so I need to reconfigure back to build this configuration...


Attachment:
User avatar
Guru ( offline )
Posts: 4913
Posted: 2011-10-09 21:21 
OK, I believe that the 4 DOF code is working reasonably now. Likewise the mix of 3 and 4 DOF is functional as well. More details of what I tested is in the thread: viewtopic.php?f=8&t=7687. I decided to split off the stuff about my THR-4 hex robot to a different thread.

As part of making the T-Hex 4DOF legs work with the new code base, I needed to add the concept of a ServoHornOffset for some of the servos. This was originally done by Zenta as part of the T-Hex4 code base. The offsets were converted to a per leg values as to again allow mixed types of legs. These changes required changes to the configuration files (..._cfg_.bas ). I rebuilt all of the zip files with the updated files. Hopefully I did not miss anything. I did not retest all of the configurations.

Kurt


Attachment:
File comment: New - THR-4 - Round Hex body with THex 4dof legs - Bap 28 - PS2
Phoenix Beta 2_1 THR-4 SSC-32 PS2.zip [21.6 KiB]
Downloaded 153 times
Attachment:
File comment: T-Hex 3DOF - Bap 28 - SSC-32 - Serial interface
Phoenix Beta 2_1 T-Hex SSC-32 Serial.zip [21.44 KiB]
Downloaded 125 times
Attachment:
File comment: T-Hex 3DOF - Bap28 - SSC-32 - PS2
Phoenix Beta 2_1 T-Hex SSC-32 PS2.zip [21.5 KiB]
Downloaded 132 times
Attachment:
File comment: Phoenix - Arc32 - PS2
Phoenix Beta 2_1 Phoenix Arc32 Ps2.zip [31.97 KiB]
Downloaded 150 times
Attachment:
File comment: Phoenix - Arc32 - DIY XBee remote control
Phoenix Beta 2_1 Phoenix Arc32 DIY Xbee with delts msgs.zip [45.72 KiB]
Downloaded 136 times
User avatar
Guru ( offline )
Posts: 4125
Posted: 2011-10-10 15:24 
User avatar
Guru ( offline )
Posts: 4913
Posted: 2011-10-12 12:32 
Thanks Alan,

Been having some fun...

As I mentioned in my TH4-R thread, I might make up a T-HEX 4DOF config file/project so someone could try it out on a configuration actually sold :D...

While doing it, I found the 3DOF T-Hex configuration file, had a couple of minor problems, in the initial positions. Most of the legs were changed from 105->102 or 75->72, except for one leg... So I fixed it. I did it by setting the actual desired offsets and then setup Sin/Cos of 45degrees and did a multiply. So it makes it easy to change 1 value and have it update all of the legs...

Kurt


Attachment:
File comment: T-Hex 3 DOF legs with SSC-32 and PS2
Phoenix Beta 2_1 T-Hex SSC-32 PS2.zip [21.56 KiB]
Downloaded 144 times
Attachment:
File comment: T-Hex 3 DOF legs with SSC-32 and Serial
Phoenix Beta 2_1 T-Hex SSC-32 Serial.zip [21.5 KiB]
Downloaded 141 times
Attachment:
File comment: T-Hex 4 DOF legs!!! with SSC-32 and PS2
Phoenix Beta 2_1 4DOF T-Hex SSC-32 PS2.zip [21.54 KiB]
Downloaded 118 times
User avatar
Guru ( offline )
Posts: 4125
Posted: 2011-10-12 18:30 
I'd offer, but my hex is not exactly "factory" either!

One of these days I'll buy a "standard chassis" so that I'll have something to compare to...

Thanks for the updates!

Alan KM6VV

_________________
Visit:
http://groups.yahoo.com/group/SherlineCNC/
http://tech.groups.yahoo.com/group/HexapodRobotIK/


User avatar
Guru ( offline )
Posts: 4913
Posted: 2011-11-01 22:08 
I was asked about DIY XBee version of T-Hex. I see I have not uploaded this. Warning I have not tested this version in awhile as I removed the XBee from my T-Hex such that the PS2 could have a standard configuration.


Attachment:
File comment: T-Hex DIY XBee version with Bap28 and SSC-32
Phoenix Beta 2_1 T-Hex SSC-32 DIY XBee.zip [33.59 KiB]
Downloaded 110 times
User avatar
Guru ( offline )
Posts: 1130
Posted: 2011-11-02 06:59 
Thanks :)

_________________
[b]Share, Use and Improve![/b]
Digging trough: [i]Theory of Applied Robotics: Kinematics, Dynamics, and Control[/i]
Xan's YouTube Channel
http://www.youtube.com/xanore


User avatar
Rookie ( offline )
Posts: 44
Posted: 2011-11-23 20:05 
THANK YOU!!!!!
:)

_________________
http://www.youtube.com/mirage1207


User avatar
New ( offline )
Posts: 2
Posted: 2012-03-11 11:58 
Great work!
Looking at code . . and was trying to get this version but I think I may need help.

Phoenix SSC-32 ps2
and eventually
Phoenix SSC-32 xbee

If you can, and when you can get to it, could you add the "Phoenix SSC-32 ps2" to the beta so I can speed up looking at it?
Thanks.


User avatar
Guru ( offline )
Posts: 4913
Posted: 2012-03-11 14:34 
I thought the 2.1 phoenix code was released? Need to see what the state of this is????

Kurt


User avatar
New ( offline )
Posts: 2
Posted: 2012-03-12 10:27 
:oops: Really? Well I am clueless sorry about that. I had a few threads I was following and should have looked around more.

Could you point me to it, haveing problems finding it.
Thanks


Rookie ( offline )
Posts: 11
Posted: 2012-05-05 20:33 
Hi,
I hope this is the right thread to ask.
Totally new to all this and have just ordered an ARC32 board. Would I be correct in assuming I won't need the SCC 32 board as well?
Many thanks for help provided and my appology if I'm in the wrong thread.
Manfred


User avatar
Guru ( offline )
Posts: 4913
Posted: 2012-05-05 20:47 
No problem. Yes we have versions that can run on the Arc32 without an SSC-32. Also have versions that you can use it with an SSC-32, but I mostly just use the Arc32 by itself.

Kurt


Rookie ( offline )
Posts: 27
Posted: 2012-05-31 08:08 
Does anyone have to hand the serial control characters?

I am looking at using the Pheonix with Xans/Sentas code as a chassis, with another controller for the 'mind'.

Ultimately I would want to be to Roll the body, Rotate L/R, and then walk forward backward/strafe L/R with simple commands.

Once I have this working (going to have a very powerful PIC32 'brain' at 80MHz) I will have it doing some other tricxk stuff like chasing a light around, mapping a room out, and some over advanced stuff, all very exciting! Just waiting to finish building ym pheonix and I'll be on the way.!


1, 2

cron
All times are UTC - 5 hours [ DST ]. It is currently 2014-10-23 00:30
Feedback Form
Feedback Form