A banned driver tried to flee when he realised he had attracted the attention of a police patrol.