Cirkit Designer LogoCirkit DesignerYour all-in-one circuit design IDE Launch Cirkit Designer App

Arduino UNO-Based Smart Relay Control with INA219 Current Sensor and RGB LED

View and Edit Project In Cirkit DesignerImage of Arduino UNO-Based Smart Relay Control with INA219 Current Sensor and RGB LED

Circuit Documentation

Summary

This document provides a detailed overview of a circuit that includes an Arduino UNO microcontroller, various resistors, capacitors, a relay, an op-amp, an INA219 current sensor, an RGB LED, and USB connectors. The circuit is designed to interface with various components and perform specific functions as defined by the embedded code.

Component List

  1. Arduino UNO

    • Description: A microcontroller board based on the ATmega328P.
    • Pins: UNUSED, IOREF, Reset, 3.3V, 5V, GND, Vin, A0, A1, A2, A3, A4, A5, SCL, SDA, AREF, D13, D12, D11, D10, D9, D8, D7, D6, D5, D4, D3, D2, D1, D0
  2. USB Female

    • Description: USB connector for power and data.
    • Pins: VCC, GND, -D, +D
  3. INA219

    • Description: Current sensor for high-side current measurement.
    • Pins: VCC, GND, SCL, SDA, VIN -, VIN +
  4. 5V Relay

    • Description: Electromechanical relay for switching applications.
    • Pins: Normally Open, Common terminal, Normally Closed, In, GND, VCC
  5. LM358 Op-Amp

    • Description: Operational amplifier for signal conditioning.
    • Pins: 8, 1, 2, 3, 4, 5, 6, 7
  6. Resistors

    • Description: Various resistors used for current limiting and voltage division.
    • Pins: pin1, pin2
    • Properties:
      • Resistance: 10000 Ohms
      • Resistance: 220 Ohms
  7. Electrolytic Capacitors

    • Description: Capacitors for filtering and decoupling.
    • Pins: -, +
    • Properties:
      • Capacitance: 0.0001 Farads
      • Capacitance: 0.000001 Farads
  8. Ceramic Capacitor

    • Description: Capacitor for high-frequency filtering.
    • Pins: pin0, pin1
    • Properties:
      • Capacitance: 1e-7 Farads
  9. RGB LED (Wokwi compatible)

    • Description: RGB LED for visual indication.
    • Pins: R, COM, G, B

Wiring Details

Arduino UNO

USB Female

INA219

5V Relay

LM358 Op-Amp

Resistors

Electrolytic Capacitors

Ceramic Capacitor

RGB LED (Wokwi compatible)

Documented Code

Arduino UNO Code

void setup() {
  // put your setup code here, to run once:

}

void loop() {
  // put your main code here, to run repeatedly:

}

This code is a basic template for the Arduino UNO. The setup function is used to initialize any settings or configurations, and the loop function contains the main code that runs repeatedly. Currently, both functions are empty and can be filled with the desired functionality for the circuit.