Comments (12)
Can you post your entire config file?
from opendeck.
---
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.
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.
Oh my........ Thanks! I'm an idiot :)
It's getting better, but there's still some weird stuff happening:
- 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.
Did you run make clean
after you've changed the config file?
from opendeck.
Tried it now, rebuilt, but the problem still persists :(
Do i have to play around with ADC offset by any chance?
from opendeck.
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.
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.
You should also tie any unconnected mux pins to GND - floating pins cause noise.
from opendeck.
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.
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.
Alrighty!
- The commit is latest, just tried cloning the repo again, did a git pull, no changes. Built again, the same issue.
- 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:
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)
- Blackpill flashing process completes, but device does not appear. HOT 9
- Opendeck 1.2.0 stuck in bootloader HOT 3
- STM32F4 Discovery HOT 13
- STM32F4 Discovery don't AutoSave HOT 8
- Unable to select display I2C adress in web configurator HOT 5
- Igor library? HOT 1
- blackpill401cc - Preset change HOT 1
- Latest firmware for Arduino Pro Micro hex firmware?
- Opendeck M board silk screen wrong label conparing to documentation. HOT 2
- I can't pack the project HOT 2
- LED not turning off HOT 4
- OSC HOT 2
- Problems with china-encoders HOT 12
- Problem with Analog Buttons HOT 5
- Mega 2560 not responding in web configurator HOT 4
- BLE for PICO? HOT 1
- nrf52840dk firmware doesn't work HOT 2
- Change leds blink time for PWM HOT 9
- Need help for arm board HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from opendeck.