GithubHelp home page GithubHelp logo

self-balancing-bike's Introduction

Self-Balancing-Bike

Arduino nano, Nidec 24H motors, MPU6050, 3S 1000 mAh LiPo battery.

Balancing controller can be tuned remotely over bluetooth (but do this only if you know what you are doing).

Example (change K1):

Send p+ (or p+p+p+p+p+p+p+) for increase K1.

Send p- (or p-p-p-p-p-p-p-) for decrease K1.

Remote control over Joy BT Commander app.

Self balancing bike

Schematic

About schematic:

Battery: 3S1P LiPo (11.1V 500-1200mAh).

Buzzer: any 5V active buzzer.

Transistor: 2N2222 or similar.

Servo: TowerPro MG995 or similar size.

The voltage regulator 7805 is not the best choice. Use any 5V switch type small regulator.

First connect to controller over bluetooth. You will see a message that you need to calibrate the balancing point. Send c+ from serial monitor. This activate calibrating procedure. Set the bike to balancing point. Hold still when the bike does not fall to either side. Send c- from serial monitor. This will write the offsets to the EEPROM. After calibrating, the bike will begin to balance.

More about this:

https://youtu.be/Je9Y2WaRB6g

If something doesn't work, you can try motors_test. This sketch tests the motors and steering servo. Follow the messages in the serial terminal.

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.