Week 16
Interface and Application Programming
The objective :
The assignment for this week is to write an application that interfaces with an input or output device that I made.
Tools :
|
Name |
Uses |
1 |
Arduino (software) |
Programing |
2 |
Eagle (software) |
Designing |
3 |
PCB copper clad board |
Board Mterial |
4 |
Hakko-936 |
Soldering Machine |
5 |
Bluetooth |
(HC-07) Bluetooth |
6 |
Cirqoid |
milling machine |
7 |
Android Mobile |
For Controling |
8 |
MIT App Inventor 2 |
Design a mobile App |
1.Boards preparation:
2.Programing :
I used the following code for programing
include <SoftwareSerial.h>
SoftwareSerial mySerial(0, 2); // RX, TX
void setup() {
mySerial.begin(9600);
pinMode(3,OUTPUT);
digitalWrite(3,LOW);
}
void loop() { // run over and over
if (mySerial.available()) {
char a=mySerial.read();
if(a=='1'){
digitalWrite(3,HIGH);
}else if(a=='0'){
digitalWrite(3,LOW);
}
}
}
3.Application Development :
This is the first time that I have ever try to create a mobile application I used the online MIT App Inventor 2 to creat my application as shown below.
Designing the App layout
After completed the app layout I moved to block option to setup the app functions.
Download:
I really like this tool and defiantly i am going to use it to develop some app in future.
my final product in this video :
Previous Page Home Next Page