LTSpice Error (Piezo Design)

Status
Not open for further replies.

Gee Won Han

New Member
Hi,

I am getting an error: "Unknown subcircuit called in: xu1 n007 n002 n004 opamp aol=100k gbw=10meg"

The design has a microprocessor attached at the end of the design. The J2-1 and J2-2 is where the Piezo is connected. The processor gives out a PWM initially to charge the circuit.
Then the processor goes into an input mode. Once the piezo is press the output sends a high signal to the processor.

I am not sure if I replicated the design on LTSpice correctly. Of course LTSpice doesn't have a processor.
 

Attachments

  • LTSpice Piezo.png
    24.5 KB · Views: 396
  • Piezo Setup.png
    29.3 KB · Views: 329
You probably need to use some actual kind of opamp and some actual model of diode.
 
Well U1 has now power pins, so I don´t think it is possible to be correct, D1 and D2 have model name D, which will be some default and will not work like you would expect.
You can try posting your asc file.
 
So, when you pick the basic diode, it is just a symbol, if you right click on the diode, a dialog box opens and then you can pick a new diode from the list which has the functional parameters.
 

Use the "universal opamp2" symbol. It has a subckt already defined with the parameters your trying to set. There is also an LM358 model you can download from the TI website.

Do you have a part number for the piezo sensor?
 
Last edited:
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…