-
-
Notifications
You must be signed in to change notification settings - Fork 345
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CS5460 Arduino library #2106
CS5460 Arduino library #2106
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PR looks good to me. Please, check the comment that I have posted.
#ifndef __CS5460_H__ | ||
#define __CS5460_H__ | ||
|
||
-#include <arduino.h> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you try to replace <arduino.h>
with <Arduino.h>
and see if the library compiles and works?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for updating it!
@kmihaylov Just noticed there's no README for this library, would you add one please? This is all we get on the doc. page: See https://sming.readthedocs.io/en/latest/contribute/documentation.html#readme-files for further details. |
Sure. I'll need few days to react. Also the setting of the filters in the example is incorrect.
…On October 12, 2020 12:00:13 AM GMT+03:00, Mike ***@***.***> wrote:
@kmihaylov Just noticed there's no README for this library, would you
add one please? This is all we get on the doc. page:
https://sming.readthedocs.io/en/latest/_inc/Sming/Libraries/CS5460/index.html
See
https://sming.readthedocs.io/en/latest/contribute/documentation.html#readme-files
for further details.
--
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub:
#2106 (comment)
|
This PR adds CS5460 library from this author: https://github.com/xxzl0130/CS5460
CS5460 IC is widely found in socket power meters. It can calculate RMS values and is used for electrical measurements voltage, current, power factor, energy, etc.
The provided sample is tested, however due to the dangerous voltage (my test board measures 230VAC) I couldn't provide quality video.
Please note that CS5460 requires calibration, use of (internal) filters, reset line use is more than recommended.
The component is build with the default MISO pin set to 12 (default on ESP-12F).