Thank you very much for your answers.
I have bought the : Serial/Analog Mux/Demux - 74HC4052 and I have some trouble with the programming. I have connected the VCC to 3.3V on the Arduino Fio, the An and Bn to the analog pin A6 and A7 on the Arduino Fio, the Enable (E), the VEE, and the GND to the GND on the Arduino Fio and the address select S0, S1 to the digital pin 3 and 4 on the Arduino Fio. For the moment, I just have connected two sensors on A1 and B1, but I want to connect more after.
I have made this code but it’s not working.
// 74HC4052 multiplexer/demultiplexer
int sensor1 = A6;// where the multiplexer in/out port is connected
int sensor2 = A7;
void setup ()
Serial.println (“Starting multiplexer test …”);
pinMode (3, OUTPUT); //digital pins 3 and 4
pinMode (4, OUTPUT);
} // end of setup
void loop ()
digitalWrite (3, HIGH); //
digitalWrite (4, LOW);// To read channels A1, B1
} // end of loop
The results I have are :
Starting multiplexer test …
I don’t understand why… Do you know what I have to change ?
Thank you very much