creating a controllable tens machine

Retroplayer:

I have been looking into the more modern alternatives and came across the MC34063A ( MC34063A data sheet, product information and support | TI.com )

I also have come across this link that provides a design tool for using it:

From what I gather, the following inputs would be used (for the design tool)

Vin 5v
Vout 40v
Iout 30mA

Would that be a suitable replacement? Any further hints would be appreciated. I have the programming side sorted (have experience with python) but its the hardware side thats holding me back.

Kind regards,

Tom