Smart Aquarium

12740-F19-Project

Group id:AI

Group Member:

visualization visualization visualization visualization

Yilin Wang, Jiangwen Wei, Yue Cao, Xiangchao Wang

Progress report for the first two weeks

Progress report for week(Oct.6th - Oct.14th)

Video Click here

OpenChirp Click here


1. Introduction

visualization

1.1 Motivation

1.2 Specific Goals


2. Methodology

2.1 Phenomena of Interest

Figure 2-1 Graph for System Working Princple

2.2 Sensor(s) Review

2.2.1 Water Level Sensor

Working Principle
<img src="Report/watersensor-1.jpg"/ width="75%" height="75%"/>
Figure 2-2 Water Level Sensor

2.2.2 Infrared Motion Sensor

Working Principle
Figure 2-3 Working Principle of PIR Motion Sensor[[2]]
Table 2-1 Details about PIR Motion Sensor[[2]](http://kookye.com/2018/11/06/arduino-lesson-pir-motion-sensor/)
Pin or Control Function
Working voltage 4.5V to 20V
Output High: 3.3V, Low: 0V
Detection angle Approximately 120 degrees
Range Adjustable 3 to 7 meters
Digital Output Pin Low when no motion is detected. High when motion is detected. High is 3.3V
Power Pin 4.5 to 20 VDC Supply input

2.2.3 Photosensitive Light Sensor

Working Principle
Figure 2-4 Photoresistor in sensitive light sensor[3]
Figure 2-5 Photoresistor in sensitive light sensor[3]

2.2.4 Temperature and Humidity Sensor(DHT11)

Working Principle
Figure 2-6 DHT11
Table 2-2 Details about DHT-11
Measurement Variable DHT-11
Temperature Range 0-50℃ ±2℃
Humidity Range 20%-80% ± 5%
Sampling Rate 1Hz
Body Size 15.5mm×12mm×5.5mm
Operating Voltage 3.5V
Max During Measuring 2.5mA

2.3 Demo Construction

2.3.1 Relay Circuit

Figure 2-7 Four Way Relay in Circuit

2.3.2 Sensor Programming

BCM method was used to write Python code and control the communication process between sensors and Raspberry Pi. DHT11 temperature & humidity sensor and infrared sensor can directly send digital signals that could be read by Raspberry Pi while photosensitive and water level sensor, on the other hand, can only send analog signals instead. It means that we need add an Analog to Digital Convert (ADC) and write extra Python method named read_adc_value to convert analog signal to digital signal. After receiving signal value, RPI is required to send command to control relays. Then we connect the ADC module according to the tutorial from Kookye Kit official website to make it work normally, and connect the sensors and relays in Raspberry Pi circuit according to the GPIO number in code, by which our group achieve the working of system controlled by terminal.

2.3.3 Demo Assembly

Figure 2-8 Connected Sensor
Figure 2-9 Acrylic Plate
Figure 2-10 Demo before Final Construction

3. Experiment

3.1 Sensor Test

Figure 3-1 Sensor Test of Infrared Sensor and Lightsensitive sensor.
Figure 3-2 Sensor Test of Infrared Sensor and Lightsensitive sensor.

3.2 Demo Test

A demo was made to achieve our thoughts after finishing the sensor test and demo construction (Figure3-3). Further test will be done to check if the demo works well. We will run all the code and test the functions. The initial stage is an empty room with the surrounding lights on. Detailed test process is showed on the video.

Figure 3-3 Demo of Smart Aquarium

Infrared Motion Sensor

Figure 3-4 Infrared Motion Test

Water Level Sensor

Figure 3-5 Water Level Test

Photosensitive Light Sensor

Figure 3-6 Light Sensor Test

DHT-11 Temperature and Humidity Sensor

<img src="Report/Openchirp.png" width="280" height="210/>
Figure 3-7 Openchirp Operation

4. Discussion

  1. We have been able to monitor data through openchirp. It is hoped to further develop a mobile application to attach to the server with a better UI to multiple the devices in tank.

  2. Due to limited funds, we only used one water pump for the test. In fact, as long as there are two pumps with a common set of code, only one is located in the water tank and the other is placed in the water supply source, the functions of pumping water and absorbing water can be realized, thus realizing the real sense of automatic water change.

  3. A lot of room can be improved in product design. For example, we can add more waterproof measures to the wire, seal the wire, and wrap the exposed wire; Choose more beautiful light source and provide Wifi connection function; Blend in ecology design on the appearance, let our aquatic animals box have life breath. In order to prepare for further commercialization.

  4. Some of the sensors are too sensitive, for example, the infrared sensors are too sensitive, while some are too low, which do not meet our expectations. We want to be able to calibrate the sensors so that they do what we want them to do.

5.Reference