A method for producing a guidewire, the method includes producing a position sensor by providing a shaft-section having a solid profile, which is sized and shaped to move in an anatomical material transportation system. A wire is wound around an axis of the shaft-section and first and second ends of the wire are coupled to respective first and second locations on an outer surface of the shaft-section. A guidewire-shaft is provided, and the position sensor is coupled to a distal end of the guidewire-shaft.