Upload
gounalan-bavani
View
216
Download
0
Tags:
Embed Size (px)
Citation preview
Application Notes
Brigosha Technologies
Water Level Indicator
Introduction
An Water Level Indicator may be
defined as a system by which we can get
the information of any water reservoir.
Water level indicator system are quite
useful to reduce the wastage of water
from any reservoir, while filling such
reservoir.
A simple water level indicator can be
made using the EAB. For this you may
design a water sensor by using any
The wire with Black colour is connected
to Vcc of the EAB. The wires with
colours Blue, Red, Green & Yellow are
adjusted to check Level1, Level2, Level3
and Level4 respectively. Each of these
four wires are connected to the
amplifier. This amplifier will amplify the
signal and will provide the respective
logic to the microcontroller. Then the
program logic inside the
microcontroller will give the respective
Email: [email protected], Website: www.brigosha.comCopyright: Brigosha reserves all rights in the event of industrial property rights. We reserve all rights of disposal such as copying and passing on to third parties. Brigosha is the registered trademark of Brigosha Technologies Pvt. Ltd. Specifications within this document are preliminary and subject to change without notification. Document is not intended for publication.
A simple water level indicator can be
made using the EAB. For this you may
design a water sensor by using any
conducting wires. In this project we
have designed the sensor to measure
water up to four levels.
Take 5 segments of insulated
conducting wires. Tore out the ends of
these wires, approximately 1cm. Adjust
the length of the wire segments
according to the water levels. In the
following diagram it has been displayed
with 5 different colours.
logic to the microcontroller. Then the
program logic inside the
microcontroller will give the respective
output.
Power
Level1
Level2
Level3
Level4
Application Notes
Components
The Components required for building the
water level indicator application are:
� Embedded Application Board
� LED board
� Water Sensor (Conducting Wires)
� Jumpers
� Water Beaker
� Transistor (BC548)
� Resistor(1K and 470 Ohm)
� Breadboard or Vero board. (1 nos)
� Power Supply (9V DC)
� Water
� Salt (optional)
Copyright: Brigosha reserves all rights in the event of industrial property rights. We reserve all rights of disposal such as copying and passing on to third parties. Brigosha is the registered trademark of Brigosha Technologies Pvt. Ltd. Specifications within this document are preliminary and subject to change without notification. Document is not intended for publication.
Application Notes
Block Diagram
Block level representation of the different components of the water level indicator
application.
Schematic Diagram
The Schematic diagram illustrates the circuit connections for designing the application.
AmplifierLevel
SensorEAB
Level
Indicator
Rb
Copyright: Brigosha reserves all rights in the event of industrial property rights. We reserve all rights of disposal such as copying and passing on to third parties. Brigosha is the registered trademark of Brigosha Technologies Pvt. Ltd. Specifications within this document are preliminary and subject to change without notification. Document is not intended for publication.
Power
Level1
Level2
Level3
Level4
Vcc
EAB
nSS2
SCK2
SDI2
SD02
LED
1
LED
2LED
3
LED
4
RC0 RA5 RB4 RC5
Rb
Rb
Rb
Re
Re
Re
Re
Application Notes
Connection Description
Here, each of the wires of the sensor is
connected to an amplifier section. This
section consists of an n-p-n transistor
BC548, one base resistor (1000 Ohm)
and one Emitter resistor (470 Ohm).
The sensor’s available terminal is
connected to one end of the base
resistor. The other end of this resistor is
connected to the base of the transistor.
The collector terminal of the transistor
is directly connected to Vcc. Emitter
resistor is connected in-between
Emitter terminal of the transistor and
GND. The required output of this
The above arrangement should be
repeated four times, for each sensor
terminal. The respective outputs should
be connected to the EAB pins nSS2,
SCK2, SDI2 and SDO2. For this project
the above pins should take data from
Level1, Level2, Level3 and Level4
respectively.
For output, the LEDs are connected to
RC0, RA5, RB4 and RC5.
Note: Any GPIO pin can be used for
this project. Set the particular GPIOpins to output and provide a high
Copyright: Brigosha reserves all rights in the event of industrial property rights. We reserve all rights of disposal such as copying and passing on to third parties. Brigosha is the registered trademark of Brigosha Technologies Pvt. Ltd. Specifications within this document are preliminary and subject to change without notification. Document is not intended for publication.
resistor is connected in-between
Emitter terminal of the transistor and
GND. The required output of this
amplifier section will be available from
the junction of the emitter and the
resistor.
Note: Any GPIO pin can be used for
this project. Set the particular GPIOpins to output and provide a high/low signal to the pin.
Application Notes
Code Flow Chart
Start
1. Define System Clock
2. Library Header File Declaration
Set Oscillator Frequency
Configure I/O pins
while(1)
Yes
No
Main Function()
If
SS2=SCK2=SDI2=SDO2
=0
Read All the Required Port Bits
RC0= Blink
RA5=RB4=RC5=0
YesIfRC0= 1
Copyright: Brigosha reserves all rights in the event of industrial property rights. We reserve all rights of disposal such as copying and passing on to third parties. Brigosha is the registered trademark of Brigosha Technologies Pvt. Ltd. Specifications within this document are preliminary and subject to change without notification. Document is not intended for publication.
Yes
No
If
SS2=1,
SCK2=SDI2=SDO2=0
RC0= 1
RA5=RB4=RC5=0
Yes
No
If
SS2=SCK2=1,
SDI2=SDO2=0
RC0=RA5= 1
RB4=RC5=0
Yes
No
If
SS2=SCK2=SDI2=1,
SDO2=0
RC0=RA5=RB4=1,
RC5=0
YesIf
SS2=SCK2=SDI2=SDO2
=1
RC0=RA5=RB4=RC5=
Blink
Application Notes
Source Code
The Source code shown below is the
firmware to be flashed in the
microcontroller of the Embedded
Application Board. The Source code is
commented for better understanding of
the user.
Refer to the EAB User Guide and the
EAB Programming Guide for more
details on how to Flash(burn)
program(Source Code) in the
microcontroller of the Embedded
Application Board.
Copyright: Brigosha reserves all rights in the event of industrial property rights. We reserve all rights of disposal such as copying and passing on to third parties. Brigosha is the registered trademark of Brigosha Technologies Pvt. Ltd. Specifications within this document are preliminary and subject to change without notification. Document is not intended for publication.
Application Notes
Copyright: Brigosha reserves all rights in the event of industrial property rights. We reserve all rights of disposal such as copying and passing on to third parties. Brigosha is the registered trademark of Brigosha Technologies Pvt. Ltd. Specifications within this document are preliminary and subject to change without notification. Document is not intended for publication.
Application Notes
How to Operate
This is a simple plug-and-play type
project. Follow the steps mentioned
below in order to operate the project…
�Power the EAB, Sensor System and the
Amplifier Circuit with 9V DC. Carefully
check the polarities and then connect
them.
� Place the system in a suitable area.
� Carefully Fill the reservoir and watch.
Output
If there is no water in the reservoir, the
first LED will continue blinking. As you
start filling the reservoir, the
corresponding LEDs will start glowing.
As soon as the water level reaches the
maximum allowable limit, all the LEDs
will start blinking, simultaneously.
Copyright: Brigosha reserves all rights in the event of industrial property rights. We reserve all rights of disposal such as copying and passing on to third parties. Brigosha is the registered trademark of Brigosha Technologies Pvt. Ltd. Specifications within this document are preliminary and subject to change without notification. Document is not intended for publication.
More Projects
Various other applications can be built
using Water Level Sensor and
Embedded Application Board.
Some such applications are given below:
� Water Controlling Syatem
� Alarm systems
� Smart Water Pump.