Controlling a TENS (muscle stimulator) device

It's probably better to use a MCU to build a tens unit rather than make an MCU control an existing analog tens.

These words "arduino diy tens unit" bring up a number of interesting hits

and several more hits.