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

Arduino-Controlled Fan with OLED Display and Ultrasonic Sensing

View and Edit Project In Cirkit DesignerImage of Arduino-Controlled Fan with OLED Display and Ultrasonic Sensing

Circuit Documentation

Summary

This circuit integrates a microcontroller (Arduino UNO), an OLED display, an ultrasonic distance sensor (HC-SR04), a fan, an NPN transistor, and a resistor to form a system capable of interfacing with various peripherals. The Arduino UNO serves as the central processing unit, controlling the fan via the NPN transistor and reading distance measurements from the HC-SR04 sensor. The OLED display provides a visual interface for displaying data or status information. The circuit is powered by the Arduino's 5V output, which is distributed to the necessary components.

Component List

Arduino UNO

0.96" OLED

HC-SR04 Ultrasonic Distance Sensor (Wokwi Compatible)

Fan

NPN Transistor (EBC)

Resistor

Wiring Details

Arduino UNO

0.96" OLED

HC-SR04 Ultrasonic Distance Sensor

Fan

NPN Transistor (EBC)

Resistor

Documented Code

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

}

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

}

Filename: sketch.ino

Note: The provided code is a template and does not contain any functional code to control the circuit components. The user is expected to write the necessary setup and loop functions to initialize the components and define the circuit's behavior.