Stufin
Home Quick Cart Profile

CD40106 - Hex Schmitt Trigger Inverter IC

Buy Now on Stufin

Pin Configuration

  • CD40106 Hex Schmitt Trigger Inverter IC Pinout and Connection Guide
  • The CD40106 is a hex inverter IC that consists of six Schmitt trigger inverters, each with a separate input and output. The IC is commonly used in digital circuits for signal inversion, buffering, and waveform shaping. Here's a detailed explanation of the pins and their connections:
  • Pinout:
  • The CD40106 has 14 pins, with the following pinout:
  • 1. Pin 1: Input 1 (IN1)
  • Function: Input to Inverter 1
  • Connection: Connect to the signal or voltage to be inverted
  • 2. Pin 2: Output 1 (OUT1)
  • Function: Output of Inverter 1
  • Connection: Connect to the load or next stage in the circuit (e.g., LED, resistor, or another IC)
  • 3. Pin 3: Input 2 (IN2)
  • Function: Input to Inverter 2
  • Connection: Connect to the signal or voltage to be inverted
  • 4. Pin 4: Output 2 (OUT2)
  • Function: Output of Inverter 2
  • Connection: Connect to the load or next stage in the circuit (e.g., LED, resistor, or another IC)
  • 5. Pin 5: VCC ( Supply Voltage)
  • Function: Positive power supply voltage
  • Connection: Connect to the positive voltage supply (e.g., +5V or +3.3V)
  • 6. Pin 6: Input 3 (IN3)
  • Function: Input to Inverter 3
  • Connection: Connect to the signal or voltage to be inverted
  • 7. Pin 7: Output 3 (OUT3)
  • Function: Output of Inverter 3
  • Connection: Connect to the load or next stage in the circuit (e.g., LED, resistor, or another IC)
  • 8. Pin 8: Input 4 (IN4)
  • Function: Input to Inverter 4
  • Connection: Connect to the signal or voltage to be inverted
  • 9. Pin 9: Output 4 (OUT4)
  • Function: Output of Inverter 4
  • Connection: Connect to the load or next stage in the circuit (e.g., LED, resistor, or another IC)
  • 10. Pin 10: Input 5 (IN5)
  • Function: Input to Inverter 5
  • Connection: Connect to the signal or voltage to be inverted
  • 11. Pin 11: Output 5 (OUT5)
  • Function: Output of Inverter 5
  • Connection: Connect to the load or next stage in the circuit (e.g., LED, resistor, or another IC)
  • 12. Pin 12: Input 6 (IN6)
  • Function: Input to Inverter 6
  • Connection: Connect to the signal or voltage to be inverted
  • 13. Pin 13: Output 6 (OUT6)
  • Function: Output of Inverter 6
  • Connection: Connect to the load or next stage in the circuit (e.g., LED, resistor, or another IC)
  • 14. Pin 14: GND (Ground)
  • Function: Ground connection
  • Connection: Connect to the negative voltage supply or ground (e.g., 0V)
  • Connection Structure:
  • To connect the CD40106 IC, follow these steps:
  • 1. Connect the power supply voltage (VCC) to Pin 5 and ground (GND) to Pin 14.
  • 2. Identify the input signal or voltage to be inverted and connect it to the corresponding input pin (IN1-IN6).
  • 3. Connect the output of each inverter to the desired load or next stage in the circuit (e.g., LED, resistor, or another IC).
  • 4. Ensure that each input signal is within the recommended operating voltage range of the IC ( typically 0V to VCC).
  • 5. Verify the circuit's functionality and adjust as necessary.
  • Remember to follow proper soldering and PCB design practices when connecting the CD40106 IC to your circuit.

Code Examples

CD40106 - Hex Schmitt Trigger Inverter IC Documentation
Overview
The CD40106 is a hex Schmitt trigger inverter IC, a type of integrated circuit (IC) that contains six independent inverter circuits with Schmitt trigger action. This IC is widely used in digital electronics and IoT applications where a high-level of noise immunity is required.
Pinout
The CD40106 has a 14-pin DIP (Dual In-Line Package) configuration, with the following pinout:
| Pin | Function |
| --- | --- |
| 1-6 | Input (A) |
| 7-12 | Output (Y) |
| 13 | VCC (Positive Supply Voltage) |
| 14 | GND (Ground) |
Features
Six independent inverter circuits with Schmitt trigger action
 High noise immunity due to Schmitt trigger action
 High current output drivers can switch up to 10mA
 Wide operating voltage range: 4.5V to 15V
 Low power consumption: 10mW (typical)
Code Examples
Here are three code examples that demonstrate how to use the CD40106 in various contexts:
Example 1: Simple Inverter Circuit
This example shows how to use the CD40106 as a simple inverter circuit. The input signal is connected to pin 1, and the inverted output is taken from pin 7.
```
// Connect input signal to pin 1
digitalWrite(1, HIGH);
// Read inverted output from pin 7
int output = digitalRead(7);
if (output == HIGH) {
  Serial.println("Output is HIGH");
} else {
  Serial.println("Output is LOW");
}
```
Example 2: Debouncing a Switch
This example demonstrates how to use the CD40106 to debounce a switch. The switch is connected to pin 2, and the debounced output is taken from pin 8.
```
const int switchPin = 2;
const int outputPin = 8;
void setup() {
  pinMode(switchPin, INPUT);
  pinMode(outputPin, OUTPUT);
}
void loop() {
  int switchState = digitalRead(switchPin);
  int debouncedOutput = digitalRead(outputPin);
if (switchState != debouncedOutput) {
    // Debounce the switch output
    delay(50);
    debouncedOutput = digitalRead(outputPin);
  }
if (debouncedOutput == HIGH) {
    Serial.println("Switch is pressed");
  } else {
    Serial.println("Switch is not pressed");
  }
}
```
Example 3: Oscillator Circuit
This example shows how to use the CD40106 to create a simple oscillator circuit. The oscillator frequency is determined by the values of R1, R2, C1, and C2.
```
const int R1 = 1k;
const int R2 = 2k;
const int C1 = 10nF;
const int C2 = 20nF;
void setup() {
  pinMode(3, OUTPUT); // Pin 3 is the output of the oscillator
}
void loop() {
  // The oscillator circuit is a closed-loop feedback network
  // The output of one inverter is connected to the input of another
  digitalWrite(3, !digitalRead(1));
  delay(1); // Adjust the delay to change the oscillator frequency
}
```
Note: These code examples are for illustrative purposes only and may require modifications to work with your specific hardware and application.