mcmchris / MCM-Meter-2.0

Se trata de un medidor energético desarrollado entorno al microcontrolador ESP32 (Adafruit ESP32 Feather) capaz de medir energía en sistemas domésticos monofásicos de 120 o 240 voltios (fase partida) monitoreando dos potenciales con un solo medidor de corriente (CT no invasivo) y un sensor de voltaje (PT), la información capturada se transmite a un servidor montado en una Raspberry Pi con Home Assistant que te permitirá monitorear los datos en tiempo real, desde un ordenador o teléfono móvil desde cualquier lugar del mundo.
GNU General Public License v3.0
8 stars 3 forks source link

VCAL for 240 AC is wrong #1

Closed MohammedBENHADINE closed 2 years ago

MohammedBENHADINE commented 3 years ago

First thanks for this incredible project !

After checking the code it seems that you are using VCAL = 164.7 ( for 240 AC ) , but based on the schematic the initial calibration value is (( 240v110kOhm) / (9v 10 kOhm )) which is around 293.33.

Could you please explain why you have chosen 164.7 instead of 293.33 ?

Thanks

mcmchris commented 3 years ago

Hi, Thanks

You are right, first I configured my project to be connected between both live lines (L1 & L2 - 240v) but setting the VCAL parameter manually to set my Voltage lecture to 120V because it's my house voltage in Latin America, I did that to make lectures more precise, so if any line fluctuate this affect the entire voltage measurement.

While testing with my oscilloscope I noticed that my ADC was saturated when connected to 240v (L1 & L2) directely because of my PT relation (240v-9v) so I considered connecting just to L1 and Neutral to avoid saturation but considering just one line.

The parameter is wrong because of that.

MohammedBENHADINE commented 2 years ago

Thanks buddy for the explanation , otherwhise you have made a great project (the first project & this one) . Big UP