Sie sind auf Seite 1von 8

Brigosha Technologies

Application Notes
Water Level Indicator
Introduction
An Water Level Indicator may be

The wire with Black colour is connected

defined as a system by which we can get

to Vcc of the EAB. The wires with

the information of any water reservoir.

colours Blue, Red, Green & Yellow are

Water level indicator system are quite

adjusted to check Level1, Level2, Level3

useful to reduce the wastage of water

and Level4 respectively. Each of these

from any reservoir, while filling such

four

reservoir.

amplifier. This amplifier will amplify the

wires

are

connected

to the

signal and will provide the respective


A simple water level indicator can be

logic to the microcontroller. Then the

made using the EAB. For this you may

program

design a water sensor by using any

microcontroller will give the respective

conducting wires. In this project we

output.

logic

inside

the

have designed the sensor to measure


water up to four levels.

Take

segments

of

insulated

conducting wires. Tore out the ends of

Level4

these wires, approximately 1cm. Adjust


the length of the wire segments
according to the water levels. In the

Level3

Level2

following diagram it has been displayed


with 5 different colours.

Level1
Power

Email: info@brigosha.com, Website: www.brigosha.com


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

Components
The Components required for building the
water level indicator application are:
Embedded Application Board

Resistor(1K and 470 Ohm)

LED board

Breadboard or Vero board. (1 nos)

Water Sensor (Conducting Wires)

Power Supply (9V DC)

Jumpers

Water

Water Beaker

Salt (optional)

Transistor (BC548)

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.

Level
Sensor

Level
Indicator

EAB

Amplifier

Schematic Diagram
The Schematic diagram illustrates the circuit connections for designing the application.

Rb

Re

SD02
SDI2

Rb

Re

EAB
SCK2

Level4

Rb

nSS2
RC0 RA5 RB4 RC5

Re

Level3

Level2
Level1
Power

Vcc

LED
1

Rb

LED
2

LED
3

Re

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.

LED
4

Application Notes
Connection Description
Here, each of the wires of the sensor is

The above arrangement should be

connected to an amplifier section. This

repeated four times, for each sensor

section consists of an n-p-n transistor

terminal. The respective outputs should

BC548, one base resistor (1000 Ohm)

be connected to the EAB pins nSS2,

and one Emitter resistor (470 Ohm).

SCK2, SDI2 and SDO2. For this project

The sensors available terminal is

the above pins should take data from

connected to one end of the base

Level1, Level2, Level3 and Level4

resistor. The other end of this resistor is

respectively.

connected to the base of the transistor.


The collector terminal of the transistor

For output, the LEDs are connected to

is directly connected to Vcc. Emitter

RC0, RA5, RB4 and RC5.

resistor

is

connected

in-between

Emitter terminal of the transistor and


GND. The required output of this
amplifier section will be available from

Note: Any GPIO pin can be used for


this project. Set the particular GPIO
pins to output and provide a high
/low signal to the pin.

the junction of the emitter and the


resistor.

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
Code Flow Chart
Start

Main Function()

1.
2.

Define System Clock


Library Header File Declaration

Set Oscillator Frequency


Configure I/O pins

while(1)
Read All the Required Port Bits

If
SS2=SCK2=SDI2=SDO2
=0

Yes

RC0= Blink
RA5=RB4=RC5=0

No
If
SS2=1,
SCK2=SDI2=SDO2=0

Yes

RC0= 1
RA5=RB4=RC5=0

No
If
SS2=SCK2=1,
SDI2=SDO2=0

Yes

RC0=RA5= 1
RB4=RC5=0

No
If
SS2=SCK2=SDI2=1,
SDO2=0

Yes

RC0=RA5=RB4=1,
RC5=0

No
If
SS2=SCK2=SDI2=SDO2
=1

Yes

RC0=RA5=RB4=RC5=
Blink

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
Source Code
The Source code shown below is the

Refer to the EAB User Guide and the

firmware

EAB Programming Guide for more

to

microcontroller

be
of

flashed
the

in

the

Embedded

details

on

how

Application Board. The Source code is

program(Source

commented for better understanding of

microcontroller

the user.

Application Board.

to
Code)

of

the

Flash(burn)
in

the

Embedded

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

Output

This is a simple plug-and-play type

If there is no water in the reservoir, the

project. Follow the steps mentioned

first LED will continue blinking. As you

below in order to operate the project

start

filling

the

reservoir,

the

Power the EAB, Sensor System and the

corresponding LEDs will start glowing.

Amplifier Circuit with 9V DC. Carefully

As soon as the water level reaches the

check the polarities and then connect

maximum allowable limit, all the LEDs

them.

will start blinking, simultaneously.

Place the system in a suitable area.


Carefully Fill the reservoir and watch.

Some such applications are given below:

More Projects
Various other applications can be built

Water Controlling Syatem

using

Alarm systems

Water

Level

Sensor

Embedded Application Board.

and

Smart Water Pump.

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.