The device of the present invention includes an electrochromic element having a transmittance that varies in response to an electrical signal, a base substrate disposed in spaced relation to the electrochromic element, a seal disposed between the base substrate and the electrochromic element, and an optical sensor. A first motor is positioned in the handle portion of the device to impart a first frequency of movement to the tip. The opposing surfaces of the rotor and stator carry permanent magnets and windings.