Circuit Documentation
Summary
This circuit is designed to control a relay module, a water flow sensor, multiple DS18B20 temperature sensors, a diaphragm water pump, and a fan using multiple Arduino UNO R4 WiFi microcontrollers. The relay module is used to switch various devices, including adjustable ball valves (kogelkraan), on and off. The water flow sensor monitors the flow rate in the system. The temperature sensors provide temperature readings from different points in the circuit. The diaphragm water pump and fan are controlled by the Arduino through a motor driver. Power is supplied to the components through dedicated power supplies.
Component List
- Arduino UNO R4 WiFi: A microcontroller board based on the ATmega328, equipped with WiFi capabilities for IoT projects.
- DBH-12H: A motor driver used to control the diaphragm water pump and fan.
- Mini Diaphragm Water Pump: A pump used for moving water through the system.
- Fan: A cooling device to maintain the temperature of the system.
- Water Flow Sensor: A sensor that measures the rate at which water flows through a pipe.
- DS18B20 1-Wire Temperature Sensor Probe Cable: Digital temperature sensors for measuring temperature at various points.
- Relay 4 Channel 5v: A 4-channel relay module for controlling high power devices with a microcontroller.
- Oranje, Regelbare Kogelkraan: Adjustable ball valves controlled by the relay module for regulating water flow.
- Power Supply: Provides the necessary voltage and current to power the components in the circuit.
- Resistor: A 4700 Ohm resistor used for pull-up on the 1-Wire bus of the temperature sensors.
Wiring Details
Arduino UNO R4 WiFi
- 5V: Powers the relay module, water flow sensor, and DS18B20 temperature sensors.
- GND: Common ground for the relay module, water flow sensor, and DS18B20 temperature sensors.
- Digital Pins (D2, D3, D4, D5, D6, D9): Control signals for the relay module and motor driver (DBH-12H).
- I2C Pins (SDA, SCL): Not used in this circuit.
DBH-12H Motor Driver
- IN1A, IN1B: Control inputs for the diaphragm water pump from an Arduino.
- IN2A, IN2B: Control inputs for the fan from an Arduino.
- A_VCC, A_GND: Power connections for the fan.
- B_VCC, B_GND: Power connections for the diaphragm water pump.
- Voeding_VCC, Voeding_GND: Power input from the power supply.
Mini Diaphragm Water Pump
- Positive (+): Connected to B_VCC on the motor driver.
- Negative (-): Connected to B_GND on the motor driver.
Fan
- 5V: Connected to A_VCC on the motor driver.
- GND: Connected to A_GND on the motor driver.
Water Flow Sensor
- Vcc: Powered by 5V from an Arduino.
- GND: Common ground with an Arduino.
- Signal: Connected to a digital pin (D2) on an Arduino.
DS18B20 Temperature Sensors
- VDD: Powered by 5V from an Arduino.
- GND: Common ground with an Arduino.
- DQ: Data line connected to a digital pin (D2) on an Arduino through a 4700 Ohm pull-up resistor.
Relay 4 Channel 5v
- VCC: Powered by 5V from an Arduino.
- GND: Common ground with an Arduino.
- IN1, IN2, IN3: Control inputs from digital pins (D3, D4, D5) on an Arduino.
- COM1, COM2, COM3: Common terminals connected to the power supply.
- NO1, NO2, NO3: Normally open contacts connected to the adjustable ball valves.
Oranje, Regelbare Kogelkraan
- 2_24VDC: Powered by the power supply.
- 1_GND: Common ground with the power supply.
- 3_Schakeldraad: Control wire connected to the normally open contacts on the relay module.
Power Supply
- +: Powers the motor driver, adjustable ball valves, and relay module.
- -: Common ground for the motor driver, adjustable ball valves, and relay module.
Resistor
- 4700 Ohms: Pull-up resistor for the 1-Wire bus of the DS18B20 temperature sensors.
Documented Code
Arduino UNO R4 WiFi (Instance: a565a005-9d53-4b07-ad1a-a2800d9d9e68)
void setup() {
}
void loop() {
}
Note: The provided code is a template and does not contain any functional code. It needs to be populated with the logic to control the relay module, read from the water flow sensor, control the motor driver, and read from the temperature sensors.