Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request for example of multiplexer #276

Open
HanalogInstruments opened this issue Mar 6, 2022 · 1 comment
Open

Request for example of multiplexer #276

HanalogInstruments opened this issue Mar 6, 2022 · 1 comment

Comments

@HanalogInstruments
Copy link

Hi,

Could you made example code of the CD4051 multiplexer with 8 faders? because i use v-usb on atmega328p-pu ( Usnoobie project ) chip to build midi controller

Best regards,

@franky47
Copy link
Member

franky47 commented Mar 6, 2022

The Arduino playground already has some examples about this:

https://playground.arduino.cc/Learning/4051/

The crux of it is:

  1. Select a fader by setting the three addressing pins
  2. Read its value using analogRead on a single ADC input connected to the CD4051
  3. Repeat

How this relates to your MIDI application is up to you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants