martin-ger / ESP8266-WiFi-Socket

Custom SW for the OBI "Wifi Stecker Schuko"
64 stars 7 forks source link

Magic Number '185' #5

Closed xk4l23 closed 5 years ago

xk4l23 commented 5 years ago

Hi Martin, I am currently building your metering power socket and I am trying to understand your sketch.

So far, I think I got your ideas but one line of code I do not understand well enough. What is the Magic Number 185 in line 116 to calculate Ieff = Ueff/185.0; about? Would you mind explaining this shortly?

Thank you and regards from Lake Constance, Björn

martin-ger commented 5 years ago

Ueff is in mV and the data sheet of the ACS712 says it has a scale of 185 mV/A.

xk4l23 commented 5 years ago

Now this makes sense to me, thank you very much.