Giter Site home page Giter Site logo

bzerk / mcp4021_digital_potentiometer Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dzalf/mcp40xx_digital_potentiometer

0.0 0.0 0.0 93 KB

Arduino library for Microchip 2-wire MCP4021 64 resistors (63 taps) digital potentiometer

Home Page: https://github.com/dzalf/MCP40xx_Digital_Potentiometer

C++ 100.00%

mcp4021_digital_potentiometer's Introduction

MCP40xx_Digital_Potentiometer

Arduino/Teensy library for Microchip MCP4011/12/13/14 64 taps digital potentiometer

Library usage:

  1. Instantiate a new object as:

    MCP40xx digipot(CS Pin, UD Pin)

    1.1 An overloaded constructor is available. It makes possible to debug the code via a third element:

    MCP40xx digipot(CS Pin, UD Pin, true/false)

  2. Setup and begin the digital pot:

    digipot.setup() --> assigns and initialises the digital pins digipot.begin() --> sets the initial position of the wiper

    #TODO: set three possible states: minimum wiper (done!), 50% wiper or max wiper(done!)

  3. Increase/decrease the pot's value using the inc()/dec() methods.

  4. Methods for retrieving the approximate resistance value, tap position and increment/decrement times (in microseconds) are included.

Please read both .h and .cpp files as they are self-explanatory.

If you have any suggestions/pull requests please feel free to join me on the development.

Let's work together ๐Ÿ˜ƒ

Happy tinkering ๐Ÿบ

dzalf

mcp4021_digital_potentiometer's People

Contributors

dzalf 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.