Home

Project 12- Interface and Applications Programming

This week I made an application that displays data from my light sensor

Goals

Class Assignment:

Things I took away from this week

The ~Process~

  1. Group Assignment
  2. This week's group assigment was to compare different ways to create applications. I was looking at the different things that MATLAB could do to display data. I've used MATLAB before to make pretty graphs, but did you know that MATLAB has a package to help people make apps? It has this really nice GUI where you can edit different features. You can also edit the code that controls each of the features. MATLAB can also read serial data with this code : However, MATLAB still isn't great as a gernal purpose programming tool and would take much longer than it's worth to figure out how to make an application with it.
  3. Pulling data from the input board pt. 2
  4. I pulled out the board from inputs weeks and tried getting communications working again. I had a lot of problems with this. Whenever I ran the program command the terminal window would just continuously output the beginning stuff, but would get stuck at the "Waiting for NVM prog" line. I looked up the error and got nothing. I also tried turning off my anti-virus, which has sometimes worked. But this didn't work either. I even cut out a new board to try and get it to work, but before I stuffed the new sensor I talked to Anthony and he suggested I run the program command without the verbose output (without the -v at the end). This worked! Thank goodness. Once it worked without the -v, it wasn't getting stuck.
  5. Designing/coding the app
  6. After tinkering in MATLAB for a bit I went into processing to create the application. I just wanted to get the script to graph the light level. I looked at

    this

    tutorial to learn how to plot serial data from arduino using processing. I ran this code from Arduino: And this code in processing: To get this output: