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

Content

Here'a a preview of openDog #13 as the video doesn't come out for a couple of weeks. This video is *not* billed to Patrons - it is a free preview.

The whole video is long and detailed as usual, the summary is: I put new feet on which have space to have pressure sensors added, and I also fit an IMU and try to make the robot balance. Balancing on openDog is a bit harder than RobotX, even though it has more legs, because it's feet are round and not big and flat.

I'm using the IMU to affect X and Y translation, and also pitch and roll moves, to try to get it to stay level when it takes its feet off the ground. You'll remember that currently I have the motion filtering set on each actuator right before the positions are written to the ODrive, however this also smooths out the reaction from the IMU/PIDs making it less effective. 

As I reduce motion smoothing it gets better at balancing, however as I speed up the leg motions the un-smoothed motions cause issues with both inertia and the speed that its feet hit the ground. I sort of got a happy medium at the end, but it's not ideal. So future actions are:

-Upgrade the 8-bit Arduinos to faster 32-bit micros, probably Teensys TBC.

-Restructure the code so that the motion smoothing filter happens on the initial requested moves, but the stability correction from the IMU/PIDs happen after that. This means that the motion is smoothed, but the reaction to balance is quick.

-Investigate the 'interpolation engine' I mentioned in openDog #12, or at least proportional speed control for each actuator so that all the actuators stop moving at the same time for any foot XYZ position. ODrive also has 'trajectory planning'  in firmware development which may be similar, although I don't know if it'll work in three dimensions across multiple ODrives.

-Reduce the amount of things strung together on serial lines, or at least increase the baud rate and cycle time on each micro. The ODrive can receive commands 4000 times per second before there's a buffer overflow, so there's lots of scope to tighten things up here.

-Decide if foot pressure sensors can help with at this stage (they definitely can, but I have to decide what to do with the data).

The next video in the series is probably looking at Teensy and another ODrive which I've purchased to see what the most 'minimal microcontroller way' of doing things is. CANbus and actuator end stops/homing switches are also in development in ODrive firmware, so it's possible I can reduce everything to one microcontroller rather than four.

Files

Previews only

*****openDog #13 preview for Patrons only*******

openDog #13 preview for Patrons only ① 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, 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 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. https://www.lulzbot.com/ 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

Anonymous

Lets switch it up for a DuetWifi and see what it can do with 32bits :)

Ol' Devil Doc

What options could you have besides a microcontroller and pid structure?

XRobots

I really think it needs to be microcontroller based for the actual motion control, otherwise most actual computers are too bloated due to the O/S in between the code and the hardware. PID is pretty standard, although it can be used in a variety of ways - at the moment it's only affecting all the legs in pitch/roll and translation, but we could break that out to effect specific legs/joints independently - like moving the legs off the ground in the opposite direction to the ones on the ground.