Coder Social home page Coder Social logo

segwaybot's Introduction

Segway Bot

This robot can balance on 2 wheels for 30 seconds. It runs on an Arduino Nano and uses 9-DOF IMU and 2x NEMA 17 stepper motors.

General working principle

  1. Take data in from the accelerometer (noisy absolute pitch) and gyroscope (smooth delta-pitch).
  2. Fuse the data together with a complementary filter to get relatively un-noisy absolute pitch.
  3. Calculate the error and feed it into a PID loop.
  4. Feed the PID data into the stepper motors.

Problems encountered

  • The sensors are extremely noisy. They tended to get even noisier when the stepper motors were active. This was mitigated by using a physical low-pass isolation medium (fancy term for a piece of foam between the frame and the IMU).
  • The wheels, being slippery PLA plastic, have very low traction. This was mitigated by adding a metaphorical warning label to the robot saying that it can't be used on smooth surfaces, but it does very well on carpet.

Links

  • Drawings and schematic
  • CAD Model (Slightly outdated, as it mentions a MPU6050 instead of a LSM303DLHC/L3GD20 system, but it's I2C so it's still compatible.)

segwaybot's People

Contributors

ifd3f avatar

Watchers

James Cloos avatar  avatar

Forkers

lubyruffy

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.