-
Notifications
You must be signed in to change notification settings - Fork 34
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
Voltage Sampling Issue #29
Comments
Please supply the full schematic or compare it to the ATM90E26 Featherwing for reference. It may also be a good idea to buy/make the featherwing design yourself for a complete reference before jumping into a full custom design. The issue here seems to be lack of connection between VP and the ASIC voltage measurement pins. Need to see the full schematic and PCB / Breadboard assembly to be sure. Could be something as simple as a dry joint on the barrel jack. |
Hi thanks for the additional info. The issue seems to be unpopulated R1/R2 resistors in the PCB , which means no voltage is getting to the energy monitor except whatever the FR4 resistance and capacitance coupling is getting to it. To verify please use a multi-meter to check the voltage at the VP test point. Populate the 1k / 100k voltage divider ladder and try again. |
Since some voltage is being sampled it is time to perform calibrations. Please see docs here : https://github.com/whatnick/ATM90E26_Arduino/tree/master/docs . TL;DR your options are to change your voltage divider ladder resistors or calibration registers to get the actual values. |
I tried to change the Ugain value using the excel sheet that was present on the repository. Once the changes were uploaded the voltage was coming out to be 0. |
Did you read all of the docs and update the CRC values ? What do the status registers say. Please lodge some consulting time with me. Unfortunately this is the limit of open-source support I can offer. The mistakes with missing voltage divider ladder were easily avoided. Would you like to give me some idea of your technical background so that I can tune my support appropriate level of assumed knowledge. |
@sdk694 I am having the same problem too. Used 1k / 100k. Showing voltage of 142V AC. The difference with you is I am using SPI. If you already solved it please let me know by commenting |
The code is indicative only for a sample setup I had at the time. Please
use calibration parameters to get the value you require. Chips may differ
in internal resistance and voltage divider ladder resistors and supplies
like transformers and even direct AC have their own internal resistance.
…On Mon, 10 July 2023, 13:08 PadmaErfan, ***@***.***> wrote:
@sdk694 <https://github.com/sdk694> I am having the same problem too.
Used 1k / 100k. SShowing voltage of 142V AC. The difference with you is I
am using SPI
—
Reply to this email directly, view it on GitHub
<#29 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AADX7BE5BX656HGAVECAJTLXPN2MVANCNFSM42KSR4CQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
I changed the Ugain according to the actual & measured voltage for calibration (from the Excel sheet). I am trying to find the answers.
I am sure there is a problem that results in the chip isn't configured well. If you find any problem in my configs I will request you to mention it so that I can solve it. @whatnick N: B I have used the same PCB design from GitHub (the green module in my comment picture) |
Hi ,
I am using your code to interface ATM90-E26 with ESP8266. Ran the default code without any calibration and got this output, the output should be around 230V but I am getting 0.03V. The circuit that I have implemented is attached, The jack gives an output of 12vac and Vp is measure across r2 which is fed to the ATM and the ATM is powered externally with 3.3 V adapter. Any suggestions?
with a 3.3V adapter.
The text was updated successfully, but these errors were encountered: