collapse

Welcome!



Welcome to Robot Rebels, an online robot maker community.

Register today to post your projects, ask questions, share knowledge and meet like-minded people from around the world.


The RobotRebel.org Community

Author Topic: Four Motor Leg Module  (Read 1434 times)

BaldwinK

  • Member
  • ****
  • B
  • Posts: 15
Four Motor Leg Module
« on: December 28, 2016, 10:51:10 AM »
This ongoing exploration into alternative servo designs follows on from the Quaternion Mimic.  That showed one MPU 6050 mounted horizontally could control three motors using the DMP output.

Test Rig C has four motors controlled by two MPU 6050 breakout boards mounted vertically to the upper and lower limbs of a simple robot leg.  Fusion code is required to use raw accelerometer and gyro outputs because the x, y and z axes have to be changed.

Test Rig C.jpg
*Test Rig C.jpg (41.04 kB . 431x768 - viewed 161 times)

IMU Issues

Changing the orientation of the GY-521breakout board highlights the asymmetry of the 6050 chip.  It can be used for deriving pitch and roll but the upper quadrants show a sign reversal that will defeat the atan2 function.  Bespoke code is required to sort out the value and sign of the acceleration vector components.

I did try out the GY-45 breakout board carrying the Freescale MMA8451Q chip.  This is very symmetrical and very easy to use as it provides values through all the quadrants.  For a simple tilt detector (eg switching portrait to landscape mode in a tablet or smartphone) it works fine.  Rattle it around in this application and the gravity vector is swamped by other movements so it is useless.

So reluctantly back to the 6050 for the gyro functions (which are pretty solid).  If only there was a readily available breakout board with both chips!!  Swinging the board around on the arm of a 55g servo makes it easy to see which are the relevant gyro outputs for the changed axes.  Fusion code based on Starlino’s Guide mixes the ‘static’ accelerometer positions with the moving gyro rotations to arrive at a good guess at where things really are.

Continually troubled by random locking up of the 6050, I studied that problem in greater detail.  The findings are in the ‘sick MPU’ tutorial.  Once the failure mode is detected as a bit stream pattern, the chip is power cycled to reset it.  Unless using the chip in an electrically noisy environment you will probably never notice anything.

Geared Motor Issues

At first glance, there seem to be hundreds of cheap motor/gearboxes available on eBay.  It turns out there are many variations on very few themes.  The yellow motor design is a masterpiece of plastics engineering and only costs around a pound.  The armature magnetic detent is reflected at the output shaft as a 6 degree ‘cogging’.  Graphing the PID output to MPU-reported position shows a ramp to staircase waveform. 

The lower limb is not under load so can shake around and the ‘cogging’ will be noticeable.  There is a PVA foam friction disc to help.  Previously I have used a coil spring to keep the joints biased but this time it is done with a bit of code to hold a minimum motor current.

The demo shows the leg kicking a ball and attempting the yoga ‘tree pose’.  The femur swivel should take place at the hip but in the test rig it takes place at the knee so it doesn’t look quite right.  The swivel angle is measured as the lower limb roll but this can only be used as a PID feedback in certain positions.  The motor is turned off when the leg geometry is inconclusive.


Conclusions

Yaw was previously discounted as not useful in this application.  Similarly, the derived femur swivel used here is not a rugged solution.  The longer cable path to the lower limb IMU is screened but that chip is still very susceptible to continuing noise at re-start.  It can be detected and the motors stopped but future designs may be a hybrid of techniques.

Powering each MPU from a Nano output pin has resulted in a higher pin count than originally expected and that will curtail the features of the next module.  It may be some time before I can see how a quadruped with self-balancing legs would perform in practice.

DWRobotics

  • Member
  • ****
  • D
  • Posts: 1
Re: Four Motor Leg Module
« Reply #1 on: November 04, 2018, 05:15:49 PM »
Realise this is an old project but just found this one while browsing. As you may know I am obsessed with the BO- series of plastic motors due to their strength and relative cost and have been working on many ways to make them contrallable.
   I love the complexity of that little leg and wonder if you did much more with that project afterwards?

 The fact you able to make complex controlled movements without having to rely on servos to do all the cool stuff is really cool. At the very least you have a pretty kickass animatronic. Actually looks very similar to my very first robot leg project where I was trying to use printed paper optical encoder to controll the angle of the legs. Was very messy! :

 

* Search


* Recent Topics

Time of Flight >>> Rounded Corners !!! by Gareth
[November 15, 2018, 03:21:51 PM]


Double_ing up the "Time of Flight" sensors by Gareth
[November 13, 2018, 04:05:02 AM]


Point cloud anyone !!! maybe 3D scanner by maelh
[November 11, 2018, 05:38:33 AM]


removable magnetic print surface by Gareth
[November 09, 2018, 10:53:45 AM]


Robot Cop by Valeriex
[November 07, 2018, 05:48:20 AM]


it's lukeyes by Valeriex
[November 07, 2018, 05:47:16 AM]


TOF gets a local DEBUG screen by Gareth
[November 07, 2018, 03:47:29 AM]


BlueTooth elves choose "BlueTeeth" by Gareth
[November 07, 2018, 03:40:19 AM]


Yup, it is me... ...CtC by ZeroMax
[November 05, 2018, 07:14:09 PM]


Four Motor Leg Module by DWRobotics
[November 04, 2018, 05:15:49 PM]


MKS Gen L 1.0 by terragady
[November 02, 2018, 12:15:09 PM]


Do you think he pushed the train in the last lap, G? by Gareth
[November 01, 2018, 05:57:58 PM]


IBM buys Red Hat by jinx
[October 30, 2018, 04:09:07 AM]


QTC - quantum tunneling composite. Can we make our own sensors? by OddBot
[October 27, 2018, 02:14:52 PM]


[ Firmware ] Klipper - the cool firmware for 3d Printers by tinhead
[October 03, 2018, 12:29:14 PM]

* Recent Posts

Re: Time of Flight >>> Rounded Corners !!! by Gareth
[November 15, 2018, 03:21:51 PM]


Re: Time of Flight >>> Rounded Corners !!! by Gareth
[November 15, 2018, 03:13:11 PM]


Re: Time of Flight >>> Rounded Corners !!! by MEgg
[November 14, 2018, 06:26:08 PM]


Re: Time of Flight >>> Rounded Corners !!! by MEgg
[November 14, 2018, 05:57:24 PM]


Re: Time of Flight >>> Rounded Corners !!! by Gareth
[November 13, 2018, 04:07:31 AM]


Re: Double_ing up the "Time of Flight" sensors by Gareth
[November 13, 2018, 04:05:02 AM]


Re: Time of Flight >>> Rounded Corners !!! by Gareth
[November 13, 2018, 03:53:46 AM]


Re: Time of Flight >>> Rounded Corners !!! by Gareth
[November 13, 2018, 03:45:41 AM]


Re: Time of Flight >>> Rounded Corners !!! by MEgg
[November 12, 2018, 01:01:49 PM]


Re: Point cloud anyone !!! maybe 3D scanner by maelh
[November 11, 2018, 05:38:33 AM]


Re: Time of Flight >>> Rounded Corners !!! by maelh
[November 11, 2018, 05:25:15 AM]


Re: Double_ing up the "Time of Flight" sensors by maelh
[November 11, 2018, 05:22:23 AM]


Re: removable magnetic print surface by Gareth
[November 09, 2018, 10:53:45 AM]


Re: Robot Cop by Valeriex
[November 07, 2018, 05:48:20 AM]


Re: it's lukeyes by Valeriex
[November 07, 2018, 05:47:16 AM]