Thing with arduino is that lets a lot of people with no previous involvement with electrons play with wires but it can get very frustrating when you don't know what you are doing as is my case. So please can anyone post some pictures of how to connect the 14067B to the arduino? newbies will apreciate that.
Here's how i connected it, for some reason is not working:

I just have red, black and white wire and light is not good so it may not be clear, tomorrow I will take another one with better lighting.
As Massimo posted I've connected the pin 24 of the 14067B to 5V, a green 10K resistor from 5V to pin 15 (what's the difrence between brown and green resistors?) and digital pins 2 to 5 of my arduino to pins 10, 11, 13, 14 of the 14067.
Is that configuration right?
heres my code:
Code:byte mask = 1;
byte serialOut;
byte i;
int val;
void setup()
{
//Declare the pins used for controlling the multiplexer as inputs
for (i = 2; i < 6; i++){
pinMode(i, OUTPUT);
digitalWrite(i, LOW);
}
Serial.begin(9600);
Serial.print("Ready to go");
}
void loop()
{
delay(100);
for (i = 0; i < 16; i++) {
val = readAnalogM(0, i);
if (i == 0 ) Serial.println(val);
}
}
int readAnalogM( int analogIn, int channel ){
/*
analogIn - board's analog pin conected to the output of a multiplexer
channel - multiplexer channel being read, 0 to 15
*/
//We are using the pins 2 to 5 labeled serialOut to comunicate with the multiplexer
serialOut = 2;
//Get binary form of the channel and send it through serialOuts
for ( mask = 1; mask < 16 ; mask <<= 1 ){
if ( mask & channel ) {
digitalWrite( serialOut++, HIGH );
} else {
digitalWrite( serialOut++, LOW );
}
}
return analogRead( analogIn );
}
If i understood right i have to send the binary number for the multiplexer port i want to read to the multiplexer pins labeled A, B, C and D but that makes me wonder:
how does the multiplexer tells when I finish sending a port number and started sending another? does that has to do with the INHIBIT pin? the resistor from 5V to pin 13 has to be a brown one? what am I doing wrong?
Hope someone can help me to work it out..
thanks