0% found this document useful (0 votes)
32 views

CHAPTER3

The document discusses hardware components used in an integrated LPG safety and automation system, including the Raspberry Pi Zero 2W, Sparkfun load combinator, HX711 dual-channel A/D weight pressure sensor, and MQ2 gas sensor. These components allow for interfacing sensors to detect LPG gas concentration and weight changes.

Uploaded by

Sujala Patnaik
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
32 views

CHAPTER3

The document discusses hardware components used in an integrated LPG safety and automation system, including the Raspberry Pi Zero 2W, Sparkfun load combinator, HX711 dual-channel A/D weight pressure sensor, and MQ2 gas sensor. These components allow for interfacing sensors to detect LPG gas concentration and weight changes.

Uploaded by

Sujala Patnaik
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 13

Integrated LPG Safety and Automation System for Enhanced Household Security

CHAPTER-3

Department of ECE, Lendi Institute of Engineering and Technology


Integrated LPG Safety and Automation System for Enhanced Household Security

HARDWARE COMPONENTS

3.1. INTRODUCTION TO RASPBERRY ZEERO 2W HARDWARE:

The Raspberry Pi Zero 2 W is a compact and powerful single-board computer (SBC)


developed by the Raspberry Pi Foundation. It builds upon the success of its predecessor, the
Raspberry Pi Zero W, by offering enhanced performance and connectivity options in an even
smaller form factor. The "W" in its name signifies its built-in wireless capabilities, including
Wi-Fi and Bluetooth connectivity, making it ideal for IoT (Internet of Things) projects and
applications where space and power consumption are critical factors.

Despite its diminutive size, the Raspberry Pi Zero 2 W features a powerful quad-core ARM
Cortex-A53 processor running at 1 GHz, coupled with 512 MB of RAM, providing ample
computing power for a wide range of projects. It also includes a microSD card slot for
storage, micro-USB ports for power and data, a mini HDMI port for video output, and GPIO
(General Purpose Input/Output) pins for interfacing with external devices and sensors.

With its low cost, small footprint, and robust features, the Raspberry Pi Zero 2 W has become
a popular choice for hobbyists, educators, and developers looking to create innovative
projects in areas such as home automation, robotics, digital signage, and more. Its versatility
and community support make it an excellent platform for exploring and learning about
computing and electronics.

Department of ECE, Lendi Institute of Engineering and Technology


Integrated LPG Safety and Automation System for Enhanced Household Security

Fig 3.1.Raspberry Pi Zero 2W Raspberry

Pi Zero 2W comes with capabilities of :

• Broadcom BCM2710A1, 1GHz quad-core 64-bit Arm Cortex-A53 CPU


• 512MB LPDDR2 SDRAM
• 2.4GHz 802.11 b/g/n wireless LAN
• Bluetooth 4.2, Bluetooth Low Energy (BLE), onboard antenna
• Mini HDMI port and micro USB On-The-Go (OTG) port
• MicroSD card slot
• CSI-2 camera connector
• HAT-compatible 40-pin header footprint (unpopulated)
• Micro USB power
• Composite video and reset pins via solder test points
• H.264, MPEG-4 decode (1080p30); H.264 encode (1080p30)
• OpenGL ES 1.1, 2.0 graphics

Fig 3.2:RPI Zero 2W GPIOs

The Raspberry Pi Zero 2 W features a total of 40 GPIO (General Purpose Input/Output) pins,
which are arranged in two rows of 20 pins each along the edge of the board. These pins

Department of ECE, Lendi Institute of Engineering and Technology


Integrated LPG Safety and Automation System for Enhanced Household Security

provide the Raspberry Pi Zero 2 W with the ability to interact with external electronic
components and peripherals. Among these 40 pins:

• 26 pins are standard GPIO pins, capable of both digital input and output.
• 8 pins are dedicated ground (GND) pins, which serve as reference points for electrical
circuits.
• 2 pins provide 5-volt (5V) power output for connecting higher-power devices.
• 3 pins provide 3.3-volt (3V3) power output for connecting lower-power devices.
• 1 pin is the system clock pin (GPIO 0), and another is the system ground pin (GPIO1).

Fig 3.3:Color indication of GPOIs

Voltages :
Two 5V pins and two 3.3V pins are present on the board, as well as a number of
ground pins (GND), which can not be reconfigured. The remaining pins are all
general-purpose 3.3V pins, meaning outputs are set to 3.3V and inputs are 3.3V-
tolerant.
Outputs:
A GPIO pin designated as an output pin can be set to high (3.3V) or low (0V).
Inputs:
A GPIO pin designated as an input pin can be read as high (3.3V) or low (0V). This is
made easier with the use of internal pull-up or pull-down resistors. Pins GPIO2 and
GPIO3 have fixed pull-up resistors, but for other pins this can be configured in
software.
Other functions:

Department of ECE, Lendi Institute of Engineering and Technology


Integrated LPG Safety and Automation System for Enhanced Household Security

As well as simple input and output devices, the GPIO pins can be used with a variety
of alternative functions, some are available on all pins, others on specific pins.
• PWM (pulse-width modulation)
o Software PWM available on all pins
o Hardware PWM available on GPIO12, GPIO13, GPIO18, GPIO19
• SPI
o SPI0: MOSI (GPIO10); MISO (GPIO9); SCLK (GPIO11); CE0
(GPIO8), CE1 (GPIO7)
o SPI1: MOSI (GPIO20); MISO (GPIO19); SCLK (GPIO21); CE0
(GPIO18); (GPIO17); CE2 (GPIO16)
• I2C
o Data: (GPIO2); Clock (GPIO3)
• EEPROM
o Data: (GPIO0); EEPROM Clock (GPIO1)
• Serial
o TX (GPIO14); RX (GPIO15)

Fig.3.4.RPI SPI and I2C Pins


3.2.ADVANTAGES:
• Compact Size: Raspberry Pi Zero 2 W's small form factor makes it suitable for
projects with limited space or requiring portability.

Department of ECE, Lendi Institute of Engineering and Technology


Integrated LPG Safety and Automation System for Enhanced Household Security

• Built-in Wireless Connectivity: Integrated Wi-Fi and Bluetooth eliminate the need
for additional modules, simplifying setup and reducing costs.
• Powerful Performance: Despite its size, the Raspberry Pi Zero 2 W features a
quadcore processor and 512 MB of RAM, providing ample computing power for
various applications.
• GPIO Pins: The 40-pin GPIO header allows for easy interfacing with external
sensors and devices, enhancing versatility and project capabilities.
• Affordability: Competitive pricing makes the Raspberry Pi Zero 2 W accessible to
hobbyists, educators, and professionals on a tight budget.
• Extensive Software Support: The vibrant Raspberry Pi community offers a wealth
of resources, tutorials, and software libraries, facilitating project development and
troubleshooting.

3.3.INTRODUCTION TO SPARKFUN LOAD COMBINATOR:

The SparkFun Load Sensor Combinator is a bare PCB that combines four load sensors
into a standard four-wire Wheatstone bridge configuration. If you open up an electronic
bathroom scale, you’ll find a large rat's nest of wires. The Load Sensor Combinator was
created to combine the 12 wires found in a bathroom scale into the standard four-wire
Wheatstone bridge configuration.
This board works great with our Load Cell Amplifier breakout board; the five pins on
the edge of the combinator line up directly to the five pins on the amplifier.

Fig.3.5.Load Combinator

Department of ECE, Lendi Institute of Engineering and Technology


Integrated LPG Safety and Automation System for Enhanced Household Security

Specifications:
• The possibility to connect 4 strain-gauge beams in 4-pin Wheatstone's bridge.
• The possibility of mounting a temperature sensor DS18B20.
• The possibility of mounting RJ45 connector.
• Pins: holes forgoldpin connectors - 2.54 mm(strap can be purchased separately)
• Module dimensions: 30 x 22 mm.
3.4. INTRODUCTION TO HX711 DUAL-CHANNEL A/D
WEIGHT PRESSURE SENSOR:

The HX711 Dual-Channel 24 Bit Precision A/D weight Pressure Sensor is a Load
Cell Amplifier breakout board; for the HX711 IC that allows you to easily read load
cells to measure weight. By connecting the module to your micro controller you will
be able to read changes in the resistance of the load cell; some calibration. You’ll
be able to get very accurate weight measurements.
This can be handy for creating your own industrial scale, process control, or simple
presence detection. The HX711 Weighing Sensor uses a two-wire interface (Clock
and Data) for communication. Any microcontroller’s GPIO pins should work and
numerous libraries have been written making it easy to read data from the HX711.
Features:
• Output Sensitivity: 1.0 ± 0.1 mV / V.
• Two selectable differential input channels.
• On-chip active low noise PGA with the selectable gain of 32, 64 and 128.
• On-chip oscillator requiring no external component with optional external crystal.
• On-chip power-on-reset.
• Measurement Resolution: 24 bit.

Department of ECE, Lendi Institute of Engineering and Technology


Integrated LPG Safety and Automation System for Enhanced Household Security

Fig.3.6.HX711 24-bit A/D Converter

3.5.INTRODUCTION TO MQ2 GAS SENSOR:

MQ2 gas sensor is an electronic sensor used for sensing the concentration of gases in
the air such as LPG, propane, methane, hydrogen, alcohol, smoke and carbon monoxide.

MQ2 gas sensor is also known as chemiresistor. It contains a sensing material whose
resistance changes when it comes in contact with the gas. This change in the value of
resistance is used for the detection of gas.

Fig.3.7.MQ2 Gas Sensor


MQ2 is a metal oxide semiconductor type gas sensor. Concentrations of gas in the gas is
measured using a voltage divider network present in the sensor. This sensor works on
5V DC voltage. It can detect gases in the concentration of range 200 to 10000ppm.

Department of ECE, Lendi Institute of Engineering and Technology


Integrated LPG Safety and Automation System for Enhanced Household Security

Working Principle:
This sensor contains a sensing element, mainly aluminium-oxide based ceramic, coated
with Tin dioxide, enclosed in a stainless steel mesh. Sensing element has six connecting
legs attached to it. Two leads are responsible for heating the sensing element, the other
four are used for output signals.
Oxygen gets adsorbed on the surface of sensing material when it is heated in air at high
temperature. Then donor electrons present in tin oxide are attracted towards this oxygen,
thus preventing the current flow.
3.6.INTRODUCTION TO PCF8591 A/D AND D/A CONVERTER:

The PCF8591 is a single-chip, single-supply low-power 8-bit CMOS data acquisition


device with four analog inputs, one analog output and a serial I2C-bus interface. Three
address pins A0, A1 and A2 are used for programming the hardware address, allowing
the use of up to eight devices connected to the I2C-bus without additional hardware.
Address, control and data to and from the device are transferred serially via the two-line
bidirectional I2C-bus.
The functions of the device include analog input multiplexing, on-chip track and hold
function, 8-bit analog-to-digital conversion and an 8-bit digital-to-analog conversion.
The maximum conversion rate is given by the maximum speed of the I2C-bus.

Fig.3.8.PCF8591 A/D and D/A Converter


Features and Benefits:
• Single power supply
• Operating supply voltage 2.5 V to 6.0 V

Department of ECE, Lendi Institute of Engineering and Technology


Integrated LPG Safety and Automation System for Enhanced Household Security

• Low standby current


• Serial input and output via I2C-bus
• I2C address selection by 3 hardware address pins
• Max sampling rate given by I2C-bus speed
• 4 analog inputs configurable as single ended or differential inputs
• Auto-incremented channel selection
• Analog voltage range from VSS to VDD
• On-chip track and hold circuit
• 8-bit successive approximation A/D conversion
• Multiplying DAC with one analog output.
3.7.INTRODUCTION TO STEPPER MOTOR:

Stepper motors convert electricity into rotation. Not only does a stepper motor convert
electrical power into rotation, but it can be very accurately controlled in terms of how
far it will rotate and how fast.
Stepper motors are so named because each pulse of electricity turns the motor one step.
Stepper motors are controlled by a driver, which sends the pulses into the motor causing
it to turn. The number of pulses the motor turns is equal to the number of pulses fed into
the driver. The motor will spin at a rate that is equal to the frequency of those same
pulses.
Stepper motors are very easy to control. Most drivers are looking for 5 volt pulses
which just so happen to be the voltage level of most integrated circuits.
Stepper Motor System:
The diagram below shows a typical stepper motor based system. All of these parts must
be present in one form or another. Each component's performance will have an effect on
the others.

Fig.3.9.Stepper Motor System

Department of ECE, Lendi Institute of Engineering and Technology


Integrated LPG Safety and Automation System for Enhanced Household Security

Fig.3.10.Structure of Stepper Motor


One of the most remarkable features of stepper motors is their ability to position very
accurately. This will be covered in depth later on. Stepper motors are not perfect, there
are always some little inaccuracies. ORIENTAL MOTOR's standard stepper motors
have an accuracy of ± 3 arc minutes (0.05°). The remarkable feature of steps motors,
though, is that this error does not accumulate from step to step. When a standard stepper
motor travels one step it will go 1.8° ± 0.05°. If the same motor travels one million
steps, it will travel 1,800,000° ± 0.05°. The error does not accumulate.
Stepper motors can respond and accelerate quickly. They have low rotor inertia that can
get up to speed quickly. For this reason stepper motors are ideal for short, quick moves.

3.8.INTRODUCTION TO SERVO MOTOR:

A servomotor (or servo motor or simply servo) is a rotary or linear actuator that allows
for precise control of angular or linear position, velocity, and acceleration in a
mechanical system.It constitutes part of a servomechanism, and consists of a suitable
motor coupled to a sensor for position feedback. It also requires a relatively
sophisticated controller, often a dedicated module designed specifically for use with
servomotors.
Servomotors are not a specific class of motor, although the term servomotor is often
used to refer to a motor suitable for use in a closed-loop control system. Servomotors
are used in applications such as robotics, CNC machinery, and automated
manufacturing.

Department of ECE, Lendi Institute of Engineering and Technology


Integrated LPG Safety and Automation System for Enhanced Household Security

Fig.3.11.Servo Motor
Mechanism:
A servomotor is a closed-loop servomechanism that uses position feedback to control its
motion and final position. The input to its control is a signal (either analog or digital)
representing the position commanded for the output shaft.
The motor is paired with some type of position encoder to provide position and speed
feedback. In the simplest case, only the position is measured. The measured position of
the output is compared to the command position (which is an input externally fed to the
controller). If the output position differs from that required, an error signal is generated
which then causes the motor to rotate in either direction, as needed to bring the output
shaft to the appropriate position. As the positions approach, the error signal reduces to
zero, and the motor stops.
The very simplest servomotors use position-only sensing via a potentiometer and bang-
bang control of their motor; the motor always rotates at full speed (or is stopped). This
type of servomotor is not widely used in industrial motion control, but it forms the basis
of the simple and cheap servos used for radio-controlled models.
More sophisticated servomotors make use of an Absolute encoder (a type of rotary
encoder) to calculate the shafts position and infer the speed of the output shaft.[3] A
variable-speed drive is used to control the motor speed.[4] Both of these enhancements,
usually in combination with a PID control algorithm, allow the servomotor to be
brought to its commanded position more quickly and more precisely, with less
overshooting.

Department of ECE, Lendi Institute of Engineering and Technology


Integrated LPG Safety and Automation System for Enhanced Household Security

Department of ECE, Lendi Institute of Engineering and Technology

You might also like