New smartphone diagnostic device created