O slideshow foi denunciado.
Utilizamos seu perfil e dados de atividades no LinkedIn para personalizar e exibir anúncios mais relevantes. Altere suas preferências de anúncios quando desejar.

Smart aquarium project

15.742 visualizações

Publicada em

Final Year Project Report-Automatic aquarium

Publicada em: Educação, Tecnologia, Negócios
  • Entre para ver os comentários

Smart aquarium project

  1. 1. S.M.A.R.T. AQUARIUM B.E. SENIOR DESIGN PROJECT REPORT Electronics Specialization Prepared by Salman Khaliq Bajwa (3746) M Waqas Aslam (3781) Murtaza Malik (4721) Project Advisor Asstt. Professor, Chairman SDP Committee, Abdul Aleem College of EngineeringPAF-Karachi Institute of Economics & Technology Karachi
  2. 2. DEDICATION This report is dedicated to Our Parents, Whose love, affection and support helped s in bringing our work to this level ofaccomplishments; we are also thankful to them for educating us for unconditional support andencouragement to pursue our interests, even when the interest went beyond the boundaries offield and scope. Without their support and kindness this work would not have been possible. Page | 2
  3. 3. ACKNOWLEDEMENTPraise to Allah the most beneficent and the most merciful.We are grateful to our project advisor Mr. Abdul Aleem, Chairman SDP Committee, forenlightening us with his precious knowledge and vast experience to benefit us in the future. Weare also thankful to the Assistant Professor Mr. Rehan Adil for his continuous over viewing onour progress and imparting useful suggestions. We also like to thank our teachers and labassistants for their assistance and support.We would also thank with all gratitude and depth of our hearts to our parents who helped us notonly financially but with integrity too and support us in all our hardships. Finally our sincerethanks to our institute PAF-KIET, College of Engineering, for providing us the opportunity togave us the strength to undertake this project.Special thanks to all our fellows and friends who lend us a hand throughout the final yearproject’s phase.We pray this effort may prove to be the beginning of new era, a era in which Science andTechnology may make great progress in Pakistan and Pakistan may become a part of thedeveloped nations.Thank you. Page | 3
  4. 4. ABSTRACTFish keeping is a popular fad; almost people from all the age groups like to keep fish in theirhome, offices etc for decoration purpose or as a hobby. Fish keeping is itself an industry whichcomes in agriculture.Fish keeping is not an easy job; we always need an aquarium or a pond for that. The hobby offish keeping is broadly divided into three; freshwater, brackish, marine. Among all these three,freshwater is considered to be the most popular hobby of keeping fish because it is easy tohandle with freshwater fish and aquariums. It has always been a headache to take care of the fish and aquariums. We have to change thewater after sometime; we have to feed the fish on time, we have to maintain the temperature andturbidity level of the water and always have to keep an eye on fish and aquarium. All these stepsare done manually.The project, SMART aquarium has been designed by keeping in mind, the problem of those whocannot take care of their aquarium every day. It does the feeding itself every day, keeps thetemperature of the aquarium under control, and also keeps the turbidity level under control. TheGSM Mobile attached to it sends the report or we can say the current situation of the aquariumlike temperature level, turbidity level, feeding etc via SMS on your cell phone. Page | 4
  5. 5. Table of ContentsList of Figures ................................................................................................................................. 8List of Tables .................................................................................................................................. 9CHAPTER 1: ................................................................................................................................ 13PROJECT OBJECTIVES ............................................................................................................. 131.1-Project Objective: ................................................................................................................... 141.2-Motivation: ............................................................................................................................. 141.3-Aim: ........................................................................................................................................ 15 1.3.1-Objective: ....................................................................................................................................... 151.4-Problem Discussion: ............................................................................................................... 16 1.4.1-Common Problems Faced by Aquarium Caretakers ...................................................................... 161.5-Problem Solution: ................................................................................................................... 161.6-Methodology:.......................................................................................................................... 17 1.6.1-Project Design: .............................................................................................................................. 17 1.6.2- Analysis and, component level design and selection:................................................................... 17 1.6.3-Assembly and hardware testing: .................................................................................................... 17 1.6.4- Simulation development and Verification: ................................................................................... 18 1.6.5- Development for future implementation: ..................................................................................... 181.7-Market adaptability: ................................................................................................................ 18CHAPTER 2: ................................................................................................................................ 19INTRODUCTION ........................................................................................................................ 192.0-Introduction: ........................................................................................................................... 20 2.1-Introduction: ..................................................................................................................................... 20 2.1.2-Key Points: ................................................................................................................................ 202.2-Functionality: .......................................................................................................................... 20CHAPTER 3: ................................................................................................................................ 22DESIGN OBJECTIVES, ISSUES AND THEIR ANALYSIS ..................................................... 223.1-Design Objectives: .................................................................................................................. 23 3.1.1-Design Objectives and Issues: ........................................................................................................ 23 3.1.1.2-Dimensions: ............................................................................................................................ 23 3.1.1.3-Safety Factor: .......................................................................................................................... 24 Page | 5
  6. 6. 3.1.1.4-Glass Thickness & Pressure:.................................................................................................... 243.2-Limitations of the existing system: ......................................................................................... 26CHAPTER 4: ................................................................................................................................ 27REQUIREMENT SPECIFICATIONS ......................................................................................... 274.0-Requirement Specifications: ................................................................................................... 284.1-Literature Review: .................................................................................................................. 28 4.1.1-Related Work: ................................................................................................................................ 28 4.1.2-AquaChef Automatic Fish Feeder [1]:............................................................................................ 28 4.1.3- ....................................................................................................................................................... 28 4.1.4-Automatic Aquarium [3]: ............................................................................................................... 29 4.1.5-Automatic LCD Auto Aquarium Fish Tank Food Feeder Timer [4]:................................................ 29 4.1.6-Automatically ORP Meter / Controller Aquarium [5]: ................................................................... 29 4.1.7-Study of alternative devices [6]: .................................................................................................... 304.2-Process Flow: .......................................................................................................................... 314.3-Block & sub-block diagram:................................................................................................... 324.4-Design Matrix: ........................................................................................................................ 334.5-Schematics: ............................................................................................................................. 344.6-Algorithm: .............................................................................................................................. 354.8-PCB Design: ........................................................................................................................... 364.9-Animations: ............................................................................................................................ 364.10-Mechanical Design: .............................................................................................................. 374.11-Hardware & Software List:................................................................................................... 37 4.11.1-Hardware List:.............................................................................................................................. 37 4.11.2-Software List: .............................................................................................................................. 384.12-Gantt Chart: .......................................................................................................................... 394.13-Safety & Precautions: ........................................................................................................... 40CHAPTER 5: ................................................................................................................................ 41TEST RESULTS AND THEIR ANALYSIS ............................................................................... 415.0- TEST RESULTS: .................................................................................................................. 42 5.1-PH Sensor & Temperature Testing: .................................................................................................. 42 5.12-Test Results: .................................................................................................................................... 43 Page | 6
  7. 7. 5.13-Graph: ............................................................................................................................................. 445.2-ANALYSIS: ........................................................................................................................... 44CHAPTER 6: ................................................................................................................................ 45ECONOMIC ANALYSIS ............................................................................................................ 456.0-Economic Analysis: ................................................................................................................ 46CHAPTER 6: ................................................................................................................................ 47CONCLUSION ............................................................................................................................. 476.0-Conclusion: ............................................................................................................................. 48CHAPTER 7: ................................................................................................................................ 49FUTURE RECOOMENDATIONS .............................................................................................. 497.1-Future Recommendations: ...................................................................................................... 50 7.1.1-Air Cooler: ..................................................................................................................................... 50 7.1.2-Solar Cell: ....................................................................................................................................... 50 7.1.3-Heater: ........................................................................................................................................... 50 7.1.4-GSM Module: ................................................................................................................................ 50CHAPTER 8: ................................................................................................................................ 52REFERENCES ............................................................................................................................. 528.0-Refrences: ............................................................................................................................... 53 8.1-WEB Refrences: ............................................................................................................................... 53CHAPTER 14: .............................................................................................................................. 55APPENDICES .............................................................................................................................. 55Appendices A: ............................................................................................................................... 56Source Code .................................................................................................................................. 56A-Code: ......................................................................................................................................... 57Appendix B: .................................................................................................................................. 66Data Sheets.................................................................................................................................... 66 Page | 7
  8. 8. List of FiguresFigure-1 Market Adaptibility ........................................................................................................ 11Figure-2 Dimension ...................................................................................................................... 20Figure-3 Glass ............................................................................................................................... 21Fgure-4 Feeder .............................................................................................................................. 24Fgure-5 Feeder .............................................................................................................................. 24Fgure-6 Block Diagram ................................................................................................................ 28Fgure-7 Schematic ....................................................................................................................... 30Fgure-8 PCB ................................................................................................................................. 32Fgure-9 Animation ........................................................................................................................ 32Fgure-10 Mechanical Design ........................................................................................................ 33Fgure-11 PH Sensor ...................................................................................................................... 38Fgure-12 LCD Display ................................................................................................................. 38Fgure-13 Temprature Sensor ........................................................................................................ 38Fgure-14 Water Pumps ................................................................................................................. 38Fgure-15 Feeder ............................................................................................................................ 39Fgure-16 Turbidity Sensor ............................................................................................................ 39Fgure-17 GSM Mobile.................................................................................................................. 39 Page | 8
  9. 9. List of TablesTable-1 Thickness Table ............................................................................................................... 19Table-2 Water Pumps ................................................................................................................... 22Table-3-Test Results ..................................................................................................................... 33Table-4 Cost ................................................................................................................................. 33 Page | 9
  10. 10. Page | 10
  11. 11. Page | 11
  12. 12. Page | 12
  13. 13. CHAPTER 1:PROJECT OBJECTIVES Page | 13
  14. 14. 1.1-Project Objective:The objective of this project is to design and construct an automatic aquarium for those whocannot take care and keep an eye on their fish and aquarium daily and minimize the manualfactor as much as possible. The aquarium will perform all the steps automatically liketemperature control, turbidity level under control, feeding etc and would send all the informationon cell phone via GSM Mobile.1.2-Motivation:We all know, today is the world of new scientific inventions. Every day there are some newinventions in almost every field, in the world. World is becoming very fast and automaticbecause of these inventions day by day. So we have decided very cheap alternative to make theprocess of maintaining the fish aquarium fully automatic. Page | 14
  15. 15. 1.3-Aim:The aim of our project is to replace manual maintenance of fish aquarium with an automatedsystem.1.3.1-Objective:The objective of our project is to perform following tasks automatically, when really required. Remove wastes & keep water clean Send the report of change in pH level to the owner’s cell phone Feed on a regular basis Stabilize temperature Page | 15
  16. 16. 1.4-Problem Discussion:Usually aquarium care takers face several problems in maintenance the vitality and health offishes along with the presentation of the aquarium. Some of the problems are mentioned asunder:1.4.1-Common Problems Faced by Aquarium Caretakers Difficulty in changing the aquarium water Difficulty in maintaining the pH of the water in an aquarium Difficulty in feeding the fish Difficulty in controlling the turbidity of the water in an aquarium Difficulty in figuring out when the water is to be filtered Difficulty in maintaining the temperature of the aquarium1.5-Problem Solution:The project has been chosen to minimize the problems of fish keepers or aquarists by shifting itfrom manual to the automatic mode. Fish keepers or aquarists now would not have to watch outand keep an eye on their aquarium and fish again and again. SMART aquarium would be there.If any problem occurs, the aquarium would generate a report and send it on cell phone via GSMMobile. The advantages of this project are: No need to watch out Temperature No need to watch out Turbidity level No need to change water manually No need to feed manually Page | 16
  17. 17. 1.6-Methodology:The development of SMART aquarium can be divided into following major phases: Project design Analysis and, component level design and selection Assembly and hardware testing Simulation development and Verification Development for future implementation1.6.1-Project Design:The Project design phase included mainly the determination of general layout and design of theSMART aquarium. The first step in this phase was the identification of design goals. Thefollowing things were required: Dimensions of the aquarium Thickness of the glass Compatibility for freshwater, brackish and marine1.6.2- Analysis and, component level design and selection:Once a general design was decided, we decided to make specific choices regarding componentselection and design. The estimate of 4 feet was kept as the maximum length of the aquarium sothat it could bear the pressure of the water in it. The thickness of the walls of aquarium wasdecided 600mm (estimated).1.6.3-Assembly and hardware testing:Once all components were selected and all major functional parts were designed, the major partof assembly and hardware testing of the different modules was done. In order to test the circuit, itwas first simulated on Proteus in order to minimize the hardware and circuit failure risks. Themechanical design was done on AutoCAD 2009. GSM Mobile, turbidity sensor, temperaturesensor, motors and different testing of other components was done and results were compared. Page | 17
  18. 18. 1.6.4- Simulation development and Verification:Test results were simulated to achieve the desired goals and then they were verified to get thedesired outcome.1.6.5- Development for future implementation:When all the steps; design selection, components selection, components, modules and sensorstesting, simulation and verification was done, the work remained to be done was to make ourproject for future implementation, which included more advanced components, sensors, modulesetc.1.7-Market adaptability:The idea of making the aquarium automatic is not new. It is being used in the agriculture sectoras well as commercially but the aquariums available in the markets are semi automatic ormanual; they are not fully automatic as we have designed.The SMART Aquarium is not so much expensive that’s why it can be used by an individualaquarist, fish keeper, and can also be used for large scale. Individual Commercial Aquarists SMART Aquarium Figure-1.0-Market Adaptability Page | 18
  19. 19. CHAPTER 2:INTRODUCTION Page | 19
  20. 20. 2.0-Introduction:Pet ownership has been increasing at a steady pace in the last 20 years. After cats and dogs, themost popular pet is now the freshwater fish. The maintenance of fish aquariums is a verydifficult task itself. Whenever you have to clean up your aquarium or you have to feed, you haveto do a lot of things. You have to turn off your aquariums power head/air pump and feedmanually and turn on the air again after an hour.2.1-Introduction:The project with which we came up is an Automated Fish Aquarium. The project will be moreefficient than the systems available in market, now days. In addition to the efficiency it will be oflower cost as well. The project’s audience is the group of people interested to keep fishes athome or offices but don’t have time to take care of, or they are worried to keep on asking theirneighbors to take care of the fishes in their absence.The project is an automated system to take care of fishes. It will replace the manual maintenanceof fish aquarium with its automated functions. It will monitor the physical changes in the waterand will maintain it to the ideal conditions, with required changes.2.1.2-Key Points: To build a low cost aquarium for agriculture industry To make the work easier and automatic2.2-Functionality:Main principle of the project is to sense the changes via sensors. These changes will be thenprocessed by the Controller. The microcontroller installed in the circuit will be performing themain task of controlling. Controller will send commands to the actuators where the output partwill be observed working to sustain the ideal conditions. There will be a temperature sensor,turbidity sensor, PH level sensor, water level sensor, heater, feeder, an LCD and a GSM Mobile.They all will be interfaced with the controller. If anything happens or changes, the controller willstart working to reach back to the ideal state. The normal temperature of fresh water aquarium isconsidered to be 28-30 degree Celsius. If temperature exceeds, the controller would start the fantill the desired temperature is not achieved. If the temperature goes down, the heater will be onuntil the temperature does not reach to the normal temperature. After every 24 hours the Page | 20
  21. 21. controller would turn on the feeder for feeding purpose. If the turbidity level has increasedbeyond the normal then controller will change the water. Half of the water will be flushedthrough solenoid valves so that the temperature would not change rapidly which could harm thefish. The ongoing process and situation like temperature, feeding, changing water etc will beshown on the LCD. The owner could also get the report regarding the situation of aquarium onhis/her cell phone by just asking the GSM Mobile or after every 24 hours the GSM Mobilewould generate the report and send it on the mobile phone. Page | 21
  22. 22. CHAPTER 3:DESIGN OBJECTIVES, ISSUES AND THEIR ANALYSIS Page | 22
  23. 23. 3.1-Design Objectives:Our objective of the project is to build an automatic aquarium for those who cannot keep an eyeon their aquarium regularly. It will be fully automatic so there will be no need to see aquariumagain and again.The short term goal of our project is to make a low cost but automatic aquarium so that it couldbe in the reach of every one. The long term goal is to extend it to the version where it can befully automated Our main objective was to limited to our short term goals and to achieve those,lot of research was done and finally we were able to produce the desired output.3.1.1-Design Objectives and Issues:The main issue was to decide the dimensions and design of the mechanical structure of theaquarium. Our objective was to design a light weighted and low cost aquarium. The circuit andthe sensors that we had to select should not be so heavy and that they could not create anytrouble for the fish in the aquarium or fish could not damage them.3.1.1.2-Dimensions: When you are to structure your own fish tank, you need to know about the following information. . Aquarium Volume Glass Thickness: A glass thickness that will hold under the pressure of your fish tank. Glass Area: The sum of areas of the six sides of your aquarium. Glass Weight: The weight of your fish tank when empty Glass+Water Weight: The weight of your fish tank when filled with water. You will also get your glass surfaces dimensions. Notice the sides surfaces are reduced by the glass thickness. Page | 23
  24. 24. Figure-2 Dimension3.1.1.3-Safety Factor:The variability of the strength of glass due to limitations of the manufacturing process means asuitable safety factor must be used when calculating glass thickness. The factor commonly usedis 3.8. While not a perfect guarantee, it will remove all risk bar that of damaged or very poorquality.3.1.1.4-Glass Thickness & Pressure:While determining the pressure that water exerts on a glass wall is pretty simple, determining theglass thickness needed to resist this pressure is not quite so simple. The glass will be subjected tobending stress as the pressure tries to force it outward. The actual amount of stress depends onthe unsupported area of glass. The glass wall or "window" is fixed and sealed at its edges, butunsupported over its area. The larger the window is, the greater the bending stress that results. Ifyou think about it, this is actually fairly clear (must stop with those puns!). Let us say that thewater is deep enough to exert an average pressure a pressure of 50 pounds per square foot againstthe window. The larger the window, the greater number of square feet of glass is holding backthe pressure. If we have one window that is (let us say) 10 square feet in area, then there will be atotal force of 500 pounds forcing the glass outward. But suppose we want to use a window that is Page | 24
  25. 25. 100 square feet in area. In that case, there will be a total force on the glass of 5000 pounds.Obviously the larger window will need to be thicker to resist the greater force. Figure-3 glassHeres a few ways to figure out how thick of glass you need if you building your own tanks.1. In the table below, the top row indicates the length of the tank; the left vertical columnindicates the depth (height) of the tank. To determine the glass thickness to use for constructingyour tank, find the length of the tank in the top row (indicated in feet and cm - centimeters), thenfollow that column down until you reach the height of the tank (indicated in inches and cm).Glass thickness is indicated in mm (millimeters), with the number in parenthesis belowindicating the Safety Factor. There is an inches to millimeters calculator below the GlassThickness calculator. Page | 25
  26. 26. Table-1 Thickness Table3.2-Limitations of the existing system:The project was tried to make fully automatic but not. Everything cannot be made fullyautomatic. Something is always left that works on manual mode like filling up the feeder, settingup the temperature etc. Whenever the temperature goes up (greater than 30 degree) there isnothing to bring the temperature at normal. We tried to use a fan but it was not enough for that.You always have to keep unplug the charger after charging cause the mobile charger cuts off thepower after charging the mobile in order to get the reports from the mobile on your cell phone. Ifmobile turns off you would not get the report. Page | 26
  27. 27. CHAPTER 4:REQUIREMENT SPECIFICATIONS Page | 27
  28. 28. 4.0-Requirement Specifications:The things that were required has been discussed in this chapter and are given below:4.1-Literature Review:4.1.1-Related Work:From simple battery operated, to state-of-the-art electronic devices, automatic aquarium fishfeeders come in an array of styles. While some are moisture controlled units designed to preventflake, pellet and other dried foods from clumping, others not only have the capability of releasinga variety of different fares, but at specific times and intervals. From small to large capacityfeeders with single to multi-purpose functions, here are some units your Guides consider to bethe best choices.4.1.2-AquaChef Automatic Fish Feeder [1]:Moisture-resistant, no-clump feeder dispenses flakes, pellets, orcrumbled fish food. You set the portion size and feeding times, up tofour per day, on the programmable timer. Feeder dispenses single ordouble feeding (within 60 seconds of first feeding). Holds up to 35grams of food. Two AA batteries included. Figure –4 Feeder4.1.3-Nutrafin ProFeed Automatic Feeder [2]:This fish feeder can be quickly programmed to automaticallydispense up to two precise portions a day or can be overridden formanual operation. Handles almost any type of flake, pellet, or freeze-dried food and prevents clogging due to aquarium moisture. 14-gramcapacity. Operates up to a year on just two AA batteries (notincluded). Figure –5 Feeder Page | 28
  29. 29. 4.1.4-Automatic Aquarium [3]:Main functionThis aquarium has the functions as digital display, Automatic temperature control, lighting timecontrol function. This aquarium tanks have high performance, both excellent in quality andreasonable in price. Model Size Volume Water Pump HLE-1000F 1000Lx480wx755H 260L HQB-2500 HLE-1200F 1200LX480WX755H 315L HQB-2500 HLE-1500F 1800LX480WX815H 422L HQB-3500 Table-2 Water Pump4.1.5-Automatic LCD Auto Aquarium Fish Tank Food Feeder Timer [4]:Easy to set the feeding time, you can set at most 4 times a day,Safe and convenient. Detachable,Washable and Moisture proof Food Can, easy filling of the food and easy to clean. Ideal forflakes granulates. Easy mounting, Can be installed on the aquarium, Adjustable clamp to fix ondifferent tank sizes.Don`t worry about your fish anymoreSpecificationsSize 11 x 7 x 7cm.Feed chamber 5.5cm diameter, 3.5cm thickVelcro size 3.6 x 3 x 0.5 cmPower 2 x AAA batteries (NOT included)Color Black4.1.6-Automatically ORP Meter / Controller Aquarium [5]:FeaturesLed Display Auto. Test ORP and real-time operation Simple Operation for monitor ORP value Durable and Reliable Ideal For Salt Water and Fresh Water The controller can power on the Ozone O3(Not included)or to control the ORP value Page | 29
  30. 30. How to Use Connect with the power supply Put the ORP pen into the ORP Meter, it can show the ORP value Normally, Saltwater ORP around 300mV ~ 350mV, for freshwater ORP around 235mV to 260mV ORP Meter will automatic to power on and connect with the Ozone O3 (Not Included) to operate the value most suitable for the tankSpecificationMeasurement 1999mV ~ + 1999mVControl Range 0-1000mVResolution 1 mVAccuracy 0.01mVPower 220V to 240V 50/60HzWeight 1.4 kg4.1.7-Study of alternative devices [6]:Several devices are available in the market which can be helpful to automate the aquariummaintenance as required. Feeders are available with timers to automate the feeding of fishes. The device can be replaced by a simple and cheap system comprising of a stepper motor based mechanical structure controlled by the controller. Water coolers are available to reduce the temperature when it goes higher. It can be replaced using fans placed well to cool down the aquarium when temperature goes high. Similarly heaters can be replaced by high intensity lights. PLC based systems are available for aquarium maintenance. We may design a system working on a micro-controller to make it more cost effective. Page | 30
  31. 31. 4.2-Process Flow: Page | 31
  32. 32. 4.3-Block & sub-block diagram: Figure-6 Block Diagram Page | 32
  33. 33. 4.4-Design Matrix: Page | 33
  34. 34. 4.5-Schematics: Figure-7 Schematics Page | 34
  35. 35. 4.6-Algorithm: S.M.A.R.T Aquarium turns on PH sensor checks the density of water If it is in limits, process ends If it is out of limits, it goes for draining and filtration Turbidity sensor senses the turbidity of the water If it is in limits, process ends If it is out of limits, it goes for draining and filtration Timer after every 24 hours starts the process of feeding Temperature sensor turns on If it is 30 degree Celsius, process ends If it is below 22-30 degree Celsius, heater turns on Page | 35
  36. 36. 4.8-PCB Design: Figure-8 PCB4.9-Animations: Figure-9 Animation Page | 36
  37. 37. 4.10-Mechanical Design: Figure-10 Mechanical Design4.11-Hardware & Software List:4.11.1-Hardware List: Electronic Valves Air Pump & Bubbler Micro-Controller Stepper Motor Temperature Sensor Water Level Sensor Turbidity Sensor PCB PH Sensor LCD Fish Tank with Decoration Page | 37
  38. 38. GSM Mobile (Nokia 6610)4.11.2-Software List: Portable Proteus Auto CAD PIC PGM Page | 38
  39. 39. 4.12-Gantt Chart: Page | 39
  40. 40. 4.13-Safety & Precautions:Electricity and water is always a risky combination and plugging in all sorts of electrical gadgetsto a water filled aquarium is certainly no exception. It is therefore important for all aquarists toknow at least basic electrical safety procedures and how to prevent electrical accidents fromhappening. It is also a very good idea to learn more about first aid. Electrical accidents can kill orinjure pets as well as humans.Aquarists should keep the aquarium out of children’s reach, as they may harm fishes orthemselves while considering it a toy. Plants and other decorations should be kept safely andfirmly on their places, making no harm to the fishes. Moreover, one should keep an eye to makesure about the absence of any leakage in the tank. Main points to remember are: Basic electrical safety procedures. First aid, in case of Electrical accidents. Aquarium to be kept out of children’s reach Plants and other decorations should be kept safely and firmly. Absence of any leakage in the tank. Page | 40
  41. 41. CHAPTER 5:TEST RESULTS AND THEIR ANALYSIS Page | 41
  42. 42. 5.0- TEST RESULTS:Different test were conducted to investigate, troubleshoot and test different sensors and modules.Before any hardware was investigated, the following components requirements were set: The normal temperature of the water of aquarium was set as 28 degree Celsius. The normal PH level was set as 7. If the PH level increases or decreases the GSM mobile would send SMS on the mobile and after 15 seconds it would again send a reminder SMS on the given number. The Turbidity sensor was working on logic 1 and 0. Two LDRs were used in order to sense the turbidity. One had an LED. If the opponent LDR does not sense the light emitted from LED, it would start draining the water via water pump.5.1-PH Sensor & Temperature Testing:The sensor and the modules that we have used are given below; Figure-11 PH sensor Figure-12 LCD Display Figure-13 Temperature Sensor Figure –14 Water Pumps Page | 42
  43. 43. Figure-15 Feeder Figure-16 Turbidity Sensor Figure-17 GSM Mobile5.12-Test Results:No Temperature PH Level1 0 5.92 5 6.13 10 6.374 15 6.55 20 6.96 25 77 30 7.218 35 7.479 40 8.010 45 8.6 Table -3 Test Results Page | 43
  44. 44. 5.13-Graph:5.2-ANALYSIS:The temperature of water is proportional to the PH level. As we keep on increasing thetemperature, the PH level also increases. Page | 44
  45. 45. CHAPTER 6:ECONOMIC ANALYSIS Page | 45
  46. 46. 6.0-Economic Analysis:Economically at the student level, this type of project is itself a huge task, because thecomponents to be used are basically very expensive and being the citizens of under developedcountry it is hard to maintain both ends meet. Anyhow with leaps a bounce all these issues weremanaged so that the project could be completed within the defined time limits. S. No Components Cost 1 Electronic Valves 3,000 2 Air Pump & Bubbler 10,000 3 Micro-Controllers 500 4 Temperature Sensor 2,200 5 Water Level Sensor 1,100 6 Turbidity Sensor 800 7 PCB 5,000 8 pH Sensor 3,000 9 LCD 500 10 Fish Tank with Decoration 12,000 11 GSM Mobile 3,000 Total 41,100 Table-4 Cost Page | 46
  47. 47. CHAPTER 6:CONCLUSION Page | 47
  48. 48. 6.0-Conclusion:We started off the project with aim to accomplish the simple looking task of designing anautomatic aquarium (SMART Aquarium). But with time and experiences it was learnt that thiswas not at all an easy task, specially interfacing the sensors and GSM Mobile with the controller.Though we are able to achieve all the goals of our project but still we think that lots ofadvancement can be done on this project. We have provided the platform and the platform isready for everyone to work on it. For advancements, we need more time, money and hard work.Money would remain the critical issue cause in order to upgrade the project many of the stuffwould need an up gradation.Nevertheless this project has been a success as far as learning and practical implementation ofElectronics Engineering concepts is concerned. The basic idea proposed in this project workswell and can be implemented on large scale industries like agriculture etc. Having a SMARTAquarium, will save our time and we would not have to be worried for our fish and theiraquariums for long time. Page | 48
  49. 49. CHAPTER 7:FUTURE RECOOMENDATIONS Page | 49
  50. 50. 7.1-Future Recommendations:After implementing and detailing the project, still it has many future advancement possibilities of whichare stated as below:7.1.1-Air Cooler:Sometime the temperature of inside the aquarium or we can say the temperature of waterincreases in summers that’s why fish die because of the sudden increase in the temperature. Asthere is nothing in the aquarium that could reduce the temperature when it has increased so asmall air cooler or a fan can be used to decrease the temperature in case the temperatureincreases up.7.1.2-Solar Cell:As the aquarium needs 24/7 constant power in order to work so lots of power is consumed, GSMmobile also needs a separate constant power. Lots of power is utilized and it can be a burden onyour pocket so in order to reduce this, solar cells or panels can be used to get the constant power.So that there will be no issue of over billing and burden on your pocket. If in case of powerfailure, the aquarium would not stop its work.7.1.3-Heater:In winter, most of the time, the temperature of the water goes down like if it is in snowfall areathen its temperature would go suddenly down and the sudden variation in the temperature cankill the fish inside the water. In our project we have used a bulb because we live in a regionwhere temperature does not change suddenly. Heater can also be used in order to increase thetemperature if it has fallen down.7.1.4-GSM Module:A GSM modem is a wireless modem that works with GSM networks. A wireless modembehaves like a Hayes compatible dial-up modem. The main difference between a standard Hayesmodem and a GSM modem is that a hayes modem sends and receives data through a fixedtelephone line while a GSM modem sends and receives data through radio waves. A GSM Page | 50
  51. 51. modem can be an external unit or a PCMCIA card (also called PC Card). An external GSMmodem is connected to a PC through a serial cable, a USB cable, Bluetooth or Infrared. Like aGSM mobile phone, a GSM modem requires a SIM card from a wireless carrier in order tooperate.We have used a GSM Mobile (6610) for sending the report on the aquarist’s cell number. Wehad to make a low cost and cost effective project that’s why we selected a GSM Mobile insteadof GSM modem so GSM module can be used in future. Page | 51
  52. 52. CHAPTER 8:REFERENCES Page | 52
  53. 53. 8.0-Refrences:8.1-WEB Refrences:[1] Current USATitle: AquaChef Automatic Fish Feeder | Visiting Date: 02/Feb/2011©2005-2009 Current Inc. | Updated: March 2, 2009 - 16:10http://www.current-usa.com/aquachef.html[2] New York Times CompanyTitle: Nutrafin ProFeed Automatic Feeder | Visiting Date: 05/Feb/2011©2011 About.com. All rights reserved. A part of New York Times Company (www.nytco.com)http://saltaquarium.about.com/od/toppicks/tp/TPautofeeders.htm[3] Alibaba.comTitle: Automatic Aquarium | Visiting Date: 05/Feb/2011© 1999-2010 Alibaba.com Hong Kong Limited and licensors. All rights reserved.http://www.alibaba.com/product-gs/238098574/automatic_aquarium.html[4] Aquarium GuysTitle: Aquarium size| Visiting Date:25/3/2011©2011 Aquarium guys. All rights reserved.http://www.buzzle.com/articles/aquarium-care-choosing-the-right-aquarium-size-for-your-fish.html[5] Keith SeyffarthTitle: Aquarium and aquarium filters|02/04/2011©1994-2011, Keith Seyffarth. All rights reserved.http://www.aqua-fish.net/articles/what-does-my-filter-do.html[6] Current USATopic: AquaChef Automatic Fish Feeder | Visiting Date: 02/Feb/2011 Page | 53
  54. 54. ©2005-2009 Current Inc. | Updated: March 2, 2009 - 16:10http://www.current-usa.com/aquachef.html[7] New York TimesTitle: Nutrafin ProFeed Automatic Feeder | Visiting Date: 05/Feb/2011©2011 About.com. All rights reserved. A part of New York Times Company (www.nytco.com)http://saltaquarium.about.com/od/toppicks/tp/TPautofeeders.htm Page | 54
  55. 55. CHAPTER 14:APPENDICES Page | 55
  56. 56. Appendices A:Source Code Page | 56
  57. 57. A-Code:***************************************************************** Name : AQUARIUM.BAS ** : All Rights Reserved ** Date : 14-Sep-10 ***************************************************************** Device = 18F452 device = 16f877aXtal = 20Declare Watchdog = OnDeclare Adin_Res 10 10-bit result required Declare Adin_Tad FRC RC OSC chosen Declare Adin_Stime 60LCD_DTPin = PORTB.4 LCD_RSPin = PORTB.2 LCD_ENPin = PORTB.3-----------------------------------------------------------Dim TEMPERATURE As FloatDim PH As Float Dim SUM_VAR1 As Dword Dim SUM_PH As Dword Dim VAR1 As Word Dim i As Word Dim AVG_VAR1 As Word Page | 57
  58. 58. Dim AVG_PH As Word Dim SECONDS_COUNT As Word Dim VAR_PH As Word Dim Temp As Byte Dim Temp1 As Byte Dim DECIMAL As Word Dim ENTER_COUNT As Byte Dim SETTING_MODE As Byte Dim NLOW_BITS As Byte Dim NHIGH_BITS As Byte Dim BIN2BCD_VAL As Byte Dim BCD2BIN_VAL As Byte Dim SECONDS_SET As Byte Dim NTEMP1 As Byte Dim NTEMP2 As Byte Dim leap As Byte Dim FIRST_RUN As Byte Dim SHOW_SP As Byte Dim SET_POINT As Byte Dim ALARM_BIT As Byte Dim SMS_4_COUNTER As Byte----------------------------------------------------------- Hserial_Baud = 9600 Set baud rate to 9600 Page | 58
  59. 59. Hserial_Clear = On Enable Error clearing on received charactersInput PORTC.7Symbol DIRTY_WATER = PORTD.7 30Symbol LOW_LEVEL = PORTD.0 23Symbol HI_LEVEL = PORTD.1 24Symbol DRAIN_MOTOR = PORTD.5 28Symbol INJECT_MOTOR = PORTD.6 29 Symbol BUZZER = PORTB.033 Symbol ENTER = PORTC.4 Symbol UP = PORTD.4 Symbol DOWN = PORTC.5 Input ENTER Input UP Input DOWN Output BUZZER Input DIRTY_WATER Input LOW_LEVEL Input HI_LEVEL Output INJECT_MOTOR Output DRAIN_MOTOR BUZZER = 0DelayMS 200ClearCls FIRST_RUN = ERead 15 DelayMS 50 Page | 59
  60. 60. If FIRST_RUN >= 25 Then EWrite 15 , [2] DelayMS 50 SET_POINT = 35 EWrite 25 , [SET_POINT] DelayMS 50 EndIf -----------------------------------------------------------Main_Prog:**************************************************************** If ENTER = 0 Then DelayMS 1000 Inc ENTER_COUNT If ENTER = 0 Then Cls Print At 1,1,"SET TEMPERATURE SP" ENTER_COUNT = 0 SET_POINT = ERead 25 DelayMS 50 Print At 2,1,Dec2 SET_POINT,".0",$df,"C " SETTING_MODE = 1 While ENTER = 0 Wend EndIf Page | 60
  61. 61. EndIf If SETTING_MODE = 1 Then Call SETTING_MODE_SR EndIf Call ANALOG_INPUT SET_POINT = ERead 25 DelayMS 50 If TEMPERATURE >= SET_POINT Then BUZZER = 0 EndIf If TEMPERATURE < SET_POINT Then BUZZER = 1 EndIf If DIRTY_WATER = 1 Then INJECT_MOTOR = 0 Cls Print At 1,1,"CLEANING START" While LOW_LEVEL = 1 INJECT_MOTOR = 0 DRAIN_MOTOR = 1 Print At 2,1, "WATER DRAINING" Wend Cls While HI_LEVEL = 0 Page | 61
  62. 62. DRAIN_MOTOR = 0 INJECT_MOTOR = 1 Print At 2,1,"WATER FILLING" Wend INJECT_MOTOR = 0 DRAIN_MOTOR = 0 EndIf Call PH_ROUTINE Goto Main_Prog **************************************************************** SUB ROUTINESSETTING_MODE_SR:BUZZER = 0While SETTING_MODE = 1 If UP=0 Then DelayMS 200 If UP=0 Then Inc SET_POINT If SET_POINT >= 99 Then SET_POINT = 5 Print At 2,1,Dec2 SET_POINT EndIf EndIf If DOWN=0 Then DelayMS 200 If DOWN=0 Then Page | 62
  63. 63. SET_POINT = SET_POINT - 1 If SET_POINT < 5 Then SET_POINT=99 Print At 2,1,Dec2 SET_POINT EndIf EndIf If ENTER = 0 Then DelayMS 1000 If ENTER = 0 Then Cls EWrite 25 , [SET_POINT] DelayMS 50 SETTING_MODE = 0 Cls EndIf EndIfWendReturnPH_ROUTINE: If PH>=9 Or PH<=5 Then HSerOut ["AT+CMGS=",34,"+923452791444",34,13] INC SMS_4_COUNTER HSerIn 3000,SMS_4,[Wait(">")] HSerOut ["PH: ",Dec2 PH,13,10,"TMP:",Dec1 TEMPERATURE,26] INC SMS_4_COUNTER Page | 63
  64. 64. HSerIn 8000,SMS_4,[Wait("OK")] HSerOut ["MSG SENT"] DelayMS 3000 EndIfReturn ANALOG_INPUT: For i = 1 To 150 VAR1 = 0 VAR1 = ADIn 0 DelayUS 70 VAR_PH = ADIn 1 DelayUS 70 SUM_PH = SUM_PH + VAR_PH SUM_VAR1 = SUM_VAR1 + VAR1 Next AVG_VAR1 = 0 AVG_PH = 0 AVG_PH = SUM_PH / 150 AVG_VAR1 = SUM_VAR1 / 150 SUM_VAR1 = 0 SUM_PH = 0 TEMPERATURE = AVG_VAR1 / 2.048 PH = AVG_PH / 73.07 AVG_PH = 0 AVG_VAR1 = 0 Page | 64
  65. 65. Print At 1,1,"TMP:",Dec1 TEMPERATURE,$df,"C" Print At 2,1,"SP:",Dec2 SET_POINT,$df,"C PH:",Dec1 PHReturn Page | 65
  66. 66. Appendix B:Data Sheets Page | 66
  67. 67. LM35 LDR PIC16F452 MAX-232For any query?Feel free to contact:Salman Khaliq Bajwasalman_khaliq@hotmail.com+923009049060 Page | 67

×