Arduino UNO-Based Smart Fan Control with OLED Display and Relay
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This document provides a detailed overview of a circuit that includes an Arduino UNO microcontroller, a 12V power supply, a 0.96" OLED display, a 5V relay, a fan, an NPN transistor, resistors, and LEDs. The circuit is designed to control a fan and display information on the OLED screen, with additional indicators using LEDs.
Component List
12V Power Supply
- Description: Provides 12V power to the circuit.
- Pins: +, -
0.96" OLED
- Description: OLED display for visual output.
- Pins: GND, VDD, SCK, SDA
5V Relay
- Description: Relay to control high-power devices.
- Pins: Normally Open, Common terminal, Normally Closed, In, GND, VCC
Arduino UNO
- Description: Microcontroller for controlling the circuit.
- 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
Fan
- Description: 5V fan for cooling.
- Pins: GND, 5V
NPN Transistor (EBC)
- Description: Transistor for switching.
- Pins: emitter, base, collector
Resistor (10k Ohms)
- Description: Resistor with 10k Ohms resistance.
- Pins: pin1, pin2
Resistor (220 Ohms)
- Description: Resistor with 220 Ohms resistance.
- Pins: pin1, pin2
LED: Two Pin (Red)
- Description: Red LED for indication.
- Pins: cathode, anode
LED: Two Pin (Green)
- Description: Green LED for indication.
- Pins: cathode, anode
Wiring Details
12V Power Supply
- + connected to Vin of Arduino UNO and Common terminal of 5V relay.
- - connected to GND of Arduino UNO and GND of Fan.
0.96" OLED
- GND connected to GND of Arduino UNO.
- VDD connected to 5V of Arduino UNO.
- SCK connected to A5 of Arduino UNO.
- SDA connected to A4 of Arduino UNO.
5V Relay
- GND connected to collector of NPN Transistor and GND of Arduino UNO.
- VCC connected to emitter of NPN Transistor and 5V of Arduino UNO.
- Common terminal connected to + of 12V power supply.
- Normally Open connected to 5V of Fan.
- In connected to D7 of Arduino UNO.
Arduino UNO
- Vin connected to + of 12V power supply.
- GND connected to - of 12V power supply and GND of Fan.
- 5V connected to VCC of 5V relay and VDD of 0.96" OLED.
- D2 connected to pin1 of 10k Ohms Resistor.
- D4 connected to anode of Green LED.
- D5 connected to anode of Red LED.
- D7 connected to In of 5V relay.
- A4 connected to SDA of 0.96" OLED.
- A5 connected to SCK of 0.96" OLED.
Fan
- GND connected to GND of Arduino UNO.
- 5V connected to Normally Open of 5V relay.
NPN Transistor (EBC)
- emitter connected to VCC of 5V relay and 5V of Arduino UNO.
- base connected to pin1 of 10k Ohms Resistor.
- collector connected to GND of 5V relay and GND of Arduino UNO.
Resistor (10k Ohms)
- pin1 connected to base of NPN Transistor and D2 of Arduino UNO.
- pin2 connected to emitter of NPN Transistor.
Resistor (220 Ohms)
- pin1 connected to GND of Arduino UNO.
- pin2 connected to cathode of Red LED.
Resistor (220 Ohms)
- pin1 connected to GND of Arduino UNO.
- pin2 connected to cathode of Green LED.
LED: Two Pin (Red)
- cathode connected to pin2 of 220 Ohms Resistor.
- anode connected to D5 of Arduino UNO.
LED: Two Pin (Green)
- cathode connected to pin2 of 220 Ohms Resistor.
- anode connected to D4 of Arduino UNO.
Code Documentation
Arduino UNO Code
sketch.ino
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
documentation.txt
This document provides a comprehensive overview of the circuit, including a summary, component list, wiring details, and documented code.