Giter VIP home page Giter VIP logo

ade7953-wattmeter's People

Contributors

andrewbegey avatar liyongxicool avatar mjklopfer avatar musherom avatar ukazmi avatar yaxindeng avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ade7953-wattmeter's Issues

strange readings

Hello!
I'm using your library to connect an ade7953 to an eps32.

I got this strange reading and I cannot figure out if I'm facing a communication problem

I'm using pin 13 for CS on the chip. FFFFFFFF is -1 on AP_NOLOAD registry. this indicate some problems ? I can't figure out reading datasheet as this value should be 1 or 0

APNOLOAD (hex): FFFFFFFF
Vrms (V): -1.00
IrmsA (mA): -0.00
Apparent Power A (mW): 0.67
Active Power A (mW): 0.67
Rective Power A (mW): -0.67
Power Factor A (x100): 0.00
Active Energy A (hex): -1

230 V - 50 Hz?

Are the board and library compatible with 230 V - 50 Hz?

magic numbers

This code for 60Hz....
You are count all channels 1 sec...

File: ADE7953.cpp
On line 264:

float ADE7953::getIrmsA(){  
	unsigned long value=0;  
	value=spiAlgorithm32_read((functionBitVal(IRMSA_32,1)),(functionBitVal(IRMSA_32,0))); 
	float decimal = decimalize(value, 1327, 0);
return decimal;

Why 1327?

On line 251:

float ADE7953::getVrms(){  
	unsigned long value=0;  
	value=spiAlgorithm32_read((functionBitVal(VRMS_32,1)),(functionBitVal(VRMS_32,0)));
	float decimal = decimalize(value, 19090, 0);
return decimal;
} 

Why 19090?
Are these values were obtained by fitting?
Then why the values differ in dozens of times?
Thanks

ade7953 esp connection

can you please help me related to ade7953 interface with esp32 output is as per image 9 on datadocument.
0.69 -0 voltage

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.