Assignment 16

interface and aplicattion programming

 

 
Have you:
write an application that interfaces with an input &/or output device that you made, comparing as many tool options as possible
 

 

APP INVENTOR: In this case, with the support of a friend (Carlos Silva) I learned to use the App Inventor program that allows you to design applications from simple to complex.

I decided that the application that would make it serious for my project and would be connected by Bluethoot. You can download the app in this link

1

Then, we create a new project and we will leave the interface to edit

2

 

The tools I learned to use are:

Button : to create the buttons of the application

Horizontal arrangement : to create a box where several buttons

Canvas : can go to have an image.

In this case I leave the box because the scope of my project is that you can see a photo of the plate or car and you can decide whether to open the door or not. The interface is similar to the Android Screen for simulate how you visualize.

3

4

5

At the end, I get the interface like this:

6

Now, you have to establish the connections of each button with the application. Enter the "blocks" section of the App.

You can start defining the entities in the application, and choosing the blocks that represent the function to perform.

In this case, the input are the information of the ultrasound sensor, if it is "YES" and if it is "NO"

7

Once this is done, we can put the QR code and we can scan it from any Android phone through the App "MIT AI2 Companion" available in Play Store.

8

And then, Scan the code with the cell phone throug the App Inventor MIT.

10

 

ARDUINO CODE: By means of a simple code we program the Bluethoot so that it detects when it is on and when it is not.

13

anexo 1

 

DOWNLOAD THE FILES: HERE