Monday, 27 November 2017

Week 10: Learning New Things

Haiiiii guyssss it's me Chiam updating the weekly blog here....hmmm....continuing from last week, it is mentioned that there are actually two ways to do our autofocus function on the DIY microscope.
Where the first is to connect the Arduino controlling the lever to the smartphone directly and thus from there, using the smartphone camera that came with auto focus function to control the movement of the lever. The another method is to connect the smartphone camera to a computer. From the computer, image analysis is done using the MATLAB software, and again, from the software, signal is sent to Arduino to control the movement of the lever.

After some consideration and discussion with our lecturer, Dr. Woon, we decided to move on with method 1. This is because method 1 requires less platform and thus increases the efficiency of the auto focus. And also, since the main thing here is the smartphone, as mentioned in the title "Polarizing Microscope Using Smartphone", we think that it is more appropriate to have all the process done within the smartphone itself. Besides that, as smartphone camera comes with auto focus function, we strongly believe that it has the mechanisms that we are looking for and by changing or creating some programming code, we might gain access to it and utilize the function.

So, the next thing now is image analysis within smartphone. As I am having zero knowledge on smartphone coding, Dr. Woon therefore introduced me to a senior of Material Science few years back then named Raqif, as he works with smartphone programming, I believe that he is able to enlighten me and teach me a lot of newwwww thingsssss.... *excited*

Although software such as MATLAB are available on mobile version (and maybe some other image analysis software too are avalaible in the smartphone), senior Raqif suggested me to create my own app instead. This is because if I were to use apps created by other people, it is hardly there is one that will fulfill 100% of my need to come out with the auto focus function on the DIY microscope. Also, by using apps created by others, it will be a lot of trouble when it comes to troubleshooting part because we don't know the coding behind the apps and cannot manipulate the code at all to serve my very specific needs later. Therefore, the best way is to create my very own apps! Where I can manipulate anything I want to serve for me only (of course, if you want it after it really managed to be developed, you can ask from me too XD HAHAH!). Hmm okk...

To develop an android app(because I'm using android phone), it is necessary to have a software named "Android Studio" on your computer.


Android Studio is a software developed by Google. It is an official Integrated Development Environment (IDE) used for Android app development. Android Studio offer a variety of features that enhance productivity when building Android apps, such as flexible Gradle-based build system, fast and feature rich emulator, extensive testing tools and frameworks and many more! To download it, kindly go to the link provided below!


Because Android Studio runs with Java code, a series of Software Development Kit (SDK) is therefore required to run the translate the code and to run in Android Studio. This means that, you should have:

1) A PC or Mac with Java installed.

2) A PC or Mac with Java SDK installed.

3) A PC or Max with Android Studio installed. 
Link mentioned above.

When the Android Studio is first launched, another series of SDK is required and should be appearing automatically. Be patient enough to download all of them so that your software can run in the way it should.

With all these software and SDK, you should be ready to run your Android Studio (yeayyy).

However, with the Android Studio ready to run, I am not yet prepared to create my own software, as I am having no knowledge on Java language. Therefore, to begin, I started to learn Java language. This week was about basic concepts, conditional and loops, arrays, classes and objects. With all these, the basic skill of Java language is there. On week 11, it is expected that I will be learning exceptions, threads, list and files and should be able to run some simply coding in Android Studio. 

As a conclusion, for week 10, I have developed and confirmed the working method I'm going to work with after a series of discussion and consideration with my lecturer and senior, downloaded a series of software required to create my own app (trust me, it takes quite some time to figure out and download all of them as there are a lot of SDK required), trying to understand the basic layout and function in the software and learning basic Java language.

That's all for this week guys! Stay tune to catch my progress and hope I will managed to develop the auto focus function to imply on the DIY microscope in few weeks time! See ya!



No comments:

Post a Comment