Segway and input filtering


[Kerry] is building a segway type vehicle for a senior project. Though it doesn’t appear to be done yet, there is some good work finished. As with any balancing bot, it relies heavily on input from a gyroscope, and at least in this case, an accelerometer. That data can be very messy. The sensitivity of the sensor means that people often end up with vibrating or drifting in their projects. [Kerry] has put some work into finding a method of smoothing that results in fast, accurate, but smooth reaction. You can see a video of some comparisons between methods after the break.


  1. Hackius says:

    What the hell? Not available outside US? WHY???

  2. Frac says:

    Because the U.S. wishes to keep what little balanced journalism it produces…

  3. Marcin says:

    “This video is not available in your country or domain” :-(

    Maye it’s time to stop using YouTube.

  4. dan says:

    works fine in UK!

  5. VEC7OR says:

    Hell yeah, I just wonder why ? Inst it just about some piece of math or what ?

  6. Hackius says:

    Someone from the US please download the video and reupload it to youtube (with apropriate credits) so that we can get around the nazi restrictions.

  7. Tim says:

    Looks like there’s not really much in it. The left and right ones just look like low-pass filtered versions of the kalman output.

    Also, I hate it when people drag 30 second videos into 3 minutes so they can play their favourite music over it.

  8. IluvBread says:

    Reported not working in sweden.
    <3 But It’s seems interesting.

  9. tapius says:

    what song is that, it’s awesome

  10. matt says:

    @tapius: the killers – read my mind (off the album sam’s town)

  11. Kerry snyder says:

    Just so you guys know, that is not my video. I will be sure to make one of these as soon as I recieve my sensors. I posted this as an example for filtering. Thanks for everything though!

  12. Pyetras says:

    here you go (in 60 minutes)

  13. JackSparrow says:

    The funny is that the program is in spanish o_O!


  14. hum4n says:


    I love how the dials go with the music!!!

  15. socksy says:

    Because the song is commercial, youtube has detected it, and puts a little “buy in itunes” ad on the youtube page. This doesn’t appear in embedding, so it doesn’t make a difference here, but the ad deal isn’t available in every country – I guess they have to make deals with each country’s respective royalty collection boards.

    If the video maker had simply not chosen that song, this wouldn’t be an issue…

  16. dude says:

    the video means absolutely nothing without the model and noise parameters used.

    also, what is the person trying to do? estimate the orientation of the board? or smoothen the orientation measurement?

    if the former, they would need ground truth to assess how well each filter does. Ground truch is hard to obtain in this case, though, so it may be better to implement the controller for the segway and simulate it with each filter to compare them.

    if the person just wants to smoothen the orientations, a simple low pass with the right parameters would do just fine — at a smaller computational cost.

  17. Luke says:

    I’d really like to know what program’s being using to plot the data – anyone know?

  18. strider_mt2k says:

    Is there some other video somewhere where this project is actually explained as a serious project or something?

  19. Wwhat says:

    Video works for me on mainland EU, I see the adlink for itunes but you’ll never see itunes on my systems anyway so that’s wasted effort.

  20. Wwhat says:

    Addendum: When I say works I mean both embedded and on

  21. fartface says:

    A completely useless video that explains and demonstrates nothing.

    I wonder when we will get a good demo of it because wild changes like that is worthless. the only VALUABLE 6 seconds of the video are in the middle where you see the input going wonky and the filters stopping it, everything else was 100% useless.

  22. C Shuff says:

    From the looks of the low quality movie, it appears to be labview.

  23. Ken says:

    Will someone with actual knowledge of nonlinear feedback system design stop all this nonsense and just publish a working mathematical model already! This isn’t the kind of thing you can get working well by hacking with it. You need the proper theoretical foundation.

  24. Kerry Snyder says:

    As I had said before, this is my blog and I have yet to even purchase a Gyro or Accelerometer (Actually buying them tonight). I will be sure to post all of my models, software and non-musical videos when I get the chance.

  25. jimmys says:

    did you submit your project to hackaday or was it someone else?

    looks cool, btw. good luck with it.

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,513 other followers