As it is it looks like they are much too close to each other.
Just having them electrically separated is not enough, you have to account for arcing in all kinds of conditions as well as temporary over voltage (spikes) on the current carrying wires.
As it is it looks like they are much too close to each other.
Just having them electrically separated is not enough, you have to account for arcing in all kinds of conditions as well as temporary over voltage (spikes) on the current carrying wires.
The OP is correct, for a non-isolated product (one with user exposed metal bits and connectors) you're not paying enough attention to separation and protection. UL would probably require double insulated wires, wire guides, and moving your wire lug away from logic circuits, adding a fuse, along with all sorts of requirements on labeling, etc etc.
Also, are you calculating RMS current or average current? Without a voltage tap, you also can't determine power due to power factor.
A (very safe) alternative to using the hall sensor the way it is wired up right now: consider wrapping the current carrying wire around a ferrite core and putting a number of turns around the other side of the core to pick up the current (a very basic transformer). That way there is absolutely no need to go 'near' to the low voltage part of the circuit with the high voltage portion of the wiring.
That's called a current sensing transformer.
You could also place the hall sensor if you really want to use that in the gap of a slotted toroid around which the primary wire is wound a number of turns.
Adding a fuse is a basic precaution, you should size it based on the wire thickness that you are using.
You are doing pretty good but beware of knowing 'just enough to be dangerous'.
Alternatively once you've finished prototyping the circuit you could hand off the process of packaging it in a way that complies with the various standards to an electrical engineering firm, from a liability perspective that might be a good idea anyway.
hth
(I would personally have pasted a photocell onto the power LED, if I really needed to know the TV's state, but that's just me. My TV doesn't have a button for "power on", but it responds to a remote code for one.)
(However, low voltage doesn't mean that an accidentally dropped conductor wouldn't ruin your day, so insulating them would still be a good idea.)
Making assumptions about which line carries phase and which is neutral can cause very nasty surprises and should never be a factor. You're one broken circuit away from being the shortest path to ground, even in the neutral line (you'll still have the load as a drop resistor but it's not good).