next week I should be able to give you some code!
Multiplexing Analog Inputs in PD (Bela Mini)
thank you @giuliomoro
I really appreciate your effort and support
@giuliomoro Have you found the time ?
sorry no will do this weekend
No problem, I don't want to put any pressure on you. Take your time, I've so many other projects
- Edited
ok, the changes are now in the bela-mini-mux
branch: https://github.com/BelaPlatform/Bela/tree/bela-mini-mux
You can either update your board to that release (see "Updating to an experimental release" here), or simply apply those changes to the code you have on the board .
You need to run config-pin P1.30 pruout; config-pin P1.32 pruout
on your board after every reboot for this to work. If it works ok for you, we can then see how to automate this so you don't have to do it at every reboot.
- Edited
Is the mini-mux branch planned to enter the master at some point soon?
And surely, as a 4051 only gets us 8 channels muxed, this branch is about 8-channel muxing or is it working independently from the chip used for muxing?
Just asking. Thank you!
jayrope Is the mini-mux branch planned to enter the master at some point soon?
Someone will have to test that it works first! Once it's confirmed it works it shouldn't be complicated to mainline it, although it will probably require to manually edit one lime in the file to enable it.
jayrope And surely, as a 4051 only gets us 8 channels muxed, this branch is about 8-channel muxing or is it working independently from the chip used for muxing?
The code uses some of the pins on BelaMini to drive a binary counter, the same way it would happen on a Bela when using the multiplexer capelet. Then it's up to you to connect as many 4051 as you need, possibly copying the relevant parts of the schematics of the multiplexer capelet
@jayrope I just updated the bela-mini-mux
branch so that it includes the latest version of master
That is awesome! You should be enjoying your personal life on a Sunday evening! Thank you for being so THERE!
giuliomoro This is vry good info about connecting several 4051, thank you!
jayrope You should be enjoying your personal life on a Sunday evening!
making pizza, answering while waiting for the oven to be ready. It was as easy as
git checkout bela-mini-mux
git rebase master
git push --force
- Edited
giuliomoro That was for me just a reminder, that i shoudl get a code repository myself. But i mainly speak PD, PHP, CSS, MySQL and my voice in audibly 2+ 1/2 languages Enjoy the pizza!
Almost ready. We just took the focaccia out of the oven, really good!