Professional Documents
Culture Documents
SERVOSTABILIZER’S TRANSFORMER
& SOFT STARTING USING EMBEDDED
SYSTEMS
A PROJECT REPORT
Submitted by
AJITHKUMAR D 714016105007
ROSHAN J 714016105043
SAMKUMAR R 714016105048
SURYA S 714016105054
BACHELOR OF ENGINEERING
in
COIMBATORE-641 062
APRIL 2020
1
ANNA UNIVERSITY::CHENNAI 600 025
BONAFIDE CERTIFICATE
Certified that this project report “PERFORMANCE MONITORING OF
SERVOSTABILIZER’S TRANSFORMER & SOFT STARTING USING
EMBEDDED SYSTEMS” is the bonafide work of AJITHKUMAR D
(714016105007), ROSHAN J (714016105043), SAMKUMAR R
(714016105048) , SURYA S (714016105054)” who carried out the project work under
my supervision.
SIGNATURE SIGNATURE
2
ACKNOWLEDGEMENT
3
ABSTRACT
A Servo Stabilizer is a Servo motor controlled stabilization system that performs optimum
voltage supply using a Buck\Boost transformer booster that captures voltage fluctuations
from input and regulates current to the correct output. Servo Stabilizers are to be had from
1 KVA 1 ph. To 250 KVA 1 ph and 3 KVA 3 ph to 2000 KVA 3 ph. Three ph. Servo
Stabilizers can be for balanced or for unbalanced input voltages. At some rare cases, these
servo stabilizer attains an error called INRUSH CURRENT, which is the sudden changes
in the input current and if it happens frequently, it may cause damage to the entire systems
connected. To avoid this we have made a setup of softstarting which will not allow the
inrush current and Moreover we have done additional setup of storing this datas in cloud
platform for the future analysis We can access this datas from anywhere at anytime. This
performance monitoring will increase the lifespan of the servo stabilizer and the systems
which was connected via this.
4
TABLE OF CONTENTS
REFERENCE 80
6
S.No LIST OF FIGURES Page No.
7
3.21 Fibre Optic Current Sensors 45
3.22 Low side Current Sensing 46
3.23 High Side Current Sensing 47
3.24 Capacitor & Resistance voltage sensor 49
3.25 Resistive Voltage Sensor 50
3.26 Bridge Type RVS 51
3.27 Voltage Sensor 52
3.28 Temperature Sensor LM35 53
3.29 NODEMCU(ESP8266) 54
3.30 NODEMCU(ESP8266) Pinout 54
3.31 ESP8266 Interface Circuit 56
3.32 Command Setup 58
4.1 Single Phase Non linear load Model 67
4.2 Transformer Energising Model 68
4.3 Line Fault Model 68
4.4 Line Fault Model Output 69
4.5 Transformer Energising model Output 69
4.6 Cloud Data Output 76
8
S.No LIST OF TABLES Page No.
9
LIST OF ABBREVATIONS
ABBREVATION EXPANSION
ES EMBEDDED SYSTEMS
AVR AUTO VOLTAGE REGULATOR
PID PROPORTIONAL INTERGRAL DERIVATIVE
ASIC APPLICATION SPECIFIC INTEGRAL CIRCUIT
DSP DIGITAL SIGNAL PROCESSING
CMSC COMMON MOTOR START CONTROLLER
FFTDU FAN FAILURE AND TEMPERATURE DETECTION UNIT
ESP ELECTRONIC STABILITY PROGRAM
FTDI FUTURE TECHNOLOGIES DEVICE INTERNATIONL
TCP TRANSMISSION CONTROL PROTOCOLS
WIFI WIRELESS FIDELITY
IP INTERNET PROTOCOL
UDP USER DATAGRAM PROTOCOLS
10
CHAPTER I
INTRODUCTION
1.1 EMBEDDED SYSTEMS
An embedded system is a special-purpose computer system designed to
perform one or a few dedicated functions, often with real-time computing constraints. It is
usually embedded as part of a complete device including hardware and mechanical parts.
In contrast, a general-purpose computer, such as a personal computer, can do many
different tasks depending on programming. Embedded systems have become very
important today as they control many of the common devices we use. Since the embedded
system is dedicated to specific tasks, design engineers can optimize it, reducing the size
and cost of the product, or increasing the reliability and performance. Some embedded
systems are mass-produced, benefiting from economies of scale. Physically, embedded
systems are range from portable devices such as digital watches and MP3 players, to large
stationary installations like traffic lights, factory controllers, or the systems controlling
nuclear power plants. Complexity varies from low, with a single microcontroller chip, to
very high with multiple units, peripherals and networks mounted inside a large chassis or
enclosure. In general, "embedded system" is not an exactly defined term, as many systems
have some element of programmability. For example, Handheld computers share some
elements with embedded systems — such as the operating systems and microprocessors
which power them — but are not truly embedded systems, because they allow different
applications to be loaded and peripherals to be connected.
11
Monitor the environment; embedded systems read data from input sensors. This data is
then processed and the results displayed in some format to a user or users
Control the environment; embedded systems generate and transmit commands for
actuators.
Transform the information; embedded systems transform the data collected insome
meaningful way, such as data compression/decompression
Although interaction with the external world via sensors and actuators is an important
aspect of embedded systems, these systems also provide functionality specific to their
applications. Embedded systems typically execute applications such as control laws,
finite state machines, and signal processing algorithms. These systems must also detect
and react to faults in both the internal computing environment as well as the surrounding
electromechanical systems. There are many categories of embedded systems, from
communication devices to home appliances to control systems. Examples include;
Communication devices
e.g.: modems, cellular phones
Home Appliances
e.g.: CD player, VCR, microwave oven
Control Systems
e.g.: Automobile anti-lock braking systems, robotics, and satellite control.
1.3 CHARACTERISTICS OF ES
Embedded systems are characterized by a unique set of characteristics. Each
of these characteristics imposed a specific set of design constraints on embedded systems
designers. The challenge to designing embedded systems is to conform to the specific set
of constraints for the application.
Application Specific Systems
Embedded systems are not general-purpose computers. Embedded system designs are
optimized for a specific application. Many of the job characteristics are known before the
hardware is designed. This allows the designer to focus on the specific design constraints
12
of a well-defined application. As such, there is limited user reprogram ability. Some
embedded systems, however, require the flexibility of reprogram ability. Programmable
DSPs are common for such application
Reactive Systems
As mentioned earlier, a typical embedded systems model responds to the
environment via sensors and control the environment using actuators. This requires
embedded systems to run at the speed of the environment. This characteristic of
embedded system is called “reactive”. Reactive computation means that the system
(primarily the software component) executes in response to external events. External
events can be either periodic or periodic. Periodic events make it easier to schedule
processing to guarantee performance. Periodic events are harder to schedule. The
maximum event arrival rate must be estimated in order to accommodate worst case
situations. Most embedded systems have a significant reactive component.
One of the biggest challenges for embedded system designers is performing an
accurate worst case design analysis on systems with statistical performance
characteristics (e.g., cache memory on a DSP or other embedded processor). Real time
system operation means that the correctness of a computation depends, in part, on the
time at which it is delivered. Systems with this requirement must often design to worst
case performance. But accurately predicting the worst case may be difficult on
complicated architectures. This often leads to overly pessimistic estimates erring on the
side of caution. Many embedded systems have a significant requirement for real time
operation in order to meet external I/O and control stability requirements. Many real-time
systems are also reactive systems.
Distributed Systems
A common characteristic of an embedded system is one that consists of
communicating processes executing on several CPUs or ASICs which are connected by
communication links. The reason for this is economy. Economical 4 8-bit
microcontrollers may be cheaper than 32-bit processors. Even after adding the cost of the
communication links, this approach may be preferable. In this approach, multiple
13
processors are usually required to handle multiple time-critical tasks. Devices under
control of embedded systems may also be physically distributed.
1.4 HETROGENEOUS ARCHITECTURES
Embedded systems often are composed of heterogeneous architectures (Fig 1.2).
They may contain different processors in the same system solution. They may also be
mixed signal systems. The combination of I/O interfaces, local and remote memories, and
sensors and actuators makes embedded system design truly unique. Embedded systems
also have tight design constraints, and heterogeneity provides better design flexibility.
16
CHAPTER II
REVIEW OF LITERATURE
DESCRIPTION:
This research aims in designing the low cost and the cheapest power conditioning servo
controlled automatic voltage stabilizer. The servo controlled stabilizer is widely used in
the industrial application to obtain the stable voltage to the electrical equipments. This
stabilizer will maintain, monitor, and correct the desired output voltage by adding or
subtracting the required amount of voltage to/from the input voltage. This stabilizer will
constantly monitor the output voltage and controls the variation in the voltage by
movements of a motor. We design the servo controlled automatic voltage stabilizer
depending upon the load of the customer. The variable supply voltage conditions are
controlled by use of servo stabilizer. Servo controlled automatic voltage stabilizer can
controlled all types of loads viz, inductive, resistive, and capacitive loads. Servo
stabilizers can be for balanced or for unbalanced input voltages. There are various
stabilizer available from 1KVA 1PH to 250KVA 1PH and 3KVA 3PH to 2000KVA
3PH.3PH.The care should be taken that while ordering the servo controlled stabilizer its
capacity should be more than twenty percent more than the maximum load.
17
2.2 TITLE: DESIGN AND CONSTRUCTION OF AN AUTOMATIC VOLTAGE
REGULATOR FOR DIESEL ENGINE TYPE STAND-ALONE SYNCHRONOUS
GENERATOR
YEAR: 2008
AUTHOR: Mu MuHtay
DESCRIPTION:
Diesel-electric stations have some advantages over other types of station, particularly in
comparatively small sizes. A diesel station can be started and stopped quickly as and
when required. It does not need any warming period, and need not be kept running for a
long time before picking up load. There are thus no standby losses as in steam stations..
A diesel station does not need a large amount of water for cooling. For this station,,
synchronous generator is used to generate electricity. This paper presents the excitation
control system in generator operation. The topic of this paper involves the design and
construction of excitation control (or) Automatic Voltage Regulator (AVR) for the
synchronous generator. It is necessary to develop the electronic control system for the
machine. The Automatic Voltage Regulator (AVR) is widely used in electrical power
field to obtain the stability and good regulation of the electric system. The characteristics
of alternator output required are constant voltage and constant current. To get the constant
output, alternator field excitation is controlled by Automatic Voltage Regulator (AVR).
The Automatic Voltage Regulator maintains the constant voltage up to certain level of
load current independently of generator speed and load. This paper deals with the design
and construction of excitation control for synchronous generator and introduces the
electronic control technology. The main objective of this paper is to modify the AVR with
SCR device technology. On completion of this paper, the constructed circuit will improve
the overall effectiveness of the synchronous generator. This includes a more accurate
18
measurement of voltage and current, as well as improving the response time and system
stability.
19
2.4 TITLE:PID CONTROLLER FOR AUTOMATIC VOLTAGE REGULATOR
USING TEACHING–LEARNING BASED OPTIMIZATION TECHNIQUE
YEAR: 2016
AUTHOR:Shamik Chatterjee
DESCRIPTION:
The present work presents teaching-learning based optimization (TLBO) algorithm as an
optimization technique in the area of tuning of the classical controller installed in
automatic voltage regulator (AVR). The proposed TLBO algorithm is applied with an
aim to find out the optimum value of proportional integral derivative (PID) controller
gains with first order low pass filter installed in the AVR. The voltage response of the
AVR system, as obtained by using the proposed TLBO based PID controller with first
order low pass filter, is compared to those offered by the other algorithms reported in the
recent state-of-the-art literatures. The advantage of using this control strategy may be
noted by providing good dynamic responses over a wide range of system parametric
variations. For on-line, off-nominal operating conditions, fast acting Sugeno fuzzy logic
technique is applied to obtain the on-line dynamic responses of the studied model.
Furthermore, robustness analysis is also carried out to check the performance of the
designed TLBO based PID controller. An analysis, based on voltage response profile, has
been investigated with the variations of the model parameters. The simulation results
show that the proposed TLBO based PID controller is a significant optimization tool in
the subject area of the AVR system. The essence of the present work signifies that the
proposed TLBO technique maybe, successfully, applied for the AVR of power system.
20
2.5 TITLE:DESIGN AND IMPLIMENTATION OF AN AUTOMATIC VOLTAGE
REGULATOR WITH GREAT PECISION AND PROPER HYSTRESIS
YEAR: 2015
AUTHOR:Mohammad Shah Alamgir
DESCRIPTION:
This research aims at the designing and implementation of an Automatic Voltage
Regulator (AVR) with higher precision and hysteresis. AC power supplied by PDB
(Power development board) in Bangladesh is subjected to variation from time to time.
Moreover in rural areas supplied voltage remains lower than specified. This causes a
considerable threat to the sophisticated electronic devices like computer, refrigerator,
television etc. So ensuring the input voltage to remain in a tolerable pre-specified limit
has become a necessity in rural as well as some urban areas. Current systems available
locally lacks precision and suffers the problem of oscillating between two output voltage
and hence creating surge at the output which can damage valuable electronics. This
research handled both shortcomings and introduced in the tolerable range of 215-237 volt
using several taps. Hysteresis has been introduced while changing from one level to other
and thus preventing oscillation.
21
CHAPTER III
MATERIALS AMD METHODS
Six LEDs :
1. Four LEDs to indicate status of individual fans.
2. One LED to indicate FAN STALL - common to all fans.
3. One LED to indicate FAN OPEN - common to all fans.
22
Six Relays :
1. Four Relays to control fans
2. One Relay to indicate Over Temperature condition.
3. One Relay to indicate OPEN/STALL condition.
Four CAPACITIVE TOUCH SENSITIVE KEYS to program Temperature set
value & other functional parameters.
Isolated 4-20 mA signal (optional).
Buzzer to annunciate over temperature.
Works between 88V AC to 257V AC.
Mounted on standard DIN RAIL profile.
Assured galvanic isolation for the user interface keypad even when Phase and
Neutral are interchanged.
Weighs less than 1Kg.
Measures 45mm X 78mm X 180 mm (excluding DIN rail mount).
23
3.2 WHY SERVO STABILIZER MONITORING?
27
3.3.1 BLOCK DIAGRAM
28
The Arduino Uno is a microcontroller board based on the ATmega328 (datasheet). It
has 14 digital input/output pins (of which 6 can be used as PWM outputs), 6 analog inputs,
a 16 MHz crystal oscillator, a USB connection, a power jack, an ICSP header, and a reset
button. It contains everything needed to support the microcontroller; simply connect it to a
computer with a USB cable or power it with a AC-to-DC adapter or battery to get started.
The Uno differs from all preceding boards in that it does not use the FTDI USB-to-serial
driver chip. Instead, it features the Atmega8U2 programmed as a USB-to-serial converter.
"Uno" means one in Italian and is named to mark the upcoming release of Arduino 1.0. The
Uno and version 1.0 will be the reference versions of Arduino, moving forward. The Uno
is the latest in a series of USB Arduino boards, and the reference model for the Arduino
platform; for a comparison with previous versions, see the index of Arduino boards.
Microcontroller ATmega328
Operating Voltage 5V
Input Voltage (recommended) 7-9V
Input Voltage (limits) 6-20V
Digital I/O Pins 14 (of which 6 provide PWM output)
Analog Input Pins 6
DC Current per I/O Pin 40 mA
DC Current for 3.3V Pin 50 mA
Flash Memory 32 KB (ATmega328) (0.5 KB used by bootloader)
SRAM 2 KB (ATmega328)
EEPROM 1 KB (ATmega328)
Clock Speed 16 MHz
Power
29
The Arduino Uno can be powered via the USB connection or with an external power
supply.The power source is selectedautomatically. External (non-USB) power can
come either from an AC-to-DC adapter (wall-wart) or battery. The adapter can be
connected by plugging a 2.1mm centre-positive plug into the board's power jack.
Leads from a battery can be inserted in the Gnd and Vin pin headers of the POWER
connector. The board can operate on an external supply of 6 to 20 volts. If supplied
with less than 7V, however, the 5V pin may supply less than five volts and the board
may be unstable. If using more than 12V, the voltage regulator may overheat and
damage the board. The recommended range is 7 to 12 volts.
The power pins are as follows:
VIN. The input voltage to the Arduino board when it's using an external power
source (as opposed to 5 volts from the USB connection or other regulated power source).
You can supply voltage through this pin, or, if supplying voltage via the power jack,
access itthrough thispin.
5V. The regulated power supply used to power the microcontroller and other
components on the board. This can come either from VIN via an on-board regulator, or
be supplied by USB or another regulated 5V supply.
3V3. A 3.3 volt supply generated by the on-board regulator. Maximum current draw
is 50mA.
GND. Ground pins.
Memory
The ATmega328 has 32 KB (with 0.5 KB used for the bootloader). It also has 2 KB of
SRAM and 1 KB of EEPROM (which can be read and written with the EEPROM
library)
Each of the 14 digital pins on the Uno can be used as an input or output, using pin Mode
(), digital Write(), and digital Read() functions. They operate at 5 volts. Each pin can
provide or receive a maximum of 40 mA and has an internal pull-up resistor
30
(disconnected by default) of 20-50 kOhms. In addition, some pins have specialized
functions:
Serial: 0 (RX) and 1 (TX). Used to receive (RX) and transmit (TX) TTL serial
data. These pins are connected to the corresponding pins of the ATmega8U2
USB-to-TTL Serialchip.
External Interrupts: 2 and 3. These pins can be configured to trigger an
interrupt on alow value, a rising or falling edge, or a change in value. See the
attachInterrupt() function for details.
PWM: 3, 5, 6, 9, 10, and 11. Provide 8-bit PWM output with the
analogWrite()function.
SPI: 10 (SS), 11 (MOSI), 12 (MISO), 13 (SCK). These pins support SPI
communication using the SPIlibrary.
LED: 13. There is a built-in LED connected to digital pin 13. Whenthe pin is
HIGH value, the LED is on, when the pin is LOW, it'soff.
The Uno has 6 analog inputs, labeled A0 through A5, each of which provide 10 bits
of resolution (i.e. 1024 different values). By default they measure from ground to 5
volts, though is it possible to change the upper end of their range using the AREF
pin and the analog Reference() function. Additionally, some pins have specialized
functionality:
I2C: 4 (SDA) and 5 (SCL). Support I2C (TWI) communication using the
Wirelibrary.
There are a couple of other pins on the board:
AREF. Reference voltage for the analog inputs. Used with analog Reference ().
Reset. Bring this line LOW to reset the microcontroller. Typically used to add a
reset buttonto shields which block the one on theboard.
Communication
The Arduino Uno has a number of facilities for communicating with a computer,
another Arduino, or other microcontrollers. The ATmega328 provides UART TTL (5V)
31
serial communication, which is available on digital pins 0 (RX) and 1 (TX). An
ATmega8U2 on the board channels this serial communication over USB and appears as
a virtual com port to software on the computer. The '8U2 firmware uses the standard USB
COM drivers, and no external driver is needed. However, on Windows, a .inf file is
required. The Arduino software includes a serial monitor which allows simple textual
data to be sent to and from the Arduino board.
The RX and TX LEDs on the board will flash when data is being transmitted via
the USB-to-serial chip and USB connection to the computer (but not for serial
communication on pins 0 and 1). A Software Serial libraryallows for serial
communication on any of the Uno's digital pins. The ATmega328 also supports I2C
(TWI) and SPI communication. The Arduino software includes a Wire library to simplify
use of the I2C bus; see the documentation for details. For SPI communication, use the
SPI library.
Programming
The Arduino Uno can be programmed with the Arduino software (download).
Select "Arduino Uno from the Tools > Board menu (according to the microcontroller on
your board). The ATmega328 on the Arduino Uno comes preburned with a boot loader
that allows you to upload new code to it without the use of an external hardware
programmer. It communicates using the original STK500 protocol (reference, C header
files). You can also bypass the bootloader and program the microcontroller through the
ICSP (In-Circuit Serial Programming) header; see these instructionsfor details. The
ATmega8U2 firmware source code is available . The ATmega8U2 is loaded with a DFU
bootloader, which can be activated by connecting the solder jumper on the back of the
board (near the map of Italy) and then resetting the 8U2. You can then use Atmel's FLIP
software (Windows) or the DFU programmer (Mac OS X and Linux) to load a new
firmware. Or you can use the ISP header with an external programmer (overwriting the
DFU bootloader). See this user-contributed tutorial for more information.
32
Rather than requiring a physical press of the reset button before an upload, the
Arduino Uno is designed in a way that allows it to be reset by software running on a
connected computer. One of the hardware flow control lines (DTR) of the ATmega8U2 is
connected to the reset line of the ATmega328 via a 100 nanofarad capacitor. When this
line is asserted (taken low), the reset line drops long enough to reset the chip. The Arduino
software uses this capability to allow you to upload code by simply pressing the upload
button in the Arduino environment.
This means that the bootloader can have a shorter timeout, as the lowering of DTR
can be well-coordinated with the start of theupload. This setup has other implications.
When the Uno is connected to either a computer running Mac OS X or Linux, it resets
each time a connection is made to it from software (via USB). For the following half-
second or so, the bootloader is running on the Uno. While it is programmed to ignore
malformed data (i.e. anything besides an upload of new code), it will intercept the first
few bytes of data sent to the board after a connection is opened. If a sketch running on the
board receives one-time configuration or other data when it first starts, make sure that the
software with which it communicates waits a second after opening the connection and
before sending this data. The Uno contains a trace that can be cut to disable the auto-reset.
The pads on either side of the trace can be soldered together to re-enable it. It's labeled
"RESET-EN". You may also be able to disable the auto-reset by connecting a 110 ohm
resistor from 5V to the reset line; see this forum thread for details.
The Arduino Uno has a resettable polyfuse that protects your computer's USB ports
from shorts and overcurrent. Although most computers provide their own internal
protection, the fuse provides an extra layer of protection. If more than 500 mA is applied
to the USB port, the fuse will automatically break the connection until the short or
overload is removed.
33
Physical Characteristics
The maximum length and width of the Uno PCB are 2.7 and 2.1 inches
respectively, with the USB connector and power jack extending beyond the former
dimension. Four screw holes allow the board to be attached to a surface or case. Note that
the distance between digital pins 7 and 8 is 160 mil (0.16"), not an even multiple of the
100 mil spacing of the other pins.
3.5 RELAY
The relay is the device that opens or closes the contacts to cause the operation of the other
electric control. It detects the intolerable or undesirable condition with an assigned area
and gives the commands to the circuit breaker to disconnect the affected area. Thus
protects the system from damage.
34
Fig3.6 Relay circuit diagram
This magnetic field moves the relay armature for opening or closing the connections.
The small power relay has only one contact, and the high power relay has two contacts
for opening the switch. The inner section of the relay is shown in the figure below. It has
an iron core which is wound by a control coil. The power supply is given to the coil
through the contacts of the load and the control switch. The current flows through the coil
produce the magnetic field around it. Due to this magnetic field, the upper arm of the
magnet attracts the lower arm. Hence close the circuit, which makes the current flow
through the load. If the contact is already closed, then it moves oppositely and hence open
the contacts.
The pole and throws are the configurations of the relay, where the pole is the
switch, and the throw is the number of connections. The single pole, the single throw is
the simplest type of relay which has only one switch and only one possible connection.
Similarly, the single pole double throw relay has a one switch and two possible
connections.
35
Construction of Relay
Contacts – The contacts are the most important part of the relay that affects the reliability.
The good contact gives limited contact resistance and reduced contact wear. The selection
of the contact material depends upon the several factors like nature of the current to be
interrupted, the magnitude of the current to be interrupted, frequency and voltage of
operation.
Bearing – The bearing may be a single ball, multi-ball, pivot-ball and jewel bearing. The
single ball bearing is used for high sensitivity and low friction. The multi-ball bearing
provides low friction and greater resistance to shock.
Terminations and Housing – The assembly of an armature with the magnet and the base
is made with the help of spring. The spring is insulated from the armature by moulded
blocks which provide dimensional stability. The fixed contacts are usually spot welded
on the terminal link.
36
Measuring a voltage in any system is a “passive” activity as it can be done easily
at any point in the system without affecting the system performance. However, current
measurement is “intrusive” as it demands insertion of some type of sensor which
introduces a risk of affecting system performance. Current measurement is of vital
importance in many power and instrumentation systems. Traditionally, current sensing
was primarily for circuit protection and control. However, with the advancement in
technology, current sensing has emerged as a method to monitor and enhance
performance.
38
Fig.3.10 An Image of a Current Sensing Resistor
40
This method is a practical technique used for current sensing in many new power
MOSFET applications. A current-sensing FET in parallel with the power MOSFET is
used. The effective width of the sense MOSFET (sense-FET) is significantly smaller
(~10000 times) than the power FET. The accuracy of the sense-FET technique is about
±20%. · Sensorless (Observer) Approach. This method uses the inductor voltage to
measure the inductor current. Since the voltage-current relation of the inductor is
v=L*di/dt, the inductor current can be estimated by integrating the voltage over time. To
avoid saturation in the integrator, it is reset periodically, and therefore only AC ripple
current is estimated. The value of L also should be known for this technique.
41
This current-sensing technique uses a simple low -pass RC network to filter the
voltage across the inductor and sense the current through the equivalent series resistance
(ESR) of the inductor.
43
Fig.3.16 A Figure Explaining Current Sensors based on Open Loop Hall Effect
Technology
Probe placed in the airgap of the magnetic circuit provides a voltage proportional to the
magnetic flux. This voltage itself is proportional to Ip is amplified and is used for further
processing.The linearity of the open-loop sensor is determined by the characteristics of
the magnetic core and the Hall generator. Offset drift over temperature is determined
primarily by the temperature sensitivity of the Hall generator.
Fig3.17 A Figure Explaining Current Sensors based on Closed Loop Hall Effect
Technology
Hall probe placed in the airgap of the magnetic circuit provides a voltage proportional to
the magnetic flux. This voltage is fed into a push-pull driver stage that drives the coil
wound in series opposition on the magnetic core.
Thus, it creates a magnetic field equal to and opposite to the field of the sensed current:
maintaining the core flux level near zero. The secondary current cancels out the primary
magnetic flux that created it (contra reaction). The output of the closed loop sensor is
proportional to the aperture current and the number of turns of the coil. Closed loop
44
approach allows significant improvements in sensor performance by eliminating the
influence of non-linearities in the magnetic core and by reducing the effects of
temperature sensitivity in the Hall element
Electronic technology
47
a) Advantages:
¨ Low input Common mode voltage
¨ Ground referenced input and output
¨ Simplicity and low cost
b) Disadvantages:
¨ Ground path disturbance
¨ Load is lifted from system ground since RSEN adds undesirable resistance to the
ground path.
¨ High load current caused by accidental short goes undetected
Low –side current sensing should be chosen when short circuit detection is not required
and ground disturbances can be tolerated.
48
¨ Complexity and higher costs
High –side current sensing should be chosen when VCM range of the Difference amplifier
is wide enough to withstand high Common mode input voltages.
3.7 VOLTAGE SENSOR
A voltage sensor is a sensor is used to calculate and monitor the amount of voltage
in an object. Voltage sensors can determine both the AC voltage or DC voltage level. The
input of this sensor can be the voltage whereas the output is the switches, analog voltage
signal, a current signal, an audible signal, etc.Sensors are basically a device which can
sense or identify and react to certain types of electrical or some optical signals.
Implementation of voltage sensor and current sensor techniques have become an excellent
choice to the conventional current and voltage measurement methods.
It is non-saturable.
Eco-friendly.
It is possible to combine both the voltage and current measurement into a single
physical device with small and compact dimensions.
50
The relation between voltage and capacitance is
Q → Charge (Coulomb)
C → Capacitance (Farad)
XC → capacitive reactance (Ω)
f → Frequency (Hertz)
From the above two relations, we can clearly state that the highest voltage will
build up across smallest capacitor. The capacitor voltage sensors work based on this
simple principle. Consider we are holding the sensor in our hand and then placing the tip
of it near a live conductor. Here, we are inserting the sensing element of high impedance
into a series capacitive coupling circuit. In this moment, the tip of the sensor is the
smallest capacitor which is coupled to the live voltage. Thus, the whole voltage will
develop across the sensing circuit and it can detect voltage and indicator like light or
buzzer sound is turned on. This is how the non-contact voltage sensors that you use at
home work.
Resistive Voltage Sensor
There are two ways in converting the resistance of the sensing element to the voltage.
First one is the simplest method that is to provide a voltage to the resistor divider circuit
comprises of a sensor and a reference resistor which is represented below.
51
Fig.3.25 Resistive Voltage Sensor
The voltage that is developed across the reference resistor or sensor is buffered and
then given to the ADC. The output voltage of the sensor can be expressed as
The drawback of this circuit is the amplifier present here will amplify the whole voltage
developed across the sensor. But it is better to amplify only the voltage change due to
the change in resistance of the sensor. This is achieved by the second method
implementing the resistance bridge which is shown below.
52
Here, the output voltage is
Load sensing.
Safety switching.
Temperature control.
53
Power demand control.
Fault detection.
55
front-end module, is designed to occupy minimal PCB area. The ESP8266 supports
APSD for VoIP applications and Bluetooth co-existence interfaces; it contains a self-
calibrated RF allowing it to work under all operating conditions, and requires no external
RF parts.
INTERFACE CIRCUIT:
When power is applied to the module you should see the red power light turn on and the
blue serial indicator light flicker briefly.
Testing the module via FTDI (or a USB-to-Serial cable)
Before connecting the module to a microcontroller, it's important to try it directly via a
serial interface. An easy solution is to use a 3V3 FTDI cable. Note that the module is not
designed for more than 3.6V, so a 3.3V power supply should be used - both for power and
logic. The current batch of the FTDI cables deliver 5V in the supply rail even for the 3V3
57
version. Apparently, this is an error made by the manufacturer, so it might be corrected at
some point.
1. Connect the RX/TX pins in a 3v3 FTDI cable to the TX/RX pins in the ESP
module.
2. Connect a 3v3 power supply to the VCC/GND pins. Note that it is possible to use
an Arduino 3v3 supply for this.
3. Connect the CH_PID pin to VCC as well.
The rest of the pins should be floating. However, be prepared to occasionally ground the
RST pin. This would help if the board is stuck on some communication.
OPERATION
SERIAL CONTROL
Once you have opened the Serial monitor, you must set the first option to NL & CR and
the baud rate. For this newer model, the default baud rate is 9600, for the older is
115200.
COMMAND DESCRIPTION
Each Command set contains four types of AT commands.
Command
Type Format DescrIPtion
58
Set the value of user-defined parameters in commands
and
Set AT+<x>=<…>
run.
AT+CWSAP="ESP756290","21030826",1,4
3. Baudrate = 115200
Connect ESP 8266 to max3232 with pc as using micro c terminal to send serial at
59
commands to wifi.
AT – Test AT start up
The type of this command is "executed". It's used to test the setup function of your
AT – Test AT start-up
Response OK
Parameters null
TABLE.3.3 Start – up
The type of this command is "executed". It’s used to restart the module.
60
AT+GMR – View version info
<AT version
info>
<SDK version info>
Response <compile time>
OK
<AT version
info> information about AT version
Parameters <SDK version info> information about SDK version
<compile time> time of the bin was compiled
61
AT+CWMODE – Wifi mode
The function of this AT command is to get the value scope of Wifi mode, including
station mode, softAP mode, and station+softAP mode, enquiry about the information of
WiFi mode, or set the WiFi mode.
Command AT+CWMODE=?
+CWMODE:( value scope of <mode>)
Response
OK
Parameters Please refer to AT command settings.
Command AT+CWMODE?
+CWMODE:<mode>
Response
OK
Parameters Please refer to AT command settings.
Command AT+CWMODE=<mode>
Response OK
<mode>
1 : station mode
Parameters
2 : softAP mode
3 : softAP + station mode
This setting will be stored in the flash system parameter area. It won’t
be erased
Notes
even when the power is off and restarted.
62
AT+CWLAP – List available APs
63
AT+CWJAP – Connect to AP
TABLE.3.8 Connect to Ap
AT+CWJAP – Connect to AP
Please use AT+CWJAP_CUR or AT+CWJAP_DEF instead.
• AT+CWJAP ="abc","0123456789"
• If SSID is "ab/,c" and password is "0123456789"/"
Example AT+CWJAP =“ab///,c","0123456789/"//"
• If several APs have the same SSID as “abc”,target AP can be found
by bssid:
AT+CWJAP =“abc”,“0123456789”,”ca:d7:19:d8:a6:44”
Command AT+CWJAP?
+CWJAP:<ssid>,<bssid>,<channel>,<rssi>
Response
OK
Parameters <ssid>string, AP’s SSID
Command AT+CWJAP=<ssid>,<pwd>[,<bssid>]
OK
or
Response +CWJAP:<error code>
FAIL
<ssid> string, AP’s SSID
<pwd> string, MAX: 64 bytes ASCII
[<bssid>] string, AP’s MAC address, for several APs may have the same
SSID
<error code> only for reference,it’s not reliable
<error code> 1 connecting timeout
<error code> 2 wrong password
Parameters <error code> 3 can not found target AP
<error code> 4 connect fail
65
AT+CIPSERVER – Configure as TCP server
Server monitor will automatically be created when Server is created. When a client is
66
AT+CIFSR – Get local IP address
67
TABLE.3.12 Close TCP or UDP connection
CHAPTER IV
68
4.3 SIMULINK MODEL
69
Fig.4.1 Single phase Non Linear Load model
70
Fig.4.3. Line fault model
71
Fig.4.5. Transformer Energising model output
float current = 0;
float temp = 0;
int volt=0;
inti=1;
void setup() {
Serial.begin(9600);
pinMode(3,OUTPUT);
72
pinMode(4,OUTPUT);
pinMode(5,OUTPUT);
pinMode(6,OUTPUT);
digitalWrite(4,HIGH);
digitalWrite(6,HIGH);
}
void loop() {
String data;
current = analogRead(A0);
volt=analogRead(A1);
temp=analogRead(A2);;
if (current>5)
{
digitalWrite(4,LOW);
i=1;
delay(10000);
}
if(current<5 &&i==1){
digitalWrite(4,HIGH);
analogWrite(3,10);
delay(1000);
analogWrite(3,100);
delay(1000);
analogWrite(3,255);
delay(1000);
73
i=0;
}
if (temp>70)
{
digitalWrite(6,LOW);
// digitalWrite(6,HIGH);
}
//
//
data=String(current)+"%"+String(volt)+"@"+String(temp)+"$";
Serial.println(data);
delay(1000);
}
#include <ESP8266WiFi.h>
#include <SoftwareSerial.h>
String apiKey = "1ZBV9OHTEJTND41Z"; // Enter your Write API key from
ThingSpeak
const char *ssid = "Suryamoorthy"; // replace with your wifissid and wpa2 key
74
const char *pass = "12345678";
const char* server = "api.thingspeak.com";
int count=1;
WiFiClient client;
void setup()
{
Serial.begin(9600);
delay(10);
Serial.println("Connecting to ");
Serial.println(ssid);
WiFi.begin(ssid, pass);
void loop()
{
String data;
String current="0";
String volt="0";
String temp="0";
if(Serial.available()){
String data=Serial.readStringUntil('%');
data.trim();
current=data;
data=Serial.readStringUntil('@');
data.trim();
volt=data;
data=Serial.readStringUntil('$');
data.trim();
temp=data;
}
Serial.print("current=");
Serial.print(current);
Serial.print("Volt=");
76
Serial.print(volt);
Serial.print("temp=");
Serial.print(temp);
postStr += "\r\n\r\n";
77
/*//Serial.print("Temperature: ");
Serial.print(latitude);
Serial.print(" degrees Celcius, Humidity: ");
Serial.print(longitude);*/
Serial.println("%. Send to Thingspeak.");
}
client.stop();
// Serial.println("Waiting...");
// thingspeak needs minimum 15 sec delay between updates, i've set it to 30 seconds
// delay(10000);
}
78
4.6 CLOUD DATA OUPUT
79
CHAPTER V
By applying these replacements with the same circuit setup. We can develop a product
which can be fetched with with industrial equipment.
80
5.2 OBSERVATIONS
TABLE:5.2.OBSERVATIONS
5.3 CONCLUSION
Hence by this project we can constantly monitors the output voltage and controls the
variations in the input voltage by movements they pro type of the proposed system has
been developed here we design a servo stabilizer transformer monitoring system.
Using the help of sensors we can sense that variations in current, voltage temperature
81
in the transformer. We can sense the both input & output variations of the transformer
before this changes because any damage in transformer we will cut off the supply. This
is a stabilizer which constantly video display units the output voltage and controls the
variations in the enter voltage via movements of switch is ON and OFF condition, have
been seen in bulb.
82
REFERENCES
83