Week 14 | Interface and Application Programming

Fab Academy 2018 | Archive


For Interface and Application Programming week, I used MIT app inventor to create an application which can communicate with Bluetooth HC-05.

To do so, I first created a project in MIT app inventor.



Then I created the design of my app.

Which includes two buttons, one for opening the door, second for the closing the door.

I included a List picker which is used to select which bluetooth device we are going to communicate with.

App inventors bluetooth client block module provides functionalities to communicate and transfer data with-to bluetooth device.

As you can see in following image, Once bluetooth is connected, Two buttons are going to be visible.

By clicking button1 (refers to open the door), will send character 'd' to the connected bluetooth device. By clicking on button2 (refers to close the door), will send a character 'D' (capital D) to the connected bluetooth device.


(Apk file of this application is attached in files section)

I connected the Bluetooth with my slave board which is powered by AtTiny45. RX-TX of bluetooth is connected to the slave-board-D (Slave-board-D has been programmed to catch signals /characters 'd' or 'D', code file is attached in files sections )
For powering both bluetooth an slave board, I used my FabISP module.

Working video




Updated Application


I updated the application as guided by my Global Evaluator. Here in the application when the we press "Open Door", the servo moves and other tab of "close door" will come. And the door automatically closes on connnecting the bluetooth. The code for the slave circuit is same.




Files