Arduino Nano-Based Smart Temperature Control System with LCD Display and Relay Control
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This circuit involves an Arduino Nano microcontroller interfacing with various components including a DS18B20 temperature sensor, a 16x2 I2C LCD, multiple pushbuttons, 5V relays, a heater element, a fan, and a 220V power source. The circuit is designed to control the heater and fan based on temperature readings and user inputs.
Component List
Arduino Nano
- Description: A small, complete, and breadboard-friendly board based on the ATmega328P.
- Pins: D1/TX, D0/RX, RESET, GND, D2, D3, D4, D5, D6, D7, D8, D9, D10, D11/MOSI, D12/MISO, VIN, 5V, A7, A6, A5, A4, A3, A2, A1, A0, AREF, 3V3, D13/SCK
DS18B20
- Description: A digital temperature sensor.
- Pins: VDD, DQ, GND
16x2 I2C LCD
- Description: A 16x2 character LCD display with I2C interface.
- Pins: GND, VCC, SDA, SCL
5V Relay
- Description: A relay module that operates at 5V.
- Pins: Normally Open, Common terminal, Normally Closed, In, GND, VCC
Pushbutton
- Description: A simple pushbutton switch.
- Pins: Pin 3 (out), Pin 4 (out), Pin 1 (in), Pin 2 (in)
Connector 5V
- Description: A connector for 5V power supply.
- Pins: GND, VCC
Power 220V
- Description: A 220V power source.
- Pins: hot wire, neutral wire
Heater Element
- Description: A heating element.
- Pins: VCC, GND
Fan
- Description: A 5V fan.
- Pins: GND, 5V
Wiring Details
Arduino Nano
- D3 connected to DQ of DS18B20
- D5 connected to In of 5V Relay
- D6 connected to In of 5V Relay
- VIN connected to:
- Common terminal of 5V Relay
- VCC of 5V Relay
- VCC of 16x2 I2C LCD
- VCC of 5V Relay
- VCC of Connector 5V
- VDD of DS18B20
- GND connected to:
- GND of Fan
- GND of 5V Relay
- Pin 2 (in) of Pushbutton
- Pin 2 (in) of Pushbutton
- GND of 16x2 I2C LCD
- Pin 2 (in) of Pushbutton
- GND of 5V Relay
- GND of Connector 5V
- GND of DS18B20
- A5 connected to SCL of 16x2 I2C LCD
- A4 connected to SDA of 16x2 I2C LCD
- A2 connected to Pin 4 (out) of Pushbutton
- A1 connected to Pin 4 (out) of Pushbutton
- A0 connected to Pin 4 (out) of Pushbutton
DS18B20
- DQ connected to D3 of Arduino Nano
- VDD connected to VIN of Arduino Nano
- GND connected to GND of Arduino Nano
16x2 I2C LCD
- GND connected to GND of Arduino Nano
- VCC connected to VIN of Arduino Nano
- SDA connected to A4 of Arduino Nano
- SCL connected to A5 of Arduino Nano
5V Relay
- In connected to D5 of Arduino Nano
- In connected to D6 of Arduino Nano
- Common terminal connected to VIN of Arduino Nano
- VCC connected to VIN of Arduino Nano
- GND connected to GND of Arduino Nano
- Normally Open connected to VCC of Heater Element
Pushbutton
- Pin 2 (in) connected to GND of Arduino Nano
- Pin 4 (out) connected to A2 of Arduino Nano
Pushbutton
- Pin 2 (in) connected to GND of Arduino Nano
- Pin 4 (out) connected to A1 of Arduino Nano
Pushbutton
- Pin 2 (in) connected to GND of Arduino Nano
- Pin 4 (out) connected to A0 of Arduino Nano
Connector 5V
- GND connected to GND of Arduino Nano
- VCC connected to VIN of Arduino Nano
Power 220V
- hot wire connected to Common terminal of 5V Relay
- neutral wire connected to GND of Heater Element
Heater Element
- VCC connected to Normally Open of 5V Relay
- GND connected to neutral wire of Power 220V
Fan
- GND connected to GND of Arduino Nano
- 5V connected to Normally Open of 5V Relay
Documented Code
Arduino Nano Code (sketch.ino)
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
Additional Documentation (documentation.txt)