Home Creators Posts Import Register Favorites Logout
haven't archived this post yet. have a subscription? use the importer!

Content

Here's next Tuesday's video, early for Patrons. This video goes out publicly on Tues 6th August.

The essential aim is to see how openDog needs to react when its feet hit the ground, although I'll be avoiding changing its mechanical structure to make it work. It's very very hard to keep openDog perfectly level 100% of the time when taking steps, which always results in a powerful rigid leg pushing it back hard when it tips and causing stability to be much worse. Also it would be good if it can react to uneaven ground and being pushed about.

I'm going to build four of these compliant legs to help prove if their reaction is correct, and then try to apply that to openDog in code using foot sensors to make openDog's legs compliant and have the same reaction, albeit with rigid actuators that cannot be back driven.

I'm pretty happy with the initial results in this video, so any future leg projects will probably work in a similar way. I'd still like to build a walking tripod robot at some point.

Files

Previews only

Simulating a Compliant Dampened Spring with Current Control

I've built another test robot leg in the name of robotic development! I decided to experiment with using current control to make a joint that behaves like a spring, using a bruhsless motor with 2-stage belt reduction so it's back-drivable, and an ODrive motor controller using current limiting. However a robot with springs in it's legs will behave quite unpredictably, so we need to dampen the spring and make it complaint for it to be any use. I experimented with this by using a PID controller to drive the motor to its new position after the 'virtual spring' has stretched. The next stage will probably be to make another three legs and attach them to a frame to see of the robot is dynamically stable and compliant - with each leg returning to its home position. We can then see what needs to happen to openDog next in terms of its reaction when to tipping when the feet hit the ground. ① HARDWARE/SOFTWARE What more important hardware is there in life than the clothes on your back and the cup in your hand. You can get your own Robot X tee or openDog mug at the link below: Teespring: https://teespring.com/stores/james-bruton Below you can also find a lot of the typical tools, equipment and supplies used in my projects. Some of these links are affiliate links, meaning, at no additional cost to you, I might earn a little extra if you click and make a purchase. Lulzbot 3D Printers: http://bit.ly/2Sj6nil Lincoln Electric Welder: https://bit.ly/2Rqhqos CNC Router: https://bit.ly/2QdsNjt Ryobi Tools: http://bit.ly/2RhArcD Axminster Micro Lathe: http://bit.ly/2Sj6eeN 3D Printer Filament: http://bit.ly/2PdcdUu Soldering Iron: http://bit.ly/2DrNWDR Vectric CNC Software: http://bit.ly/2zxpZqv And don't forget the code for some of my projects is available on my GitHub here: https://github.com/xrobots ② GENIUS No MacArthur grant yet. But while I’m still waiting by the phone for that call, maybe you might patronise me with your Patreon-age or pick up some of my merchandise. Or, if you’re all out of digital cash just comment on one of my hilarious Instagram pics, pop me a Tweet or generally yell in my direction. Patreon: https://www.patreon.com/xrobots Teespring: https://teespring.com/stores/james-bruton Instagram: https://www.instagram.com/xrobotsuk Facebook: https://www.facebook.com/xrobots.co.uk Twitter: https://twitter.com/xrobotsuk Huge thanks to my patrons, without whom my standard of living would drastically decline. Like, inside out-Farm Foods bag decline. Plus a very special shoutout to Aleph Objects, Inc who keep me in LulzBot 3D printers and support me via Patreon. Why not join my community, who are mostly made up of actual geniuses. There’s a Facebook group and everything: https://www.facebook.com/pg/xrobots.co.uk/community ③ XROBOTS Former toy designer, current YouTube maker and general robotics, electrical and mechanical engineer, I’m a fan of doing it yourself and innovation by trial and error. My channel is where I share some of my useful and not-so-useful inventions, designs and maker advice. Iron Man is my go-to cosplay, and 3D printing can solve most issues - broken bolts, missing parts, world hunger, you name it. XRobots is the community around my content where you can get in touch, share tips and advice, and more build FAQs, schematics and designs are also available. ④ MUSIC AND SFX The majority of the music and SFX used in my videos is from Epidemic Sound http://share.epidemicsound.com/xrobots

Comments

Scott Cress

Oh wow James... This was a great episode... 15:44 sounded exactly... Exactly how the BD dog does... You're really getting this "spot" on...

Scott Cress

Just finished the video... I think you're on the verge of Open Dog 2.0 😁 Which May not be a bad idea as it would probably drive views to your channel.

Scott Cress

BTW I would love to see you build the four legged version you were proposing at the end.

Anonymous

You could put a spring from the back of the "knee" to the hip to take some of the static load and make your motors work both when pushing and pulling. This should effectively double their power for free.

John N Nelson

I've forgotten - what is the CNC machine you're using? It looks like it does very well on the aluminum plate.

Adam Purdie

Super keen to see this used on a tripod :)

XRobots

I'm going to build the four legged version next. Hopefully I have something I can hit with a broom at the end, even if it can't go anywhere!

XRobots

Yes I could bias it to push more and take some of the load I guess, although it might cause it to become unpredictable (?)

XRobots

I think I might go for bigger motors and hybrid belt-gear reduction, so a slight redesign, but I'm intending to do it at some point. It would require other compliant axis to move anywhere though.

Anonymous

If you can find the right attachment point so the spring stays in a little bit of tension it should be quite linear, although it is possible it will resonate at certain frequencies which could be hard to deal with as you say. The potential benefits (low current draw while standing still) are quite nice. If you are cleverer than I am, you might even make the spring return energy when walking at a certain speed.

XRobots

I will see how it goes with four legs, I may find there's not enough power so I'll need to add something ;-)

Scott Cress

Even if it doesn't walk/move you should just smack it with a broom/give it a kick for comedic effect. 😆😆😆 It's just standing there and you push it. Look at the camera and ask (deadpan expression) "Is this how you do it, BD?"

Scott Cress

What if the long part of the leg was a strip of spring steel and then you could use a flex sensor to see how much flex is being applied. That might reduce some weight and put less work on the leg.

Anonymous

If your open to suggestions... I'd like to see you test your 4 new legs attached to a .new platform. If only to simplify the test. Still trying to get my head around OpenDog with the old legs :-)

Anonymous

Looking good, can't wait to see open dog walk, run, and jump!

XRobots

It might never get that good, but hopefully something like that will come out of the R&D

George

As someone who is a robot hobbyist, your work and thinking process are amazing. When you scale up from one kg or less robots to what you are working with, the problems increase exponentially. Wonderful work as always!

XRobots

Thanks, well I'm mostly just experimenting as I go, but hopefully we'll get there in the end

Anonymous

I don't fully understand the control loop that you have set up. But assuming that you were running it open loop for the first tests, and then adding Proportional control to close a position loop, I don't see this as being analogous to damping. With an open loop you are applying a constant force/torque, which is not the equivalent of a spring. Only when you close the position loop will you get a force/torque that scales with leg extension, making this the equivalent of a spring. In setting the proportional term within this loop you are effectively changing the spring constant. The equivalent of damping would be modulating the torque based on the speed of leg extension, analogous to including a derivative term in the controller.

XRobots

The ODrive is doing the positioning for the motor and trying to hold it in that position - this is what makes the 'virtual spring'. The PId controller running on the Teensy in my own code is then making it compliant by looking at the difference between the demand motor position and the actual position and moving the motor somewhere towards the actual position depending on the P gain.

Anonymous

Separate question, why do you need an encoder for this? I would have expected you to be able to get more than sufficient positional resolution from the hall effect sensors. (Not available as a count from the Odrive, and/or too fast for interrupts on the teensy?)

XRobots

The ODrive only really works with encoders, the motors also don't have hall-effect sensors in them.

Anonymous

Ah, that makes sense then, the ODrive position controller is making it a virtual spring. By nesting it in a second (perhaps slower) position loop using the Teensy I can see how that makes it compliant, but it seems like this would be similar to detuning the ODrive position loop? I'm also not sure that compliance is the same as damping - which should surely some measure of speed (e.g. a derivative term).