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

Arduino and ESP32-Based Smart Fan Controller with LCD Display and Temperature/Humidity Sensors

View and Edit Project In Cirkit DesignerImage of Arduino and ESP32-Based Smart Fan Controller with LCD Display and Temperature/Humidity Sensors

Circuit Documentation

Summary

This circuit involves an Arduino UNO microcontroller interfacing with various components including a 16x2 LCD display, a 12V fan, a potentiometer, an AHT10 sensor, a TMP36 temperature sensor, an ESP32 module, and an L293D motor driver. The circuit is powered by a DC power source and includes several ground connections.

Component List

  1. 16x2 LCD Display

    • Description: A 16x2 character LCD display.
    • Pins: VSS, VDD, V0, RS, RW, E, D1, D0, D2, D3, D4, D6, D5, D7, A, K
  2. 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
  3. 12V Fan

    • Description: A 12V DC fan.
    • Pins: +12V, -12V
  4. Potentiometer

    • Description: A variable resistor.
    • Pins: GND, Output, VCC
  5. AHT10 Sensor

    • Description: A temperature and humidity sensor.
    • Pins: VIN, GND, SCL, SDA
  6. TMP36 Sensor

    • Description: A temperature sensor.
    • Pins: VSS, PIN, GND
  7. GND

    • Description: Ground connection.
    • Pins: GND
  8. DC Power Source

    • Description: A DC power source.
    • Pins: Ground, Positive
  9. ESP32

    • Description: A microcontroller with Wi-Fi and Bluetooth capabilities.
    • Pins: EN, VP, VN, D34, D35, D32, D33, D25, D26, D27, D14, D12, D13, GND, VIN, 3V3, D15, D2, D4, RX2, TX2, D5, D18, D19, D21, RX0, TX0, D22, D23, BOOT
  10. L293D Motor Driver

    • Description: A quadruple high-current half-H driver.
    • Pins: Enable 1,2, Input 1, Output 1, GND, Output 2, Input 2, Vcc2, Vcc1, Input 4, Output 4, Output 3, Input 3, Enable 3,4

Wiring Details

16x2 LCD Display

Arduino UNO

12V Fan

Potentiometer

AHT10 Sensor

TMP36 Sensor

GND

DC Power Source

ESP32

L293D Motor Driver

Code Documentation

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 where you initialize your components and settings, and the loop() function is where the main logic of your program runs repeatedly.