#105

Поділитися
Вставка
  • Опубліковано 24 сер 2024
  • A comment posted on my previous video on the adjustable sawtooth/triangle waveform generator circuit, asked how to generate a sawtooth waveform with just NPN and PNP transistors. There are a lot of ways to do this, and this video shows a very simple example. It uses a current source to charge capacitor to create the ramp, and then pair of transistors hooked up in a regenerative fashion (positive feedback) is used to quickly reset the capacitor voltage.

КОМЕНТАРІ • 374

  • @maxartone1
    @maxartone1 8 років тому +43

    Thank you so much for not only telling what it does but also why it works. So few videos explains how the circuit works. Very helpful.

  • @Avionics1958
    @Avionics1958 10 років тому +16

    Alan, you pointed me to a direction that it was so fundamental that I realised I had difficulty in understanding the difference between sourcing and sinking. After reading a few articles on the web I think I understand now why you used pnp for sourcing and not npn.
    I thank you for sharing your wealth of knowledge with us, god bless you.

    • @HazeAnderson
      @HazeAnderson 5 років тому

      Thank you for asking that question (why pnp instead of npn) ... it was a very good question. And no, I do not understand currently (pun intended) even what sourcing and sinking is. 😂

  • @larrybud
    @larrybud Рік тому +3

    0:02, lol, thank God, my bench looks just like this. I always figured the pros would be all neat and tidy.

  • @stevejagger8602
    @stevejagger8602 Рік тому +1

    Thank you once again for your comprehensive explanation of circuit and component function.

  • @shvideo1
    @shvideo1 3 роки тому +2

    As already commented, thank you for this simple circuit and the great detailed explanation of how it works. The waveform also is very impressive.

  • @moredoglife
    @moredoglife 10 років тому +1

    i built this virtually using iCircuit and had to put 3 separate voltage sources of 9v in order to see the sawtooth wave pattern. Makes a lot of sense Alan. Please keep up the awesome work and explanations which make sense..

    • @stevejagger8602
      @stevejagger8602 Рік тому

      I also used iCircuit to model this circuit. I have to keep remembering to set the bandwidth high enough in order to get the circuit to run correctly even in the audio range. iCircuit always defaults to 256Hz bandwidth.

    • @carentanbr
      @carentanbr 5 місяців тому

      I built it using EveryCircuit, but it did not work very well. Not sure why... trying to make it work.

  • @mickeyaslam5272
    @mickeyaslam5272 10 років тому +2

    Some of the best tutorials I have ever seen. Thanks for sharing knowledge.

  • @KingMysion
    @KingMysion 9 років тому

    I was looking for a way to generate a saw-tooth wave for a crude PWM generator. Your video goes in depth of how it works and provides a clear explanation!
    Thank you!

  • @keithwepking9988
    @keithwepking9988 4 роки тому +1

    Your videos are very helpful! Even though I had electronics training many many years ago, your videos still help me out.
    Please keep them coming. I really enjoy them. Thank You!

  • @Stelios.Posantzis
    @Stelios.Posantzis 4 роки тому

    A clear and intuitive explanation of how SCR's work. I don't know whether it is correct scientifically but it works for me as it helps me understand how they work. I was always baffled by these devices and never took the time to properly understand them. Thankfully, I no longer need to. :)

  • @Rendon276
    @Rendon276 2 роки тому

    So simple and elegant. And yet I never would have thought of it.

  • @321reh
    @321reh 11 років тому +1

    Thanks For More Circuit Fun,,, These Circuits are Getting More Interesting,,Keep Up The Good Work!!! The Amazing Things You Can Do With Transistors!!!

  • @rogeronslow1498
    @rogeronslow1498 6 років тому +15

    You should be proud Alan. You have 1200 likes to 2 dislikes. That's a 600:1 ratio. Highest I've ever seen on YT.

    • @w2aew
      @w2aew  6 років тому

      Thanks! I have a few that have even better ratios, like this one:
      ua-cam.com/video/SBqLOrlA7QI/v-deo.html
      or even a few with no dislikes.

    • @rogeronslow1498
      @rogeronslow1498 6 років тому

      That's very good going indeed. It's definitely your style and personality that results in these figures. I really like the hand drawn circuits on maths paper. Just like I like to do it.

    • @campbellmorrison8540
      @campbellmorrison8540 4 роки тому

      Agreed but I cant imagine why there are any dislikes. Takes all sorts but at least they are few and far between :)

    • @yoramstein
      @yoramstein 4 роки тому

      How can somebody dislike yhis video I do not understand. Would be nice to more of these kind (smart)ANALOG circuits videos being explained.

  • @crocellian2972
    @crocellian2972 7 років тому +1

    Messing with this was really fun. I actually bought a variable cap kit so I could fiddle. I had not seen the parallel to pots.

  • @techsinc
    @techsinc 5 років тому

    Wonderful video. I made use of the back-to-back pnp-npn transistors you showed in the video to sharpen up falling edges of current pulses (variable width) generated with a pair of MOSFET transistors and a capacitor. Basically, using a MOSFET transistor, I was controlling discharge from the capacitor after having been charged with constant-width voltage pulses of variable voltage so that a linear ramp down occurred after each pulse which was used as a timing mechanism. The ramp down profiles, however have different heights depending on the input pulse height. In turn, the ramping-down voltage was fed into the gate terminal of another MOSFET which controlled (switched on/off) the drain-source current. While the shut-off timing was controllable with this scheme, not surprisingly, the falling edges were rounded in nature (sigmoidal shape). When I inserted the pnp-npn pair in the circuit with a reference voltage at the emitter of the pnp transistor and the ramping-down voltage fed to the base of the pnp transistor, boom! the shut-off sharpend up, I have perfectly controllable pulse width with vertical falling edge. Thank you, great stuff.

  • @shvideo1
    @shvideo1 3 роки тому

    Thank you for the circuit and the detailed explanation. It is great to know how the circuit works.

  • @miketaylor7174
    @miketaylor7174 10 років тому +1

    Thank you, Alan. This is one of the best explanations I have ever seen. Just tried it out on the breadboard. :)

    • @w2aew
      @w2aew  10 років тому

      Glad you liked it. You'll probably enjoy my other circuit tutorial videos too.

  • @bakupcpu
    @bakupcpu 10 років тому +3

    Awesome circuit just found it yesterday on Google :) nice to see it in action Thanks for sharing!!!

  • @321reh
    @321reh 11 років тому

    This Circuit is Simple. Cheap in Cost And Useful,,,,Thanks Alan!!!! This Circuit Demonstrates Sawtooth Generation Found in Analog Scopes To Have The Beam Go Across The Screen!!!

  • @MonkeyKungFu
    @MonkeyKungFu 11 років тому +2

    Simulating a 2n3904 or a 2n5089 instead of a 2222 seems to show some sort of latchup in LTSpice, though the circuit works fine. The fix seems to be increasing the NPN collector current. Anything around 8k or lower for the bias resistors seemed to work.

  • @Avionics1958
    @Avionics1958 11 років тому

    Yes Alan you are correct I didn't think deep about the current souce. yes we have a ~30 uA current source that sets the timing. thanks any way great circuit and great videos.

  • @bogywankenobi3959
    @bogywankenobi3959 7 років тому +1

    The structure on the right, made up of the two npn transistors, is known as a programmable unijunction transistor or PUT. it is the compliment of an SCR wherein the base of the upper transistor is pined out instead of the base of the lower transistor as in the case of the SCR. Put another way, in an SCR the "top" P region and the lower P and N regions are pinned out of the chip. In a PUT it is the "top" P and N regions and the lower N region that are pinned out. Turn on voltage is programmed by fixing the base voltage of the upper transistor. Once on it will conduct until the current drops below a critical level and the PUT resets to the off condition. I also like the way you use a transistor as a constant current source to charge up the capacitor and thus get a true linear ramp. Excellent video.

    • @NCmountainview
      @NCmountainview 7 років тому

      Bogy Wan Kenobi I think you are confusing a PUT relaxation oscillator that is used to trigger SCRs, or thyristors, with the action show above. The PUT is closer to a FET than a BJT. Also the transistors at the right are not both NPNs. One is a PNP, and the other is a NPN. They are connected, as the author describes, for the same action as an SCR (PNPN) and function as a latch. I agree that a PUT could be used to produce simular results, but the point is the components at the right create an SCR rather than a PUT.

    • @Roy_Tellason
      @Roy_Tellason 3 роки тому

      @@NCmountainview I disagree with this. That circuit is *exactly* a PUT. And can also be used like an SCR, or an SCS (SCR + anode gate). I rather like that cross-coupled complementary pair, it's extremely versatile.

    • @technobubba4
      @technobubba4 10 місяців тому

      I second your opinion Sir@@Roy_Tellason

  • @shoilett1
    @shoilett1 8 років тому +1

    Awesome tutorial. Just made this for a project I was working on. Thanks dude.

  • @75whitehawk
    @75whitehawk 11 років тому

    thanks for pointing this out. i had this problem too. There is a checkbox "skip the initial transient point calculation" in simulation settings dialog window. Once that's clicked it just works perfectly. Thank you.

  • @RyanJensenEE
    @RyanJensenEE 10 років тому +1

    wow! This is really neat. I'm definitely going to have to try building this myself.

  • @Menimitz
    @Menimitz 11 років тому

    Thanks for that, I am trying to learn how to use LT Spice better but have trouble finding what I need. I will see how this works tomorrow, I have LTSpice on a different computer than this one. I'll also be sure to put some 2N3906 in my next order so I can get the real deal going.
    Also thanks for all the effort you put into the community here at UA-cam, forums, and podcasts. I benefit quite a bit from your content. Made me real interested in getting started with amateur radio and analog.

  • @stevenfenton3319
    @stevenfenton3319 Рік тому

    Great circuit description. Wonderful.

  • @maarkaus48
    @maarkaus48 7 років тому

    man I love these vids. I have watched this over and over. Very helpful. Thank you.

  • @els1f
    @els1f 4 роки тому +1

    I'm glad your desk looks like mine 😄

  • @tonybell1597
    @tonybell1597 11 років тому

    I am loving these tutorial vid's. Thank you, keep them coming , much more useful than trying to read text books about this stuff....now, where's my breadboard....

  • @vobinhthu5299
    @vobinhthu5299 3 роки тому

    This project is very good!

  • @octavmandru9219
    @octavmandru9219 7 років тому

    Absolutely brilliant! Love your videos, and your style. I built it and it worked just fine after I installed a poly capacitor. I am not sure if the leads were too thin on the ceramics or what...

  • @Dullthud007
    @Dullthud007 5 років тому

    Yay! Got it to work. 30k resistor from power to pnp emitter. Never give up.

  • @frac
    @frac 11 років тому

    An audio sound effects box is always fun, and you can expand on it over time. My immediate thought would be something similar to a C-64 SID chip - several wave generators (sine, square, triangle, sawtooth) and a white noise generator, each with ASDR and frequency adjustments. I had a ball as a kid just making weird space noises with my C-64.

  • @tze-ven
    @tze-ven 2 роки тому

    That 2-transistor configuration is known as Programmable Unijunction Transistor (PUT) rather than SCR. Using the 2-transistor model as a reference, for SCR, its gate is connected to the base of the NPN transistor, whereas for PUT, its gate is connected to the base of the PNP transistor. To which side of the bases the gate is connected to differentiate them. In fact, their electronic symbols have their gate terminals connected to the opposite sides to one another.

  • @doughale1555
    @doughale1555 6 місяців тому

    the cross coupled transistors and the resistor divided function somewhat like a UJT - uni junction

  • @andrewdjburke
    @andrewdjburke 8 років тому

    Dude you explain things well!

  • @Szocool
    @Szocool 7 років тому

    Hi Alan,
    I realy enjoy your circuit Tutorials videos, they are awesome! I like the way, you build them up from general components, the simple and beautiful logic, and the way you explain all the things. Please keep on making this kind of videos! I have also a idea, lets say for comeback in this field ;). It would be very useful for a workbench: a simple transistor driven (because I like transistor that much) 0 - 5V regulator supply that can handle maximum of 100 mA current. In many cases it's only required to have a small signal with precise voltage. Please consider making a tutorial about it.
    Best regards

    • @w2aew
      @w2aew  7 років тому

      Sounds like a fun little project - I'll add it to my long list...

    • @Videoswithsoarin
      @Videoswithsoarin 7 років тому +1

      you can buy 5 volt 100mA regulators or find them in broken electronics their pretty common.

  • @DarrenLandrum
    @DarrenLandrum 11 років тому +1

    Well, that's my drone synth oscillator sorted. Thank you!

  • @PeterWalkerHP16c
    @PeterWalkerHP16c 4 роки тому

    Works a treat! Mine sings around 700Hz and is just shy of 5V.

  • @meisgiorgos
    @meisgiorgos 9 років тому

    Really interesting, and very well explained! Thank you :)

  • @agstechnicalsupport
    @agstechnicalsupport 6 років тому +2

    We'll explained, thank you !

  • @markusmuller279
    @markusmuller279 7 років тому

    Thanks a lot for this circuit idea :)! I just used it in my Flyback design to replace a sawtooth generator with 2 opamps that would have cost much more

    • @w2aew
      @w2aew  7 років тому

      Just keep in mind that this circuit hasn't been tested over temperature, supply variations or for long-term reliability or consistency with device variations...

    • @markusmuller279
      @markusmuller279 7 років тому

      Yep, I am fully aware of that :)!

  • @victorcubias7310
    @victorcubias7310 7 років тому

    Really clever circuits Sir, thank you for sharing. One small suggestion, if you could at some point in the video show the entire schematic so that anyone wanting get a screen capture could easily do so.

    • @w2aew
      @w2aew  7 років тому +1

      At 00:34, you've got a full screen shot of the 3-transistor circuit. If you want more details on the more complex one shown at the beginning of the video, then go to this video:
      ua-cam.com/video/ibnz5UjQ4u0/v-deo.html
      and all of the notes shown in that video can be downloaded here:
      www.qsl.net/w/w2aew//youtube/Adjustable_Sawtooth_Generator.pdf

  • @mendiarapi
    @mendiarapi 7 місяців тому

    Hello sir. I do really appreciate your work for spreading knowledge. If you let me i would wish to request some mosfet basics vidoes. It just sits very well in the brain the way how you explain

    • @w2aew
      @w2aew  7 місяців тому

      Have you watched these:
      ua-cam.com/video/oambDFa0Pr8/v-deo.htmlsi=lvxwrPl0AIK54YnQ
      ua-cam.com/video/gloikp9t2dA/v-deo.htmlsi=MIk8zr1ePoTCWr0z

  • @thevidew
    @thevidew 7 місяців тому

    Brillant. Thank you

  • @SolidStateWorkshop
    @SolidStateWorkshop 11 років тому

    I have a question, Alan. You have showed us so many great circuits. Do you actually think of these yourself? Just building block circuits you've learned over the years? Or do you look them up and then figure out how they work?

  • @cosminbel79
    @cosminbel79 5 років тому +1

    Nice video, good explanation!
    At first glance, I assume that the circuit works only for very narrow input voltage range (5V...8V).

  • @allaboutbasicradio4136
    @allaboutbasicradio4136 6 років тому

    GOOD STUFF, this whole playlist; Big Thanks es 73, Alan AC0AC

  • @DavidLeeMenefee
    @DavidLeeMenefee 11 років тому

    I like these types of videos. Thumbs up!

  • @321reh
    @321reh 11 років тому

    Awesome Video,,,Thanks Alan!!! Circuit Fun #2,,You Should Publish A Soft Cover Book Of These designs Would Be Interesting,,Once Again Thanks and Keep Up The Good Work!!!

  • @iblesbosuok
    @iblesbosuok 4 роки тому

    You can use UJT (uni junction transistor) to substitute both discharging transistors.
    Cheers from Indonesia

    • @iblesbosuok
      @iblesbosuok 4 роки тому

      An example of UJT is BRY39

  • @Az00ra
    @Az00ra 11 років тому +1

    Thanks, cool vid. Am I right in thinking you could replace the 10k resistor connected to the first PNPs emitter with a pot to control the rate of charge of the cap, thereby controlling the frequency of the oscillator?

  • @whawaii
    @whawaii 6 років тому +1

    Thank you for the education I've been looking to understand for many years. Your presentations, demonstrations & explanations on your channel are hands down "the best". As a person who has worked in the television industry, I can see all the preparations, effort & polish you put into your videos. I would say you are the "Forrest Mims" of the Internet. Anyway, my question is, how necessary is the 1K resistor in the circuit? From what I can deduce, wouldn't the first transistor conduct the same whether it's there or not? I can see how it makes a voltage divider for approx 8.2V at the base ( for ~0.82V potential between the Emitter & Base), but I'm not sure why that is needed. Thank you in advance for helping me to understand this.

    • @w2aew
      @w2aew  6 років тому +1

      If the 1k resistor wasn't there, the base voltage would be much closer to ground which would have two consequences:
      1) The emitter and collector current would be much higher, which could be compensated for by increasing the 10K emitter resistor,
      2) The transistor would saturate more quickly as the timing capacitor charged up, because the base-collector junction will become forward biased at a much lower voltage because the base is at a lower voltage. This is the main problem. It is likely that the transistor would saturate before the SCR-connected transistors have enough voltage across them to turn on. So, the circuit wouldn't oscillate.

    • @technobubba4
      @technobubba4 10 місяців тому

      A PNP transistor requires a 'negative' bias on the base to turn on. This 1K resistor provides the 8.2 volts from the divider. ( 8.2 volts is more negative than the 9V on the emitter) This is what turns on the "current" source.

  • @chrishyslop1
    @chrishyslop1 5 років тому

    great explanation

  • @javierperez_21
    @javierperez_21 5 років тому +1

    Which transistors did you use? Could I change the frequency by changing the cap value right? Thanks for the great video

  • @byronwatkins2565
    @byronwatkins2565 3 роки тому

    A programmable unijunction transistor (PUT) formed from two complimentary transistors...

  • @robr8554
    @robr8554 8 місяців тому

    Really cool

  • @MYNICEEV
    @MYNICEEV 11 років тому

    Fantastic. Many thanks for sharing.

  • @gsm4636
    @gsm4636 11 років тому +1

    Hi,
    Can this setup achieve about 10kHz or so? I am thinking of using this along with a comparator to generate a PWM signal. Do you have any suggestions?
    Regards

  • @MrKoenvandijken
    @MrKoenvandijken 4 роки тому

    this is an interesting circuit. A few years ago i built it after seeing this video and it worked fine. Now I watch this video again I wonder why it doesn’t start oscillating at the time the voltage at the base of the PNP (in the BJT pair) is zero. At that moment it could also be some kind of stable situation. Voltage at the capacitor is still a diode drop above zero, which would trigger the circuit again. What prevents the circuit from staying in, or around that state? It must be something like what voltage is ramping up more quickly, but I can’t get it completely clear in my head on this.

    • @w2aew
      @w2aew  4 роки тому +2

      It isn’t a perfectly reliable circuit and can sometimes reach a stable point and not oscillate. Device and breadboard parasitic usually keep it going.

  • @carentanbr
    @carentanbr 5 місяців тому

    Thanks for the great video as always! Will try this one for sure. Sorry if this is really basic, but why do you need a transistor for the current source? Why not just connect the resistor and capacitor directly if you have the transistor fixed biased anyway?

    • @w2aew
      @w2aew  5 місяців тому +1

      Using just a resistor to charge the capacitor will result in the ramp part of the waveform to have a little curvature to it instead of being nearly linear.

  • @atscub
    @atscub 6 років тому +1

    I'm very impressed by your excelent explanation of every single detail of what's going on, that helps to understand the dynamics in the circuit.
    My question is: I am trying this in proteus. It works but I haven't been able to generate frecuencies higher than 100Hz. When I decrease the capacitor capacitance too much (say 1nF), it wont oscilate at all even after rising the emiter's resistance to 500K. Sorry if I am missing the obvious here but I'm an absolute beginer.
    Is it possible to generate a frecuency of about 20KHz-50KHz with this circuit? I'm trying do build a PWM using only transistors, do you thing it would work ?
    Thank you so much for your help.

    • @w2aew
      @w2aew  6 років тому +1

      This simple circuit is a very imperfect oscillator. Operation depends on transistor parameters that are not well controlled, so I wouldn't plan on making anything serious with it. It will certainly not be adjustable to do PWM operation.

    • @atscub
      @atscub 6 років тому

      Thank you very much. I was suspecting the problem increasing the frecuency were related to the 2nd and 3rd transistors properties.

  • @KX36
    @KX36 11 років тому

    If you were charging the capacitor through a resistor, that would APPROXIMATE a constant current if the peak capacitor voltage is small in comparison to the voltage source and therfore the voltage across the resistor is relatively constant, so I think that's probably what you're getting at. As it is, a CCS is used and that's where the linearity comes from as explained by the author.

    • @technobubba4
      @technobubba4 10 місяців тому

      Charging a capacitor thru a resistor gives you an "exponential" waveform - not linear.

    • @KX36
      @KX36 10 місяців тому

      @@technobubba4 that is true, and also not what I'm saying.

  • @aduedc
    @aduedc 2 роки тому

    Nice circuit.
    I guess, if we add another NPN Transistor such that the emitter is grounded and the base share the the base node of the other NPN transistor and its collector is connected to the top of the capacitor, then you can discharge the capacitor all the way to ground.

  • @malgailany
    @malgailany 11 років тому

    A nice clear video, thank you.

  • @jamieostrowski4447
    @jamieostrowski4447 11 місяців тому

    This is one thing that has been unclear to me...the capacitor charges, and reaches the .7 volts needed for the transistor to switch on. So as the capacitor discharges, and it's voltage drops below the .7 volts required to activate the transistor, the transistor still continues to conduct, even though the voltage drop is below .7 volts?

  • @PatrickPoet
    @PatrickPoet 11 років тому

    Might have mentioned the nice linearity comes from only charging the cap a bit, probably less than half, right? You might also mention frequency calculations--essentially time domain calculation for half charge.

  • @industrialdonut7681
    @industrialdonut7681 2 роки тому

    WOW THAT IS SO COOL!!!!

  • @claude77573
    @claude77573 Рік тому

    Nice video, but there's something about this circuit I don't understand. What's the purpose of the first PNP transistor? The way it is biased, the base would always be on, so the only thing left is the diode effect of the PN junction, so that when voltage falls below the diode drop of that junction, the PNP transistor turns off. If so, wouldn't replacing the transistor with a diode simplify the circuit and achieve the same effect? Also, at 2:44, you mentioned the capacitor would be discharged to a diode drop above ground. But wouldn't the voltage supplied from the PNP transistor keep it charged?

    • @w2aew
      @w2aew  Рік тому

      Not quite.... The PNP transistor is setup with a constant bias, so it behaves as a CURRENT SOURCE, not a voltage source. The constant current coming from the PNP collector is what causes the voltage on the capacitor to rise linearly (as a voltage ramp).

  • @mosiotv
    @mosiotv 7 років тому

    thanks man, really helpful 👍

  • @fijabo
    @fijabo 3 роки тому

    The other question I have is related to how to eliminate the DC component of the sawtooth signal. Because it is not a sinewave signal, I do not think we can just use a capacitor without compromising the sawtooth waveform. What would be your recommendation?
    Thanks again!

  • @fijabo
    @fijabo 3 роки тому

    I had not seen this circuit before, thank you for sharing. Still, I do not quite understand how the two transistors behaving like an SCR return to the OFF state. I assume that a design criterion for the magnitude of the current coming from the constant current source should be below the holding current of the transistor pair. Otherwise, even after the discharge of the capacitor, the constant current would have kept the transistor pair on the ON state.

  • @kellychristus2496
    @kellychristus2496 3 роки тому

    Are there specific PNP and NPN transistors needed in this design? Or will any do? And is there a way to output the saw wave to a speaker?

    • @w2aew
      @w2aew  3 роки тому

      Most general purpose transistors (2N3904/2N3906) will work. You would have to add a buffer or audio amp to drive a speaker.

  • @yoramstein
    @yoramstein 5 років тому

    Beautiful.

  • @zezeA380
    @zezeA380 10 років тому

    Good tutorial! I wonder what would happen if I add a resistor to the output of the capictor, would it discharge gradually instead of an instant discharge?

  • @jasonmills3503
    @jasonmills3503 10 років тому

    Thanks for this.

  • @simonkormendy849
    @simonkormendy849 7 місяців тому

    Just wondering if there's any way to make this simple Sawtooth oscillator circuit voltage-controllable so you can vary the frequency via a control voltage?

    • @w2aew
      @w2aew  7 місяців тому

      Sure. Remove the 10K resistor between the PNP base and ground, and replace it with a smaller resistor (say 330 ohms) connected between the PNP base and your adjustable voltage source. You may need to experiment with the resistor value...

  • @rgrams1
    @rgrams1 6 років тому

    Do you need the 1st transistor on the left? It seems to work fine with just an RC circuit. And also thanks for explaining how the circuit works, especially the SCR like transistor pair.

    • @w2aew
      @w2aew  6 років тому +2

      It will work with a resistor, it just won't have a linear ramp - it will have a slight curve on the ramp.

  • @industrialdonut7681
    @industrialdonut7681 2 роки тому +1

    I was able to build this but it took some debugging to figure out that I needed to make my current source not so strong ultimately, or else the PNP-NPN pair actually stays on and doesn't get starved of current lol (so no waveform comes about at all). I had tried the 30uA at first but now at like 10-20uA for me it is working, using 3904 and 3906 transistors. Very cool, but I wonder how to calculate perhaps the maximum current that is low enough to starve the positive feedback pair... I also wonder how resilient that max current would be to changes in hfe/beta of the feedback pair?
    Very cool still overall xD

    • @TheShowdown16
      @TheShowdown16 11 місяців тому +1

      Thank you for your comment. I have the same problem using bc327s and bc337. Thanks to your comment I found the issue faster. Increasing the emitter resistance on the first pnp solved my problems.

    • @industrialdonut7681
      @industrialdonut7681 11 місяців тому

      @@TheShowdown16 naisu!

  • @UberAlphaSirus
    @UberAlphaSirus 11 років тому

    op-amps types and uses to interface with mc's please. Great videos, many thanks.

  • @joshuamillerknight7530
    @joshuamillerknight7530 2 роки тому

    Hey I built one with a 2n2646 Unijunction Transistor and 1815 transistor and it's not functioning.

  • @fer_fdi
    @fer_fdi 9 місяців тому

    beautiful! Is there a way to modulate it's "base frequency" (which I guess will depend on the capacitor size)? I'd like to modulate it with noise around it's "base freq". I planned to use a negistor, but your oscillator is very elegant

    • @w2aew
      @w2aew  9 місяців тому +1

      Varying the capacitor size will adjust the frequency. Varying the current sources will individually adjust the rising and falling speeds.

    • @fer_fdi
      @fer_fdi 8 місяців тому

      @@w2aew When asking about dynamically change frequency, I was talking about the second circuit, the one with just 3 transistors. For instance, would applying a varying voltage to the base of 1st transistor (instead of the 1k,10k divider) modulate the frequency of the saw?

    • @w2aew
      @w2aew  8 місяців тому +1

      @@fer_fdi Oh, sorry. You can vary the 10k resistor connected between the 9V supply and the emitter of the PNP transistor. This will vary the charging current to the capacitor, thus changing the frequency. Or, you can inject your "noise" signal into the base of that PNP transistor.

    • @fer_fdi
      @fer_fdi 8 місяців тому

      @@w2aew Great, thanks a lot! : )

  • @mark8664
    @mark8664 10 років тому

    I like it, I might just use it :)

  • @M1music811
    @M1music811 17 днів тому +1

    Figure I could use a 100k pot possibly paired with a resistor to lower the frequency to audible ranges?

  • @Alexander5R
    @Alexander5R 9 років тому

    Can I use a NPN transistor (such as a 2n2222) in the current source instead of a PNP transistor using the emitter to charge the capacitor? I would assume that the current in the collector of you circuit is a function of the hFE, is that correct? Thanks a lot for the great video.

    • @w2aew
      @w2aew  9 років тому +1

      No, you can't. The NPN wouldn't provide a constant current, it would behave more like a voltage source instead of a current source.

    • @yoda8693
      @yoda8693 9 років тому

      Alexander Sinco Yes you can use a NPN, if the circuit is built exactly as in the schematic, but substituted all PNP's with NPN's and vice versa, then lastly, invert the polarity of the power supplies. The symmetry is due to the opposite charge carrier being responsible for the function of the different transistor types. You will not get rid of that one remaining PNP though, so probably won't solve your problem; and an emitter won't simply source current as w2aew says because of feedback effects due to Vbe.

  • @crogersdev
    @crogersdev 2 роки тому

    Why does the capacitor charge linearly like that? I thought they charged / discharged according to RC time constants, which made them charge and discharge in a non-linear fashion.

    • @w2aew
      @w2aew  2 роки тому

      This is because the capacitor is not being charged up via a resistor. It is being charged up with a constant current source (the collector current of the PNP transistor). A constant current being fed into a capacitor creates a linear increase in voltage that is proportional to the current and inversely proportional to the capacitor value. The analog would be like filling a glass of water from a faucet. The constant flow of water results in a linear increase in the water level in the glass. In this case, the constant current flow results in a linear increase in the charge on the capacitor, hence a linear change in voltage over time.

  • @pirateman1966
    @pirateman1966 6 років тому +1

    I am binge watching your videos from the hospital. I love them all !
    I bought 2 used HP power supplies exactly like yours (6214A). One of them goes to 8.5V Only! I opened it up and peeked and poked with a DMM and couldn't find anything wrong, except when I compared it to the good one, I noticed that the bad one had some work done on it as there are signs of rework. I think the problem is with a 1.2V Zener but I am not sure how the whole thing operates.
    Is there a way you could do a video on this power supply and go through the schematic, showing what each part does and why?
    It will also show your viewers how a commercial linear power supply of this class is designed and constructed.
    Just a request from a fan.

    • @w2aew
      @w2aew  6 років тому +2

      I can add that to my list of topics.

    • @pirateman1966
      @pirateman1966 6 років тому

      Great, thanks.

    • @mohammedtalha4649
      @mohammedtalha4649 6 років тому

      I second that. It would be very informative. :D

  • @yemiobisesan6333
    @yemiobisesan6333 9 років тому +1

    Hi, I'm struggling to understand how the two back to back npn and pnp transistors switch off by becoming "starved of current". I understand why they switch on hard and pull the voltage across the capacitor to approx. 0.2 + 0.7V but why does the capacitors voltage rise afterwards from approx. 0.9V? Why doesn't it stay at approx. 0.9V?

    • @w2aew
      @w2aew  9 років тому

      When the NPN turns on, it quickly saturates. A saturated transistor has a large amount of charge stored in the forward biased junction (the same thing that gives rise to reverse recovery time in a diode). That causes the NPN to stay "stuck" on for a short time even after the b-e bias goes away (PNP shuts off). When the NPN comes out of saturation, the collector rises due to the resistor divider.

    • @StrollHikes
      @StrollHikes 9 років тому

      ***** I built this circuit using 2n3904 and 2n3906 transistors and as some (but not all) others have reported, the SCR-configured transistors turn on, pull down the voltage across the capacitor to 0.6V, but then they stay stuck on in that state. The PNP transistor never turns fully off, so the NPN never turns off, and there they stay. There's apparently something in this circuit that's very sensitive to certain second-order behaviors of the transistors that some have and others don't.

    • @StrollHikes
      @StrollHikes 9 років тому

      Dropping the supply voltage down to 6.7 V made it start (barely) working in my case. The SCR system would turn on, drop the voltage to 0.6 V, it would stay flat for roughly 7 ms (longer than the rise time of the sawtooth, though it jumped around a bit) then the waveform would finally start to rise. As I lowered the voltage further, the dead time decreased until at 6 V I finally got a typical sawtooth with the waveform rising again immediately after falling.
      I don't know that much about transistors so I'm curious to poke at it some more and see if I can figure out how to make it work properly at 9 V.

    • @StrollHikes
      @StrollHikes 9 років тому

      Further investigation shows that if I put a 100K resistor from the base of the NPN to ground, the circuit will work at a higher voltage (up to 8.9 volts) before it locks low. I'm not an experienced electrical engineer, so I'm kind of throwing around terms I don't understand, but it seems that something is keeping the NPN base from going low fast enough to break the positive feedback cycle, so maybe I have a poor-quality breadboard with a lot of capacitance?

    • @w2aew
      @w2aew  9 років тому

      That could be part of it. Unfortunately, a simple circuit like this becomes fairly strongly dependent on device parameters and parasitic capacitance etc. You can also adjust the values of the voltage divider on the right of the schematic, that may help to keep a stubborn circuit oscillating.

  • @Cloudriri
    @Cloudriri 10 років тому +2

    can i adjust the frequency, duty cycle and amplitude of this? how to adjust it? pls help me. i've been trying for ages..

    • @w2aew
      @w2aew  10 років тому +2

      You can adjust the frequency / duty cycle over a limited range by adjusting the capacitor value, or by adjusting the current charging it (by changing the 10K resistor in the emitter of the PNP for example). But you really can't adjust the amplitude by very much. Here's a circuit that allows you to more fully adjust all of these parameters:
      Circuit Fun: Flexible Ramp Generator to create frequency sweeps using 555 timer and op amps

    • @Cloudriri
      @Cloudriri 10 років тому

      thank u very much for your help. i really appreciate it. :)

  • @EddieVanHalen1977
    @EddieVanHalen1977 11 років тому

    I like video of this style because they bring you right into the action to where he is. However, you always get a lot of camera shake with this type of production. I think maybe if you had a goose neck on a mic stand, where you could move the camera around while you were talking and then leave it fixed in that one position while you talk, so it will be perfectly still for those moments, and then you move it to the next shot, and so on. Just a thought. Everyone has the same problem with this.

  • @Menimitz
    @Menimitz 11 років тому

    I tried running this circuit in LT spice simply because I don't have any PNP transistors on hand to test it for real right now. It doesn't seem to work the way I have it set up. Does anyone know if this kind of circuit will work correctly in Lt spice and if so what do I need to try. The last video's circuit did not run either.

  • @mike83pl1
    @mike83pl1 4 роки тому

    Sir, thank you very much for all your time and effort! I would like to ask you for a big favor. Just for educational purpose, I am trying to build Current-Mode buck converter, using discrete components. I "somewhat" understand the working principle of slope compensation circuit ( saw-tooth ramp ) but I don't know how to build it with basic components. Of course, I found a lot of information online, but it is just theory and formulas on paper, which are important but lack this practical implementation. I do not want to use any dedicated IC for that purpose, because I still would not understand its operation. Is it possible to make a video tutorial in the near future? I appreciate your help in advance!

  • @garygrove2884
    @garygrove2884 3 роки тому

    I liked that video !! GLX/73

  • @davidsenabrealbujer
    @davidsenabrealbujer 8 років тому

    Is it easy to modify this circuit to drive a load or to light a LED? I tried to find a solution but don't see a way to do it. If you drain current (directly or through a transistor) then capacitor won't fully load and the "magic" won't happend.

    • @w2aew
      @w2aew  8 років тому

      +David Senabre You'd have to add a buffer amplifier between the oscillator and your LED.

  • @bryanhorton7192
    @bryanhorton7192 6 років тому

    it works, but may not last long. Peak base current through the output stage is pretty high.

  • @ralvarezb78
    @ralvarezb78 10 років тому +1

    0:38 at right, Home made UJT transistor :D

  • @robertlunsford1350
    @robertlunsford1350 9 років тому +4

    How would you change the period of the waveform?

    • @octavmandru9219
      @octavmandru9219 6 років тому +5

      Or change the value of the capacitor. A larger capacitance will take longer to "fill" with the same current source

    • @p39483
      @p39483 6 років тому +9

      Observe the oscillator from a different reference frame.

    • @accidentalengineering
      @accidentalengineering 6 років тому

      +p39483 Best comment ever

  • @Avionics1958
    @Avionics1958 10 років тому +1

    Hi Alan
    why should the transistor be PNP for the constant current source? how can we design a circuit with a NPN transistor? just wondered?

    • @w2aew
      @w2aew  10 років тому +2

      An NPN transistor current source is a "current sink", while the PNP forms a current "source". So, the circuit would have to be redesigned / rearranged to use a sink instead of a source.

    • @w2aew
      @w2aew  10 років тому +2

      R Vass You'd also have to change the other two transistors to their compliments, then reverse the supplies. Or, redesign as desired.

  • @weetabixharry
    @weetabixharry 11 років тому

    Would you have any advice for simulating? I've tried both building and simulating (using OrCAD PSPICE) and no luck either way yet. I'll try tweaking that resistor value some more in the built circuit...