Interface and Application programming





    Task of the week

    What I have did

    Individual assignment :

  • Have designed the application in MIT app inventor that interfaces the user to on/off LED.

  • Write an application that interfaces a user with an input &/or output device that you made.

  • In my final project this application will interfaces the input and output devices.

    Group assignment :

  • In this application we can see the input readings of BH1750 light sensor and it allows the user to on /off the motor if the light intensity is greater than 500lux.

  • Compare as many tool options as possible.

  • Have used MIT app inventor and processing for developing the application for phone.

  • Have compair them with each other.



    Week-12



    In this week we have the task of writing an application that interfaces a user with an input &/or output devices that we made. I have used two interfacing software’s, MIT App Inventor and processing for making application for operating the output device.


    Individual assignment : -


    MIT app Inventor : -

    MIT App Inventor is a web application integrated development environment originally provided by google, and now maintained by the "Massachusetts Institute of Technology (MIT)".This software will provide an easy interfacing for beginners. It is free and open-source software. I have added this information for the “Wikipedia”. For creating app in this software first we have to go for “appinventor.mit.edu” website. When we search for this website we can seen the below page on our screen. This is the home page of “MIT App Inventor”.


Week1-2

    After this window get open, and then we have to click on “Create App!” button. A dialogue box gets open on the screen where we have to write the name of project i.e. we have to give the name for the app we will create in the MIT software. Here I have write the name as “Bluetooth”.




    After this window get open, and then we have to click on “Create App!” button. A dialogue box gets open on the screen where we have to write the name of project i.e. we have to give the name for the app we will create in the MIT software. Here I have write the name as “Bluetooth”.

    Following are the steps for making app in the “MIT app inventor” : -


    I want to add “ON/OFF” button in my application, so I have select button component from palette section from the right hand side of the screen twice and it will get add in the component area at the left side of the screen. We can make some geometrical changes if we want to the selected component.




  • I want to arrange the ON/OFF buttons in the horizontal arrangement therefore I have selected the horizontal arrangement option.

  • I have used “HC 05” Bluetooth module for making interface between the application I have made and the hardware that is “LED” , hence I have selected ‘Bluetooth client’ in MIT app inventor.

  • The components we have selected for the app it is get added in the component list to the right hand side of the screen so that we get to know what component we have selected and also, we can delete any the component we want.




  • We can see the following two options for generating barcode; we have to choose the first option. It will take time for creating barcode which we can scan with the help of ‘MIT AI2 Companion’ in our mobile. To get this application in our mobile we need to install in our mobile.



    Design editor : -

    The MIT app inventor has two types of user interface one is design editor and the block editor. In the design editor we can drag and drop the lay out of elements like the block of button, text,...etc.


    Block editor : -

    On the other hand the block editor is the different environment in which we can visually can arrange the different color-coded blocks to place the logic of the app. We set the logic of app by arranging these color-blocks in the way we can solve the puzzle pieces.

  • Following is block level programming of the application we have made. We have to choose the different blocks from the block section and we will make the changes in the program we need.


Week1-2
  • In the below image we can see the application on the operating screen as well as on our mobile screen. This will make the provision of operating the ‘LED’ remotely by using our android devices.



  • We can see the generated barcode as follow which we can scan with the help of our mobile.




  • This is the video I have uploaded on my youtube channel in which I have shown the ON/Off operation of ‘LED’ by using the application in my mobile.




    Modification in the above app : -

    I have design the above app for getting the idea of designing the app. But in my final project I need an app which will help me to control the motor (i.e ON/OFF the motor) through bluetooth. So for that I have done some modefications in my previously designed code.

    My additional application was to add a display of showing the light intensity readings on the mobile screen and . The ON/OFF application is get perform by the same mobile app. So that I have add the Clock in the block code.

    So in the below image we can see the modified code to ON/OFF motor.

    Video of app running with my board : -



    Processing : -

  • Processing is an open-source graphical library and integrated development environment (IDE) built for the electronic arts, new media art, and visual design communities with the purpose of teaching non-programmers the fundamentals of computer programming in a visual context.



  • In processing I have tried some readily available examples from the website of “Processing” . I have done this to get the idea of processing, so that it will help me in future to make interesting application.







  • At primary stage of processing I have refer the youtube video for beginners. In which have learned about how to draw a simple rectangle and a line by using a code.








    Download files : -

    Learning outcomes : -

  • In this week I have use several application and interfacing tools like MIT App Inventor, Scratch, Processing.

  • While using these tools I find MIT App Inventor easier to operate than other tools.

  • These tools are so much interesting to use and to explore not only for making application but also for making games.

  • The main advantages of these tools are they are easier to operate remote applications.

Creative Commons License
Solar Automatic Shredder by Tejswini Chaudhari is licensed under a Creative Commons Attribution-ShareAlike 4.0
International License