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

Arduino UNO-Based Smart Fan and Sensor System with OLED Display

View and Edit Project In Cirkit DesignerImage of Arduino UNO-Based Smart Fan and Sensor System with OLED Display

Circuit Documentation

Summary

This circuit involves an Arduino UNO microcontroller interfacing with various components including a piezo buzzer, temperature sensor, NPN transistor, resistor, ultrasonic sensor, OLED display, fan, power transformer, bridge rectifier, and a voltage converter. The circuit is designed to perform multiple functions such as temperature sensing, distance measurement, and displaying information on an OLED screen.

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. Piezo Buzzer

    • Description: A small audio signaling device.
    • Pins: pin 1, pin 2
  3. TEMP

    • Description: Temperature sensor.
    • Pins: 5V, D3, GND
  4. NPN Transistor (CBE)

    • Description: NPN transistor with collector, base, and emitter pins.
    • Pins: collector, base, emitter
  5. Resistor

    • Description: Resistor with a resistance of 1000 Ohms.
    • Pins: pin1, pin2
  6. Ultrasonic Sensor

    • Description: Sensor for measuring distance using ultrasonic waves.
    • Pins: +VCC, Trigger, Echo, GND
  7. OLED 1.3"

    • Description: 1.3-inch OLED display.
    • Pins: GND, VCC, SCL, SDA
  8. Fan

    • Description: Small cooling fan.
    • Pins: GND, 5V
  9. Power Transformer (220V to 24V)

    • Description: Transformer to step down 220V AC to 24V AC.
    • Pins: 2 - Primary, 1 - Primary, 3 - Secondary, 4 - Secondary
  10. 48v to 5v

    • Description: Voltage converter to step down 48V to 5V.
    • Pins: out+, out--, in+, in--
  11. Bridge Rectifier

    • Description: Converts AC to DC.
    • Pins: Source_in-, source_out-, source_out+, source_in+
  12. Power 220v

    • Description: 220V AC power source.
    • Pins: hot wire, neutral wire

Wiring Details

Arduino UNO

Piezo Buzzer

TEMP

NPN Transistor (CBE)

Resistor

Ultrasonic Sensor

OLED 1.3"

Fan

Power Transformer (220V to 24V)

48v to 5v

Bridge Rectifier

Power 220v

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 logic that runs repeatedly.