Hi All,
This is my first post in this forum (or any electronic forum for this matter) so please be gentle
I have setup my hardware with following components:
- Wemos D11 mini
- MCP3008
- ACS712 (30A)
Now, after hooking it all up together I have calibrated the setup using:
emon1.voltage(1, 309.0, 0.6); // Voltage: input pin, calibration, phase_shift
emon1.current(0, 14.5); // Current: input pin, calibration.
BTW: (I noticed that in my case no matter what I put in phase_shift - it doesnât make any difference)
I am testing this using a cheap, standard 60W light bulb.
When the bulb is switched ON these are the kind of readings displayed quite fast (2-3 lines per sec):
58.65 65.33 236.17 0.28 0.90
58.45 65.12 236.14 0.28 0.90
58.67 65.49 236.12 0.28 0.90
58.57 65.24 236.23 0.28 0.90
However, with the bulb switched OFF I can see that the results are much slower (1 lines per 2 secs):
0.00 0.00 0.00 0.06 0.00
0.00 0.00 0.00 0.06 0.00
-0.00 0.00 0.00 0.06 -0.00
-0.00 0.00 0.00 0.06 -0.00
0.00 0.00 0.00 0.06 0.01
One other thing is that I have to add wdt_disable(); in my loop - otherwise my wemos chip reboots exactly every 3 reads:
233.77 233.94 104.45 2.24 1.00
-0.00 0.00 0.00 0.06 -0.00
-0.00 0.00 0.00 0.06 -0.01
Soft WDT reset
ctx: cont
sp: 3ffef250 end: 3ffef4a0 offset: 01b0
stack>>>
3ffef400: 3ffee448 00000001 3ffe8461 40202b14
3ffef410: 3ffe86b8 020d67ce bf795a90 000003e8
3ffef420: 3ffee2b0 3fdd67ce ddaba800 40201f38
3ffef430: 000021cc 3ffee394 00000000 3ffee394
3ffef440: 00001d29 00000014 00000000 3dd00000
3ffef450: 00000000 3dd00000 000003ff 402010a3
3ffef460: feefeffe 3ffee2b0 3ffee448 3ffee46c
3ffef470: 3fffdad0 3ffee2ac 3ffee2b0 40201c99
3ffef480: 3fffdad0 00000000 3ffee464 40202914
3ffef490: feefeffe feefeffe 3ffee480 40100114
<<<stack<<<
ets Jan 8 2013,rst cause:2, boot mode:(3,6)
load 0x4010f000, len 1384, room 16
tail 8
chksum 0x2d
csum 0x2d
v09f0c112
~ld
233.84 234.00 104.45 2.24 1.00
0.00 0.00 0.00 0.06 0.00
-0.00 0.00 0.00 0.06 -0.01
âŚ
Any pointers (Iâm a newbie) are more than welcomed here!
Regards,
Papi.