Circuit Documentation
Summary
This document provides a detailed overview of a circuit designed to control a tyre inflator system. The circuit includes various components such as an Arduino Uno R3, pushbuttons, an LCD display, a pressure sensor, a relay module, a buzzer, a pump, and power supply units. The Arduino Uno R3 is programmed to read pressure values, control the pump, and display information on the LCD.
Component List
Pushbutton
- Pins: Pin 2, Pin 1, Pin 3, Pin 4
- Description: A simple pushbutton used for user input.
LCD 20x4 I2C
- Pins: GND, 5V, SCA, SCL
- Description: A 20x4 character LCD display with I2C interface.
Power Supply 12V 5AMP
- Pins: 220V Positive Pole (AC), 220V Negative Pole (AC), GND, GND (DC), 12V-24V Output (DC)
- Description: A power supply unit providing 12V DC output.
DCDC 12V/5V 3A
- Pins: 12V (+), GND, 5V (+), Vin (+), V in (-)
- Description: A DC-DC converter that steps down 12V to 5V.
Barrel Jack Male
- Pins: Power Out, V+, V-
- Description: A barrel jack connector for power input.
Industrial Pressure Sensor
- Pins: DC+, DC-, Signal
- Description: A sensor to measure pressure.
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: A microcontroller board based on the ATmega328P.
4 Channel Relay Module
- Pins: N.O. 4, COM 4, N.C. 4, N.O. 3, COM 3, N.C. 3, N.O. 2, COM 2, N.C. 2, N.O. 1, COM 1, N.C. 1, Pin 13, Pin 14, Pin 15, Pin 16, Pin 17, Pin 18, Pin 19, Pin 20, Pin 21, Pin 22, Pin 23, Pin 24, VCC+, VCC- (GND), IN 1, IN 2, IN 3, IN 4
- Description: A relay module to control high voltage devices.
Buzzer
- Pins: GND, IN
- Description: A buzzer for audio alerts.
Pump
- Pins: +, -
- Description: A pump for inflating the tyre.
Power 220V
- Pins: hot wire, neutral wire
- Description: AC power input.
Wiring Details
Pushbutton 1
- Pin 3 connected to Pin 1 of Pushbutton 2
- Pin 4 connected to D2 of Arduino Uno R3
Pushbutton 2
- Pin 4 connected to D3 of Arduino Uno R3
Arduino Uno R3
- D13 connected to IN of Buzzer
- GND connected to GND of DCDC 12V/5V 3A, V- of Barrel Jack Male, DC- of Industrial Pressure Sensor, VCC- (GND) of 4 Channel Relay Module, GND of LCD 20x4 I2C, GND of Buzzer
- 6 connected to IN 1 of 4 Channel Relay Module
- A5/SCL connected to SCL of LCD 20x4 I2C
- A4/SDA connected to SCA of LCD 20x4 I2C
- A0 connected to Signal of Industrial Pressure Sensor
- Vin connected to DC+ of Industrial Pressure Sensor
- 5V connected to 5V of LCD 20x4 I2C, VCC+ of 4 Channel Relay Module
- Power Jack connected to Power Out of Barrel Jack Male
LCD 20x4 I2C
- GND connected to GND of Arduino Uno R3
- 5V connected to 5V of Arduino Uno R3
- SCA connected to A4/SDA of Arduino Uno R3
- SCL connected to A5/SCL of Arduino Uno R3
Buzzer
- IN connected to D13 of Arduino Uno R3
- GND connected to GND of Arduino Uno R3
DCDC 12V/5V 3A
- GND connected to GND of Arduino Uno R3
- Vin (+) connected to 12V-24V Output (DC) of Power Supply 12V 5AMP
- V in (-) connected to GND (DC) of Power Supply 12V 5AMP
- 5V (+) connected to V+ of Barrel Jack Male
Barrel Jack Male
- Power Out connected to Power Jack of Arduino Uno R3
- V+ connected to 5V (+) of DCDC 12V/5V 3A
- V- connected to GND of Arduino Uno R3
Industrial Pressure Sensor
- DC+ connected to Vin of Arduino Uno R3
- DC- connected to GND of Arduino Uno R3
- Signal connected to A0 of Arduino Uno R3
4 Channel Relay Module
- IN 1 connected to 6 of Arduino Uno R3
- VCC- (GND) connected to GND of Arduino Uno R3
- VCC+ connected to 5V of Arduino Uno R3
- N.O. 1 connected to 12V-24V Output (DC) of Power Supply 12V 5AMP
- COM 1 connected to + of Pump
Pump
- + connected to COM 1 of 4 Channel Relay Module
- - connected to GND (DC) of Power Supply 12V 5AMP
Power 220V
- hot wire connected to 220V Positive Pole (AC) of Power Supply 12V 5AMP
- neutral wire connected to 220V Negative Pole (AC) of Power Supply 12V 5AMP
Power Supply 12V 5AMP
- 220V Positive Pole (AC) connected to hot wire of Power 220V
- 220V Negative Pole (AC) connected to neutral wire of Power 220V
- GND (DC) connected to V in (-) of DCDC 12V/5V 3A, - of Pump
- 12V-24V Output (DC) connected to Vin (+) of DCDC 12V/5V 3A, N.O. 1 of 4 Channel Relay Module
Code Documentation
#include <EEPROM.h>
#include <LiquidCrystal_I2C.h>
#include <Wire.h>
LiquidCrystal_I2C lcd(0x27, 20, 4);
int sensorPin = A0;
int setvalue = 0;
int sw_set = 2;
int sw_up = 3;
int sw_dwn = 4;
int sw_ent = 5;
int purge = 6;
int feed = 7;
int max_pressure = 70;
int min_pressure = 10;
int pressure_value = 0;
int sensor_Value = 0;
int cal_factor = 0;
int set_mode = 0;
int threshold = 5;
int inf_delay = 200;
String disp_string[4] = { " Tyre Inflator", "Set Pressure", "-", "-" };
void setup() {
pinMode(purge, OUTPUT);
pinMode(feed, OUTPUT);
pinMode(sw_up, INPUT_PULLUP);
pinMode(sw_d