FritzeEngineering
Published

Part 3 - Arduino and SN7432

Digital technology with Arduino. Understanding digital technology with Arduino – explained in a practical way.

BeginnerWork in progress30 minutes42
Part 3 - Arduino and SN7432

Things used in this project

Hardware components

Arduino Nano R3
Arduino Nano R3
×1
Resistor 1,5k ohm
×3
LED, Low Current
LED, Low Current
green
×2
LED, Low Current
LED, Low Current
red
×1
Texas Instruments SN7432
×1

Software apps and online services

Arduino IDE
Arduino IDE

Hand tools and fabrication machines

Breadboard, Plastic
Breadboard, Plastic

Story

Read more

Schematics

Arduino and SN7432

Arduino controls an SN7432 (quad OR gate).

Code

Arduino and SN7432

Arduino
Arduino controls an SN7432 (quad OR gate).
// Arduino and logic circuit SN7432 (SN7400, SN7408 etc.)
const int OUT_PIN_A = 2;
const int OUT_PIN_B = 3;

void setup() {
    //Outputs
    pinMode(OUT_PIN_A, OUTPUT);
    pinMode(OUT_PIN_B, OUTPUT);
}

void loop() {
    digitalWrite(OUT_PIN_A, LOW);
    digitalWrite(OUT_PIN_B, LOW);
    delay(1000);
    digitalWrite(OUT_PIN_A, HIGH);
    digitalWrite(OUT_PIN_B, LOW);
    delay(1000);
    digitalWrite(OUT_PIN_A, LOW);
    digitalWrite(OUT_PIN_B, HIGH);
    delay(1000);
    digitalWrite(OUT_PIN_A, HIGH);
    digitalWrite(OUT_PIN_B, HIGH);
    delay(1000);
}

Credits

FritzeEngineering
4 projects • 0 followers
Hard- and software engineer specialised in embedded systems. Circuit design, PCB layouts and PLC programming.

Comments