Git Product home page Git Product logo

arduino-l298p-mobile-robot-motor-control's Introduction

Functions for basic motor/wheel control of differential drive mobile robots
using MotorShield L298P on Arduino UNO. Implemented in C/C++

  • low level controller/actuator functions for basic motor control

  • higher low-level commands using rate, time, distance units for motion control

  • supports odometry using interrupt driven IR wheel encoder sensors & encoder wheels for TT-Motors

  • has an auto-prime function that can kick-start TT-Motors into rotation
    when stalled and not enough current to escape resting inertia at low velocities

  • versatile functions with intuitive semantic interface

  • wheel odometry using Runge-Kutte approximation
    with serial terminal output of runtime results from implementation of
    ICR - Instananeous Center of Rotation - equations

Example from unicycle.c

Unicycle movements with a differential drive robot

Use the wheels function to create a unicycle function that limits the
motion of the mobile robot to that of a unicycle

   unicycle(FORWARD, 25, 4000) // go forward at 25% for 4 seconds
   
   unicycle(SPIN_LEFT, 5, 2000) // spin (+) with rotational velocity (phi-dot) at 5% for 2 sec
   
   delay(4000)
   
   unicycle(FORWARD, 25) // move forward @ 25% continuously

   unicycle(STOP) //same as  wheels(STOP,2000)
   delay(2000) 

   

arduino-l298p-mobile-robot-motor-control's People

Contributors

mkner avatar

Stargazers

 avatar

Watchers

 avatar

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.