Giter Site home page Giter Site logo

Comments (12)

paradajz avatar paradajz commented on August 21, 2024

Can you post your entire config file?

from opendeck.

walrusmustgo avatar walrusmustgo commented on August 21, 2024
---
  mcu: "rp2040"
  usb: true
  uart:
    dinMIDI:
      pins:
        rx:
          port: "0"
          index: 1
        tx:
          port: "0"
          index: 0
    touchscreen:
      pins:
        rx:
          port: "0"
          index: 5
        tx:
          port: "0"
          index: 4
      components: 64
  i2c:
    display:
      pins:
        sda:
          port: "0"
          index: 16
        scl:
          port: "0"
          index: 17
  buttons:
    type: "native"
    extPullups: false
    pins:
    -
      port: "0"
      index: 2
    -
      port: "0"
      index: 3
    -
      port: "0"
      index: 6
    -
      port: "0"
      index: 7
    -
      port: "0"
      index: 8
    -
      port: "0"
      index: 9
    -
      port: "0"
      index: 10
    -
      port: "0"
      index: 11
    -
      port: "0"
      index: 12
    -
      port: "0"
      index: 13
  analog:
    type: "4067"
    inputVoltage: "3.3"
    multiplexers: 1
    pins:
      s0:
        port: "0"
        index: 18
      s1:
        port: "0"
        index: 19
      s2:
        port: "0"
        index: 20
      s3:
        port: "0"
        index: 21
      z0:
        port: "0"
        index: 26
  leds:
    external:
      type: "native"
      pins:
      -
        port: "0"
        index: 14
      -
        port: "0"
        index: 15
      -
        port: "0"
        index: 22
      -
        port: "0"
        index: 21
      -
        port: "0"
        index: 20
      -
        port: "0"
        index: 19
      -
        port: "0"
        index: 18

Here it is! :)

from opendeck.

paradajz avatar paradajz commented on August 21, 2024

You are sharing the pins between LEDs and multiplexers: pins 18, 19, 20 and 21 are defined both for LEDs and multiplexers. Remove the LED ones.

from opendeck.

walrusmustgo avatar walrusmustgo commented on August 21, 2024

Oh my........ Thanks! I'm an idiot :)

It's getting better, but there's still some weird stuff happening:

  1. If i turn channel 1 knob, i'm getting the correct channel readings ( channel 0 ), but the values are clamped to a really small value ( 27 - 32 ), and if i turn the channel 16 knob, i'm getting both channel 1 and channel 16 readings, with the same clamped values... The pots are 10K by the way, don't know if that matters :)
OpenDeck.configurator.-.Brave.2022-11-08.14-48-40.mp4

from opendeck.

paradajz avatar paradajz commented on August 21, 2024

Did you run make clean after you've changed the config file?

from opendeck.

walrusmustgo avatar walrusmustgo commented on August 21, 2024

Tried it now, rebuilt, but the problem still persists :(

Do i have to play around with ADC offset by any chance?

from opendeck.

paradajz avatar paradajz commented on August 21, 2024

Do i have to play around with ADC offset by any chance?

No. Running the 4067 mux on that same ADC pin on my test setup works fine. My board is standard Pico, though, not the W version, so I'm not sure. Double check your mux wiring, maybe there's a loose contact somewhere.

from opendeck.

walrusmustgo avatar walrusmustgo commented on August 21, 2024

Hmm, i'll try to reconnect everything and let you know. :) I'll also see if i can get ahold of a normal Pico board, the Pico W had some small firmware changes afaik, that might cause the issue (although, if i'm not mistaken, it's just some small internal tweaks).

I'll keep you posted once i test with new connections,and a Pico board. :) Thanks a lot!

from opendeck.

paradajz avatar paradajz commented on August 21, 2024

You should also tie any unconnected mux pins to GND - floating pins cause noise.

from opendeck.

walrusmustgo avatar walrusmustgo commented on August 21, 2024

I've reconnected everything again with new cables, tried a different potentiometer, and connected all of the unused pins to the GND. The only thing that changed was that the clamped value vas lowered ( 25 - 30 )...

I'll try with a regular Pico board tonight, and i'll keep you posted :)

from opendeck.

paradajz avatar paradajz commented on August 21, 2024

Please also verify that you are on latest commit on master. After that, to rule out issues with the mux, disconnect Sx and common/signal/Z pins from Pico, tie all Sx pins to GND, and then measure the voltage on the signal pin when the pot on mux channel 0 is turned all the way left and right (so the voltage readouts should be 0V and 3.3V, respectively).

from opendeck.

walrusmustgo avatar walrusmustgo commented on August 21, 2024

Alrighty!

  1. The commit is latest, just tried cloning the repo again, did a git pull, no changes. Built again, the same issue.
  2. I've tried 3 MUX boards with the method you've suggested, all mux boards display correct values (0V - ~3.3V)

I'm more and more starting to believe that it's the Pico W issue to be honest, I've tried building with different pins, some things have definitely changed for the Pico W board:
image

I'll know more tonight, if it's a Pico W issue, than i'll see if i can pinpoint the problem, and i'll let you know if i've fixed it! And i'll let you know if regular Pico is working correctly :)

By the way, i've changed my config to use 6, 7, 8, 9 ( and removed them from the button control list :) ) pins respectively for the control pins, because looking at the pinout, nothing has changed in that regard on the Pico W.

from opendeck.

Related Issues (20)

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.