Beruflich Dokumente
Kultur Dokumente
6. HARDWARE
The hardware considerations for the experimental unit
were to mimic user conditions closely but additionally
facilitate repeatable control tests to generate a dataset,
Dataset 1, which was used to develop the ow
estimation algorithm. Additional tests were performed
using the experimental unit to test other factors of
operation to generate Datasets 2 and 3.
7. SOFTWARE
The software design required sampling of sensors,
scheduling of function executions and flow events, and
5.SENSOR BASE ON NON-INVASIVE storage of the recorded data. The three aspects are
MEASUREMENT interlinked and are thus di-cult to explain in isolation.
A Raspberry Pi 3 was used to sample the sensors and Experiments were designed and executed (using
control the water flow experiments. The RPi has scheduling) to generate specific, useful dataThe data
su-cient GPIO pins to receive the flow meter data sampling and storage script, or "acquisition system",
(GPIO pulses sampled using GPIO interrupts) and was executed on the RPi. The acquisition system was
control the solenoid valve (SV). I2C communication is coded using Python 2.7 to ensure that all the required
also supported to communicate with the accelerometer python packages were compatible. Python packages
and temperature sensors. The RPi has 3.3V VCC lines which were heavily used in the acquisition system were
which are su-cient for the flow meters, accelerometer Pandas to store and manipulate local data,
and temperature sensors. The solenoid valve required APScheduler ('Advanced Python Scheduler') to control
12V to operate and this was supplied using an external when functions were executed, and SQLAlchemy to
3
connect to the MySQL database to store recorded data.
A library was available to setup LSM303 accelerometer
which reduced the development time.
The acquisition system was used to sample all the
sensors, performed the scheduled opening and closing
of SV to induce flow events according to a pre-
determined schedule and stored the recorded data to a
local MySQL database. The data stored in the MySQL
databases generated Datasets 1, 2 and 3 which were
post-processed as described in Chapter 5 to create and
evaluate the non-invasive flow estimation system.
8. SIMULATION:
REFERENCES.
https://scholar.sun.ac.za/bitstream/handle/
10019.1/103573/pirow_development_2018.
pdf?sequence=1&isAllowed=y