Giter Site home page Giter Site logo

arduino-capacitor's Introduction

Capacitor

Arduino library to measure capacitance from 0.2pF to over 100uF with no external hardware.

Introduction

This library allows capacitance to be measured between two pins. One pin must be an analog pin.

Usage

Declare a Capacitor object, e.g.:

Capacitor cap1(7, A2);

To measure the value of a capacitor (e.g. in the case above between pin D7 and A2) call the Measure() method, e.g.:

float val = cap1.Measure()

Returns the capacitance in picofarads, in this case in the variable val.
(note that 1nF = 1000pF and 1uF = 1000000pF)


I originally came up with this idea back in 2014. For some explanation of how it works please have a look at these links: https://hackaday.com/2014/01/22/capacitance-measurement-with-the-arduino-uno/#more-113173 http://wordpress.codewrite.co.uk/pic/2014/01/21/cap-meter-with-arduino-uno/ http://wordpress.codewrite.co.uk/pic/2014/01/25/capacitance-meter-mk-ii/
When I get a chance I'll update the Wiki with some of the above information and some oscilloscope screen shots...

arduino-capacitor's People

Contributors

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