crjens / PiPowerMeter

Raspberry Pi Power meter
89 stars 34 forks source link

How 's the kWh calculation going? #10

Open gelezayka opened 4 years ago

gelezayka commented 4 years ago

How 's the kWh calculation going?

How many measurements take place per hour?

And in general it is interesting for how much ms get full data on current?

Just I made an almost similar device, but I use MCP3208CI/SL there and all rms calculate in code, more than 40 current sensors do not get to use to withstand 3200 measurements per hour.

Thanks.

crjens commented 4 years ago

Power calculations are performed by the CS5463/5490 IC's. By default the chip samples the incoming current and voltage waveforms for 1 second (at a rate of 4000 samples/sec) and then does the power calculations. It can be configured to use fewer total samples at the expense of potentially reduced accuracy. Details on the chips are here: CS5463, CS5490