This can be done by moving a magnet in a coil if wire or moving a conductor in a magnetic field. Shifting the magnet from side to side causes a blip in the current. If you move the magnet or conductor in the opposite direction, then the p.d or current will be reversed