openenergymonitor / EmonLib

Electricity monitoring library - install in Arduino IDE's libraries folder then restart the IDE
openenergymonitor.org
GNU Affero General Public License v3.0
596 stars 422 forks source link

Set ADC to 1.1V internal reference? #22

Open Harvie opened 8 years ago

Harvie commented 8 years ago

I understood that precision is issue as CT produces very small voltages. Most of arduinos have ability to set ADC to use 1.1V internal reference instead of 5V internal reference. This should make ADC more sensitive (almost 5 times). Can you please add this feature? I'd like to measure current as precisely as possible with such simple circuit. I'd like to have precision down to +-3W (1W would be awesome, 5W max)...

glynhudson commented 8 years ago

Would this not give us much less range? The voltage divider circuit on the emonTx converts the current output from the CT to a 0>5V voltage output, see https://openenergymonitor.org/emon/buildingblocks/ct-sensors-interface. The ability to measure such low powers will be restricted due to noise, see https://openenergymonitor.org/emon/buildingblocks/measurement-implications-of-adc-resolution-at-low-current-values.

I would recomend you post this issue to the community forums: https://openenergymonitor.org/emon/forum

Harvie commented 8 years ago

I don't say it should be enabled by default, but it would be cool if this would be option. It's library, so it can provide various features for various use cases. I guess someone (like me) would happily trade range for better precision. However i understand that in other cases (like metering whole house) it might be much more usefull to have wider range with smaller resolution. that's why i think this should be optional.