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

Arduino UNO and Nano Controlled Temperature Monitoring and Fan Regulation System with OLED Display

View and Edit Project In Cirkit DesignerImage of Arduino UNO and Nano Controlled Temperature Monitoring and Fan Regulation System with OLED Display

Circuit Documentation

Summary

The circuit in question appears to be a temperature control system utilizing an Arduino UNO and an Arduino Nano as microcontrollers. The system includes a DHT11 temperature and humidity sensor, two 5V relay modules, a 128x64 OLED display for user interface, and pushbuttons for user input. The circuit is powered by a 12V 5A power supply, and it controls a 220V fan through the relay modules. The Arduino UNO is responsible for reading the temperature from the DHT11 sensor, displaying it on the OLED, and controlling the relay based on the temperature set point. The Arduino Nano's role is not fully defined in the provided code.

Component List

Wiring Details

Arduino UNO

Arduino Nano

1 Channel 5V Relay Module

128x64 OLED Display (I2C IIC SPI Serial)

DHT11

Pushbutton

Resistor

mmweve

Power Supply 12V 5A

220V Fan

Documented Code

Arduino UNO Code (sketch.ino)

#include <U8glib.h>
#include <DHT.h>

U8GLIB_SSD1306_128X64 u8g(U8G_I2C_OPT_NONE);
int posicao = 0;
int temp_max = 30;

#define pino_aumenta 5
#define pino_diminui 4
#define pino_rele 7
#define pino_DHT A0
#define DHTTYPE DHT11

DHT dht(pino_DHT, DHTTYPE);
int temperatura;
int aumenta, diminui;
unsigned long previousMillis = 0;
const long interval = 10000;

void draw() {
  // Display temperature and system status
}

void setup(void) {
  Serial.begin(9600);
  pinMode(pino_rele, OUTPUT);
  pinMode(pino_aumenta, INPUT);
  pinMode(pino_diminui, INPUT);
  dht.begin();
}

void loop(void) {
  // Main program loop
}

This code is responsible for reading the temperature from the DHT11 sensor, displaying it on the OLED screen, and controlling the relay based on the temperature set point. It also handles user input from the pushbuttons to adjust the temperature set point.

Arduino Nano Code (sketch.ino)

void setup() {
  // Setup code here
}

void loop() {
  // Main code here
}

The code for the Arduino Nano is not provided, indicating that its functionality may be minimal or not yet implemented.