Arduino-Based Temperature-Controlled Valve, Pump, and Fan System with SD Card Logging
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This circuit is designed to control a valve, pump, and fan based on temperature readings from multiple thermocouple amplifiers. The temperature data is logged to an SD card. Additionally, a current sensor is used to monitor the current and control the relays accordingly. The circuit is managed by an Arduino Uno R3 microcontroller.
Component List
Valve
- Pins: GND, DCIN
- Description: Controls the flow of a fluid or gas.
1 Channel Relay 5V (3 units)
- Pins: VCC, GND, IN, NC, COM, NO
- Description: Used to control high voltage devices with a low voltage signal.
120V Outlet (3 units)
- Pins: AC Neutral, AC Hot, GND
- Description: Standard electrical outlet for 120V AC devices.
Pump
- Pins: in, -VE, ground
- Description: Used to move fluids.
Power Supply
- Pins: +, -, GND
- Description: Provides power to the circuit.
Current Sensor 5A
- Pins: 1, 2, GND, OUT, VCC
- Description: Measures the current flowing through the circuit.
Adafruit Thermocouple Amplifier MAX31855 (7 units)
- Pins: VIN, +3V3, THERMO-, GND, DO, THERMO+, CS, CLK
- Description: Measures temperature using a thermocouple.
Adafruit MicroSD card breakout board
- Pins: VCC, +3V3, GND, CLK, DO, DI, CS, CD
- Description: Used for data logging to an SD card.
Arduino Uno R3
- Pins: D8, D9, D10, D11, D12, D13, GND, AREF, SDA, SCL, D0/RX, D1/Tx, D2, D3, D4, D5, 6, D7, A5/SCL, A4/SDA, A3, A2, A1, A0, Vin, 5V, 3.3V, RESET, IOREF, NONE, USB Jack, Power Jack
- Description: Microcontroller used to control the circuit.
Fan
- Pins: +ve, grnd, -ve
- Description: Used for cooling purposes.
AC
- Pins: +ve, grnd, -ve
- Description: Air conditioning unit.
18650 Li-Ion Battery
- Pins: Positive, Negative
- Description: Rechargeable lithium-ion battery.
Wiring Details
Valve
- GND connected to Power Supply (-)
- DCIN connected to 1 Channel Relay 5V (NO)
1 Channel Relay 5V (Unit 1)
- VCC connected to Arduino Uno R3 (5V)
- GND connected to Arduino Uno R3 (GND)
- IN connected to Arduino Uno R3 (D2)
- NC not connected
- COM connected to 120V Outlet (AC Hot)
- NO connected to Current Sensor 5A (1)
1 Channel Relay 5V (Unit 2)
- VCC connected to Arduino Uno R3 (5V)
- GND connected to Arduino Uno R3 (GND)
- IN connected to Arduino Uno R3 (D3)
- NC not connected
- COM connected to Power Supply (+)
- NO connected to Valve (DCIN)
1 Channel Relay 5V (Unit 3)
- VCC connected to Arduino Uno R3 (5V)
- GND connected to Arduino Uno R3 (GND)
- IN connected to Arduino Uno R3 (D4)
- NC not connected
- COM connected to 120V Outlet (AC Hot)
- NO connected to Pump (in)
120V Outlet (Unit 1)
- AC Neutral connected to Current Sensor 5A (2)
- AC Hot connected to 1 Channel Relay 5V (COM)
- GND connected to Pump (ground)
120V Outlet (Unit 2)
- AC Neutral connected to Current Sensor 5A (2)
- AC Hot connected to 1 Channel Relay 5V (COM)
- GND connected to Fan (grnd)
120V Outlet (Unit 3)
- AC Neutral connected to AC (grnd)
- AC Hot connected to AC (+ve)
- GND connected to AC (-ve)
Pump
- in connected to 1 Channel Relay 5V (NO)
- -VE connected to 120V Outlet (AC Neutral)
- ground connected to 120V Outlet (GND)
Power Supply
- + connected to 1 Channel Relay 5V (COM)
- - connected to Valve (GND)
- GND not connected
Current Sensor 5A
- 1 connected to 1 Channel Relay 5V (NO)
- 2 connected to 120V Outlet (AC Neutral)
- GND connected to Arduino Uno R3 (GND)
- OUT connected to Arduino Uno R3 (D9)
- VCC connected to Arduino Uno R3 (5V)
Adafruit Thermocouple Amplifier MAX31855 (Unit 1)
- VIN connected to Arduino Uno R3 (5V)
- +3V3 not connected
- THERMO- not connected
- GND connected to Arduino Uno R3 (GND)
- DO connected to Arduino Uno R3 (D12)
- THERMO+ not connected
- CS connected to Arduino Uno R3 (A0)
- CLK connected to Arduino Uno R3 (D13)
Adafruit Thermocouple Amplifier MAX31855 (Unit 2)
- VIN connected to Arduino Uno R3 (5V)
- +3V3 not connected
- THERMO- not connected
- GND connected to Arduino Uno R3 (GND)
- DO connected to Arduino Uno R3 (D12)
- THERMO+ not connected
- CS connected to Arduino Uno R3 (A1)
- CLK connected to Arduino Uno R3 (D13)
Adafruit Thermocouple Amplifier MAX31855 (Unit 3)
- VIN connected to Arduino Uno R3 (5V)
- +3V3 not connected
- THERMO- not connected
- GND connected to Arduino Uno R3 (GND)
- DO connected to Arduino Uno R3 (D12)
- THERMO+ not connected
- CS connected to Arduino Uno R3 (A2)
- CLK connected to Arduino Uno R3 (D13)
Adafruit Thermocouple Amplifier MAX31855 (Unit 4)
- VIN connected to Arduino Uno R3 (5V)
- +3V3 not connected
- THERMO- not connected
- GND connected to Arduino Uno R3 (GND)
- DO connected to Arduino Uno R3 (D12)
- THERMO+ not connected
- CS connected to Arduino Uno R3 (D5)
- CLK connected to Arduino Uno R3 (D13)
Adafruit Thermocouple Amplifier MAX31855 (Unit 5)
- VIN connected to Arduino Uno R3 (5V)
- +3V3 not connected
- THERMO- not connected
- GND connected to Arduino Uno R3 (GND)
- DO connected to Arduino Uno R3 (D12)
- THERMO+ not connected
- CS connected to Arduino Uno R3 (D6)
- CLK connected to Arduino Uno R3 (D13)
Adafruit Thermocouple Amplifier MAX31855 (Unit 6)
- VIN connected to Arduino Uno R3 (5V)
- +3V3 not connected
- THERMO- not connected
- GND connected to Arduino Uno R3 (GND)
- DO connected to