Professional Documents
Culture Documents
Programming language used in Arduino is just a simplified version of C++ that can easily
replace thousands of wires with words.
ATMEGA328P-PU Microcontroller
The most important element in Arduino Uno R3 is ATMEGA328P-PU is an 8-bit icrocontroller
with flash memory reach to 32k bytes.
They operate at 5 volts. Each pin can provide or receive a maximum of 40 mA and has an
internal pull-up resistor (disconnected by default) of 20-50 k Ohms.
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 analogReference() function.
TWI: A4 or SDA pin and A5 or SCL pin. Support TWI communication using the Wire
library.
AREF: Reference voltage for the analog inputs. Used with analogReference().
Reset: Bring this line LOW to reset the microcontroller. Typically used to add a reset
button to shields which block the one on the board
LCD
5v relay
Motor (pump)
ULN2003
Ultrasonic Sensor
Transformer
Bridge Rectifier
Capacitor C1= 100u, C2= 100p
Lm7812
Arduino
Power Unit:
This unit comprises of the transformer, bridge rectifier, filtering capacitor and a voltage regulator. In this work,
a 5volts and 12volts DC was used, hence the need to use dual voltage source. The regulator 7812 stabilizes the
DC voltage to +12V, while the variable resistor (POT-HG) reduces +12v top +5v needed to power some parts
of the circuitry. This unit is very vital in any electronic circuit as it supplies the required power to each module.
The HC-SR04 ultrasonic sensor is a distance sensing sensor; it works by sending and receiving
ultrasonic signal out with its transducers.
Manufactures : Ultrasonic
Image
Description
This is the HC-SR04 ultrasonic ranging sensor. This economical sensor provides 2cm
to 400cm of non-contact measurement functionality with a ranging accuracy that can
reach up to 3mm. Each HC-SR04 module includes an ultrasonic transmitter, a receiver
and a control circuit.
There are only four pins that you need to worry about on the HC-SR04: VCC (Power),
Trig (Trigger), Echo (Receive), and GND (Ground).
Detail Information
1. Power supply : 5V DC
2. Quiescent current : 2mA
3. Effectual angle : 15 degree
4. Ranging distance : 2cm – 450 cm
5. Resolution : 0.3 cm
1 Vcc The Vcc pin powers the sensor, typically with +5V
2 Trigger Trigger pin is an Input pin. This pin has to be kept high for 10us to initialize measurement by send
wave.
3 Echo Echo pin is an Output pin. This pin goes high for a period of time which will be equal to the time ta
the US wave to return back to the sensor.
In the image above, the VCC pin of the arduino is connected to 5V pin of the Arduino MCU, the
GND pin is connected to the ground pin of the arduino, the Trigger pin is connected to pin 9 of the
arduino, while the Echo pin is connected to pin 10 of the arduino pin.
Figure 4: Basic specification of an Ultrasonic distance sensor
10.2 Process
Water is a gift from the gods and it shouldn’t be wasted. In most houses, we
have water tanks that are filled for regular and daily use of water. We will
switch the water motor on and keep track of the 30 to 90 minutes for the tank
to fill up. Sometimes, the water will fill the tank too fast or too slow,
depending on the amount of water remaining in the tank. The rest of the
storage tank water will be wasted. Sometimes, you have to take a bath, but
your water tank is empty. In order to resolve this issue, there is the automatic
water level controller. There are a lot of ways to control your water levels.
Here we discover the working principle of 3 different types of water level
controllers.
Ultrasonic Level Sensor Working Principle:
10.2.1 Maintenance
[Type here]
One good thing about ultrasound of this frequency is that it can reflect off liquids, so we
can utilize this technology to measure the level of liquids in a tank. All we need to do is
program the arduino in such a way that when the liquid is at certain distances from the
sensor certain things happen, maybe an LED comes ON goes OFF, or a relay is energised to
turn a switch ON or OFF.
Hence, in this project, I will show you how to visually monitor the level of water in a tank
using an LED indicator and automatically switch a water pump ON and OFF when water in
the said tank goes below and above certain thresholds in the tank respectively