Week-17 :- Interface and application programming

This week assigment is to design an application/GUI program which can communicate with microcontroller. I am planing to use bluetooth module HC-05 for this purpose. The corresponding program can designed using MIT App Inventor (open source platform to create android mobile application). I have an android smart phone with me too. This type of programming is new to me and I had gone through youtube videos to understand how the program is generated.

MIT APP Inventor

The user interface of the program have two section.

  • Block section:- The block sections have different block parameters. These blocks can be picked and placed to its location. Each block concist of a do function followed by bluetooth section. Extra text can be easilt added if require.
  • Designer section :- Designer section have many builtin tools like control, logic, math, text, List, colors etc.. The Listpicker, label, button etc are other functions for the app. All these functions have editing features for pictures, text sizes etc. Each functions can be picked and palce at the GUI interface.
  • Once after the blocks are arranged, the program can be created from BUILD>APK menu. This program can be installed on the android devices. The program which I created can be downloaded from here. The same is shown below.





    APK program installation in android device

    The program can be easily copied to the device and can be installed. Before installing make sure, your device is enabled for the third party software installation. A few picture of the installation steps is shown below.



    Microcontroller

    I have used the same satsha kit board used before, the design details of the same can be refered in my week-16 assigment.



    Assembly and testing

    The picture of the bluetooth module H-05 is shown below. The required wires for this modures are the following.

  • +5v
  • Gnd
  • Tx
  • Rx
    All the above terminals are connected to the satshakit, Tx, Rx, +ve and gnd pins. The program for the atmega328p chip can be downloaded from here.



    After the assembly, the android device is paired with the bluetooth module. The default password is 1234. Once after the connection is established the swith on and off function can be easily operated. The video of the same is shown below.