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.
The board is my final project board, there are two leds, two servos, one sona, one blue tooth HC05.
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.
Build an new project.
Drag the icon on the left to the workplane, then you can desgin the interface.
The interface is designed below.
The logical design is showed in the picture.
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.
The app was installed in the phone and it was showed in the picture.
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.