Hi,
Often people dont want to have to add extra transformers to their projects. This is when we look for other solutions.
For example, if the original PIC board is already line isolated (e.g. wall wart) then another solution is to use a second low end PIC with offline non isolated power supply (cheap as you can get) and use that to sample the current or voltage, then send the data digitally through an opto coupler to the original PIC chip which reads the data every so often. This also means the original chip bandwidth is preserved for doing the more regular tasks while the second chip does all the fast sampling.
A typical low end PIC is the 12F675 which has 10 bit AD converter.
Often people dont want to have to add extra transformers to their projects. This is when we look for other solutions.
For example, if the original PIC board is already line isolated (e.g. wall wart) then another solution is to use a second low end PIC with offline non isolated power supply (cheap as you can get) and use that to sample the current or voltage, then send the data digitally through an opto coupler to the original PIC chip which reads the data every so often. This also means the original chip bandwidth is preserved for doing the more regular tasks while the second chip does all the fast sampling.
A typical low end PIC is the 12F675 which has 10 bit AD converter.