I've not used this app but this is definitely possible and has been covered in the literature. The final link is to a paper presented recently which actually proposes using a mobile phone for this.
Would be interesting to see what other information can be extracted from optical signals. Tricorders can't be that far off now.