Replies: 2 comments 9 replies
-
Please post your complete code between triple back ticks: ```cpp
// your code here
``` It might be useful to post the working non-control surface code as well. As far as I can tell, the 4051BE is the same chip as a standard CD4051 multiplexer, the BE simply denotes that it's in a PDIP package. If you think this is not the case, please post a link to the datasheet of the exact chip you're working with. The code and instructions in the Getting Started example should work just fine using your 4051BE. Please double check your wiring. The A, B, C pins should be connected to Arduino pins 3, 4, and 5. The common out/in pin should be connected to Arduino pin A0. The inhibit (enable) pin should be connected to ground. (I'm referring to this schematic: https://www.ti.com/lit/ds/symlink/cd4051b.pdf#page=3.) If you've tried the exact code in the Getting Started example, double checked your wiring and still can't get it to work, please post a clear picture of your wiring. Are you sure the multiplexer is the issue? Maybe there's a problem with how you're receiving the MIDI data. To make sure this isn't the case, replace the line |
Beta Was this translation helpful? Give feedback.
-
Hola, uso el cd4051be y esta funcionando correctamente. Es probable que haya algo mal con teensy, a mi en esp32 tuve que agregar un pequeñobcapacitor para estabilizar la entradas Los cables-jumpers estan perfectos, no estan rotos? La fuente de alimentacion esta bien? Si tienes un arduino a mano prueba con ese haber que tal va el multiplexor, |
Beta Was this translation helpful? Give feedback.
-
I am attempting a midi controller that needs quite a few faders and will need some multiplexers to bring them all together. I have some CD4051BE's laying around that I've used for other projects. However, when I call the CD74HC4051 in the code, it doesn't work. It is wired up correctly and works with non-control surface lib code.
I've tried calling the general AnalogMultiplex class and functions, but they also don't seem to work. To start, I was using the code on the main page, substituting certain elements, but now I'm not sure if using AnalogMultiplex requires something else?
Regarding the AnalogMultiplex: the address pins on the CD74HC4051 are S0, S1, S2. On the 4051BE as Channels A, B, C on pins 11, 10, and 9 (respectively, on the 4051BE). The code formatting makes the below look unreadable, so forgive the forgoing of that formatting...
My plan is to then add Bankable element, which is working currently without the multiplex. I'm assuming I can instantiate the IncrementDecrement class and change the mux array to:
{{bank, BankType::CHANGE_ADDRESS}, A9, {MIDI_CC::General_Purpose_Controller_1}},
etc etcIf anyone can help with the mux issue and if I need to just pick up a CD74HC4051, that would be helpful!
Beta Was this translation helpful? Give feedback.
All reactions