Author Topic: Help leveling a platform  (Read 2307 times)

0 Members and 1 Guest are viewing this topic.

Offline eNinjaTopic starter

  • Contributor
  • Posts: 10
  • Country: za
Help leveling a platform
« on: September 11, 2016, 08:38:06 am »
Hi guys

Ive been trying to solve the following problem:



Basically i have a platform with 4 lifts/motors and i want to level it but i only have access to the following info:
-The amount the legs have extended, and the pitch and roll of the platform (in degrees).

The only way i can think of doing it is checking the pitch and roll and then adjusting as follows:

If the pitch of the platform is outside of the level threshold, lift a leg and a see if it improves or makes the the pitch worse. If it improves it keep lifting that leg, if it makes it worse reverse it a little and move to the next leg.
Repeat the same on each leg for correcting the roll.
Once everything is level the platform will start to raise all four legs up and down together.

Though this logic doesnt work right, it will work if the surface its on is relatively flat (eg. just pitch is out) , but if its on a surface thats very uneven on all four legs it doesnt seem to be able to reach level.

Im guessing my solution is wrong, there is probably a better way for me to be adjusting the legs (maybe in stages or using pairs) but i dont know how.

If you can help me i would appreciate it very much :)
 

Online Ian.M

  • Super Contributor
  • ***
  • Posts: 12856
Re: Help leveling a platform
« Reply #1 on: September 11, 2016, 09:55:27 am »
First you need an algorithm for making sure all the feet are in contact.  This is extremely difficult with no load sensors in the legs. Even if all you can sense is motor current, that would be most helpful.  Without load sensing, I would suggest extending one leg at a time and seeing if any tilt is detected.  If not, it cant have been in contact.  If it tilts, back up till it stops moving. If you've got load sensing, you can determine which leg is redundant, (i.e. the center of gravity (CG)  is between the other three legs), by lifting each in turn slightly then returning it to its original position, and calculate the approx CG, then distribute the load as evenly as possible between the redundant leg and the two legs nearest to it.

Then, assuming the legs are on a rectangular footprint, adjust a pair of diagonally opposite legs in opposite directions to minimise tilt about that diagonal and repeat for the other pair.
 

Offline SL4P

  • Super Contributor
  • ***
  • Posts: 2318
  • Country: au
  • There's more value if you figure it out yourself!
Re: Help leveling a platform
« Reply #2 on: September 11, 2016, 10:56:52 am »
Also consider that you need to normalise all the legs within their range of extension, otherwise you'll run to the limits - and nothing will happen.
Don't ask a question if you aren't willing to listen to the answer.
 

Offline eNinjaTopic starter

  • Contributor
  • Posts: 10
  • Country: za
Re: Help leveling a platform
« Reply #3 on: September 11, 2016, 12:01:40 pm »
First you need an algorithm for making sure all the feet are in contact.  This is extremely difficult with no load sensors in the legs. Even if all you can sense is motor current, that would be most helpful.  Without load sensing, I would suggest extending one leg at a time and seeing if any tilt is detected.  If not, it cant have been in contact.  If it tilts, back up till it stops moving. If you've got load sensing, you can determine which leg is redundant, (i.e. the center of gravity (CG)  is between the other three legs), by lifting each in turn slightly then returning it to its original position, and calculate the approx CG, then distribute the load as evenly as possible between the redundant leg and the two legs nearest to it.

Then, assuming the legs are on a rectangular footprint, adjust a pair of diagonally opposite legs in opposite directions to minimise tilt about that diagonal and repeat for the other pair.

Ive got code to check that the feet are making contact with the ground, simply a true or false for each leg. I might have load sensing but im expecting that it won't be accurate so i don't want to rely on the actual force values.
I will also be able to tell if the legs are either fully extended or fully retracted.

i should also mention this is a simulation in code at the moment, no device has been built yet.

So if i can check if each foot is making contact, then if i understand you correctly i should check the diagonal legs, adjust one at a time to see if its affecting the tilt, then move to the next diagonal and do the same ?
 

Online Ian.M

  • Super Contributor
  • ***
  • Posts: 12856
Re: Help leveling a platform
« Reply #4 on: September 11, 2016, 12:22:05 pm »
No, Once all the feet are in contact, you adjust a diagonal pair at a time in opposite directions, so all the legs remain in contact and it tilts about an axis between the feet you are not adjusting. You drive the active legs to minimise the tilt about the diagonal axis between the currently fixed pair of feet.  Repeat for the pair on the other diagonal and iterate till the tilt is within your required tolerance.

If you detect loss of contact for any foot at any time for longer than a moment, you need to return to the 'get all feet in contact' routine.

Its not too tricky on a reasonably uniform hard surface but on difficult surfaces e.g. randomly raked deep pea gravel) you will have to contend with the feet shifting.
 

Online Mechatrommer

  • Super Contributor
  • ***
  • Posts: 11631
  • Country: my
  • reassessing directives...
Re: Help leveling a platform
« Reply #5 on: September 11, 2016, 01:03:57 pm »
what is this for? 4 legged walking creature? or 3d printer platform?
Nature: Evolution and the Illusion of Randomness (Stephen L. Talbott): Its now indisputable that... organisms “expertise” contextualizes its genome, and its nonsense to say that these powers are under the control of the genome being contextualized - Barbara McClintock
 

Offline eNinjaTopic starter

  • Contributor
  • Posts: 10
  • Country: za
Re: Help leveling a platform
« Reply #6 on: September 11, 2016, 01:15:53 pm »
what is this for? 4 legged walking creature? or 3d printer platform?

A motion platform. Like one that you would connect to a racing game.
 

Offline eNinjaTopic starter

  • Contributor
  • Posts: 10
  • Country: za
Re: Help leveling a platform
« Reply #7 on: September 11, 2016, 01:18:48 pm »
The code is not for levelling the hardware platform though, its for levelling what its going to represent in the software.
« Last Edit: September 11, 2016, 01:20:39 pm by eNinja »
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf