ADE7753 energy meter IC + Atmega64

Go To Last Post
9 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Dear friends

Hi and good day

I have already used ADE7758 in a project and achieved calculating the energy as well as reading temp, voltage , current and ...

now Im using ADE7753 and I can get acceptable values in voltage and current but not the Energy!

I have tested my circuit with a lamp (about 30W) and the Ic shows the 220 V and about 150ma but when I read the energy registers , I get a very large number . and even if I increase the current by using Two lamps I don't see a Double value in energy register (despite the ADE7758)

I cant understand where my mistake is ...may be the value in this Ic must be interpreted in another way ...

Can anyone help me please ?

Last Edited: Tue. Mar 29, 2016 - 12:34 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Excuse me, but I cannot figure out how someone can tell whether code is wright or wrong ... if he does not see the code (people do not have telescopic eyes, and crystal balls seldom work)

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Oh

maybe I have posted my question in a wrong way

What I wanted to ask was this :

1-I can read the voltage and current from the IC well so both the hardware and the communication must be ok  . 

2- I could already read the energy from ADE7758  . it was a product of current and voltage . e.g if the voltage was 220 v and current was 150 ma , then the IC would give the number 330 for half a second which is meaningful (220*0.15=33) .

3- when I read the energy register in ADE7753 , it returns a very large number.

 

this is my IC outputs for a 30w lamp:

Voltage =2174 (meaning 217.4v)

current =15984 (meaning 159.84 ma)

energy = 16753876 (reading energy with reset in 1 sec) 

 

this is my IC outputs for a 60w lamp:

Voltage =2200 (meaning 220.0v)

current =30686 (meaning306.86 ma)

energy = 16731120 (reading energy with reset in 1 sec)

 

I need your kind help to understand the relation ship between them ....

 

 

 

Last Edited: Wed. Mar 23, 2016 - 12:03 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi all

I have found the answer myself !

it is just a Twos complement number !! 

so the value 16753367 is :23849 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

syavash_kasraeee wrote:
so the value 16753367 is :23849 

You mean -23849 ?

 

Might be easier to spot if you write 16753367 in hex: FFA2D7 - the fact that the top bits are all set would be a clue...

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Negative energy, the lamp was producing power???  Quick the patent office Watson!

 

FF = PI > S.E.T

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

More likely, something connected the wrong way around...

 

blush

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

ki0bk wrote:

Negative energy, the lamp was producing power???  Quick the patent office Watson!

Or tell the Captain and save him buying all those fancy transformers... devil

Ross McKenzie, Melbourne Australia

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

awneil wrote:

More likely, something connected the wrong way around...

 

blush

could you please explain about negative energy ?how can a wrong connection make this mistake ?