I hope the wire is not wound too tightly around the bar magnet.
The device will generate electrical energy when the bar magnet
is moving in or out of the coil of wire.
Mechanical efficiency is a measure of how well the machine converts the input work or energy into some useful output. It is calculated by dividing the output work by the input work. The ideal machine has mechanical efficiency equal to unity, while the real machine has mechanical efficiency less than unity
The only thing we know of so far that can shift light to longer wavelengths is the "Doppler" effect. If the source and the observer are moving apart, then the observer sees wavelengths that are longer than they should be. If the source and the observer are moving toward each other, then the observer sees wavelengths that are shorter than they should be. It works for ANY wave ... sound, light, water etc. The trick is to know what the wavelength SHOULD be. If you know that, then you can tell whether you and the source are moving together or apart, and you can even tell how fast. If the lines in a star"s spectrum are at wavelengths that are too long, then from everything we know right now, the star and Earth are moving apart.