Author Topic: How to separate two GND in Proteus  (Read 7059 times)

0 Members and 3 Guests are viewing this topic.

Offline ChrissTopic starter

  • Frequent Contributor
  • **
  • Posts: 534
  • Country: 00
How to separate two GND in Proteus
« on: October 17, 2022, 11:39:26 am »
Hi!
I run into an issue with Proteus 8 on my simulation when I try to use the scope.

I designing a circuit where I have a AC main high voltage side separated from a low voltage site.
These two circuit's are separated with an optocoupler.

When I use my scope I have some wrong measurement's.

My major question is:

When I have a simple circuit with an AC source, do I have to connect it to a GND?
When I disconnect GND from the high voltage side, Proteus can't simulate, running into error.

Actually, how can I tell the scope not to use the DC/low voltage side GND as a reference when I scoping the High voltage?

thanks.
« Last Edit: October 19, 2022, 05:42:00 pm by Chriss »
 

Offline PlainName

  • Super Contributor
  • ***
  • Posts: 6834
  • Country: va
Re: How to separate two GND in Proteus
« Reply #1 on: October 17, 2022, 09:00:50 pm »
It needs to be referenced against something, which is typically gnd. Unlike real life, you won't blow the scope up if you shove 240V up the ground pin :)
 
The following users thanked this post: wraper, Chriss

Offline ChrissTopic starter

  • Frequent Contributor
  • **
  • Posts: 534
  • Country: 00
Re: How to separate two GND in Proteus
« Reply #2 on: October 17, 2022, 09:32:31 pm »
Yea, you are right, but if I put a optocoupler MOC3021 and the low side is a DC circuit, the high side ( where the diac is ) is an AC circuit.
If I didn't put a gnd to the high side and try to simulate, I get always an error like some timestep error.

If I put a gnd to the low and high side, I have a bad scoping signal.
I assume the two gnd's are act as the same ref.point.
Like they are in real the same gnd line.

In real life these two gnds have to be separated.
How can I achieve this in Proteus 8?

Thanks.
 

Offline PlainName

  • Super Contributor
  • ***
  • Posts: 6834
  • Country: va
Re: How to separate two GND in Proteus
« Reply #3 on: October 17, 2022, 11:49:44 pm »
I am not sure how you are doing this: are you treating AC1 and AC2 as the signal and ground to the scope? Or are you having AC zero crossing at scope ground and the signal either AC1 or AC2? It sounds to me like the former, and that won't work because the AC signal isn't referenced to anything.

The latter, where AC1 and AC2 both swing positive and negative (alternately, of course) relative to ground, is what you want, I think. So far as I know, you can't have a floating signal because, well, it's floating and not referenced to anything. If you don't want the AC to swing below reference ground you can add a DC offset to it which shouldn't affect how your circuit operates if the two sides are really separate.

Can you post your circuit? A printout would be best since not everyone has your version of Proteus (or even any version).
« Last Edit: October 17, 2022, 11:52:22 pm by dunkemhigh »
 
The following users thanked this post: Chriss

Offline ChrissTopic starter

  • Frequent Contributor
  • **
  • Posts: 534
  • Country: 00
Re: How to separate two GND in Proteus
« Reply #4 on: October 18, 2022, 08:21:05 pm »
So, here is a really basic schematic where I also have problem to simulate with Proteus 8.

I posted the "project" if we can call this so.  :-DD
It is just to show one of the problem I have when I try to use AC and DC side in the same schematic in Proteus 8.

When I try to simulate the circuit without the GND connected on the AC side, then if I open the switch I get an error
like on the screen. I dont really understand what is that error meaning.

If I connect the GND on the AC side, then everything is working, no error, but on a more complexe schematic I got a signal distorsion too.

So, I'm not sure what is wrong and how to really separate the AC and DC ground's.
Or how to take measurement with the scope but to be suere the scope is referencing to the AC GND if I measure the AC side etc.

Thanks for any advice.
 

Offline PlainName

  • Super Contributor
  • ***
  • Posts: 6834
  • Country: va
Re: How to separate two GND in Proteus
« Reply #5 on: October 18, 2022, 09:51:16 pm »
You need the ground for reference. If you remove the DC side and replace the opto with the switch, you get the same issue, so it's not a DC-AC thing, just an unreferenced AC thing.

The bottom side of the AC generator isn't a reference - it's just the inverted version of the other side. A signal, in other words. You can connect the top side to ground instead, and the circuit works fine, which shows that both sides are technically signals. So without ground the circuit is floating and the simulator doesn't know what to do with it.

But that's my view. I may be wrong :)
 
The following users thanked this post: Chriss

Offline ChrissTopic starter

  • Frequent Contributor
  • **
  • Posts: 534
  • Country: 00
Re: How to separate two GND in Proteus
« Reply #6 on: October 18, 2022, 10:31:25 pm »
Yea, I come also acros that thinking, but how can we simulate a real AC DC circuit in Proteus?

What power source is a correct AC power source in Proteus?

This is all so confusing for me in Proteus...

 

Offline PlainName

  • Super Contributor
  • ***
  • Posts: 6834
  • Country: va
Re: How to separate two GND in Proteus
« Reply #7 on: October 18, 2022, 11:50:09 pm »
With it ground referenced, you are doing a proper DC/AC simulation. It's just that the AC isn't floating. You can add a DC offset if you want to have it going actually 120V negative as well as 120V positive.
 
The following users thanked this post: Chriss

Offline ChrissTopic starter

  • Frequent Contributor
  • **
  • Posts: 534
  • Country: 00
Re: How to separate two GND in Proteus
« Reply #8 on: October 19, 2022, 11:33:10 am »
It is completely crazy in some meaner.  :-DD

Here is probably the stupidest circuit in the world and the simulation is a mess.

I put a bridge rectifier grounded and without ground.
The result is totally crap.

Ok, I can live with this cos I know why this is but I didn't expect from a simulation app this kind of behavior on this under the basic level.

I'm asking myself, what kind of error are there when we try to simulate more complex circuits?

Or is there a way how to do this circuit setup and measuring in a correct way?

What power source do you use in your circuit when you deal with AC current?
I saw people use the VSINE part, but other use the ALTERNATOR part.

Look the picture how Proteus simulate a bridge rectifier...
 

Offline PlainName

  • Super Contributor
  • ***
  • Posts: 6834
  • Country: va
Re: How to separate two GND in Proteus
« Reply #9 on: October 19, 2022, 12:28:27 pm »
I think those traces are appropriate for the circuits.

In the first (grounded) the scope reference is the lower AC line, so chB will show a sine wave (the AC waveform). The bridge is grounded on the negative side, so you will get a half-wave on chC. However, you might normally expect that be a rectified wave of double the AC frequency, but recall that here the lower AC line is grounded, so only the upper line is driving the rectifier and it never goes negative. Thus the chopped half-wave.

In the second (un-grounded) the scope reference is the bridge negative terminal. Only the AC upper line can drive it, and only when it is positive with reference to both the lower line and ground (because the lower line is shorted through the bridge to ground. Again, a chopped half-wave is appropriate, I think. The scope chC will be a rectified sinewave, double the AC frequency, which is what we see.

What we can't see, possibly because of the range settings, is the effect the bridge diodes have. But that's not surprising since the AC is 240V and the diodes are 0.7V or so, and pretty much invisible unless you zoom in.
 
The following users thanked this post: Chriss

Offline ChrissTopic starter

  • Frequent Contributor
  • **
  • Posts: 534
  • Country: 00
Re: How to separate two GND in Proteus
« Reply #10 on: October 19, 2022, 05:41:40 pm »
Here I did a similar circuit testing but in Multisim.
Here is the result, I can not achieve this in Proteus 8.

I think, the Multisim simulation is more accurate to the real life situation.

Check the picture I made from Multisim.
 

Offline PlainName

  • Super Contributor
  • ***
  • Posts: 6834
  • Country: va
Re: How to separate two GND in Proteus
« Reply #11 on: October 19, 2022, 06:00:39 pm »
Can't comment on relative accuracy, but I note the multisim circuit has the ground you complain about in the Proteus circuit.
 

Offline Doctorandus_P

  • Super Contributor
  • ***
  • Posts: 3349
  • Country: nl
Re: How to separate two GND in Proteus
« Reply #12 on: October 19, 2022, 09:23:02 pm »
It's a common limitation of simulation packages.
A simple workaround, is to have only one "real GND", and give the other one some other name. Also connect them with a 1GOhm resistor or similar, so there are no "floating nodes".
 

Offline ChrissTopic starter

  • Frequent Contributor
  • **
  • Posts: 534
  • Country: 00
Re: How to separate two GND in Proteus
« Reply #13 on: October 19, 2022, 11:37:46 pm »
Thank for this tip!
I like the idea.

Btw.
I saw a video on the net, where a guy used two types of GND in his circuit in Proteus.

Are they insulated?
Where can I find that other EARTH sign in Proteus like in this circuit?
 

Offline woofy

  • Frequent Contributor
  • **
  • Posts: 332
  • Country: gb
    • Woofys Place
Re: How to separate two GND in Proteus
« Reply #14 on: October 20, 2022, 09:12:57 am »
Where can I find that other EARTH sign in Proteus like in this circuit?

Offline ChrissTopic starter

  • Frequent Contributor
  • **
  • Posts: 534
  • Country: 00
Re: How to separate two GND in Proteus
« Reply #15 on: October 20, 2022, 01:11:24 pm »
WoooW!
I discovered something new in my Proteus 8!
Look into the pic.

I do not have all the terminals in my list like you guys!

what is wrong on my side?



 

Offline ChrissTopic starter

  • Frequent Contributor
  • **
  • Posts: 534
  • Country: 00
Re: How to separate two GND in Proteus
« Reply #16 on: October 22, 2022, 05:33:49 pm »
Nobody has any idea why in my Proteus is missing the Chassie terminal simbol?  :palm:
 

Offline PlainName

  • Super Contributor
  • ***
  • Posts: 6834
  • Country: va
Re: How to separate two GND in Proteus
« Reply #17 on: October 22, 2022, 05:53:28 pm »
Sorry, not a clue. Wonder if it depends on which level of Proteus you have. In any case, you can add a new one yourself - it only wants a name and net label.
 
The following users thanked this post: Chriss

Offline ChrissTopic starter

  • Frequent Contributor
  • **
  • Posts: 534
  • Country: 00
Re: How to separate two GND in Proteus
« Reply #18 on: October 22, 2022, 06:04:33 pm »
Can you pls help me how to add a ne one?
If I add a new GND simbol to my Terminal list, will that gnd be separated from any other gnd in the schematic?
Would that gnd be a reference gnd for only in the circuit where it is connected?

I use Proteus 8 Professional.
 

Offline PlainName

  • Super Contributor
  • ***
  • Posts: 6834
  • Country: va
Re: How to separate two GND in Proteus
« Reply #19 on: October 22, 2022, 10:26:15 pm »
From the help file:

Quote
ISIS permits the definition of user defined symbols for use as logical or physical terminals. These are made in the same way as ordinary symbols except that you must place a Node marker to specify the position of the terminal's connection point, and a Label marker to specify the position and orientation of its net label.

To make a user defined terminal

* Select an appropriate 2D graphics icon - typically the Line icon - from the Mode Selector toolbar

* In the Object Selector select an appropriate graphics style. This will nearly always be the TERMINAL style though the BUS WIRE style may also be appropriate for small parts of the symbol.

*Select and place graphics objects as required to form the body of the terminal. Any graphic that needs to have a fixed appearance should be edited, the appropriate Follow Global? checkboxes unchecked and the graphics style attribute changed.

*Select the Markers icon.  Place a Node or Busnode marker where you want the wire or bus to connect the terminal, and a Label marker where you want its net label to be. You can also place an Origin marker to define where its origin will be.

* Tag the objects that will comprise the port by by entering selection mode and dragging a tag-box around them with the left mouse button.

* Invoke the Make Symbol command, set the type to Terminal and then select a name and library for the new terminal.
Click OK to complete the operation.

Or, to put it another way, go through the motions of creating a symbol (just draw it with a line of style TERMINAL), add a MARKER where you want the wire to connect, select them all, right click and select "Make Symbol" and make sure it's of type TERMINAL. Very similar to making a component except you use the TERMINAL line style (I imagine you could use something else if you wanted, but TERMINAL has specific colour and thickness properties) and don't have any pins.

Strangley, when I looked at this yesterday I could right click in the terminals tray and select 'create'. No idea why that doesn't work for me now.
 
The following users thanked this post: Chriss


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf