Hello everyone, need some help with the following setup:
Arduino IDE 1.8.5
SCT-013-30 Clamp-on current sensor
NodeMCU
The project involves sensing the current on a 115 VAC line.
Board powered up or reset.
Monitor current
If the current is zero amps washer is done
if the current is greater then 2 amps washer started.
The problem I am facing when the SCT-013-30 is powerup or reset it tends to send out some garbage which triggers the washer on current.
This also happens if the NodeMcu is reset.
Here is the so-called "garbage".
Current ON
16.82
Current ON
3.98
I have been experimenting with trying to write some code which allows the SCT-013 to settle to zero or a number close to zero like .03 but struggling to figure this one out. Can you help with this part of the code?