11. Interface and Application Programming
![](images11/9.png)
![](images11/8.png)
- Design Challenge: Write an application that interfaces with an input or output device that you made
- Software: avrdude,CrossPack,terminal
- Tool: FabTinyISP
- Date Completed: 11.28.17
App Inventor
This week is kind of hard for me since I do not have any coding backgound.
![](images11/1.png)
I planned to build an app interface with AppInventor since I do not have any coding background.
![](images11/10.png)
This is the code that I wrote.
![](images11/2.png)
I need to install Emulator since I do not have an android phone.
![](images11/3.png)
This is the "app" that I built. However, it is not recording anything. Therefore, I decided to use try python instead.
Python Sounddevice
![](images11/4.png)
I decided to write something that is able to record the sound. I followed the instructions here.
![](images11/6.png)
First, I tried with this code to record a few seconds of audio and save to a WAVE file.
![](images11/5.png)
It worked! Then, I used this code to playback the recorded audio.
![](images11/7.png)
Do not forget to installed the sounddevice library.
Output Text
![](images11/9.png)
However, I have trouble to getting my board to talk to my computer. I decided to use Neil's code from last week. I modified the code and tried to make it to generate the signal received by the microphone.
![](images11/8.png)
This is the text of sound signal that my input devices generated.