Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

How current sensors interface with the PIC microcontrollers for finding the output ?

Status
Not open for further replies.

bikash123

Member level 2
Joined
Feb 19, 2012
Messages
48
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Location
Tezpur University
Activity points
1,672
Dear Friends,
How current sensors interface with PIC micrcontrollers for finding output currents of any systems?
 

There are many types of current sensors like current sensing resistor,current transformer (CT) and Hall effect current sensors all are interfaced to PIC or any mcu using the ADC modules.

Good Luck
 

I am using wcs1702 current sensors.how it is connected ....or directly interface with the ADC.
 

You can use Current Transformer (CT) without direct contact with measured wire, shunt resistor, hall sensors,...

All depends from many things, like do you whant to isolate ADC from measured wire,.....
 
I am using wcs1702 current sensors.how it is connected ....or directly interface with the ADC.
WCS1702's VDD is connected to the Power supply for the PIC (3V or 5V)
WCS1702's GND is connected to ground (the PIC's ground (0V)
WCS1702's VOUT is connected to directly to the PIC's Analog input pin. You might have to add a .01uf capacitor to ground on this pin to lower the source impedance seen by the PIC.
WCS1702's IP + and - terminals are connected in series with the current you want to measure
The A/d converter output from the PIC will read around 1/2 scale (1/2 the total counts in the pic - 127 for an 8-bit a/d or 512 for a 10-bit a/d) when there is no current flowing in the IP terminals, and it will read above or below the zero-current value when current flows in the IP. You will need to measure the a/d output at zero current, and remember it in your program; then subtract the zero current value from your real-time measurement and that will give you a signed value proportional to current. I'll leave it to you to figure out the scaling of the signed value, except to say that a 1V change in the a/d value represents a 1A change in the current. Good luck.
 

I have not so much knowledge about the programming for interfacing of current sensor with pic. My input source is solar module having maximum current of 1A. How to write it by programming? Plz give me some hits for how to write programming for current sensors.
 

In my view what you should try to do is use current to voltage convertor using opamp is simple way to do the intefacing as your ADC measures the voltage......

Now related to programming PIC .....It depend on what is your choice of programming language - Assembly or C .....

If you want C code many things are avalible on net-

Refer this -

https://www.microchipc.com/sourcecode/#interface

Good Luck
 

sir
a few days ago a made a circuit using avr microcontroller and relays which switches off after some time. the time is set by user, it is used by my dad for charging his mobile phone when is sleeping so that he does not have to get up after 2 hours or so just to switch off the charging.
he has to estimate the time of charging now for further improvements in my design i was thinking of interfacing a current sensor with the avr such that when the mobile gets fully charged the current sensor will indicate the drop in the current drawn by the mobile and thus depending upon that interrupt the microcontroller will switch off the relay and thus charging.
but i haven't used any current sensor earlier so could you please guide me in this and also suggest any further ideas to sense the charging level.
 

"Switch off the charging"
Most modern mobile (cell) phones do that automatically.i.e.. they have inbuilt circuit which cut off charging cycle when its over,are you sure your mobile doesnt do that?

- - - Updated - - -

"Switch off the charging"
Most modern mobile (cell) phones do that automatically.i.e.. they have inbuilt circuit which cut off charging cycle when its over,are you sure your mobile doesnt do that?
 

the ACS712 is easy to interface to a microcontroller via an ADC
**broken link removed**
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top