Write an application that interfaces with an input and/or output device that you made, comparing as many tool options as possible.
What I did :
I designed an output board , I used a blue color LED to control via application, for interfacing I’m using Bluetooth.
Bluetooth is a wireless technology standard for exchanging data over short distances.
Interface is a point where two systems, subjects, organizations, etc. meet and interact also it is a device or program enabling a user to communicate with a computer.
1- Bluetooth protocal: Bluetooth Specification v2.0+EDR 2- Frequency: 2.4GHz ISM band 3- Modulation: GFSK(Gaussian Frequency Shift Keying) 4- Emission power: ≤4dBm, Class 2 5- Sensitivity: ≤-84dBm at 0.1% BER 6- Speed: Asynchronous: 2.1Mbps(Max) / 160 kbps, Synchronous: 1Mbps/1Mbps 7- Security: Authentication and encryption 8- Profiles: Bluetooth serial port 9- Power supply: +3.3VDC 50mA 10- Working temperature: -20 ~ +75 Centigrade 11- Dimension: 26.9mm x 13mm x 2.2 mm
What I did :
This is my schematic design.
This is my board design.
This is my board , finally .
Application Development :
I used MIT App interface web based software to program my application. I was so happy that it was user-friendly since I don’t have any background on app programing. For studying purpose I went through Youtube to see some tutorials.
In designer side , I made two buttons on and off and paced them vertically and also added a logo below with my initials and used font, color and sized to edit my initials as shown above.
In block side I finished the connectivity of the code.
By adding :
- List picker before picking to click bluetooth and view the available devices list.
- List picker after picking with an “if” checking if the bluetooth is connected or not.
- Button 2 when clicked will turn off.
- Button 1 when clicked will turn on.
Programming :
I used the below code to program the micro controller in my board , I defined 0 as low which means it will turn the led light off so when I press off in my app , it will switch the led light off. And 1 as high which means it will turn the led light on , So when I press on in my app the led light will turn on.