Hello,
I’m still learning the software and hardware aspect around the daisy. Sorry if it’s an obvious question, but I did not find example of hardware using multiple 4051 mux.
Is it possible to have multiple multiplexer sharing the same 3 pin for the address, and connect the output to different analog input pin?
for the board definition initialisation, will something like this works ?
// POT MUX
adc_cfg[0].InitMux(seed.GetPin(PIN_ADC_POT_MUX1),
8,
seed.GetPin(PIN_MUX_SEL_0),
seed.GetPin(PIN_MUX_SEL_1),
seed.GetPin(PIN_MUX_SEL_2));
adc_cfg[1].InitMux(seed.GetPin(PIN_ADC_POT_MUX2),
8,
seed.GetPin(PIN_MUX_SEL_0),
seed.GetPin(PIN_MUX_SEL_1),
seed.GetPin(PIN_MUX_SEL_2));
adc_cfg[2].InitMux(seed.GetPin(PIN_ADC_POT_MUX3),
8,
seed.GetPin(PIN_MUX_SEL_0),
seed.GetPin(PIN_MUX_SEL_1),
seed.GetPin(PIN_MUX_SEL_2));
seed.adc.Init(adc_cfg, 3);
// Order of pots on the hardware connected to mux.
for(size_t i = 0; i < 24; i+=3)
{
knob_[i ].Init(seed.adc.GetMuxPtr(0, i ), AudioCallbackRate());
knob_[i+1].Init(seed.adc.GetMuxPtr(1, i+1), AudioCallbackRate());
knob_[i+2].Init(seed.adc.GetMuxPtr(2, i+2), AudioCallbackRate());
}
thanks