Author Topic: Square Rooting Circuit with AD633 Not Working  (Read 1228 times)

0 Members and 1 Guest are viewing this topic.

Offline Chance92Topic starter

  • Regular Contributor
  • *
  • Posts: 52
  • Country: gb
Square Rooting Circuit with AD633 Not Working
« on: July 11, 2022, 01:34:34 pm »
Update 1: I have attached the .asc file for the simulation.

Thanks for clicking my post. I am trying to building a circuit that can do this:

output = (input12+input22)0.5

After some googling, I decided to use AD633 to do this. I basically copied the squaring and square rooting examples from the datasheet and added a summing circuit:

Here are the examples from the datasheet:


However, the simulation results are very strange:

It can be seen that the output from the summing section is correct (V(sum)), but the output from the square rooting section is wrong, and it is stuck at -8.01V. The datasheet says: 'The 1N4148 diode is required to prevent latchup, which can occur in such applications if the input were to change polarity, even momentarily.' Seems to me this is probably a 'latchup', as you can see from the results that the voltage before the diode is -15V. It seems the diode tried to prevent the 'latchup' but failed. What I don't understand is the input to this section has always been negative, why would this happen? By the way, I have simulated the square rooting section by its own and it works fine.
I produced this circuit on a breadboard and the results were similar to the simulations. The squaring+summing and the square rooting works fine by themselves, but they clearly don't like each other when connected together. I have tried switching to different op-amps and/or diodes. Some of them works better than others, but this 'latchup' can still happen sometime, especially when the input signal is very low.
What am I doing wrong?
Thanks for your time.
I have attached the datasheet for AD633 as well.
« Last Edit: July 11, 2022, 06:02:52 pm by Chance92 »
 

Offline Chance92Topic starter

  • Regular Contributor
  • *
  • Posts: 52
  • Country: gb
Re: Square Rooting Circuit with AD633 Not Working
« Reply #1 on: July 11, 2022, 01:37:10 pm »
Please could someone kindly tell me how I can attached inline pictures? |O
 

Offline RoGeorge

  • Super Contributor
  • ***
  • Posts: 6255
  • Country: ro
Re: Square Rooting Circuit with AD633 Not Working
« Reply #2 on: July 11, 2022, 01:46:53 pm »
The inline pics is a plugin that doesn't work any more, and will probably not working in the future either, there are some software compatibility problems.

To inline pictures, you post them at the end, then view your post, click on the pics to see them big, then right click to find the link to the big displayed pic, then edit your post and put the link between img tags (there is a button in the editor called 'Insert Image').
 
The following users thanked this post: Chance92

Offline Chance92Topic starter

  • Regular Contributor
  • *
  • Posts: 52
  • Country: gb
Re: Square Rooting Circuit with AD633 Not Working
« Reply #3 on: July 11, 2022, 01:51:38 pm »
The inline pics is a plugin that doesn't work any more, and will probably not working in the future either, there are some software compatibility problems.

To inline pictures, you post them at the end, then view your post, click on the pics to see them big, then right click to find the link to the big displayed pic, then edit your post and put the link between img tags (there is a button in the editor called 'Insert Image').

Thank you very much! That's one problem solved.
 

Offline ledtester

  • Super Contributor
  • ***
  • Posts: 3039
  • Country: us
Re: Square Rooting Circuit with AD633 Not Working
« Reply #4 on: July 11, 2022, 02:13:58 pm »
Can you post the .asc file?
 
The following users thanked this post: eugene, Chance92

Offline Chance92Topic starter

  • Regular Contributor
  • *
  • Posts: 52
  • Country: gb
Re: Square Rooting Circuit with AD633 Not Working
« Reply #5 on: July 11, 2022, 06:09:22 pm »
Can you post the .asc file?

Thanks. I have attached the .asc file in the original post as advised.
 

Offline ledtester

  • Super Contributor
  • ***
  • Posts: 3039
  • Country: us
Re: Square Rooting Circuit with AD633 Not Working
« Reply #6 on: July 12, 2022, 12:37:55 am »
First, have you checked that your model works for the "Figure 13" circuit?

I have included the .sub for the AD633 which I found here (as a .circ file):

https://www.analog.com/en/products/ad633.html#product-evaluationkit

I've also included the auto-generated .asy file and a schematic of the Figure 13 circuit.

The .txt suffixes were added so I could include them as attachments.

File placement: my .sub file is in the lib/sub directory and the .asy file is in the lib/sym/AutoGenerated directory


Secondly, don't know if this matters, but in Figure 15 there is a cap parallel to the diode. And have you checked just the Figure 15 circuit by itself?
 

Offline Chance92Topic starter

  • Regular Contributor
  • *
  • Posts: 52
  • Country: gb
Re: Square Rooting Circuit with AD633 Not Working
« Reply #7 on: July 12, 2022, 08:27:03 am »
First, have you checked that your model works for the "Figure 13" circuit?

I have included the .sub for the AD633 which I found here (as a .circ file):

https://www.analog.com/en/products/ad633.html#product-evaluationkit

I've also included the auto-generated .asy file and a schematic of the Figure 13 circuit.

The .txt suffixes were added so I could include them as attachments.

File placement: my .sub file is in the lib/sub directory and the .asy file is in the lib/sym/AutoGenerated directory


Secondly, don't know if this matters, but in Figure 15 there is a cap parallel to the diode. And have you checked just the Figure 15 circuit by itself?

Thanks for sharing these. I managed to run your circuit successfully. The results seems correct:

I have isolated the squaring + summing and they seem to work fine:

While simulating the square rooting circuit (the one in Figure 15.), I have found something interesting. DC test shows the circuit works fine with DC inputs, as long as they are smaller than -6mV. If the input is larger than this (say -4mV), the output will be locked to -8V from the start. This is probably what happened in the original simulation. Further tests show that once this happens, it will required an input <-4.76V to push the output to the positive side. After that the circuit can operate normally, but with a big ripple. By the way I have added the missing cap:

I think this has also been observed during the bread board experiment.

« Last Edit: July 12, 2022, 08:28:39 am by Chance92 »
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf