Hysteresis Cycle with an AD630 on LTSpice - Page 1
Forum section: electronics / projects

author: Vajra37
author_rank: Newbie
timestamp: June 01, 2019, 11:55:56 am
content: Hi, friendsI'm currently working with a Physic professor who's trying to use these AD630 he bought (https://es.aliexpress.com/store/product/Phase-locked-Amplifier-AD630-Module-Minimum-System-Phase-Sensitive-Detection-Weak-Signal-Conditioning-Balanced-Modulation/815142_32847447271.html?) to make an hysteresis cycle.I currently used a Model uploaded on the Internet of an AD630 to make an analysis, but I don't know how to to do a frecuence analysis in order to get the hysteresis cycle. Could someone help me?Thanks in advance

author: iMo
author_rank: Super Contributor
timestamp: June 01, 2019, 06:09:36 pm
content: Post your .asc file

author: Vajra37
author_rank: Newbie
timestamp: June 02, 2019, 12:58:35 am
content: How do I do that? Should I upload it to some web or something?

author: Ian.M
author_rank: Super Contributor
timestamp: June 02, 2019, 02:29:01 am
content: Nope. Simply attach the .asc file to a post here. If your sim relies on third party models and/or symbols, we'll need them as well. You can post links to them, or zip them up with the .asc file and attach the zip*. It can also be useful to post the .plt file if you are displaying many signals or doing waveform maths. Please don't include any generated data files (e.g .raw .log .net &etc.)One pitfall for the unwary is inadvertently using third party symbols and models that you have added to the LTspice standard libraries and not copied to the sim folder and zipped up with it. When the recipient tries to open the sim, they will be warned about missing symbols and the affected components effectively vanish. Missing models (including ones in libraries) cause an error when you attempt to run the sim. Its therefore worth keeping a clean original 'vanilla' copy of the LTspice lib folder, that you can swap in by renaming it and your normal lib folder, so you can easily check what's missing if anyone tells you there's a missing symbol or model problem. If you collaborate a lot with others online, it may even be worth writing a script to close LTspice, swap libraries to the 'vanilla' copy, reopen it, then swap back when its next closed, so you can easily test your sims are complete before posting them.* subject to redistribution restrictions of models/libraries.

author: awallin
author_rank: Frequent Contributor
timestamp: June 02, 2019, 06:07:06 am
content: FWIW the different suggested configurations are on p16 -> here:https://www.analog.com/media/en/technical-documentation/data-sheets/AD630.pdfwhat are you trying to do?

author: Vajra37
author_rank: Newbie
timestamp: June 02, 2019, 09:20:24 am
content: This is the model I used. I never did a frecuency analysis on LTSpice but I searched about how to do it. The thing is that in this project I want to do I must check that the AD630 can in fact take out an hysteresis cycle, but I don't know how to do it. I guess I have to do a frecuency barrier to do that, but as I said, I'm pretty lost in this field since I've done nothing like this before.Thank you in advance

author: Vajra37
author_rank: Newbie
timestamp: June 02, 2019, 09:25:39 am
content: Quote from: awallin on June 02, 2019, 06:07:06 amI'm trying to prove that I can get an hysteresis cycle with an AD630 because I'm going to help a physic with a cancer cure that is related with warming up some particles with a lock-in amplifier and burn the tumors. I understand the use of the AD630, but as I said.. I'm not an expert on LTSpice and I've never done anything like this, so... I'm pretty lost right nowPS: Is it hard to explain in english since is not my mother tongue haha, I'm sorry.

author: RoGeorge
author_rank: Super Contributor
timestamp: June 02, 2019, 10:04:27 am
content: The words you are using doesn't make sense. Not your fault, this happens a lot in interdisciplinary science, especially between different languages.Quote from: Vajra37 on June 02, 2019, 09:20:24 amTo make a frequency analysis in SPICE you use ".ac" simulation. Click on 'Simulate' -> 'Edit Simulation Cmd' -> 'AC Analysis' then complete the paramaters you want in the fields "Type of Sweep", "Number of points per octave:", "Start Frequency", "Stop Frequency" then click the "OK" button. After this, click "Simulate" -> "Run" to simulate your schematic in the AC (Alternative Current) domain.This what you asked (how to do a frequency analysis in LTspice), but I'm not sure if this is what you really need.Draw by hand a chart, or a diagram, with what you want to achieve with the AD630, so electrical engineer people would understand your goal with that schematic. Put the units for the chart's axis, some expected values and ranges will be very useful, too, in order to decide what you need.

author: Vajra37
author_rank: Newbie
timestamp: June 02, 2019, 02:57:00 pm
content: My apologises, it's kind of hard to explain what I'm trying to do in other language, but I'm going to try again with the help of some document:https://www.researchgate.net/publication/273960700_A_multifrequency_eletromagnetic_applicator_with_an_integrated_AC_magnetometer_for_magnetic_hyperthermia_experimentsWhat I'm trying to do is to use my AD 630 as a lock-in amplifier to measure the difference of phases on 2 metal particles. For that, I need to simulate in LTSpice the AD 630 in order to get the hysteresis cycle and that's what I don't know how to do. As you can see in the document that I posted, in the page 6 you can see the hysteresis cycle of the water dispersed iron oxide nanoparticle sample. I just also found thishttp://spiceguy.net/hysteresis.htmbut I don't know if will work.

author: Vajra37
author_rank: Newbie
timestamp: June 04, 2019, 11:46:54 am
content: Quote from: RoGeorge on June 02, 2019, 10:04:27 amThis is what I want to get, but I did the analysis like in this page and I can't get my hysteresis cycle with the AD630. So... What am I doing wrong?

author: RoGeorge
author_rank: Super Contributor
timestamp: June 04, 2019, 01:26:11 pm
content: - Vc seems wrong to me.- put a 100K resistor between "Status" and "+Vcc" (optional)- add SPICE directive ".options cshunt=1e-15" to speed up the simulation (optional)If you want more help, please do the following:1. Draw by hand (on a piece of paper) the waveform you wish forVm2. Draw by hand (on the same paper) the waveform you wish forVc.3. Then, draw by hand the waveform you expect for the signalOutput.4. Now, draw by hand thehysteresisyou expect to see.Name the axis for each chart, put units and a few numerical values.Make a picture of the 4 hand-drawn waveforms, and attach the pic here, or upload the pic somewhere else and give the link.

author: Vajra37
author_rank: Newbie
timestamp: June 04, 2019, 05:23:09 pm
content: Got it. The cshunt option helped me a lot. Now, what I wanted was to get the hysteresis. For that I searched about th Op-amp comparator and make the design of that with the model of the AD 630. With this now I got the hysteresis cycle by Excel (which is more comfortable for me to use than the LTSpice in order to take out these kind of operation)I really want to thanks to everyone that helped me and I'm sorry if I didn't explain quite well.Greetings!

author: RoGeorge
author_rank: Super Contributor
timestamp: June 04, 2019, 06:16:00 pm
content: Great!