It’s ridiculously easy to lay hands on a cheap DC-to-AC inverter ... square wave with a slight delay at the zero-crossing points to achieve the stepped pattern, and shows a simple H-bridge ...