I was playing around with construction of a 'radar', using Lego Mindstorms NXT bricks. It is simply a Tach Motor coupled to the Ultrasonic Sensor, that twists back and forth 180 degrees.
The problem was with the supplied cables .. they are very stiff and kept getting hung up on everything and anything nearby, plus kept flopping in front of the sensors path.
So, falling back on my years working in aerospace, I decided to make a rudimentary version of a 'twist capsule' to help with the problem.
Basically, it's a fairly long length of flat ribbon cable (like a MindSensors 3m Flexi Cable), connectors crimped on both sides, then rolled up like a watch spring. The cable exits the center of the coil at a right angle and from the outer edge. A pancake coil.
I cut out a couple of stiff cardboard discs and punched holes in the centers to act as retainers.
To assemble:
A long cross shaft is pressed into the Tach Motor hub, sticking upwards.
One of the discs slides over the shaft.
The cross shaft pokes through the center of the pancake coil, along with the center cable & connector. Enough cable needs to be pulled out to connect to the sensor.
The other disc slides over the shaft. This helps with keeping the pancake coil in shape.
The Ultrasonic Sensor (with a few additional brick pieces) attaches to the end of the cross shaft.
The outer coil cable was loosely attached (tie wrap or bread tie) to one of the mounting holes on the Tach Motor.
It worked! The pancake coil wound and unwound just like a watch spring.
I also found out there was enough free 'twist' to allow for scanning in 360 degrees without any issues.
Granted, this does not allow for continuous rotation, but for my purposes it works extremely well !
The other option in mind was to point the Ultrasonic Sensor (or the IR Sensor) upwards and construct a motor/reflector system, but ...
Hope this idea helps !