Code Monkey home page Code Monkey logo

singleaxisemulator's Introduction

Single Axis Stepper Motor Emulator

Overview
This is a simple DC brushed motor controller with encoder feedback, step-direction interface, and optical home switch. It was originally built for a modular robotics application using low-power DC motors and very coarse (low resolution) encoders. This circuit may find application in CNC and 3D printing applications, but it is likely that certain modifications will need to be made (in software for example) to make use of higher resolution encoders.

Principle of Operation
The block diagram below illustrates the basic principle of operation. The microcontroller is a Microchip PIC 18F1320 and the motor driver is a LMD18200. Depending on the level of the Direction input, pulses on the Step line will increment or decrement an internal counter in the PIC. A separate counter tracks the actual position of the motor by decoding encoder pulses. An error signal is defined by the difference of the counter representing desired position and the one representing actual position. The LMD18200 receives a motor command that is simply proportional to the error. PID control is possible but not currently used. If the Step input is held high for longer than a certain threshold, the controller switches state to "homing mode" in which it runs the motor at constant speed until the optical home switch is activated. After the home switch is activated the controller returns to normal operation.

alt text

Downloads
Schematic
Code
Gerber Files
Eagle PCB Files
Parts List

License
This work is licensed under the GNU General Public License.

How to Cite
If you would like to reference this work in a publication, please refer to the github url and cite this paper:

An architecture for universal construction via modular robotic components
Robotics and Autonomous Systems
Matthew S. Moses, Hans Ma, Kevin C. Wolfe, Gregory S. Chirikjian (2013)

Credits
This work was performed in Gregory Chirikjian's Robot & Protein Kinematics Lab at Johns Hopkins University. The work was partially supported by the National Science Foundation under Grant No. IIS-0915542. Any opinions, findings, and conclusions or recommendations expressed in this material are those of the authors and do not necessarily reflect the views of the National Science Foundation.

Matt Moses created the schematic and ciruit board layout.
Kevin Wolfe created the custom part library "modular_robot_parts.lbr".
Kevin Wolfe authored the initial version of the control software.
Matt Moses modified Kevin's original code. (Good parts belong to Kevin. Bad parts are Matt's fault.)
John Swensen provided helpful advice.

singleaxisemulator's People

Contributors

mattmoses avatar

Watchers

James Cloos 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.