Cirkit Designer Logo
Cirkit Designer
Your all-in-one circuit design IDE
Home / 
Project Documentation

Arduino-Based LED and Solenoid Control System with IR Receiver and SD Card Logging

Image of Arduino-Based LED and Solenoid Control System with IR Receiver and SD Card Logging

Circuit Documentation

Summary

This circuit involves an Arduino UNO and an Arduino Nano, which control a series of LEDs, a 16x2 I2C LCD, an IR receiver, an SD module, and a 5V 8-channel relay module. The circuit also includes several resistors, solenoids, and a power supply module. The Arduino UNO is primarily responsible for handling the IR receiver and the SD module, while the Arduino Nano controls the LEDs and the 16x2 I2C LCD. The relay module is used to control the solenoids.

Component List

  1. Arduino UNO

    • Description: 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. Arduino Nano

    • Description: Small, complete, and breadboard-friendly board based on the ATmega328P.
    • Pins: D1/TX, D0/RX, RESET, GND, D2, D3, D4, D5, D6, D7, D8, D9, D10, D11/MOSI, D12/MISO, VIN, 5V, A7, A6, A5, A4, A3, A2, A1, A0, AREF, 3V3, D13/SCK
  3. 2.1mm Barrel Jack with Terminal Block

    • Description: Power connector for external power supply.
    • Pins: POS, NEG
  4. 16x2 I2C LCD

    • Description: 16x2 character LCD display with I2C interface.
    • Pins: GND, VCC, SDA, SCL
  5. IR Receiver

    • Description: Infrared receiver module.
    • Pins: DATA, VCC, GND
  6. SD Module

    • Description: SD card module for data storage.
    • Pins: CS, SCK, MOSI, MISO, VCC, GND
  7. 5V 8 Channel Relay Module

    • Description: Relay module for controlling high voltage devices.
    • Pins: NC, COM, NO, GND, VCC, JD-VCC, IN8, IN7, IN6, IN5, IN4, IN3, IN2, IN1
  8. MB102 Breadboard Power Supply Module 3.3V/5V

    • Description: Power supply module for breadboards.
    • Pins: VCC, GND, 3.3V, 5V
  9. LED: Two Pin (red)

    • Description: Red LED.
    • Pins: cathode, anode
  10. LED: Two Pin (green)

    • Description: Green LED.
    • Pins: cathode, anode
  11. Resistor

    • Description: Resistor with 220 Ohms resistance.
    • Pins: pin1, pin2
  12. Solenoid

    • Description: Electromagnetic solenoid.
    • Pins: pin1, pin2
  13. 4xAA Battery Holder

    • Description: Battery holder for 4 AA batteries.
    • Pins: POS, NEG
  14. Terminal Block 3A 12 Position Dual Row

    • Description: Terminal block for wire connections.
    • Pins: None

Wiring Details

Arduino UNO

  • 3.3V: Connected to VCC of IR Receiver.
  • 5V: Connected to VCC of SD Module.
  • GND: Connected to GND of IR Receiver, SD Module, and Arduino Nano.
  • Vin: Connected to VCC of 5V 8 Channel Relay Module.
  • A0: Connected to DATA of IR Receiver.
  • A4: Connected to IN7 of 5V 8 Channel Relay Module.
  • A5: Connected to IN8 of 5V 8 Channel Relay Module.
  • D9: Connected to IN1 of 5V 8 Channel Relay Module.
  • D8: Connected to IN2 of 5V 8 Channel Relay Module.
  • D7: Connected to IN3 of 5V 8 Channel Relay Module.
  • D6: Connected to IN4 of 5V 8 Channel Relay Module.
  • D5: Connected to IN5 of 5V 8 Channel Relay Module.
  • D4: Connected to IN6 of 5V 8 Channel Relay Module.
  • D13: Connected to SCK of SD Module.
  • D12: Connected to MISO of SD Module.
  • D11: Connected to MOSI of SD Module.
  • D10: Connected to CS of SD Module.

Arduino Nano

  • GND: Connected to GND of MB102 Breadboard Power Supply Module.
  • VIN: Connected to VCC of 16x2 I2C LCD.
  • A4: Connected to SDA of 16x2 I2C LCD.
  • A5: Connected to SCL of 16x2 I2C LCD.
  • D2: Connected to anode of green LED.
  • D3: Connected to anode of red LED.
  • D4: Connected to anode of green LED.
  • D5: Connected to anode of red LED.
  • D6: Connected to anode of green LED.
  • D7: Connected to anode of red LED.
  • D8: Connected to anode of green LED.
  • D9: Connected to anode of red LED.

2.1mm Barrel Jack with Terminal Block

  • POS: Connected to VCC of MB102 Breadboard Power Supply Module.
  • NEG: Connected to Terminal Block 3A 12 Position Dual Row.

16x2 I2C LCD

  • GND: Connected to pin1 of Resistor.
  • VCC: Connected to VIN of Arduino Nano.
  • SDA: Connected to A4 of Arduino Nano.
  • SCL: Connected to A5 of Arduino Nano.

IR Receiver

  • DATA: Connected to A0 of Arduino UNO.
  • VCC: Connected to 3.3V of Arduino UNO.
  • GND: Connected to GND of Arduino UNO.

SD Module

  • CS: Connected to D10 of Arduino UNO.
  • SCK: Connected to D13 of Arduino UNO.
  • MOSI: Connected to D11 of Arduino UNO.
  • MISO: Connected to D12 of Arduino UNO.
  • VCC: Connected to 5V of Arduino UNO.
  • GND: Connected to GND of Arduino UNO.

5V 8 Channel Relay Module

  • VCC: Connected to Vin of Arduino UNO.
  • GND: Connected to NEG of 4xAA Battery Holder.
  • JD-VCC: Connected to POS of 4xAA Battery Holder.
  • IN1: Connected to D9 of Arduino UNO.
  • IN2: Connected to D8 of Arduino UNO.
  • IN3: Connected to D7 of Arduino UNO.
  • IN4: Connected to D6 of Arduino UNO.
  • IN5: Connected to D5 of Arduino UNO.
  • IN6: Connected to D4 of Arduino UNO.
  • IN7: Connected to A4 of Arduino UNO.
  • IN8: Connected to A5 of Arduino UNO.
  • COM: Connected to pin2 of Solenoids.

MB102 Breadboard Power Supply Module 3.3V/5V

  • VCC: Connected to POS of 2.1mm Barrel Jack with Terminal Block.
  • GND: Connected to GND of Arduino Nano and pin1 of Resistors.
  • 3.3V: Connected to GND of MB102 Breadboard Power Supply Module.
  • 5V: Connected to GND of MB102 Breadboard Power Supply Module.

LED: Two Pin (red)

  • cathode: Connected to pin2 of Resistor.
  • anode: Connected to D3, D5, D7, D9 of Arduino Nano.

LED: Two Pin (green)

  • cathode: Connected to pin2 of Resistor.
  • anode: Connected to D2, D4, D6, D8 of Arduino Nano.

Resistor

  • pin1: Connected to GND of MB102 Breadboard Power Supply Module.
  • pin2: Connected to cathode of LEDs.

Solenoid

  • pin1: Connected to Terminal Block 3A 12 Position Dual Row.
  • pin2: Connected to COM of 5V 8 Channel Relay Module.

4xAA Battery Holder

  • **