Skip to content

15. Interface and Application Programming

For this week, I have learnt on:

Interface and Application Programming

For this week, I have worked on:

Before I chose one of the program((ming languages to learn, I have read different professionals,sharings from Professor Neil and the internet, somethings I should know to start my study journey of Programming.

One of the points that reminded me was “Build Meaning Projects”. This is the right time for me to finish my project by using an appropriate programming languages.

Group Assignment

We have compared many tool options. If you have interest, you can CLICK HERE to know more about the details. Some main points are mentioned below.

Many Programming Languages can be used to interface a user with the input and output devices nowsadays.

Top 5 Programming Languages in 2020 were recommended to learn:

IMAGE ALT TEXT HERE

  1. Python

Can handle large amounts of data
Good at scientific calculation
Good at financial calculation Write in Simple Grammar
Can learn quickly
Easy to Run

  1. JavaScript
  2. C
  3. Swift
  4. Java

Individual Assignment:

For my final project, I would like to add a colour sensor which can detect the concentration of ammonia/ammonium ions with a indicator. The ammonia test indicator will turn different degree of green colour according to the concentration of ammonia/ammonium ions. I will design a tailor-made screen in my computer to show the degree of green colour from each water sample in order to indicate whether the water sample is safe or dangerous for the living of the fishes.

A new PCB board, ESP32, is produced for colour analysis

A sample program for the light sensor, tcs34725, was used from week 11 lecture.

Four different colours including Red, Green, Blue and White can be shown on the computer screen acting as interface after programming applied.

Window interface for clearer colour analysis

The programme was tested by using the objects with different colour, Red.

The programme was tested by using the objects with different colour, Blue.

The programme was tested by using the objects with different colour, Green.

Changing the Python language is to show the Green Colour Indicator only.

Changing the Python language is to show the word safe or dangerous!.

Changing the Python language by the reference from searching internet.

I will test the hazard limitation of ammonia/ammonium ions which can be tolerated by the fishes in our school aquaponics system by using the specific indicator for ammonia/ammonium ions.

This collected datas will be set as safe or dangerous index for the fishes living in the above-mentioned system.

The specific ammonia/ammonium ions indicator will turn into different degree of green colour according to the concentration of ammonia/ammonium ions in the mixture. Therefore, green colour will only be needed to select for the safety index according to the colour change of the mixture with the ammonia/ammonium ions and the test sample.

After using the colour sensor, colour changes would be measured as the numberical index that can be shown in the connected computer. If the numberical index of green colour which was greater than 3500, the status would show Dangerous!

The tap water sample had mixed with the specific ammonia/ammonium ions indicator in a transparent bottle. This bottle with all mixtures was then put inside the special design container attached with the colour sensor.

The numberical index for the tap water sample is below than 3800 so the status would be shown as safe.

Since this is one of the meaurements for my final project of aquaponic system, I had checked that one of the indexes of the good living environment for the fishes was the low concentration of ammonia/ammonium ions. 23.7 mg/L is the maximum concentration of ammonia/ammonium ions that can be tolerated by the fishes. Therefore, the standard ammonia/ammonium ions solution had been prepared with the concentration of 23.7 mg/L and sensed.

The safe green index, greater than 1750, for the standard ammonia/ammonium ions solution was set that is according to the reference from the green colour index for the standard ammonia/ammonium ions solution concentration (23.7 mg/L).

After selection of safe green index as greater than 1750, the following process could be shown that the water sample from our school aquaponics system was safe enough for the growth of the fishes inside.

IMAGE ALT TEXT HERE


Last update: July 3, 2021