WEEK16-ITERFACE AND APPLICATION PROGRAMMING

This week assessment is write an application that interfaces with an input and/or output device that you made, comparing as many tool options as possible. A phone app is need in my final project for controlling the car and receive the messages from MCU. So I use MIT app inventor make an app. This app has some functions: receive signal from mcu show the distance detected by sona, send signal to mcu control one servo and two led; press start the servo move and the green led on and press stop the servo move back and the red led on.

1. Hardware

The board is my final project board, there are two leds, two servos, one sona, one blue tooth HC05.

2. APP programming

There is a problem when I open MIT app inventor even I open a vpn. But fortunately there is another website buy the rights from MIT, so I can use. Open the website APP INVENTOR. An account need be registered, also a QQ account can login in.

800x600

Build an new project.

800x600

Drag the icon on the left to the workplane, then you can desgin the interface.

800x600

The interface is designed below.

800x600

The logical design is showed in the picture.

800x600

Click on build and click on provide QR code for .apk, then scan it with android phone, the app can be installed in the phone.

800x600

The app was installed in the phone and it was showed in the picture.

800x600
3. APP test

The textbox show the distance which the sona detected. I press start servo 2 move and green led is on, I press stop servo 2 move back and red led is on.


APP DOWNLOAD