CD4051B CMOS Single 8-channel Analog Multiplexer/demultiplexer - a black 16-pin dual-in-line integrated circuit chip with white text markings on its surface.

CD4051B CMOS Single 8-channel Analog Multiplexer/demultiplexer

Sale price Rs 100
SKU: B465,IMP100,Th50,A
Log in to use Wishlist
Add to Compare

Pickup available at Digilog Electronics

Usually ready in 2 hours

CD4051B CMOS Single 8-channel Analog Multiplexer/demultiplexer - a black 16-pin dual-in-line integrated circuit chip with white text markings on its surface.

CD4051B CMOS Single 8-channel Analog Multiplexer/demultiplexer

  • Digilog Electronics

    Pickup available, usually ready in 2 hours

    🏢 Digilog Electronics 13th the RegalStreet,
    Back side of KFC, Near Abubakar Masjid Mall Road
    Lahore
    Pakistan

    +923124002221

    Check this on google map

A multiplexer or demultiplexer enables you to expand the in-and outputs on your Arduino board. The 4051 is an 8 channel analog multiplexer / demultiplexer, thus:

  • If you use the 4051 as a Multiplexer: You can choose between 8 different inputs and select just one you want to read at the time.
  • If you use the 4051 as a Demultiplexer you can choose between 8 different outputs and select just one you want to write at the time.

Futhermore, the 4051 is able to work with analog values; in the case of the Arduino, you are able to use the analog inputs with a voltage between 0-5V and route them to an Analog-In Pin on your Arduino.

Cd4051b Cmos Single 8-channel Analog

To select the Pin we would like to read or write, we have to use the three Select Pins (S0, S1 and S2). Each of these pins have to be connected to one digital out pin on the Arduino. Every pin is representing a number (S0 = 1; S1 = 2; S2 = 4) and if we set one of these Select pins to HIGH, the number the pin is representing will be transmitted to the 4051. For example:

  • If S0 and S1 are HIGH and S2 is LOW pin y3 is selected (1+2+0 = 3).
  • If S0 and S2 is HIGH and S1 LOW pin y5 is selected (1+0+4 = 5).

It is not possible to read or write more than one pin on the 4051 at the same time, because you can only select one pin at a time. But you can read and write to the pins quite fast. There is no delay needed between selecting and read or writing the pin.

Cd4051b Cmos Single 8-channel Analog
  • Z —– common input/output (connected to Arduino Input/Output)
  • E —– enable input (active LOW) (connected to ground (gnd))
  • Vee — negative supply voltage (connected to ground (gnd))
  • gnd — ground (0 V)
  • S0-S2 – select inputs (connected to three arduino digitalOut Pins)
  • y0-y7 – independent inputs/outputs
  • Vcc — positive supply voltage (5v)

//////////////////////////////////////////////////////////////////////code example

  1. /*
  2. * codeexample for useing a 4051 * analog multiplexer / demultiplexer
  3. * by david c. and tomek n.* for k3 / malm� h�gskola
  4. *
  5. * edited by Ross R.
  6. * edited by Igor de Oliveira Sá.
  7. */
  8.  
  9. int r0 = 0;//value of select pin at the 4051 (s0)
  10. int r1 = 0;//value of select pin at the 4051 (s1)
  11. int r2 = 0;//value of select pin at the 4051 (s2)
  12.  
  13. int s0 = 2;
  14. int s1 = 3;
  15. int s2 = 4;
  16. int count = 0;//which y pin we are selecting
  17.  
  18. void setup(){
  19. pinMode(s0, OUTPUT);
  20. pinMode(s1, OUTPUT);
  21. pinMode(s2, OUTPUT);
  22. }
  23.  
  24. void loop () {
  25.  
  26. for (count=0; count<=7; count++) {
  27.  
  28. // select the bit
  29. r0 = bitRead(count,0);// use this with arduino 0013 (and newer versions)
  30. r1 = bitRead(count,1);// use this with arduino 0013 (and newer versions)
  31. r2 = bitRead(count,2);// use this with arduino 0013 (and newer versions)
  32.  
  33. //r0 = count & 0x01; // old version of setting the bits
  34. //r1 = (count>>1) & 0x01; // old version of setting the bits
  35. //r2 = (count>>2) & 0x01; // old version of setting the bits
  36.  
  37. digitalWrite(s0, r0);
  38. digitalWrite(s1, r1);
  39. digitalWrite(s2, r2);
  40.  
  41. //Either read or write the multiplexed pin here
  42.  
  43. }
  44. }

Datasheet:

 CD74HC 4051 series datasheeet 

Frequently Bought Together

Dell HEF4067B 16-channel Analog Multiplexer Demultiplexer - a black rectangular integrated circuit with metal pins and white text printed on its surface. Dell HEF4067B 16-channel Analog Multiplexer Demultiplexer - a black rectangular integrated circuit with two rows of metal pins, viewed from above.
Sold out
Log in to use Wishlist
Add to Compare

Dell HEF4067B 16-channel Analog Multiplexer Demultiplexer

Sale priceRs 360
74LS02 74AHS02 7402 Quad 2-input Nor Gate - a black 14-pin dual in-line package integrated circuit with silver-colored metal pins.
Log in to use Wishlist
Add to Compare

74LS02 74AHS02 7402 Quad 2-input Nor Gate

Sale priceRs 70
SN74LS08N LS08N 7408 Quad 2-input And Gate - a black, rectangular integrated circuit chip with 14 metal pins arranged in two parallel rows.
Log in to use Wishlist
Add to Compare

SN74LS08N LS08N 7408 Quad 2-input And Gate

Sale priceRs 70
74LS32 74-LS32 74HC32 7432 Quad 2 Input Or Gate DIP IC SN74CH32N - a black rectangular electronic component with fourteen metal pins arranged in two rows on a white background.
Log in to use Wishlist
Add to Compare

74LS32 74-LS32 74HC32 7432 Quad 2 Input Or Gate DIP IC SN74CH32N

Sale priceRs 110
ULN2803 ULN2803A ULN2803A IC - a circular arrangement of nine black, rectangular 18-pin integrated circuit chips with silver metal pins on a white background.
Log in to use Wishlist
Add to Compare

ULN2803 ULN2803A ULN2803A IC

Sale priceRs 70
74HC595 8 Bit Serial To Parallel Shift Register IC - a black, rectangular electronic component with 16 metal pins arranged in two rows. 74HC595 8 Bit Serial To Parallel Shift Register IC - shown in a circuit diagram connecting an Arduino Uno to the IC and eight green LEDs.
Log in to use Wishlist
Add to Compare

74HC595 8 Bit Serial To Parallel Shift Register IC

Sale priceRs 40