how to interface wcs 1800 current sensor to arduino.
The specifications shows blocks in this component instead of just primary and secondary turns.
so how should I connect this to arduino
Post a link to the specs.
That is a Hall effect device, not a current transformer (CT).
Apply 5V to Vdd, connect ground to Gnd and Vout to an analog input on the Arduino.
See the pin diagram in the datasheet.
Thanks brother
Hi Jeremy
connected 5V to vdd and output to a0 of arduino.
The voltage is reading is 3.5V and at serial monitor it shows 700 counts on arduino.
It should be 2.5V and 514 counts on arduino.
pls help
It should be 2.5V and 514 counts on arduino.
Why do you think that?
macwan:
connected 5V to vdd and output to a0 of arduino.
The voltage is reading is 3.5V and at serial monitor it shows 700 counts on arduino.
It should be 2.5V and 514 counts on arduino.
Which Arduino.
If this is a 3.3volt Arduino, then you don't get ~512 without current.
You could get about 775, and eventually a fried analogue pin.
Leo..
To Jremy
when 5v is given as input the average voltage must be 2.5v I suppose
Is specification say something else , then pls let me know
To Walla
It's a 5V arduino
Generic Uno
macwan:
It should be 2.5V and 514 counts on arduino.
Yes, it should be VCC/2 (could be 2.5volt), and have an A/D count of ~512.
Datasheet has a graph on page 2 that shows 1/2Vdd at zero current.
And limits at 0.3volt and VDD-0.3volt.
That should give ~512 at zero current, and an A/D range of ~61 to ~962.
This sensor should work with ACS712-30A code.
Use the search field on top of this page.
Leo..
I connected this sensor through 60W/230V bulb but there isn't any deflection in reading.
The load current is approx 200mA so there must be a rise from mid point voltage.
This 3.5V is not decreasing to 2.5
Pls help
So you're measuring AC current.
You can't just measure that by getting one A/D value. That only works for DC current.
For AC, you need to sample long enough to read a full sine wave into the Arduino.
And then calculate average/top value of the sine wave.
Plenty of AC current examples on this site.
Leo..
Thanks Wawa
Ur right I was trying to measure AC with DC code.
I'll surely try a AC measuring program code and let you know.
Tried uploading this file.
Got 0.34 and 0.37 Ampsrms output on serial monitor
Even after connecting load bulb of 60w ,230v the output current does not change.
acMEASUREMENT.txt (1.19 KB)
To measure household AC current, study this tutorial. You can substitute your Hall device for the current transformer circuitry.
Post a drawing of exactly how you've connected it. Did you add a decoupling capacitor? All chips need a decoupling capacitor.
I didnt use decoupling capacitor.How to connect it?
I simply connected
A0 --------- vout of current sensor (CS)
Gnd--------- gnd of cs
5v-----------Vdd of cs