-
Notifications
You must be signed in to change notification settings - Fork 57
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
Getting 65535 values for Current and voltage #73
Comments
The first thing to check is that everything is wired correctly. |
Yes they share a ground. SPI wires are connected as specified in the program. Currently, I am powering them from USB port. I haven't connected the 9V transformer yet. I used a 9V transformer earlier but it had damaged my IC and ESp32. So right now I am only checking Current value. |
@CircuitSetup kindly assist me on above issue. |
Wait, what exactly did the 9V AC transformer burn out? It should only be plugged directly into the meter. When you power the ESP32 via micro USB, is the meter showing a green light? Do any of the other lights blink when a current transformer is hooked up and around a wire with current going through it? |
When I power esp32 with USB, green led blinks. When I ordered the PCB resistor array was short so other LEDs did not blink because of the open path in the PCB circuit. |
@CircuitSetup kindly have a look at it. |
Is there a solid green light on the meter? Specifically, what program are you running on the ESP32? |
@CircuitSetup yes, green led, and it blinks when I power it with USB. #include <ATM90E32.h> const int CS_pin = 5; unsigned short VoltageGain = 37106; ATM90E32 eic{}; //initialize the IC class void setup() { while (!Serial) { /* display.begin(SSD1306_SWITCHCAPVCC); // Clear the buffer. display.setTextSize(1.5); /*Initialise the ATM90E32 + SPI port */ void loop() { /*Repeatedly fetch some values from the ATM90E32 */ voltageA = eic.GetLineVoltageA(); Serial.println("VA:" + String(voltageA) + "V"); delay(1000); /* |
@CircuitSetup have a look at the code please |
I am currently working on a PROJECT and ordered your PCB without esp32 full kit. And I am getting 65535 values for both current and voltage
The text was updated successfully, but these errors were encountered: