Author Topic: Formula to Calculate exact Time period and tON time of Bistable Multivibrator  (Read 1781 times)

0 Members and 1 Guest are viewing this topic.

Offline khatusTopic starter

  • Regular Contributor
  • *
  • Posts: 161
  • Country: gl
What is the time period(T) and on time (tON)time of this bistable multivibrator?



I got the following result from Chat GPT.




But after substituting the values i get,
R = 10kΩ

C= 220μF T = -2 ×10×10^3×220×10^-6× ln ( 1 - 0.7/3.7 )

VCC = 3.7 volt T= -4.4 × ln (0.8108)

e = 2.718 T= -4.4 × -0.2097

VBE = 0.7 volt T= 0.92268 second 922.68 milli second.

But after simulating it in LTSPICE, I get the following result. Which shows the time period is nearly (532 -501) milli second.



I want to know the correct formula to calculate the exact Time period and tON time?
 

Offline ledtester

  • Super Contributor
  • ***
  • Posts: 3848
  • Country: us
The ChatGPT calculation assume Vbe(ON) is 0.7V, but perhaps this isn't the case for the transistors you are using the simulation. In any case, LTspice uses a much more sophisticated model of transistors than what the ChatGPT assumes.

Also, why are you using a BC546B on the left and a BC547B on the right?

In the real world all components will have variation and can't be assumed to have exact values, so any calculation will only be an estimate.
 

Online Zero999

  • Super Contributor
  • ***
  • Posts: 22005
  • Country: gb
  • 0999
That's an astable, not bistable. A bistable is latch, not an oscillator.

Using different transistor models in SPICE is a good idea, because the simulator will have difficulty starting the oscillation, if it's perfectly symmetrical.

I don't see any mention of the LED forward voltage in the calculations.

1R is far too lower value for the current limiting resistors.

Post the .asc file.
 
The following users thanked this post: tooki

Offline wasedadoc

  • Super Contributor
  • ***
  • Posts: 1730
  • Country: gb
(Using the component numbering in the BC546 plus BC547 diagram.) When Q1 switches on the base of Q2 and the end of C1 connected to it goes negative by (Vcc-Vce1). Immediately beforehand that point was at Vbe2.  So the absolute voltage at Q2 base becomes (Vbe2-Vcc+VCe1).

That makes the "intial charging" voltage across R1 equal to Vcc-(Vbe2-Vcc+Vce1).  That is 2Vcc-Vbe2-Vce1.  Note the 2 times Vcc.

And yes, 1 Ohm is much too low for the LED series resistors.
 

Offline PGPG

  • Frequent Contributor
  • **
  • Posts: 966
  • Country: pl
When Q1 switches on the base of Q2 and the end of C1 connected to it goes negative by (Vcc-Vce1).

Are you sure?
 

Online Zero999

  • Super Contributor
  • ***
  • Posts: 22005
  • Country: gb
  • 0999
When Q1 switches on the base of Q2 and the end of C1 connected to it goes negative by (Vcc-Vce1).

Are you sure?
 

Offline wasedadoc

  • Super Contributor
  • ***
  • Posts: 1730
  • Country: gb
When Q1 switches on the base of Q2 and the end of C1 connected to it goes negative by (Vcc-Vce1).

Are you sure?
Yes.
 

Online tggzzz

  • Super Contributor
  • ***
  • Posts: 23983
  • Country: gb
  • Numbers, not adjectives
    • Having fun doing more, with less
What is the time period(T) and on time (tON)time of this bistable multivibrator?

I got the following result from Chat GPT.

LLMs hallucinate, much like politicians.

LLMs work by assembling sentences and paragraphs from words that are frequently seen in proximity. That's what human buzzword bullshitters do, e.g. salesmen and incompetent managers.

In order to work out whether a statement is a hallucination or is buzzword bullshit, you have to know the correct answer - in which case why are you using an LLM?
There are lies, damned lies, statistics - and ADC/DAC specs.
Glider pilot's aphorism: "there is no substitute for span". Retort: "There is a substitute: skill+imagination. But you can buy span".
Having fun doing more, with less
 
The following users thanked this post: Ian.M, tooki

Offline Ian.M

  • Super Contributor
  • ***
  • Posts: 13905
Note that LTspice and most other circuit simulators do not usually model Base Emitter junction reverse Zener or avalanche breakdown.   See https://ltwiki.org/LTspiceHelp/LTspiceHelp/Q_Bipolar_transistor.htm

LTspice uses SPICE3 modified Gummel-Poon models for >99% of the transistors in its library.  It has the capability to use VBIC models which include reverse breakdown, but only three devices in standard.bjt have VBIC models (+ one extra if using Bordodynov's library).  It is also possible to simulate reverse breakdown using a subcircuit model, but they aren't in the standard library.  You may encounter one as a 3rd party OEM model.

In the real world, at higher supply voltages, the astable circuit's base voltage negative peaks may be clamped by the base emitter junction breakdown, shortening the off time.  The clamping voltage is *NOT* a datasheet parameter and can vary considerably from device to device of the same type.   If you want predictable timing, either keep the supply voltage below the  datasheet abs. max. reverse Vbe (6.0V for BC546/7/8A/B/C) or modify the circuit e.g. with series base diodes so significant reverse Vbe breakdown current cannot flow.
« Last Edit: January 19, 2025, 02:35:13 pm by Ian.M »
 

Offline PGPG

  • Frequent Contributor
  • **
  • Posts: 966
  • Country: pl
When Q1 switches on the base of Q2 and the end of C1 connected to it goes negative by (Vcc-Vce1).

Are you sure?
Yes.

Can you explain how did you become convinced that turned off LED will provide enough current to be able to charge in time the 220uF to VCC because I still have doubts.
 

Offline NightMoth

  • Contributor
  • Posts: 35
  • Country: cn
Hello

I did very same project more than year and half ago

I found formula for multivibrator without LED here
https://rayshobby.net/wordpress/learning-electronics-1-multivibrator/

Then I modified formula from above link (taking into account LEDs) and got this formula:
T = -(R1*C1 + R2*C2)*ln((Vcc - Vb)/(2Vcc - Vb - Vled))
(TON should be 1/2 of T)

My circuit behaved as predicted by the formula (for my values of R and C):
Calculated with the formula:  f = 1.994 Hz, T = 0.502 s
Real circuit behavior: f = 2.013 Hz, T = 0.497 s

Attaching my circuit with comments
That time I tested it with multimeter and timer, so I dont have oscilloscope waveforms
 

Online Zero999

  • Super Contributor
  • ***
  • Posts: 22005
  • Country: gb
  • 0999
Note that LTspice and most other circuit simulators do not usually model Base Emitter junction reverse Zener or avalanche breakdown.
That's true, but the supply voltage in this case is 3.7V, which is well below the reverse breakdown voltage of the BC547.

Hello

I did very same project more than year and half ago

I found formula for multivibrator without LED here
https://rayshobby.net/wordpress/learning-electronics-1-multivibrator/

Then I modified formula from above link (taking into account LEDs) and got this formula:
T = -(R1*C1 + R2*C2)*ln((Vcc - Vb)/(2Vcc - Vb - Vled))
(TON should be 1/2 of T)

My circuit behaved as predicted by the formula (for my values of R and C):
Calculated with the formula:  f = 1.994 Hz, T = 0.502 s
Real circuit behavior: f = 2.013 Hz, T = 0.497 s

Attaching my circuit with comments
That time I tested it with multimeter and timer, so I dont have oscilloscope waveforms
Doh, I wanted the original poster to figure that out for himself.

Thanks for posting.

Also note that the LEDs never fully turn off, although it might not be noticeable. Putting another resistor in parallel will solve that, as well as making the circuit less sensitive to the LED's forward voltage.
 

Offline vk6zgo

  • Super Contributor
  • ***
  • Posts: 8081
  • Country: au
When Q1 switches on the base of Q2 and the end of C1 connected to it goes negative by (Vcc-Vce1).

Are you sure?
Yes.

Can you explain how did you become convinced that turned off LED will provide enough current to be able to charge in time the 220uF to VCC because I still have doubts.
The LED doesn't have any part in the charging of the capacitors.
 

Offline PGPG

  • Frequent Contributor
  • **
  • Posts: 966
  • Country: pl
When Q1 switches on the base of Q2 and the end of C1 connected to it goes negative by (Vcc-Vce1).

Are you sure?
Yes.

Can you explain how did you become convinced that turned off LED will provide enough current to be able to charge in time the 220uF to VCC because I still have doubts.
The LED doesn't have any part in the charging of the capacitors.
So which way they get VCC (at their ends connected with collectors) needed to allow for negative step by (vcc-Vce1)?
About what is the Vce1 value in this equation I have also doubts. I suppose that at the moment of switching it is small, but shortly (when base is no longer driven by first pulse loading capacitor but only by resistor) then collector current is limited by base resistor and beta and it can be not enough to get small Vce1 (LED V/I curves have to be analysed). This move up at collector will correspond to the same move up at the other capacitor end so the process of charging this end (at base) is from different point at first and then from different point after transistor is not able to drive LED with enough current. I am all the time speaking about a circuit for which the question was asked.

The question was to find equations for circuit and not circuit to satisfy assumed equations.
 

Online Zero999

  • Super Contributor
  • ***
  • Posts: 22005
  • Country: gb
  • 0999
Of course the capacitors charge via the LEDs. Note the current through the capacitor as it charges, is equal to that through the LED, as it turns off. This is why it's a good idea to buffer the outputs, if it's being used to drive large loads.



What colour are the LEDs? I presumed white, which I've modelled as 4.5 silicon diodes in series, note the N=4.5 next to the LEDs.

Another way to kickstart the simulation is to declare the initial voltage on one of the capacitors as zero, hence the ic=0 statement.

To make the plots easier to read, I skipped the first cycle, so the circuit is oscillating in its final state.
« Last Edit: January 20, 2025, 07:14:48 pm by Zero999 »
 

Offline PGPG

  • Frequent Contributor
  • **
  • Posts: 966
  • Country: pl
What colour are the LEDs? I presumed white, which I've modelled as 4.5 silicon diodes in series, note the N=4.5 next to the LEDs.

Good job to find how this circuit really works.
I was using PSpice, generally long time ago. In 90s our access control system was communicating with PC using 20mA current loops (1200m, 4800 bps). Designing their circuits my idea was:
- for 0..5mA all current was going through resistor,
- for 5..10mA all current over 5mA shell go through transoptor LED,
- for 10..20mA all current over 10mA shell go through red LED indicating that loop transmits some communication.
I have measured V=f(I) characteristics of transoptor LED and red LED. If remember well to model them (in interesting region) I used voltage sources inside models. So my remember tells me that I don't have good LED models to be used in this circuit and also my PSpice version refused to work when I moved from Windows-XP to 64 bit Windows 7. Practically I don't have Spice at hand as I didn't needed it since 10+ years. And an year ago I spend one day trying how Spice in KiCad works.
Those time (90s) I was reading this PSpice documentation carefully. I don't remember of having possibility to use something like N=4.5, but it can be I just missed it. I don't remember any texts (except references and values) used at PSpice schematic. When (20 years ago) I tried once LTSpice I was surprised that I have to use texts at schematic to specify this or those.

Going to the beginning of this thread:
- does it work (in simulation) with R3 = R4 = 1 ?
- does it work with R3 = R4 = 0 ? - Chat GPT was asked to find equations for such circuit, what in my opinion is very far from a trivial task.
« Last Edit: January 20, 2025, 08:22:19 pm by PGPG »
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf