Never checked but, there could well be a smart phone app out there which does this or could be modified. I expect it'd take more than a single thread, maybe several bunched together to make an acceptable target.
Cuts the Arduino out of the loop but I take it the object is not to utilize an Arduino but to meet a need.
.02