Where 63 is Amps we want to measure, 2000 is the number of turns in the SCT-013-000 and 2.5 is our reference voltage.
This also tells us that we should be using a 56Ohm resistor in the circuit via (63*sqrt(2))/2000).
So running this at 100A would be:
(100/((100 sqrt(2))/2000))/(2.5/((100 sqrt(2))/2000)) = 40 as calibration value
and
(2.5/((100 * sqrt(2))/2000) = 35Ohm (which would be a 33Ohm resistor)
Currently the values in the code are made for using with another resistor as burden and was done to bring down the sensitivity from 100A to 63A.
The calculations should be something like:
(63 / ((63 sqrt(2))/2000)) / (2.5 / ((63 sqrt(2))/2000))
Where 63 is Amps we want to measure, 2000 is the number of turns in the SCT-013-000 and 2.5 is our reference voltage.
This also tells us that we should be using a 56Ohm resistor in the circuit via (63*sqrt(2))/2000).
So running this at 100A would be:
(100/((100 sqrt(2))/2000))/(2.5/((100 sqrt(2))/2000)) = 40 as calibration value and (2.5/((100 * sqrt(2))/2000) = 35Ohm (which would be a 33Ohm resistor)
References: https://openenergymonitor.org/emon/buildingblocks/calibration https://openenergymonitor.org/emon/buildingblocks/ct-sensors-interface