Great thanks that's awesome news for debugging that thenCool!Yes, the transformer provides isolation from the line. Draw a little ground symbol on the long line at the bottom and that can be your reference for logic ground.
PS.
If the transformer puts out 40 volts RMS X 2 windings that will give ~ 112 volts when you filter it. A lot of "stuff" won't like that.![]()