Circuit Documentation
Summary
This document provides a detailed overview of a circuit that includes various components such as a peristaltic pump, stepper driver, battery, Arduino UNO, sensors, and other modules. The circuit is designed to control and monitor various parameters using an Arduino UNO microcontroller. The document includes a component list, wiring details, and documented code.
Component List
KPCS200 Peristaltic Pump
- Description: A peristaltic pump used for precise fluid control.
- Pins: B+, A+, B-, A-
TMC2226 Stepper Driver
- Description: A stepper motor driver used to control the peristaltic pump.
- Pins: VMOT, 2B, GND, 2A, 1A, 1B, VDD, STEP, DIR, NC, MS2, MS1, EN, TX, RX, DIAG, VREF, INDEX
12v Battery
- Description: A 12V battery used as the primary power source.
- Pins: +, -
Arduino UNO
- Description: A microcontroller used to control and monitor 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
Step Up Boost Power Converter, Adjustable Voltage Regulator
- Description: A voltage regulator used to step up the voltage.
- Pins: VOUT+, VOUT-, VIN+, VIN-
Pressure Gauge
- Description: A sensor used to measure pressure.
- Pins: signal, gnd, vcc
TEMP Sensor
- Description: A temperature sensor used to measure temperature.
- Pins: 5V, D3, GND
Bubble Sensor
- Description: A sensor used to detect bubbles in the fluid.
- Pins: signal out, vcc, gnd
Servo
- Description: A servo motor used for precise control.
- Pins: GND, VCC, PWM
Water Heater
- Description: A heater used to heat water.
- Pins: V+, V-
Relay Module 5v-30v
- Description: A relay module used to control high voltage devices.
- Pins: common contact, normally open, normally closed, trigger, V-, V+
Degassing Pump
- Description: A pump used to remove gas from the fluid.
- Pins: vcc, gnd
Conductivity Sensor
- Description: A sensor used to measure the conductivity of the fluid.
- Pins: gnd, vcc, signal
L9110
- Description: A motor driver used to control the degassing pump.
- Pins: MOTOR B-A, MOTOR B-B, MOTOR A-A, MOTOR A-B, B-IA, B-IB, GND, VCC, A-IA, A-IB
Wiring Details
KPCS200 Peristaltic Pump
- B+ connected to 1B of TMC2226 Stepper Driver
- A+ connected to 2B of TMC2226 Stepper Driver
- B- connected to 1A of TMC2226 Stepper Driver
- A- connected to 2A of TMC2226 Stepper Driver
TMC2226 Stepper Driver
- VMOT connected to + of 12v Battery
- GND connected to - of 12v Battery
- EN connected to GND of TMC2226 Stepper Driver
- STEP connected to D1 of Arduino UNO
- DIR connected to D3 of Arduino UNO
12v Battery
- + connected to normally open of Relay module 5v-30v, VIN+ of Step Up Boost Power Converter, Adjustable Voltage Regulator, VCC of L9110, VMOT of TMC2226 Stepper Driver
- - connected to V- of Water Heater, VIN- of Step Up Boost Power Converter, Adjustable Voltage Regulator, GND of L9110, GND of TMC2226 Stepper Driver
Arduino UNO
- D1 connected to STEP of TMC2226 Stepper Driver
- D3 connected to DIR of TMC2226 Stepper Driver
- 5V connected to 5V of TEMP, vcc of conductivity sensor, V+ of Relay module 5v-30v, vcc of bubble sensor, VOUT+ of Step Up Boost Power Converter, Adjustable Voltage Regulator, vcc of pressure gage, vcc of pressure gage, VCC of Servo, 5V of TEMP
- GND connected to GND of TEMP, gnd of conductivity sensor, V- of Relay module 5v-30v, gnd of bubble sensor, VOUT- of Step Up Boost Power Converter, Adjustable Voltage Regulator, gnd of pressure gage, gnd of pressure gage, GND of Servo, GND of TEMP
- A0 connected to signal of pressure gage
- A1 connected to signal of pressure gage
- A2 connected to trigger of Relay module 5v-30v
- A4 connected to signal of conductivity sensor
- D10 connected to A-IB of L9110
- D9 connected to A-IA of L9110
- D8 connected to D3 of TEMP
- D7 connected to PWM of Servo
- D6 connected to signal out of bubble sensor
- D5 connected to D3 of TEMP
- D4 connected to D3 of TEMP
Step Up Boost Power Converter, Adjustable Voltage Regulator
- VIN+ connected to + of 12v Battery
- VIN- connected to - of 12v Battery
- VOUT+ connected to 5V of Arduino UNO
- VOUT- connected to GND of Arduino UNO
Pressure Gauge
- signal connected to A0 of Arduino UNO
- gnd connected to GND of Arduino UNO
- vcc connected to 5V of Arduino UNO
TEMP Sensor
- 5V connected to 5V of Arduino UNO
- D3 connected to D4 of Arduino UNO
- GND connected to GND of Arduino UNO
Bubble Sensor
- signal out connected to D6 of Arduino UNO
- vcc connected to 5V of Arduino UNO
- gnd connected to GND of Arduino UNO
Servo
- GND connected to GND of Arduino UNO
- VCC connected to 5V of Arduino UNO
- PWM connected to D7 of Arduino UNO
Water Heater
- V+ connected to common contact of Relay module 5v-30v
- V- connected to - of 12v Battery
Relay Module 5v-30v
- common contact connected to V+ of Water Heater
- normally open connected to + of 12v Battery
- trigger connected to A2 of Arduino UNO
- V- connected to GND of Arduino UNO
- V+ connected to 5V of Arduino UNO
Degassing Pump
- vcc connected to MOTOR A-A of L9110
- gnd connected to MOTOR A-B of L9110
Conductivity Sensor
- gnd connected to GND of Arduino UNO
- vcc connected to 5V of Arduino UNO
- signal connected to A4 of Arduino UNO
L9110
- MOTOR B-A not connected
- MOTOR B-B not connected
- MOTOR A-A connected to vcc of degassing pump
- MOTOR A-B connected to gnd of **degassing pump