A working demo code, to show the CD74HC4067 16 channel digital/analogue Multiplexer IC working. It takes 16 ADC readings and displays the value from each pin to a PC serial terminal.

Dependencies:   mbed

Fork of MUX_test by George Edwards

With the limited numbers of ADC pins, it often helps to use multiplexing to access, in this case 16 inputs using just one ADC pin and 4 I/O pins.

This code replicates some examples currently published for Arduino. It provides a function to access whichever channel you like, just pass the function the pin you wish to access and it will pass back the ADC reading from it. - Simple Really!

Any Questions, please do let me know.

Committer:
melmon
Date:
Wed Jul 29 12:32:56 2015 +0000
Revision:
0:075d5ccd7b2d
Initial Publishing of a working MUX driving program. Take readings from 16 channels and display on PC terminal.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
melmon 0:075d5ccd7b2d 1 http://mbed.org/users/mbed_official/code/mbed/builds/da0ca467f8b5