Git Product home page Git Product logo

digitaltouch's Introduction

DigitalTouch 1.1.0

This library lets you measure the capacitive touch of an Arduino pin by measuring the charging-time of the sensor cap through an external high-ohmic resistor. An LED can be connected to the same pin.

  • no ADC, timer, comparator or IRQ is required
  • one pin per channel, no extra send-pin
  • one LED can be added to each channel without extra pins and can be controlled independently
  • one external resistor is required, a second resistor is optional for ESD robustness and if LEDs are used
  • easy to adapt to every controller, only general I/Os are used (Smitt-Trigger input)

The intention of the code is to run on very small controllers.

The sensor should be isolated. The circuit should be grounded.

For wiring and other information please read the extensive documentation in the library file.

Installation

Download the zip, extract and remove the "-master" of the folder. Install the library as described here: http://arduino.cc/en/pmwiki.php?n=Guide/Libraries

Credits/Links

The example sketch and the library structure and filtering is based on the AnalogTouch library by Nico Hood: https://github.com/NicoHood/AnalogTouch

The measuring method was changed from ADC to digital-based. A median filter was added as a second filter option.

Version History

1.1.0 Release (21.01.2019)

  • adding hard-coded IO functions, need new #define statements but is fully optional
  • adding function sensorLEDsOff()
  • bugfix in digitalReadAverage()

1.0.0 Release (17.01.2019)

  • Initial Release

License and Copyright

Copyright (c) 2019 Rainer Urlacher under the MIT License

digitaltouch's People

Watchers

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