Sale!

8 Channel Analog Multiplexer Module CJMCU-4051 74HC4051

Original price was: 3,45 €.Current price is: 3,00 €. Excluding VAT

8-Channel Analog Multiplexer Module CJMCU-4051 74HC4051

Available on back-order

Domande su questo prodotto? Scrivi a Lana su WhatsApp

Categories: ,

🎬 The product on video

Description

What it is

The CJMCU-4051 is an 8-channel analog multiplexer based on the 74HC4051 integrated circuit. It allows for the dynamic selection of one of the eight input channels to be sent to the output.

Features

  • 8 input channels
  • 1 output channel
  • Power Supply: 3-5V
  • SKU: ARD0010928
  • Price: 3€

What it is for

The CJMCU-4051 is ideal for selecting between multiple sensors or signal sources in an Arduino project. For example, it can be used to read the values of 8 temperature sensors connected to the different channels of the module.

Tutorial: How to use CJMCU-4051

The CJMCU-4051 is an 8-channel analog multiplexer useful for selecting between multiple sensors or signal sources. Suitable for beginner and intermediate makers.

What you need

  • CJMCU-4051
  • Arduino
  • Power cable
  • 1 kΩ resistor

Steps

  1. 1. Connect the power supply to the CJMCU-4051 (VCC to 5V, GND to GND).
  2. 2. Connect one channel (AD0-AD3) of the CJMCU-4051 to an Arduino pin (A0-A3).
  3. 3. Connect the resistor between pin S0 and GND to select channel 0.
  4. 4. Load the provided Arduino code.
  5. 5. Verify the pin configuration of S1, S2, and S3 on the datasheet.
  6. 6. Change the channel selection in the code to test other channels.
  7. 7. Verify the correct signal reading.
  8. 8. Disconnect the power and turn off the Arduino.

Example code

```cpp
#include <Wire.h>

void setup() {
  Serial.begin(9600);
}

void loop() {
  int canale = 0;
  for (canale = 0; canale < 8; canale++) {
    // Configura il canale
    // Verifica sul datasheet
    Serial.print("Canale ");
    Serial.print(canale);
    Serial.print(" - Valore: ");
    Serial.println(analogRead(A0));
    delay(1000);
  }
}
```

Mini project

Create a multiplexer to select between 8 temperature sensors. Connect the sensors to the channels of the CJMCU-4051 and read the values in a loop.

Common mistakes

  • Do not verify the pin configuration of S1, S2, and S3 on the datasheet.
  • Do not use appropriate resistors to select the channels.
  • Do not connect the power correctly.
  • Ignore the pins S0-S3 in the code.

Recommended accessories

  • Temperature sensors
  • 1 kΩ resistors
  • LED diode
  • LED protection resistor

Frequently asked questions

How to select a different channel in the code?
Configure pins S1, S2, and S3 in the Arduino code based on the selection table in the datasheet.

Why doesn’t the Arduino correctly read the signals?
Check the correct configuration of pins S0-S3 and the physical connection.

What other components can I connect to the CJMCU-4051?
You can connect any analog signal source, such as pressure sensors, light sensors, etc.

Reviews

There are no reviews yet.

Be the first to review “8 Channel Analog Multiplexer Module CJMCU-4051 74HC4051”

Your email address will not be published. Required fields are marked *