Open AnnoyedSandwich opened 4 years ago
when I disconnect the multiplexer, the nonsensical messages are still showing up, so I don't know what's going on.
The code looks alright, and it's very unlikely that a problem in your code would cause random messages like that. This is almost certainly a hardware problem. Please post a wiring diagram and a picture of your actual connections.
I disconnected everything except the potentiometer, still, nothing on the Hairless MIDI debug window.
The header pins aren't soldered to the PCB, it doesn't make proper contact like that.
Getting nonsensical values when you disconnect everything is normal, as it leaves the input pin floating, so it's just an antenna and picks up noise or you measure capacitive coupling with the surroundings.
You can test your code by just connecting the potentiometer to pin A0 directly, without using the multiplexer. It should then affect all buttons and the CCPotentiometer.
ok thanks, soldering the header worked (although the seller told me that wouldn't be necessary) Other question, can you bank button or Potentiometers which are connected to a multiplexer?
Other question, can you bank button or Potentiometers which are connected to a multiplexer?
Yes, just initialize it with the right pin (mux.pin(#)
).
So im currently trying out the library to build a midi controller in the future. But i having some troubles with multiplexing. The connected buttons dont work and the potentiometer is constantly making control change events. This happens without truning the knob and even whne i disconnect the Im 95% sure that the wiring is correct so I think there is a problem with my code. I you have the time could you take a look at it and maybe find my mistake? And if my code is correct do you have any idea why nothing related to the multiplexer works?