Can someone explain why the transformer is on the DC side of the circuit in the diagram he draws at the beginning of the video?
This is a switch mode power supply. In order to use a smaller transformer it uses very high frequency AC rather than 50/60Hz mains frequency. In order to do this it rectifies the mains input to high voltage DC (330/220Vish, depending on the mains voltage) then using a power transistor rapidly switches this on and off at around 1-10kHz. Then the transformer outputs low voltage AC which is re-rectified and filtered to…
How does the chip get 5V, out of interest? Given that it's not allowed to be connected to the non-isolated side?