Methods of Galvanic Isolation.
The classic definition of galvanic isolation goes like this:
Galvanic isolation is the transfer of energy or a signal between electrical circuits without electrical contact between them.
But I think beginners have questions after reading this definition:
How is it done and why is it needed?
It can be done in many ways, for example with a transformer.

The picture shows that the transformer windings are not connected to each other by wire, and the energy is transferred by the magnetic field.
Galvanic isolation with a transformer doesn't require much knowledge and allows both energy for powering devices and signals to be transferred via the magnetic field.
But this method of galvanic isolation has drawbacks:
Another equally popular way to implement galvanic isolation is with an optocoupler, in which the signal is transmitted by light.
This method of galvanic isolation has low efficiency because of the double conversion (electricity — light — electricity), which means it can't be used to transfer large amounts of energy, only to transmit signals. That is, with a transformer you can convert 220 volts to 12 volts and power the required device from 12 volts, but you can't do that with an optocoupler.
Another interesting method of galvanic isolation uses sensors based on the Hall effect. A Hall sensor works by responding to changes in the magnetic field and producing a voltage proportional to the magnetic flux density.
I'd like to note that Hall sensors come in two types: analog and digital. Analog ones convert the magnetic flux density into a voltage whose value depends on the polarity and strength of the field, while digital ones only detect the presence of a field.
Using an analog Hall sensor, you can make instruments that measure the direct current flowing through a wire without direct contact with the wire itself.

A digital Hall sensor can be found in a computer fan.

So why is all this needed after all?
Galvanic isolation is used to solve the following problems:
That's all.
Galvanic isolation is the transfer of energy or a signal between electrical circuits without electrical contact between them.
But I think beginners have questions after reading this definition:
How is it done and why is it needed?
It can be done in many ways, for example with a transformer.

The picture shows that the transformer windings are not connected to each other by wire, and the energy is transferred by the magnetic field.
Galvanic isolation with a transformer doesn't require much knowledge and allows both energy for powering devices and signals to be transferred via the magnetic field.
But this method of galvanic isolation has drawbacks:
- it works in a certain frequency band;
- it works only with alternating voltage;
Another equally popular way to implement galvanic isolation is with an optocoupler, in which the signal is transmitted by light.
This method of galvanic isolation has low efficiency because of the double conversion (electricity — light — electricity), which means it can't be used to transfer large amounts of energy, only to transmit signals. That is, with a transformer you can convert 220 volts to 12 volts and power the required device from 12 volts, but you can't do that with an optocoupler.
Another interesting method of galvanic isolation uses sensors based on the Hall effect. A Hall sensor works by responding to changes in the magnetic field and producing a voltage proportional to the magnetic flux density.
I'd like to note that Hall sensors come in two types: analog and digital. Analog ones convert the magnetic flux density into a voltage whose value depends on the polarity and strength of the field, while digital ones only detect the presence of a field.
Using an analog Hall sensor, you can make instruments that measure the direct current flowing through a wire without direct contact with the wire itself.

A digital Hall sensor can be found in a computer fan.

So why is all this needed after all?
Galvanic isolation is used to solve the following problems:
- making the signal circuit independent, which improves noise immunity, the signal-to-noise ratio in the signal circuit and measurement accuracy;
- ensuring the safety of people working with electrical equipment;
That's all.
