Abstract-In electric vehicles, it is normal to have an electronic set value for 'gas' and for 'brake'. Traditional potentiometers with sliding contacts are not reliable. Magnetoresistive sensors or hall effect sensors need a magnet on the moving part. The proposed sensor just needs iron on the moving part. It uses an oscillator circuit where the absorbed current is an indication of damping, so how close the iron is to the sensor. The component cost is low and the output has a soft gradual change with the displacement.