I need Zentas Phoenix5 “Body Rotation” project (from lynxmotion.com/images/html/proj098.htm) generated as basic Atom code from the Visual Sequencer. I’m experimenting with an own program and I just can’t seem to find my Visual Sequencer program.
Hi,
I’ve been busy lately. Therefore the late respons.
On my first original Phoenix I calibrated the coxas as for an inline hexapod. Meaning that the 0 deg position for all coxas look like this:
When I made this early version of PEP I used SEQ only for controlling the robot. The end result depend of how you calibrated the servos in the SSC32 configuration.
Your formula for calculating the pwm value isn’t 100% correct. You could study how Xan did it in his basic Phoenix code. It is a bit hard to see it how I did it in PEP. But the principle are like this: pwmvalue = 0degPWMvalue + DegValue*PWMdegfactor
The PWMdegfactor vary a bit between 9,6 and 10,2. Take a look at the setup sheet in PEP ver 2.02
Oh, another major difference is also the pin configuration (what servo are connected to each pin). On my original Phoenix I mounted the SSC32 board the other way (with the serial com connector pointing backward).
So the pin config for the sequences used in the Phoenix5 project are like this:
[code]RFCoxaPin con P2 ;Front Right leg Hip Horizontal
RFFemurPin con P1 ;Front Right leg Hip Vertical
RFTibiaPin con P0 ;Front Right leg Knee
RMCoxaPin con P6 ;Middle Right leg Hip Horizontal
RMFemurPin con P5 ;Middle Right leg Hip Vertical
RMTibiaPin con P4 ;Middle Right leg Knee
RRCoxaPin con P10 ;Rear Right leg Hip Horizontal
RRFemurPin con P9 ;Rear Right leg Hip Vertical
RRTibiaPin con P8 ;Rear Right leg Knee
LFCoxaPin con P18 ;Front Left leg Hip Horizontal
LFFemurPin con P17 ;Front Left leg Hip Vertical
LFTibiaPin con P16 ;Front Left leg Knee
LMCoxaPin con P22 ;Middle Left leg Hip Horizontal
LMFemurPin con P21 ;Middle Left leg Hip Vertical
LMTibiaPin con P20 ;Middle Left leg Knee
LRCoxaPin con P26 ;Rear Left leg Hip Horizontal
LRFemurPin con P25 ;Rear Left leg Hip Vertical
LRTibiaPin con P24 ;Rear Left leg Knee[/code]