CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Convert Current waveform
Goto page Previous  1, 2
 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
asmboy



Joined: 20 Nov 2007
Posts: 2128
Location: albany ny

View user's profile Send private message AIM Address

PostPosted: Thu Apr 05, 2012 8:53 pm     Reply with quote

http://64.128.110.53/sense.jpg


actually , this is the circuit you want to digitize your sense transformer with

the op amps are any decent 10 v/usec Rail 2 rail device
caishenbao



Joined: 04 Apr 2012
Posts: 10

View user's profile Send private message

PostPosted: Thu Apr 05, 2012 10:07 pm     Reply with quote

>asmboy: I not sure about the bias circuit... Now what i am doing is try and error for time being... and thanks for the circuit shown.. i will try on it too

>Mike Walne: the waveform i shown is expected output from my CT, secondary side. I am using a 1/1 ratio CT for the current sense.
I plan to employed a full bridge rectifier circuit for the AC/DC conversion. But i am worry is the flat shoulder of the waveform maintain or not... I try to simulate with Lt spice but it doesn't really work..
caishenbao



Joined: 04 Apr 2012
Posts: 10

View user's profile Send private message

PostPosted: Thu Apr 05, 2012 10:09 pm     Reply with quote

asmboy wrote:
http://64.128.110.53/sense.jpg


actually , this is the circuit you want to digitize your sense transformer with

the op amps are any decent 10 v/usec Rail 2 rail device


May i know which model of Opamp i should use and how to calculate the value of R and L?

TQ
Mike Walne



Joined: 19 Feb 2004
Posts: 1785
Location: Boston Spa UK

View user's profile Send private message

PostPosted: Fri Apr 06, 2012 2:03 am     Reply with quote

Quote:

>Mike Walne: the waveform i shown is expected output from my CT, secondary side. I am using a 1/1 ratio CT for the current sense.
I plan to employed a full bridge rectifier circuit for the AC/DC conversion. But i am worry is the flat shoulder of the waveform maintain or not... I try to simulate with Lt spice but it doesn't really work..

You keep telling me that your current waveform is what you EXPECT it to be. I want to know what it will be like for REAL. My experience tells me to expect a level shift on the shoulders of your waveform due to low frequency roll off. I see little of that on your picture. It makes me suspect it's not a real secondary waveform.

I've already told you, there's little chance of success with a simple rectifier, and even less with a 1:1 ratio TX, which you've only now told us about.

Quote:

May i know which model of Opamp i should use and how to calculate the value of R and L?


The L is your current TX secondary and R the burden resistor as per my previous post.

When I outlined how current transformers work I over-simplified somewhat.

What I did not tell you is, to improve the LOW frequency response of your TX you use a SMALLER value burden resistor. The problem then is, your signal becomes smaller, and you NEED the OPA.

You're being shown by asmboy how to totally avoid dc saturation of your TX core, without using a large capacitor.

You're also being told how to select an OPA. I expect a degree candidate to deal with that one.

Mike
temtronic



Joined: 01 Jul 2010
Posts: 9658
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Fri Apr 06, 2012 5:28 am     Reply with quote

Time to roll up your sleeves and get your hands dirty ! Get a breadboard, a handful of parts and build some test circuits. You've been given a LOT of great information form those you've done this work in the past.It's time you built some kind of circuit to see whats happening. Just a basic read the CT output and display onto an LCD or PC would be helpful and you'll learn a LOT.
I still don't don't the frequency of the original sinewave. 50Hz, 5,000 Hz, 5 Hz. It's one piece of the puzzle that needs to be known.

I'd actully breadboard 2 ADC channels, one a 'reference'(good) that never faults, the other the 'test'(bad) channel.Frankly a few lines of code to compare the two and the 'fault' condition could be found quickly.

I get the impression you're over analyzing the project and need to get into the 'real' world.Simple R&D...maybe 3-4 hours..will show what is needed.NO amount of therory,simulations,'math crunching' can replace good old, hands on - benchwork !!!
Mike Walne



Joined: 19 Feb 2004
Posts: 1785
Location: Boston Spa UK

View user's profile Send private message

PostPosted: Fri Apr 06, 2012 5:47 am     Reply with quote

I second temtronic's suggestion.

From the questions you've asked so far, I expect it my take you 1 or 2 days to figure things out.

Mike
SherpaDoug



Joined: 07 Sep 2003
Posts: 1640
Location: Cape Cod Mass USA

View user's profile Send private message

PostPosted: Fri Apr 06, 2012 6:00 am     Reply with quote

If you are looking for flat spots, consider using a differentiator, either software or analog hardware. If the differentiator output is near zero for a period of time you have an arc. You might look at debounce algorithms to define "near zero" and "for a period of time." Also if you can sync to the line voltage zero crossing, the differentiator will go to zero at the peak of a normal sine wave, and to zero near the crossing for an arc.
_________________
The search for better is endless. Instead simply find very good and get the job done.
asmboy



Joined: 20 Nov 2007
Posts: 2128
Location: albany ny

View user's profile Send private message AIM Address

PostPosted: Fri Apr 06, 2012 7:14 am     Reply with quote

re parts:

just about ANY rail to rail op amp will work
you could use TLC2272 for instance

the divider on the left produces a Vcc /2 reference that the left op amp buffers to a fixed low Z .

the "inductor" is YOUR sense transformer, ( the Inductance of which we DO not know) and the resistor across it provides the optimal terminating value to give the best waveform accuracy.

the BEST way to find that term resistor value is to pass a modestly high current square wave through several turns of wire , of said transformer and with "r" as a potentiometer- then find the resistance value that provides the LEAST distortion of the square wave as seen on an o'scope at the RIGHT hand output, going to the PIC .

lastly - if you are doing any kind of cycle by cycle analysis for repeated frequency detection, i don't see how rectification will be of any special help
and in fact may make the task harder..........
caishenbao



Joined: 04 Apr 2012
Posts: 10

View user's profile Send private message

PostPosted: Fri Apr 06, 2012 7:41 am     Reply with quote

>Mike Walne:
I never really testing on the output waveform of the current transformer, and your words had actually scared me. I will try on it and will let you all know later about the output waveform after the CT.

You had give me a lot of important clues on doing it.

>Temtronic:
Yea, I am doing it since two three days ago. Had study on a lot of model circuit, and the associate problem. Getting all the component done today, and will be test on the output on days after this. (Too bad, the lab is close on weekends...)
I am working on 50Hz sinewave, as from the conventional power supply in my country.

I do hope everything will be turn out in the way i expecting it to be..

>SherpaDoug:
take in your words. Will try on it later.

>asmboy:
I had overlook your circuit. I thought it was a circuit for transforming or something, and yet i didn't realize it is just a tx.

I will try on it, and let you all know how is it later.
TQ for the words, advice, information from all~
asmboy



Joined: 20 Nov 2007
Posts: 2128
Location: albany ny

View user's profile Send private message AIM Address

PostPosted: Fri Apr 06, 2012 11:49 am     Reply with quote

one tip:

In order to have the waveforms in question ready to hand for testing
I have made use in the past of a Tascam USB, studio grade audio interface
to RECORD the waveforms i want to process experimentally,
then play them back as often as i want, LATER at my leisure, and on demand.

a 2 minute file , of mono 48khz samples - is only about
10 mb .WAV file at 16 bit resolution

perhaps this will help you down the road

Very Happy Very Happy Very Happy
caishenbao



Joined: 04 Apr 2012
Posts: 10

View user's profile Send private message

PostPosted: Wed Apr 11, 2012 11:19 pm     Reply with quote

>asmboy: thx for the advice

I really had a problem for the secondary waveform~
So I decided not to use CT instead.. just fed in directly to my MCU...hope is acceptable for the prototype.
Ttelmah



Joined: 11 Mar 2010
Posts: 20161

View user's profile Send private message

PostPosted: Thu Apr 12, 2012 3:26 am     Reply with quote

caishenbao wrote:
>asmboy: thx for the advice

I really had a problem for the secondary waveform~
So I decided not to use CT instead.. just fed in directly to my MCU...hope is acceptable for the prototype.


Probably an easy way to destroy the PIC. Even if you have a divider that should give an acceptable voltage for the expected current, as soon as you have direct connections between processors, and parts of circuit potentially carrying voltages as inductive circuits are disconnected, you risk problems.

Look at Hall effect current sensors instead.
Historically these were rare, because of cost, but in recent years prices have plummeted to lower in many cases than the traditional CT, and can have response times of only a few uSec, with superb isolation, and lack of the waveform distortions that a CT can introduce.

Best Wishes
Mike Walne



Joined: 19 Feb 2004
Posts: 1785
Location: Boston Spa UK

View user's profile Send private message

PostPosted: Thu Apr 12, 2012 10:34 am     Reply with quote

You're still demonstrating a worrying lack of understanding about current transformers.

You're using the term as though it were a cure-all for a multitude of complaints.

You've still not let us know what your secondary waveform looks like.

As Ttelmah's pointed out, you've a severe risk of destroying your PIC.

Think about it. You're passing your test current through the primary of your transformer. The voltage across any of the windings is directly proportional to the burden resistor across one of the windings. As you experiment with your circuit it's inevitable accidents WILL happen. Result, huge voltages presented to your PIC and an early bath.

You've been shown a reasonably safe way. Now that I think about it, I'd be adding clamp diodes from both sides of the TX secondary to the supply rails.

Mike
caishenbao



Joined: 04 Apr 2012
Posts: 10

View user's profile Send private message

PostPosted: Tue May 01, 2012 4:33 am     Reply with quote

Dear all,

I have changed my approach and have successfully done the project.

Thanks for the info and support. Have a nice day.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group