Help/Assistance Required for MUX/Pots issue

Help/Assistance needed

Hi all, this is my first post in the forums so forgive me if I have posted this in the wrong section.
I am normally quite persevering when it comes to physical electronics projects but this particular one seems to be turning my hair grey.

I am making a MIDI controller project with buttons (all working fine) and 10 Pots to be assigned to macro controls within Ableton Live (or any DAW, Lighting software) which uses MIDI.

The issue I am having is my Multiplexer chip (a SparkFUN 16channel 4067 w/ Breakout) is only allowing control of 4 pots out of ten. all are hooked up to Vcc, GND and their relative inputs on the 4067 breakout and continuity shows on my multimeter etc etc. any unused channels on the mux are tied to GND.

The pots i am using all work individually too.

My request is this. can someone take a look at my code and point me in the right direction of where i am going wrong? It seems i have scoured the entire world wide web for any guidance of code which is similar to mine but have come to no avail and I am about to give up entirely (and that is not my attitude).

If anyone is able to help I would sincerely appreciate it.

Thanks

James

code.pdf (37.8 KB)

Please don't post code in a PDF file.

Ideally include it in your Post using the code button </> or, if it is too long then add your .ino file as an attachment

...R

I'd highly recommend checking out the Control Surface library for this purpose. You can use buttons, potentiometers etc. and multiplexers are supported right out of the box.

You can find the "getting started" example with potentiometers and a multiplexer here.

If you want help with your code, please follow Robin2's instructions.

Pieter