From the link:
I use every component same as schematic. Then I use arduino to send serial to computer.
I can read the current with offset +0.3 of Irms.
The issue is when I power on/off the motor or pump which use current 0-10A the Arduino is latch and send nothing to computer.
- Separated DC source.(Not work)
- Change burden resistor from 33,18,1K not work.
- Change Divider resistor 10K to 470K not work.
- Use Watch Dog to reset Arduino when it latch or stop.(Not work)
Any Idea please suggest.
This is my code.
#include <EmonLib.h>
#include <avr/wdt.h>
#include "EmonLib.h"
EnergyMonitor emon1;
void setup()
{
Serial.begin(9600);
emon1.current(1, 30);
wdt_enable (WDTO_1S);
}
void loop()
{
double Irms = emon1.calcIrms(1480);
Serial.println(Irms);
}