Code Monkey home page Code Monkey logo

multitouchkit's People

Contributors

hci-lab-saarland avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

multitouchkit's Issues

Implement on the esp32 with a multiplexer

Hi there,

Thankyou for this library, tested on the arduino uno and it works great!

I would like to convert this to run the ESP32 using also the 74hc4067 multiplexer. The issues I'm aware of are:

  • Working with 3.3V logic, could be an issue with the multiplexer
  • Adding a dictionary to divert anlogue pins of uno/mega "A0 to A16" calls to relevant analogue read GPIO pins of ESP32
  • Alter "MultiTouchKit::setupPWM()" for the following:
  1. Method to set the timer output pin to esp32 GPIO alternative
  2. Set frequency of PWM to 4MHz, 25% duty cycle (possibly using "ledcSetup(PWM_CHANNEL,PWM_FREQ,PWM_RESOLUTION);"
  3. Alter "analogReference(INTERNAL); //change reference to 1.1V" to ESP32 equivalent

Thinking the following might work:

`void MultiTouchKit::setupPWM() {

#define PWM_PIN 14          // PWM pin output used
#define PWM_FREQ 4000       //set frequency to 4000
#define PWM_CHANNEL 2       // internal timer channel 0
#define PWM_RESOLUTION 12      // bit resolution

ledcSetup(PWM_CHANNEL,PWM_FREQ,PWM_RESOLUTION);  // define which PWM channel, frequency and resolution
ledcAttachPin(PWM_PIN,PWM_CHANNEL);  // Attach to GPIO pin
ledcWrite(PWM_CHANNEL,1024);  // write at 25% duty cycle 
analogSetAttenuation(ADC_0db); // similar function to analogReference(INTERNAL) method?

`
Is there anything that I could be missing or overlooking here?

Thank you in advance for your time.

is it possible to use multiple multiplexers to achieve a larger matrix?

Due to the arduino uno / pro mini only having 6 analog input pins the amount of columns is limited to 6 while the muliplexer mentioned in the tutorial document could theoretically support a larger matrix.

Is there a way to use the remaining unused pins from the MUX to create an 8x8 matrix for example?
Alternatively, if I add a second multiplexer, is it possible to achieve such a matrix?
Thanks in advance.

Use without multiplexer on ESP32

I have a breakout for the ESP32-WROVER which has enough pins to make a 5x5 grid without a multiplexer. How could I use this library with such a setup?

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.