3D Printed Hexapod Arduino Mega + SSC32U

Hello,

I curently develop my Hexapod and i would like to ask some questions since am using default phoenix code v2.

robotshop.com/letsmakerobot … 919/14.jpg

Can anyone tell me the following variables in what cm corespond according to the body/leg shown in the pic?

robotshop.com/letsmakerobot … ntions.jpg
robotshop.com/letsmakerobot … ention.jpg

Hex_Cfg.h file
cXXCoxaLength
cXXFemurLength
cRRTibiaLength

cRROffsetX
cRROffsetZ
cRMOffsetX
cRMOffsetZ
cRFOffsetX
cRFOffsetZ

here is a video of wakling.

any help will be apritiate.

Hi,

As you mentioned in your post, the settings for changing the size/angles of your legs (servomotors) are all in Hex_Cfg.h.

You can find the min/max angles here (lines 136-189), the leg dimensions here (lines 194-227) and the body dimensions here (lines 232-251).

The comments on each line specify what each setting is related to. We recommend that you play around with them and see the impact on your custom hexapod.

Sincerely,

Im asking because cant understand where can i start measure from. For example in pic
robotshop.com/letsmakerobot … ntions.jpg

CODE : cRROffsetX -69 //Distance X from center of the body to the Right Rear coxa
are cm between points G and D shown on the body pic above?

And if yes what is Z (define cRROffsetZ)?

Yes, the values are from the center, most likely in mm.

The axis seem to be setup as shown below:
hex_axis.png
The values for the body dimensions are on a XZ-plane, where the center is (0,0) and the values grow towards the left (X) and rear (Z).

Sincerely,

Since both cRROffsetX and cRROffsetZ values start from the same point (center) and end up to the same point (right rear coxa) how come have different values on the original hex_cfg file on the pheonix code?

#define cRROffsetX -69 //Distance X from center of the body to the Right Rear coxa
#define cRROffsetZ 119 //Distance Z from center of the body to the Right Rear coxa

can you provide with a drawing based on my hexapod body?

Hi,

As mentioned previously, the values are X/Z coordinates from the center of the body to the center of the articulation (in mm). The X & Z coordinates will most likely be different on most hexapod bodies.

In the example you mention, the right-rear coxa is situated at (-69, 119), which would place it roughly here:

Sincerely,

P.-S.: For details on arthropod legs, check this page.

hello,

Seems to be talking about coordinates. I’m i right?
Because so far i thought that you measure the distances from e.g center to coxa.

Hi,

Yes, as mentioned in our previous response, they are indeed coordinates. In this coordinate system (XZ plane), the origin (position (0,0)) is in the center of the body of the robot.

You seem to have a good grasp of what you are doing at this point. Is there anything specific we can help you with?

Also, we encourage you to simply take the code, modify the values to fit your hexapod and try it out, tweak it and see how it goes.

Sincerely,

Hi sorry for the delay i was out.

Well i did all the measurment with the coordinates but if i input my chasis values the hex moves worst than the origian pheonix code values.

To some up, for example the cRROffsetX value is the vector A-B and cRROffsetZ is C-B right ?

http://https://www.robotshop.com/forum/https://drive.google.com/file/d/1GvYqAeFuYVa6FN5_AC1gGZlnsDvPRXfx/view?usp=sharing

http://https://www.robotshop.com/forum/https://www.robotshop.com/letsmakerobots/files/userpics/u28919/20180301_084634.jpghttps://drive.google.com/file/d/1GvYqAeFuYVa6FN5_AC1gGZlnsDvPRXfx/view

Hi,

You seem to have attached images in your post, but they are not visible. We recommend that you try to attach them using the **Attachments **bar in **Full editor **and then click the “Place inline” button to add them in the text.

The one image visible (from google drive) seems to indicate you have the right idea with the measurements.

All we can say on this is you’ll have to experiment with it and try different things until you get it to work. We cannot offer more info than this for custom bodies/structures. That being said, you seem on the right path.

You may want to make sure to not just change the body dimensions but also the leg dimensions and angles, too.

Sincerely,

Hi

The things that i have changed was the body dimentions, and leg dimentios. I did not change the angles, since the values are ok for the body-leg orientation.
Do i have to change them? and how they affect the code?

All the dimensions and the angles affect the code by changing how the gait will move the robot around. Unfortunately, we cannot really offer much more than that on this point. You’ll really just have to go through some trial and error with this, since you are using a custom chassis.

ok man.
thnks.