Not working 555 simulation

I have a schema (see here GitHub - johansmitsnl/kicad-555 ) where I have a 555 that should this behavior as in the top of the picture

What I get in the kicad simulation is the graph below which does not look the same at all. Now I’m asking why is it not the same because the V(OUT) should be delayed but it is not.

I used the library for the 555 from Simulation of 555 timer circuit in KiCad - #7 by Ste

Any suggestions why it is not working?

A search: 17 results for#simulation NE555 Some of them should be working examples. There are also a few long threads on this forum which are collections of different sorts of ngSpice simulation examples.

Thanks, I did saw them but I could not solve my issue reading them. That’s why I posted my example. The issues I found I think (my experience is limited at this time with simulation) are correct but I don’t see it working at all.

Your Eeschema output does not correspond to the circuit diagram.

Where is V(in)? What is V(contact)? Why are the voltage levels different?

You should show us only the KiCad circuit diagram.

Another trap we just can guess here are the pin assignments for the three devices (diode, U1, Q1). Are they correct?

Best is you zip and upload your project (including all ngspice models used).

Change your resistor R5 from 1m to 1M (or 1Meg).

  • m = milli
  • M or Meg = Mega

The spice way is to use Meg, however when you use M, kicad will translate this to Meg for you when it creates the spice netlist.

1 Like

The Idea is that you start with one of those working examples first. Then get to know ngSpice in KiCad a little bit better, before you start working on your own projects. There are quite a lot of subtle things that can go wrong in the interaction between KiCad and ngSpice. Differences in pin assignment is a very common problem (K & A of a diode swapped is an example). KiCad has a translation table to map KiCad pin numbers to the ngSpice pin (node?) numbers in the models. Another common problem is incompatible (or encrypted, whatever) spice models.

I think some work is needed on the design before trying simulation. Whether a monostable or astable, the output shouldn’t be fed back to the timing circuit. The timing capacitor should also be connected to gnd.

In the last 50 years a lot of weird circuits have been designed around the NE555, and this may be one of them. I have not analyzed the circuit. It’s been over 20 years that I used the NE555 myself.

I think they are trying to design something more “exotic” then the standard monostable or astable circuits. I have seen people on forums - for better or worse - build all sorts of circuits with the 555 timer, including feeding back the output signal.

Maybe, I was going by the OP’s top statement and screen grab. :wink:

This was the solution, now it works as expected:

3 Likes

I did this but with my example I ran into issues. But it is now solved.