Hello all,
I have been trying to measure current for a while now, I tried WCS1700 and it doesn’t seem to work or I haven’t used it correctly, I am looking for a tested solution or a working way on how to do it with WCS1700, or alternatively a way to read a 7 segment screen from a cheap/dumb current sensor
Thank you so much as this have been bothering me for a while now…
Edit:
I am now trying to read from a cheap current sensor with a screen that you can buy at any electrical shop at 1$ or so, as I found that it’s external current part has a varying resistance proportional to the current passing through so I’m going to test reading it’s resistance on my ESP8266 next…
How have you wired it to your ESP? As Nick suggested, it just needs to have the analogue out wired to the ADC pin of your ESP. You will then need to code the ESP with the correct calibration lambda.
As you can see I tried many ways of reading and the result is always the same:
I only see a slight change in the readings and not exactly corresponding to the changing current.
I might be trying too fast so if you have a method of finding out the correct way I will be happy to try it.
Thank you for the OCR docs I didn’t know it was already done as I have thought about how a camera could be better/cheaper after all the time wasted on this, I might give it a shot with a spare rtsp camera I have but I would like more of an electrical solution as in read from the pins on the screen.
I only bought the WCS1700 because I found no other AC current measuring module available.
I have tried getting readings from the wcs1700 but the readings dont seem very logical to me so I couldn’t calibrate it.
My wiring Diagram is as follows:
ESP8266-------------------------------WCS1700
A0 ----------------------------------------- Aout
Vin ---------------------------------------- VCC
GND -------------------------------------- GND
not connected -------------------------- Dout
Just checking, you need to separate the active and neutral wires and only pass one through the sensor core. If that picture is a power lead passing through the middle it will read zero as the fields cancel each other.
It might be helpful if you tell us what product you have actually bought, and reference us a datasheet or something. I have only seen docs for the bare device like this http://www.winson.com.tw/uploads/images/WCS1700.pdf
You clearly have it attached to a board. Dunno what the board is.
@nickrout 190-230 vAC
it’s the government grid power so it’s voltage won’t be affected by my direct usage but by the sum of everyone’s usage
EDIT:
I misread and thought you meant the AC voltage
I read about 2.5vDC on A0 last time but I also think it would change faster than the meter can read, I will go measure it right now… Ok I measured it and it’s stuck at 0 !!! so no wonder no sensible readings found.
Breakthrough 1:
After reading the pixelelectric page I tried adjusting the potentialometer and the red LED can be adjusted to turn on at specific currents such as 20A+ so it probably could be used as an over-current alarm sensor (I think the LED is the same as the DOUT) but I want actual readings more
@nickrout@andy135@sparkydave New Sensor: AD26B-22VAHM Beat Elnoor voltage & current sensor with screen
I have a dumb/cheap voltage & current sensor with a small screen that costs about 1$,
I have tested the external current part measuring resistance and it looks like it gives readings based on current. Results on this cheap sensor:
As this is an AC current it changes between 90 ~ 194 Ohm when current is 19A on my multi-meter adjusted at 200Ohm measurement…
So do you think I can just measure the resistance with an ESP8266 and calibrate the output?
these are some pictures: (please ignore “unsafe” relay and wemos board near AC lines)
Focus on the circular component as it is attached to the main sensor and it looks like it has a varying resistance that changes proportionally to the current passing in the large wire through it, as I measured the two wires coming out of it and found logical sine wave changing resistance readings from 90~194 Ohm when current draw was about 19.0A
EDIT:
When I measured with a multi-meter the resistance was negative!
I didn’t think much of it at first but now I realize that a “resistance” should read the same both ways unless it is some kind that I don’t understand called “negative resistance”
So what could go wrong if I’m trying to measure a negative resistance with an ESP8266?
I’m basically going to try to supply 3.3v to it on one end then read the voltage out the other end and extend the circuit with another 100 Ohm resistance to ground to close the circuit with…
First new sensor test results:
I have connected a wemos d1 board to the said sensor component
diagram:
wemos d1 ------------------------- AD26B-22VAHM
V3.3 -------------------------------- red wire
A0 ---------------------------------- black wire
GND ----------R100-------------- black wire
Readings when load increasing:
-stuck at 2500s except when motor load turns on it momentarily displays 3370
At first it was promising as I was testing by dropping the load, But as I started increasing the load the voltage wasn’t going up in the same proportion (stuck in the 2500s) but momentarily if there was a motor load turning on it would increase the voltage to the maximum 3370 then drop again to 2500s
As best as I can tell the AD26B-22VAHM is a display, and the circular ring around the red wire is a current transformer. It will produce a current in proportion to the current in the red wire. They normally have a burden resistor to keep them safe. As you need to measure a voltage with the wemos you need a cct like this.
R2 and R3 bias the output to 1/2 the 3.3 Volts as the input is AC
R1 is adjusted so the current through it produces a voltage no more than 1.15 volts as the maximum Vin on the A0 pin is 3.3 .
Measure the Voltage out of the current transformer when it is connected to the AD26B-22VAHM.
The are lots of projects on this so use google.
@andy135 Thank you so much for your help I will look it up on google and try to reduce the voltage to increase my reading range.
In the meantime can I keep it temporarily like this and linearly calibrate the output for now?
I’m really slow at soldering and wiring and only ok in programming haha.
@andy135
Right now I can only read up to about 19A then I hit max voltage so I will definitely try to reduce voltage and re calibrate my input but temporarily this is ok.
This is the code so far : ( still needs more refinement where there are big gaps for better accuracy )