Gyrocam keeps the horizon level even when the camera isn’t

[Derek] likes to get a little bit of drivers-eye footage when racing his motorcycle, but there’s an inherent problem with mounting a camera to a moving and tilting platform. When he leans into turns, the camera can’t keep the horizon level. Cinematography and electronics go well together. so [Derek] built a horizon-stabilized camera mount for motorcycle videography.

The build was inspired by footage shot from [Valentino Rossi’s bike in 2010. Of course the professional model costs a small fortune, but [Derek] managed to make his own out of 3D printed parts and a hobby servo.

Based on the Contour Roam camera, [Derek] had a pair of gears printed at Shapeways to fit over the camera and attach to a servo. The electronics are an ATMega32 with a L3G4200D gyroscope. When the ‘micro detects a change in the gyroscope it rotates the servo in the opposite direction, keeping the horizon in the video level.

It’s a very cool build, and judging from the action videos after the break, makes for awesome track footage.


  1. Zee says:

    Not bad but I would have just put the camera in a liquid.

  2. Mike says:

    RC helicopter/quadcopter people have access to some cool and reasonably priced motorized stabilized camera gimbals that are compatible with even big DSLRs.

  3. goja52 says:

    the gyroscope in a chip is not influenced by the centrifugal force?
    I wouldn’t have thought that!

  4. mental2k says:

    Really impressive that! Nice simple and cheap solution!

  5. Jan says:

    A gyro only will drift over time, right? So how does he compensate that?

    • Matt says:

      Based on the smoothness of the camera, it appears he is already applying some filtering to the gyro signal. Filtering out sensor bias wouldn’t be that difficult if he averaged at a rate longer than a typical turn length.

      • MasterFX says:

        The L3G4200 as well as the L3GD20 is a very accurate . You don’t have smoth the output much.
        But the drift is always there, no matter if you angle changes or not. So if no accelerometer is used to compensate the drift you’ll get an angle offset of about a couple of degrees after a couple of minutes.

    • Derek says:

      The gyros do drift. In addition, errors accumulate due to vibration, climbs and descents, etc. My solution was to monitor not just the roll angle, but also the roll and yaw *rates*. When the roll and yaw rates are both zero this indicates the bike is level (ie. on a straightaway) and the gyro/camera can be re-centered. In this way the gyrocam is self correcting. Of course the devil is in the details (signal smoothing, timing constants, etc.)

  6. fartface says:

    Why not use the gyro he already has. his head. When riding a motorcycle you tilt your head. Look at the guys that use the helmet mounts, they already have this PLUS get free vibration dampening from the neck.

    • Gutierrez says:

      It can be difficult to mount your head on the rear of the motorcycle. Still, that is the simplest hack.

      • Trav says:

        Yeah, but then we only get a picture of his butt, which I could have done without.

        It is a nice build though. I was concerned about jitter from the servo, but it seemed to correct wonderfully. I think this is much better than the helmet mounted cams. I think they vibrate even more.

    • Steve says:

      Your head is not always in line with the motorcycle (in multiple axes) and also gets buffeted by the wind. Mounted to the bike gets a stable platform and gets across how much the bike is leaned over.

    • Mike says:

      Attach a camera to the head of the rider? Nah, birds can do it better, because they’ve got a longer, more flexible neck. Strap a camera to the head of a chicken and then tape the chicken to the bike. Problem solved.

    • Masta Squidge says:

      Helmet mounts are terrible. You have to deal with buffeting, the head bouncing up and down on some rougher tracks alone can cause motion sickness in some viewers, and you won’t get anywhere near as smooth and accurate leveling.

      Plus then you have to deal with a couple pounds of camera gear strapped to your head when you are already fighting the weight of your helmet and the various forces in play to begin with.

  7. Jamie says:

    Very nice results!

  8. Hirudinea says:

    This is very impressive, have you thought of mounting a 3D camera?

  9. bunedoggle says:

    Awesome build, awesome footage.


  10. alexwhittemore says:

    Man, all in all, this is a really good solution, and really well executed. Perhaps more importantly, REALLY good looking results! Feels like I’m riding the bike :).


  11. soundman98 says:

    nicely done!

  12. Galane says:

    I’d use a weighted and damped pendulum with a simple linkage above the pivot point to tilt the camera the opposite direction.

    Lean bike left, force pushes pendulum right, link tilts camera right.

    Want to get fancier to make it more stable, use solid state gyro and accelerometer to control a brake so the camera isn’t allowed to move past level point. No motor required, just a short throw solenoid with a felt pad to press against a surface.

  13. Derek says:

    Just to set the record straight, solutions based on flotation, pendulums, levers, etc. don’t work in rotating reference frames.

  14. dar says:

    Derek, very nice build! Do you plan to offer kits or making this available in any way?

  15. Derek says:

    I’m not going to produce any kits, but the last link on the website points to a fairly detailed parts list, pc board design files, stl files for the gears, cutting sheet for the enclosure, and source code.

    This is definitely not a “buy some parts and bolt them together” type of project. It requires some embedded programming skills, small parts fabrication / assembly, etc. But I put the info there for anyone who wants try it, or is just curious about how it works.

  16. John says:

    I want to make something similar, I was hoping to use the inbuilt gyro in an android pad, to trim 2 axis on a steadicam, but then I found this thing and thought it might be easier to get working

  17. jeremie says:

    Hi all,

    Is there any way to access to the link given in the article ?
    It appears to be broken.

    It’s a shame, I had the project page opened in a tab of my browser during months, I just bought my Contour Roam to build the same (I have embedded electronics skills), and now the project is offline… :/

    Thank you

  18. Markus says:

    Great project, I’m trying to build my own, using a GoPro. Which Servos did you use for your version? Thanks a lot and greetings from Germany.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


Get every new post delivered to your Inbox.

Join 96,380 other followers