This looks great…but I just have one theoretical question.
Aaron Fister

The mosfet was indeed fed with DC (5V from the USB port), and was used to amplify the square AC wave that was generated by the Arduino, which was connected to the gate of the mosfet. So it is essentially, as you say, using DC with the mosfet turning it on and off very fast.