Nowadays, the electronic and electrical fields have been developed in lighting speed, especially after the invention of Atmel AVR. For those of you that didn’t know this AVR for, it’s a modified Harvard architecture 8-bit RISC single chip microcontroller and it’s the fine product of Atmel that was been developed in 1996.
Do you know that the AVR is one of the first microcontroller families, which using on-chip flash memory for program storage, as the opposed to One-Time programmable ROM, EPROM, or EEPROM used by other microcontrollers at the time?
Today, you’ll going to be exposed yourself to the world of AVR, by DIY an AVR-based power usage logger. For your information, this device monitors household power usage and logs it to an SD card. A simple analog front-end amplifies the signals from voltage and current detectors. Beside that, an ATmega168 microcontroller will be used to compute the power consumption by simply using the formula P=V*I, where V is for voltage and I is for current!
For the consistency, the voltage and current will be sampled at 9615 Hz so the integration should be situated in a more accurate level, even for highly non-sinusoidal loads, example like computers or fluorescent bulbs.