Вы находитесь на странице: 1из 22

A

Project Report On

Hydroponic System
(STM32 Microcontroller Project)


SUBMITTED IN PARTIAL FULFILLMENT
FOR THE AWARD OF

PG DIPLOMA IN MOBILE COMPUTING


From C-DAC, ACTS (Bangalore)

Guided by:-
Mr. Rohit Patil
Presented by
Abhishek Kumar PRN: 170250121002
Pundlik Maruti Adav PRN: 170250121003
Divesh M Prayal PRN: 170250121011
Vishal Pandurang Raut PRN: 170250121035

CENTER FOR DEVELOPMENT OF ADVANCE COMPUTING

ACTS-BANGALORE
CERTIFICATE OF APPROVAL OF PROJECT WORK

This is to certify that the project report entitled MYTRACK APP is a bonafide
work carried out by Abhishek Kumar (DMC-02), Pundlik Maruti Adav (DMC-03),
Divesh M Prayal (DMC-11) and Vishal Pandurang Raut (DMC-35) and in
fulfillment for the award of PG Diploma in Mobile Computing

Place: CDAC-ACTS, Bangalore, Aug-2017 Batch.

Signature Signature
(Mr.Rohit Patil) (Mrs. )
Project Guide Course Coordinator

ABSTRACT
The goal of the project is to develop an android application, mainly designed for
tracking the lost mobile phone. It is embedded with several tracking features,
which will help tracking the lost phone. All the features work on SMS (short text
message) basis. So, incoming SMS format plays a vital role.App uses GPS to
track the lost phone of the device or uses the cell tower data to send the
coordinates.

Android application running in the cell monitors all the incoming messages. If the
SMS is meant for the application, it reads the same and performs the expected
task. The application auto starts every time you boot your cell, goes to running
mode and continuously listens for the incoming SMS messages. Whenever there
is a new incoming SMS, it checks the content of the message and does the certain
designed features in the application.

Profile management

Show the location of mobile

Enable Data Connectivity

Enable Wifi Connectivity.

.
TABLE OF CONTENTS

S.NO. TOPICS PAGE NO

1 Introduction 1

2 Requirement Specifications and Implemented Features 2

3 High Level Design 3

4 Low Level Design 12

5 Test Cases 14

6 Review Documents And References 15


1. INTRODUCTION

In this Chapter we are going to read about the Objectives of the application.
We are going to have the basic understanding and the purpose behind the
development of this application.

1.1 INTRODUCTION

As a result of technological progress we are facing an incredible variety of


possibilities to communicate regardless of the distance. Smart phones provide
a great choice of features that facilitate the life for the users as well they make
it more comfortable.

The use of mobile devices / cell phones has become part of our daily routine.
Today mobile communication devices are becoming much more technologically
advanced and offer more features than just conversation. Specially, the
introduction of Android smart phones has brought a new revolution in the cell-
phone market. In this routine usage, almost everyone has an experience of
misplacing or losing his or her cell phone. As Android smart phones are latest in
the market, it is expensive to lose one. Hence, a built-in application in the smart
phone is very much necessary so that the lost cell can be retrieved.

SMS Remote Controller makes your android mobile safe even it has been
stolen or has been misplaced. The purpose of the application is to change the
mobile phone profile and to track location by sending sms and to activate its
various feature through sms. This application enables or disables this feature
on your choice. This application is built by the assistance of Eclipse IDE with
ADT plug-in configured with android SDK for windows .

Its the system by which you can activate the various features of your android
mobile through SMS. In order to activate the various features which will guide
you to know the location of your mobile phone, you just have to send SMS to
your mobile by any other mobile. Once the message will be received at your
android mobile, all the features to identify your mobile phone will be activated
automatically.

1
1.2 OBJECTIVES

If an android user wants to know the location of android device then user has to
send sms to designated device so that he can locate device either by making it
ring or get actual location of device using gps or network provider..

1.3 EXISTING SYSTEM

There was no such existing system, which helps you to find your mobile
automatically using the available technologies. Once your mobile has been
stolen, you were not able to get this back and even you try, you have to visit
police station and make report and wait for enquiry results. There was no
medium of self-dependent by which you can get the exact location of your
mobile phone, thus you were always in worry. If some professionals knows the
basic tricks, they will hack the important information which is available under
your mobile, thus no safety and security was available.

1.4 PROPOSED SYSTEM


SMS Remote Controller will make your electronic gadget a powerful tool during
your search operations, in case if youre mobile has been lost or misplaced at
particular location. This project will uses the four technologies to get your android
phone back. Its the android project by which you can enable these four services:
enabling the internet connection either 2G or 3G, make your mobile phone ring,
enabling Wi-Fi feature from remote location and getting your android mobile
phone location using GPS through SMS to your desired number.

2
2. REQUIREMENT SPECIFICATION & IMPLEMENTED
FEATURES

Hardware Requirements:

Processor : 1GHz or greater

RAM : 1 GB (32bit),2GB (64bit)

Hard disk : 16GB available disk space or greater.

Software Requirements:
Development Kit : Android SDK , Java JDK 1.8.

IDE : Eclipse 4.2.0(Juno)

Platform : Window 8.1

Implemented Features:

Lock device.

Wipe memory to keep your private data safe.

Get notification of a SIM card change.

1
3. HIGH LEVEL DESIGN

Block Diagram

2
Description

Micro-Controller STM32F4:

The STM32F4DISCOVERY helps you to discover the STM32F407 & STM32F417


lines high-performance features and to develop your applications. It is based on an
STM32F407VGT6 and includes an ST-LINK/V2 embedded debug tool interface, ST MEMS
digital accelerometer, ST MEMS digital microphone, audio DAC with integrated class D speaker
driver, LEDs, pushbuttons and a USB OTG micro-AB connector

3
Features:

ARM 32-bit Cortex-M4 CPU with FPU, Adaptive real-time accelerator (ART
Accelerator) allowing 0-wait state execution from Flash memory, frequency up to 168 MHz,
memory protection unit, 210 DMIPS/ 1.25 DMIPS/MHz (Dhrystone 2.1), and DSP instructions
Up to 1 M byte of Flash memory.

4
Up to 192+4 Kbytes of SRAM including 64- Kbyte of CCM (core coupled memory) data
RAM.
Flexible static memory controller supporting Compact Flash, SRAM, PSRAM, NOR and
NAND memories.
LCD parallel interface, 8080/6800 modes.
Clock, reset and supply management.
1.8 V to 3.6 V application supply and I/Os.
POR, PDR, PVD and BOR.
4 to 26 MHz crystal oscillator.
Internal 16 MHz factory-trimmed RC (1% accuracy).
32 kHz oscillator for RTC with calibration.
Internal 32 kHz RC with calibration.
Low-power operation.
Sleep, Stop and Standby modes.
VBAT supply for RTC, 2032 bit backup registers + optional 4 KB backup SRAM.
312-bit, 2.4 MSPS A/D converters: up to 24 channels and 7.2 MSPS in triple
interleaved mode.
212-bit D/A converters.
General-purpose DMA: 16-stream DMA controller with FIFOs and burst support.
Up to 17 timers: up to twelve 16-bit and two 32- bit timers up to 168 MHz, each with up
to 4 IC/OC/PWM or pulse counter and quadrature (incremental) encoder input.
Serial wire debug (SWD) & JTAG interfaces.
Cortex-M4 Embedded Trace Macro cell

Up to 140 I/O ports with interrupt capability.


Up to 136 fast I/Os up to 84 MHz.
Up to 138 5 V-tolerant I/Os.
Up to 15 communication interfaces.
Up to 3 I2C interfaces (SM Bus/PM Bus).
Up to 4 USARTs/2 UARTs (10.5 M bit/s, ISO 7816 interface, LIN, IrDA, modem
control).

5
Up to 3 SPIs (42 M bits/s), 2 with muxed full-duplex I2S to achieve audio class accuracy
via internal audio PLL or external clock.
2 CAN interfaces (2.0B Active).
SDIO interface.
Advanced connectivity.
USB 2.0 full-speed device/host/OTG controller with on-chip PHY.
USB 2.0 high-speed/full-speed device/host/OTG controller with dedicated DMA, on-chip
full-speed PHY and ULPI.

Sensors:

Humidity and Temperature Sensor IC:


The digital SHT21 humidity sensor series is used in high volumes in a wide variety of
applications and has today become the de facto industry standard. The SHT21 series consists of a
low-cost version with the SHT20 humidity sensor, a standard version with the SHT21 humidity
sensor, and a high-end version with the SHT25 humidity sensor. The open cavity mold package -

6
which encapsulates the complete chip except for the humidity sensor area - protects the
capacitive humidity sensor against external impact and facilitates excellent long-term stability.
The SHT21 sensors are available both in large and small volumes.
Embedded in a reflow solder able dual-flat no-leads (DFN) package of 3 3 1.1 mm3,
the SHT21 provides calibrated, linearized sensor signals in digital, I2C format. The SHT21
humidity sensor series contains a capacitive-type humidity sensor, a band-gap temperature
sensor, and specialized analog and digital integrated circuits all on a single. This yields
superior sensor performance in terms of accuracy and stability as well as minimal power
consumption.
Every sensor is individually calibrated and tested. Lot identification is printed on the
sensor and an electronic identification code is stored on the chip which can be read out on
command. Furthermore, the resolution of the SHT21 humidity sensor can be changed on
command (8/12 bit up to 12/14 bit for RH/T) and a checksum helps to improve communication
reliability. With this set of features and its proven reliability and long-term stability, the SHT2x
humidity sensor series offers an outstanding price-performance ratio. To test a humidity sensor
from the SHT2x series, two evaluation kits, EK-H4 and EK-H5, are available.

7
Features:
Digital output, I2C interface
Low power consumption
Excellent long-term stability
DFN type package reflow solder able
Fully calibrated

Exhaust fan

Introduction

Exhaust Fan is used to remove the excess heat and humidity from the closed hydroponic
system.

8
Features
12 V Power supply.

Max. Speed fan 2600 rpm.

2 pin Power connection.

Relay

Introduction

9
A relay is an electromagnetic switch operated by a relatively small electric current that
can turn on or off a much larger electric current. The heart of a relay is an electromagnet (a coil
of wire that becomes a temporary magnet when electricity flows through it). You can think of a
relay as a kind of electric lever: switch it on with a tiny current and it switches on ("leverages")
another appliance using a much bigger current. Why is that useful? As the name suggests, many
sensors are incredibly sensitive pieces of electronic equipment and produce only small electric
currents. But often we need them to drive bigger pieces of apparatus that use bigger currents.
Relays bridge the gap, making it possible for small currents to activate larger ones. That means
relays can work either as switches (turning things on and off) or as amplifiers (converting small
currents into larger ones)

Features:
230 to 12 V Relay Module.

Optocouple Isolator

Anti-Jamming

Water Pump

Introduction

10
As our system is soil-less and plants are grown only in water. So constant supply of water
is need to keep plants hydrated.

Features:
230 V / 50 Hz

Power 18 w

Can lift up to 1.6 meter

4. LOW LEVEL DESIGN

11
Internal Clock HSE (8 MHz)
GPIOs Configured in Input mode or Output mode or Alternate Function Mode
Enable Clock for GPIOs and Peripherals interfaced

I2C: SHT21_V4
GPIOB SCL- PB6, SDA-PB9
Alternate Function mode AF4
Mode of Operation Fast Mode, Input Peripheral clock Frequency is 4MHz in FM
Frame Format Start, 7 bit Slave Address (0x0040), Acknowledgment, Data, Stop
Peripheral bus APB2

I2C:
I2C (inter-integrated circuit) bus Interface serves as an interface between the
microcontroller and the serial I2C bus. It provides multi master capability, and controls all I2C
bus-specific sequencing, protocol, arbitration and timing. It supports the standard mode (SM, up
to 100 kHz) and FM mode (FM, up to 400 kHz). It may be used for a variety of purposes,
including CRC generation and verification, SM Bus (system management bus) and PM Bus
(power management bus). Depending on specific device implementation DMA capability can be
available for reduced CPU overload.

Procedure for programming I2C:


In Master mode, the I2C interface initiates a data transfer and generates the clock signal.
A serial data transfer always begins with a start condition and ends with a stop condition. Both
start and stop conditions are generated in master mode by software. In Slave mode, the interface
is capable of recognizing its own addresses (7 or 10-bit), and the General Call address. The
General Call address detection may be enabled or disabled by software. Data and addresses are
transferred as 8-bit bytes, MSB first. The first byte(s) following the start condition contain the
address (one in 7-bit mode, two in 10-bit mode). The address is always transmitted in Master
mode. A 9th clock pulse follows the 8 clock cycles of a byte transfer, during which the receiver

12
must send an acknowledge bit to the transmitter. Acknowledge may be enabled or disabled by
software.

Fig no: 4 I2C Bus Protocol

13
5. TEST CASES

Scenario Input given Output expected Output Obtained Comments

SHT21 Sensor 0xE3 28oC 30oC 28oC Room Temperature

SHT21 Sensor 0xE5 60% 52% Normal Condition

14
6. REVIEW DOCUMENTS AND REFERENCES

http://staging1.unep.org/uneplive/media/docs/air_quality/aqm_document_v1/Blue%20Prin
t/Components/Microcomputer%20and%20sensors/D.%20Supporting%20Sensors/D.1%20
Temp%20&%20Humidity/Datasheet%20SHT21.pdf

http://www.st.com/content/ccc/resource/technical/document/user_manual/70/fe/4a/3f/e7/e1/
4f/7d/DM00039084.pdf/files/DM00039084.pdf/jcr:content/translations/en.DM00039084.pdf

http://www.st.com/content/ccc/resource/technical/document/programming_manual/6c/3a/c
b/e7/e4/ea/44/9b/DM00046982.pdf/files/DM00046982.pdf/jcr:content/translations/en.DM00
046982.pdf

http://www.st.com/content/ccc/resource/technical/document/user_manual/2f/71/ba/b8/75/54
/47/cf/DM00105879.pdf/files/DM00105879.pdf/jcr:content/translations/en.DM00105879.pdf

15

Вам также может понравиться