RPI Pico W + 4067 multiplexer #177
Replies: 24 comments 26 replies
-
Can you post your entire config file? |
Beta Was this translation helpful? Give feedback.
-
Here it is! :) |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
Oh my........ Thanks! I'm an idiot :) It's getting better, but there's still some weird stuff happening:
OpenDeck.configurator.-.Brave.2022-11-08.14-48-40.mp4 |
Beta Was this translation helpful? Give feedback.
-
Did you run |
Beta Was this translation helpful? Give feedback.
-
Tried it now, rebuilt, but the problem still persists :( Do i have to play around with ADC offset by any chance? |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
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! |
Beta Was this translation helpful? Give feedback.
-
You should also tie any unconnected mux pins to GND - floating pins cause noise. |
Beta Was this translation helpful? Give feedback.
-
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 :) |
Beta Was this translation helpful? Give feedback.
-
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). |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Moved this to discussion as Pico W isn't officially supported. |
Beta Was this translation helpful? Give feedback.
-
Okay, testing on the normal Pico board, the issue is same here as well... :( I honestly have no idea why is this happening, i've tried multiple different components, faders, 2 types of pots, 5 different mux boards, but it's always the same... I'll do a couple of more tests in the following days, and let you know about the results. |
Beta Was this translation helpful? Give feedback.
-
Okay, what about this:
Are the readings okay then? |
Beta Was this translation helpful? Give feedback.
-
Sorry, didn't manage ti try it yet, i've been waiting for the chips,and had ti leave for vacation :( Next week,i'll try it out,and let you know! |
Beta Was this translation helpful? Give feedback.
-
Alright, thanks a lot man! Just tried it out, and it's working like a peach! :) I've tried with 5 pots, all are reading correctly, the 5V solved it! Thanks again! Do you accept donations by any chance? :) |
Beta Was this translation helpful? Give feedback.
-
Oh, also had one more question, is there any way to use multiplexers with digital pins as well? I've read that the 4051/4067 can multiplex digital inputs as well, so i'm wondering if there's a feature for something like that in opendeck? I'd like to multiplex some encoders as well... |
Beta Was this translation helpful? Give feedback.
-
Hey @walrusmustgo , the setup you've created is exactly what I want to do as well, but I don't know where to start with my RPI Pico (can't find the info how to flash/setup this board so Opendeck is on it). Could you help me by steering me into the right direction? I've both various boards from @paradajz but want to make a small one using the RP2040, but went through all the documentation and don't know what info to use to get the board ready so I can configure it further via the online configurator. |
Beta Was this translation helpful? Give feedback.
-
Here are a couple of builds, a single mux, 2 mux, and mux-on-mux are here. Try them out and let me know! :) |
Beta Was this translation helpful? Give feedback.
-
Here they are :) I've had only a single 4067 setup, but i've quickly added 2x4067 and a mux-on-mux option ( it's quite easy to make these config files, just copy the settings from opendeck yml files, and set the pins to your liking ). |
Beta Was this translation helpful? Give feedback.
-
Yeap, hardly possible to see on the .uf2 file if i'm not mistaken :D But i'm not sure that these pins are correct honestly.. I can build a variant for you, just let me know which one? Btw, the single mux .uf2 file matches the config, but 2x4067 and mux-on-mux might not. |
Beta Was this translation helpful? Give feedback.
-
Hello would anyone in this thread be kind enough to make me a .uf2 file for a Pi pico controller with just three faders? I would happily send you a Paypal thank you. My config would be as shown below. Not sure if I need uart: . mcu: "rp2040" |
Beta Was this translation helpful? Give feedback.
-
Hello would anyone in this thread be kind enough to make me a .uf2 file for a Pi pico organ pedal 32 input pins? |
Beta Was this translation helpful? Give feedback.
-
Hello! First of all, i'd like to thank you for this wonderful project! It kickstarted my entry to the vast electronic world! ^^
With that being said, i'm a noob, just started fiddling with electronics. Now,i've got an issue with using multiplexers with the rpi pico w board. If i connect a single potentiometer to the ADC input of the Pico, everything is working correctly, but if i build a new firmware, with multiplexers enabled, i get really hectic behaviour once the pot gets under a certain threshold, as you can see here:
OpenDeck.configurator.-.Brave.2022-11-08.14-13-53.mp4
My board is setup correctly ( as far as i'm aware ):
This is the build config:
Upon measuring voltages, the pot sends good values to the multiplexer, but on the z0 pin, the voltages are much smaller ( 3.3V on the channel pin, ~0.8V on the signal pin ).
As i've said, i'm a noob, so i might be missing something fundamental/obvious! :)
Thanks again for this beautiful piece of software, and your hard work!
Regards, Marko.
PS. The breadboard image configuration is just one of many combinations i've tried. I've tried to fill all 16 channels with potentiometers as well, tried only using channel 0, only channel 16 etc. The behaviour is quite erratic, sometimes nothing gets picked up on channel 1, but gets picked up on channel 16. If i enable every channel, this jumping from channel to channel happens on all of them.
Beta Was this translation helpful? Give feedback.
All reactions