Zener diode for simulation

Hello, when i try to build a simple schema using zener diode and simulate it i get this error.
Some one knows why?


Matteo

It appears the spice model in the in4732A part is incorrect. Your best bet is likely to file a bug report on github (including the sketch, the .fzz file will make reproduction easier.) The solution is to fix the spice model in the part (with a custom part to start with) and then fix the model in core parts. Open an issue in github here (as this is a part issue)

@fai who did the simulation may also be able to suggest a fix (I don’t know enough about the spice models to see where the error is.) Assuming you are using the 1n4732A from core parts (which seems likely) the spice model looks like this

and it appears to be unhappy about the DI_4732A label in line 4 which appears there but may not be correct, or need to be defined further. As noted I know very little about spice.

Peter

1 Like

Yes, this issue has been already reported and we fixed it in the repository. Next version will not have this error.
See:

The fix is relatively easy: replace the D by an X in the spice model of the part. The problem is that you need to find the file, change the spice model and rebuild the database, which may be difficult depending on your knowledge of Fritzing…

1 Like

OK here is a temporary solution til the fix comes out. This is a copy of the core part with spice corrected:

Zener-Diode-fixed.fzpz (5.3 KB)

if you load this part then do a delete minus (or just delete the current diode and replace it with this one which may be as easier than the delete minus) then the simulation should work.

Peter

1 Like

Many thanks this Zener works well :blush:
this one is fix at 3.6V Zener Voltage?

From the datasheet it should be 4.7V, but the spice model says

   <model>VZ 2 3 2.99</model>

which I think should set the zener voltage ( but I don’t know how exactly). It is pretty close to a 4.7V zener from diodes (their VZ is a little lower) but I don’t know how that relates to the voltage since I would expect it to be 4.7.

*SRC=AZ23C4V7;DI_AZ23C4V7;Diodes;Zener <=10V; 4.70V 0.300W Diodes Inc. Per node. Device contains two
*SYM=HZEN
.SUBCKT DI_AZ23C4V7 1 2

  •    Terminals    A   K
    

D1 1 2 DF
DZ 3 1 DR
VZ 2 3 2.24
.MODEL DF D ( IS=26.3p RS=33.7 N=1.10

  • CJO=350p VJ=0.750 M=0.330 TT=50.1n )
    .MODEL DR D ( IS=5.26f RS=62.5 N=3.00 ).ENDS

Again perhaps @fai may be able to provide more insight.

Peter

I do not understand very well the model they are using for this diode (I did not create it, it was already in the core parts). However, I get 4.7V as expected: