Coder Social home page Coder Social logo

sciencexchina / dcmotorpidcontrol Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rishabhrkaushik/dcmotorpidcontrol

0.0 2.0 0.0 2.87 MB

Closed loop control for speed of DC motor. Arduino and Processing

License: MIT License

C++ 28.71% Processing 71.29%

dcmotorpidcontrol's Introduction

dcMotorPIDControl

Closed loop control for speed of DC motor. Arduino and Processing

Closed loop control system for controlling speed of DC motor. Motor is controlled by Arduino which sends PWM signal to Motor driver. Motor driver in turn drives motor. On the shaft of motor a wheel is attached over which a magnet is pasted. Over the assembly a hall effect sensor is mounted which produces an external interrupt whenever the magnet crosses below it. This interrupt signal is used by arduino to calculate current speed of motor and recalculate required PWM value. Arduino communicates via UART with PC ie reading desired speed, new constants values etc and printing all values on serial for debugging and graphing purposes.

The front end GUI is written in Processing which reads serial and plots the graph of speed and PWM value. It also has panel to send new values to arduino. It also stores the readings in a CSV file to plot later.

dcmotorpidcontrol's People

Contributors

rishabhrkaushik avatar

Watchers

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