Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Soldered MCP4018 MicroPython Library

Digipot MCP4018 Breakout
Digipot MCP4018 Breakout

This library drives Soldered's digital potentiometer breakout, built around Microchip's MCP4018: 128 discrete resistance steps set over I2C (default address 0x2F), with no physical rotating part. The board is sold in four resistance variants sharing the same design and driver:

Variant SKU
5k 333090
10k 333091
50k 333092
100k 333093

It operates from 1.8V-5V, measures 22x22mm, and has dual Qwiic connectors for daisy-chaining. Part of the Qwiic ecosystem.

How to install


After installing the mpremote package, install the library on your board using the following command:

  mpremote mip install github:SolderedElectronics/Soldered-MCP4018-MicroPython-Library

Or, if you're running a Windows OS:

  python -m mpremote mip install github:SolderedElectronics/Soldered-MCP4018-MicroPython-Library

Repository Contents

  • mcp4018.py - MicroPython driver class
  • package.json - mip install manifest
  • /Examples - examples for using the library

Hardware design

You can find hardware design for this board in the Digipot MCP4018 breakout hardware repository (available in 5k/10k/50k/100k variants).

Documentation

Access library documentation here.

About Soldered

Soldered Logo

At Soldered, we design and manufacture a wide selection of electronic products to help you turn your ideas into acts and bring you one step closer to your final project. Our products are intented for makers and crafted in-house by our experienced team in Osijek, Croatia. We believe that sharing is a crucial element for improvement and innovation, and we work hard to stay connected with all our makers regardless of their skill or experience level. Therefore, all our products are open-source. Finally, we always have your back. If you face any problem concerning either your shopping experience or your electronics project, our team will help you deal with it, offering efficient customer service and cost-free technical support anytime. Some of those might be useful for you:

Open-source license

Soldered invests vast amounts of time into hardware & software for these products, which are all open-source. Please support future development by buying one of our products.

Check license details in the LICENSE file. Long story short, use these open-source files for any purpose you want to, as long as you apply the same open-source licence to it and disclose the original source. No warranty - all designs in this repository are distributed in the hope that they will be useful, but without any warranty. They are provided "AS IS", therefore without warranty of any kind, either expressed or implied. The entire quality and performance of what you do with the contents of this repository are your responsibility. In no event, Soldered (TAVU) will be liable for your damages, losses, including any general, special, incidental or consequential damage arising out of the use or inability to use the contents of this repository.

Have fun!

And thank you from your fellow makers at Soldered Electronics.

About

MicroPython library for MCP4018 digital potentiometer.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages