- 45
- 875 642
Sine Lab
United States
Приєднався 20 тра 2022
Learn about electronics projects and make circuit designs.
Discrete Class-D Audio Amplifier - Part 2
This video is part 2 to my discrete class D amplifier. This time it actually works.
-- Links --
My Website: sinelab.net
Schematic: sinelab.net/pdf/discrete_class_d_v2.pdf
Parasitic Turn-On: sinelab.net/pdf/parasitic_turn_on_of_power_mosfet.pdf
LC Filter Value Calculations: sinelab.net/pdf/lc_filter_design.pdf
Buy me a coffee: www.buymeacoffee.com/thesinelab
Bitcoin Address: bc1qwlfr2ml9km4r5vhpfh7f3m60k80whhcq3ysths
Ethereum Address: 0x7e8B8Ff8D6bD8DfB48b4A139694BB343f040Bb3f
--
-- Links --
My Website: sinelab.net
Schematic: sinelab.net/pdf/discrete_class_d_v2.pdf
Parasitic Turn-On: sinelab.net/pdf/parasitic_turn_on_of_power_mosfet.pdf
LC Filter Value Calculations: sinelab.net/pdf/lc_filter_design.pdf
Buy me a coffee: www.buymeacoffee.com/thesinelab
Bitcoin Address: bc1qwlfr2ml9km4r5vhpfh7f3m60k80whhcq3ysths
Ethereum Address: 0x7e8B8Ff8D6bD8DfB48b4A139694BB343f040Bb3f
--
Переглядів: 1 969
Відео
5 Ways To Generate A Sine Wave (Analog)
Переглядів 73 тис.Місяць тому
Sine waves are the fundamental waveform of the universe. Unfortunately, they aren't the easiest to generate in an electronic circuit. Links My Website: sinelab.net Buy me a coffee: www.buymeacoffee.com/thesinelab Bitcoin Address: bc1qwlfr2ml9km4r5vhpfh7f3m60k80whhcq3ysths Ethereum Address: 0x7e8B8Ff8D6bD8DfB48b4A139694BB343f040Bb3f
How Do Class D Amplifiers Work? - Building A Discrete Class-D Amplifier
Переглядів 36 тис.2 місяці тому
Class D amplifiers are perhaps the most efficient type of audio amplifier. But that efficiency comes with a serious cost in complexity. Links My Website: sinelab.net Schematic: sinelab.net/pdf/discrete_class_d.pdf Feedback Paper: sinelab.net/pdf/charles_lehmann_feedback.pdf LC Filter Value Calculations: sinelab.net/pdf/lc_filter_design.pdf Buy me a coffee: www.buymeacoffee.com/thesinelab Bitcoi...
Shrink Your Projects with ATtiny - Beyond Arduino #5
Переглядів 4,3 тис.4 місяці тому
Some projects don't need all of the pins included with ATmega microcontrollers. An ATtiny is the perfect solution for saving space. Links My Website: sinelab.net Vader Schematic: sinelab.net/img/xmas-gifts/vader.png Vader Code: sinelab.net/code/xmas-gifts/vader.c Bitcoin Schematic:sinelab.net/img/xmas-gifts/btc.png Bitcoin Code: sinelab.net/code/xmas-gifts/btc.c Buzzer Schematic: sinelab.net/im...
Are PIC Microcontrollers Any Good? - Beyond Arduino #4
Переглядів 34 тис.4 місяці тому
AVRs are now the world's most popular family of 8-bit microcontrollers. But it wasn't always that way. Let's take a look at AVR's old rival: PIC. Links My Website: sinelab.net Final Code: sinelab.net/code/PIC_pwm.c Schematic: sinelab.net/img/PIC_Schematic.png Download MPLAB & XC8: MPLAB X: www.microchip.com/en-us/tools-resources/develop/mplab-x-ide XC8: www.microchip.com/en-us/tools-resources/d...
The Ultimate Guide to Transistors (BJT Edition)
Переглядів 6 тис.5 місяців тому
Transistors are both the most important and most confusing components in electronics. It's time that we cleared up some of the confusion. Links My Website: sinelab.net Buy me a coffee: www.buymeacoffee.com/thesinelab Bitcoin Address: bc1qwlfr2ml9km4r5vhpfh7f3m60k80whhcq3ysths Ethereum Address: 0x7e8B8Ff8D6bD8DfB48b4A139694BB343f040Bb3f
The Ultimate Op-Amp Comparison - Bandwidth, Slew Rate, Frequency Response, CMRR & More!
Переглядів 47 тис.6 місяців тому
Op-amps have so many different datasheet specifications that it can be hard to understand them all. The most important ones are covered in this video. Links My Website: sinelab.net New Schematic: sinelab.net/img/diy_op_amp/new_schematic.png Original Schematic: sinelab.net/img/diy_op_amp/schematic.png Buy me a coffee: www.buymeacoffee.com/thesinelab Bitcoin Address: bc1qwlfr2ml9km4r5vhpfh7f3m60k...
How Good Does a DIY Microphone Sound?
Переглядів 7 тис.7 місяців тому
Is it possible to build a good sounding DIY microphone? Links My Website: sinelab.net Schematic: sinelab.net/pdf/diy_mic.pdf Buy me a coffee: www.buymeacoffee.com/thesinelab Bitcoin Address: bc1qwlfr2ml9km4r5vhpfh7f3m60k80whhcq3ysths Ethereum Address: 0x7e8B8Ff8D6bD8DfB48b4A139694BB343f040Bb3f
DIY Stepper Motor Driver From Scratch
Переглядів 15 тис.8 місяців тому
If you are using a stepper motor for your project, then you will most likely need to use a driver. But what goes into making one of those drivers work? Links My Website: sinelab.net Schematic: sinelab.net/pdf/stepper_motor_driver.pdf Code: sinelab.net/code/stepper_motor_driver.c Buy me a coffee: www.buymeacoffee.com/thesinelab Bitcoin Address: bc1qwlfr2ml9km4r5vhpfh7f3m60k80whhcq3ysths Ethereum...
How I Made A Linear Bench Power Supply
Переглядів 13 тис.8 місяців тому
A linear power supply is known to be a good choice for beginners to make. The only problem is that it can be deceptively complex. Links My Website: sinelab.net Schematic: sinelab.net/pdf/linear_power_supply.pdf PCB Gerbers: sinelab.net/gbr/linear_power_supply_gerber.zip Buy me a coffee: www.buymeacoffee.com/thesinelab Bitcoin Address: bc1qwlfr2ml9km4r5vhpfh7f3m60k80whhcq3ysths Ethereum Address:...
How Do Capacitors Work? - Capacitors 101
Переглядів 1,3 тис.9 місяців тому
Capacitors are probably the most important electronics component to know about (right after resistors). Links My Website: sinelab.net Buy me a coffee: www.buymeacoffee.com/thesinelab Bitcoin Address: bc1qwlfr2ml9km4r5vhpfh7f3m60k80whhcq3ysths Ethereum Address: 0x7e8B8Ff8D6bD8DfB48b4A139694BB343f040Bb3f
The Simplest Voltage Booster? - Charge Pumps Tutorial
Переглядів 11 тис.10 місяців тому
Increasing voltage is a common challenge in electronics design. Luckily there is an alternative to boost converters. Links My Website: sinelab.net Buy me a coffee: www.buymeacoffee.com/thesinelab Bitcoin Address: bc1qwlfr2ml9km4r5vhpfh7f3m60k80whhcq3ysths Ethereum Address: 0x7e8B8Ff8D6bD8DfB48b4A139694BB343f040Bb3f
Is Negative Resistance Possible? - The Negative Impedance Converter and Negistors
Переглядів 1,8 тис.10 місяців тому
Negative resistance is something that we usually think is just a cool idea. But you can actually use it in real life! Links My Website: sinelab.net Buy me a coffee: www.buymeacoffee.com/thesinelab Bitcoin Address: bc1qwlfr2ml9km4r5vhpfh7f3m60k80whhcq3ysths Ethereum Address: 0x7e8B8Ff8D6bD8DfB48b4A139694BB343f040Bb3f
The ultimate way to program a microcontroller! - High-Voltage/Parallel ATmega Programming
Переглядів 10 тис.11 місяців тому
Learn how to recover the full potential of your AVR by manipulating the fuse bits and salvaging 'bricked' chips. Plus, I'll do a step-by-step demonstration to guide you through the setup of your own parallel programming system. Links My Website: sinelab.net Code: sinelab.net/code/parallel_programmer.c Schematic: sinelab.net/pdf/parallel_programmer.pdf Buy me a coffee: www.buymeacoffee.com/thesi...
Power Your Projects With Batteries! (LiPo/Li-ion)
Переглядів 22 тис.Рік тому
Adding batteries is often one of the more confusing parts of creating a portable electronics project. Learn how to to use LiPos in these portable projects without them exploding. Links My Website: sinelab.net Buy me a coffee: www.buymeacoffee.com/thesinelab Bitcoin Address: bc1qwlfr2ml9km4r5vhpfh7f3m60k80whhcq3ysths Ethereum Address: 0x7e8B8Ff8D6bD8DfB48b4A139694BB343f040Bb3f
Remove the ATmega from your Arduino! - Standalone AVRs and ICSP Programming - Beyond Arduino #3
Переглядів 14 тис.Рік тому
Remove the ATmega from your Arduino! - Standalone AVRs and ICSP Programming - Beyond Arduino #3
V-USB on an ATmega328! - V-USB and HID Explained
Переглядів 41 тис.Рік тому
V-USB on an ATmega328! - V-USB and HID Explained
Speaker Teardown - How do Class-A Amplifiers Work?
Переглядів 949Рік тому
Speaker Teardown - How do Class-A Amplifiers Work?
Add USB To Your Electronics Projects! - The USB Protocol Explained
Переглядів 421 тис.Рік тому
Add USB To Your Electronics Projects! - The USB Protocol Explained
Hardware CPU Timers - PWM and Interrupts - Beyond Arduino #2
Переглядів 3,5 тис.Рік тому
Hardware CPU Timers - PWM and Interrupts - Beyond Arduino #2
How Much Power Is Your Crypto Rig Using? - True and Apparent Power
Переглядів 368Рік тому
How Much Power Is Your Crypto Rig Using? - True and Apparent Power
Using Negative Voltages! - DIY Function Generator - Part 2
Переглядів 2,7 тис.Рік тому
Using Negative Voltages! - DIY Function Generator - Part 2
This radio almost works - Fix or Scrap: Dynamo Radio
Переглядів 982Рік тому
This radio almost works - Fix or Scrap: Dynamo Radio
NOBODY can solve this - Generating random numbers on an ATmega328p
Переглядів 9 тис.Рік тому
NOBODY can solve this - Generating random numbers on an ATmega328p
The Tool That You NEED - DIY Function Generator - Part 1
Переглядів 7 тис.Рік тому
The Tool That You NEED - DIY Function Generator - Part 1
Motorized Spider - DIY Halloween Decoration
Переглядів 560Рік тому
Motorized Spider - DIY Halloween Decoration
Get rid of your power resistors! - DIY Adjustable Load
Переглядів 6 тис.Рік тому
Get rid of your power resistors! - DIY Adjustable Load
How does I/O on microcontrollers work? - Beyond Arduino #1
Переглядів 4,1 тис.Рік тому
How does I/O on microcontrollers work? - Beyond Arduino #1
Life-Sized OP-AMP!? - How do OP-AMPs work?
Переглядів 13 тис.Рік тому
Life-Sized OP-AMP!? - How do OP-AMPs work?
Congratulations on succeeding! It shouldn't be too hard to build a discrete power regulator circuit given all the experience you have, if you want to replace that LM317 in the future :) A zener, a simple opamp circuit for feedback, and a pass transistor. Although 7X09/7X12 have been mainstays in amplifier circuits for decades, so I'd agree I would hardly count it as cheating. Not sure if you'd want room in your design for a potentiometer to get the driving circuitry as close to 0V ambient as possible? And yes would be very curious to see how much negative feedback would improve distortion. You might be able to use an oscilliscope with FFT, or even a power-resistor divider into PC audio port with waveform software to measure the distortion you get.
Good job dude!
Tekrar seyret
Watch part 1 here: ua-cam.com/video/2J7GW9HOxrU/v-deo.html
Watch part 2 here: ua-cam.com/video/PTng5xN2HkE/v-deo.html
This is great but I have one thing grinding on nerve lol... surrounding the leading and falling edges... A leading edge is the departure from zero. The falling (or "trailing") edge is the return to zero. Consider polarity "absolute" here, it doesn't matter if a wave is headed up or down on the scope; the relationship to the reference level is what defines them.
And to exactly nobody's surprise, the Anglophone has zero qualms about not only pronouncing Wien incorrectly but also about not even so much as considering that there are other languages besides the pronunciation trainwreck that is his own. Remember: No stereotype ever existed without reason.
*_hammers laptop keys_*
This is exactly the video i needed ! I'm also trying to build a class D amplifier. After trying multiple triangle generator, i changed my mind and decided to use a microcontroler to turn audio to pwm. It will allow me to have a dsp. Thank you for all the explanations, i hope that you will continue your videos!
Good luck building your class D amplifier :)
Hi could you explain the 9:24 top right (what's neither the oscillator nor the modulation), 9:34 so it's not really Amplitude Modulation but some kind of DC additive translation? (I am interested in electronic and the topic in general for only 4h, be gentle :) )
I'm facing same issue as you're facing @12.15. I'm attaching audio wave directly on the pin of comparator IC. Are you adding LC filter at the input stage of the comparator stage?
Yes, the LC filter is directly after the audio amp and directly before the comparator.
Can the TP4056 provide enough power for a ESP32 WROOM-32 board? Can I use 2 18650's in a holder with the TP4056?
Awesome work !....cheers.
Thanks for watching!
Looking forward to a part 3.
I bet heavy metal music sounds great with that amplifier!
It sounds great!
Thanks 👍
very good effort, again, as last time with good points regarding individual stage simplifications and custom adaptations. in the audio amp you could leave a portion of the emitter resistor unbypassed both for gain stability and so as to use a much smaller input capacitor and yes the mosfet problem is infamous especially with slower mosfets and large gate to drain parasitic or a pronounced miller effect.
Thanks for the suggestion. That MOSFET problem took me a while to figure out.
Awesome video! This is finally a usable pruduct, congratulations.
Thanks for watching!
You actually did it, what an inspiration
Thanks for watching!
Young man, I will tell you that you are going to have a fun time in life. Keep up the curious mind set. science and math are so much fun...
I have no plans on stopping anytime soon :)
YES! this is exactly the kind of thing I wanted! Finally. I was getting pretty tired of the whole config-hell and aimless hacking about. Thanks a million!
Glad I could help!
You can get much better performance with wm61-a cheap and little electret mic. It needs only one common emitter amplification stage and all assembly can be few times bigger than bare electret capsule and it will provide you significantly better performance.
You forgot GS and GD resistors made of PCB blank spaces. GS "contact area" is bigger few times than GD "contact area", so base is biased with huge impedance to voltage between drain and source an closer to source. So internal n-type induced channel j-fet is partially opened on it working point.
The last time I saw a battery like that was more than 50 years ago.
I can get 40 watts AM out of my yaesu ham radio with a long wire antenna.
Impractical, unless that is you have a functionally limitless supply of 350v 130,000uf electrolytic capacitors.
Using serial interface (via USB port) you can easly connect your hardware with your software without writing your own driver (which is not a task for novice). What ability for your hardware a USB interface could give you without writing your own driver? A keyboard and other known HID emulation. Wow. What a uselsess functionality.
@Sine Lab, pls if you could answer me this, does your computer recognize the microcontroller on the device manager settings????
Yes, as an HID keyboard.
An AMAZING video, this minimal OpAmp in the beginning helped me so much!! - All other tutorials on UA-cam started "way to high in the sky", the way you replace module by module really fits my brain well.
Lots of "anyways", thanks a lot!😂
Do you have the code for the larger LCD
Thank you very much! With this technique I managed to revive 4 of 5 atmega88s bought on aliexpress. Absolutely happy now! :)
I pretty much took on this exact project with the same approach last year, but with a motor driver. It was so much fun! I prefer to use discrete components as they are significantly cheaper and higher rated than ICs. The exception is if precision is required (like transistor matching in an op amp), and youre NEVER gonna beat a manufacturer on that.
CCS C is easier than mplap
PIC always works stable for me
Just don't stop! THANK YOU!
Awesome vid, really helpful in understanding opamps!
Is it essential to amplify the voltage across the shunt resistor? Insted could you divide the setting voltage given to the non inverting input?
Sir emmc ic programmer code Arduino Uno software 😊
You missed one... An electric motor, a linear potentiometer and a scotch yoke mechanism. 🙃
make a large coil in a iron tube, put another coil on top of the first coil, connect the second coil trougth the positive rail of the output transistor, connect the bottom of the first coil to one of the cables of the second, tada, now you have a compact antenna that´s a few feet long....
Please make a video about “negative resistance devices”. You can theoretically make a sine oscillator with just a LC tank circuit and a tunnel diode. Another device that can work is called a “lambda diode”. It’s basically either two JFETs or a JFET/BJT pair that has a I/V curve looking like a capital lambda symbol. Speaking of other sine wave generator designs: 1.) Triple inverter hysteresis oscillator making a triangle wave over a capacitor followed by an integrator opamp active filter. 2.) Emitter-Coupled LC Oscillator, which is harder to explain but it’s basically an attenuated LC tank hooked to an “anti-current mirror” differential amp setup made from two NPN BJTs. Since the common emitter pointing in a constant current sink thing makes the opposite BJT do the opposite thing compared to the BJT in which we feed the LC signal, it acts to increase the oscillation with each swing. However, due to the current limiting element and due to dampening, the oscillation stays a clean sine wave. Furthermore, this oscillator is more exact than the Colpitts or the Hartley variants because it only uses one inductive element and one capacitive element. With like 3 resistors, 2 BJTs, an L and a C, this is one of the simplest oscillator designs besides the tunel diode oscillators. 3.) Double active integrator filter inverter loop. Very similar to phase locked loops except you have an active non-inverting proportional-integrator-derivative filter in series with an active integrator filter. It has 3 resistors, 3 identical capacitors and 3 opamps. One of the resistors on the derivative side of the pid needs to be a few ohms lower than the rest (for stability and to avoid saturation). 4.) Emitter-Coupled Crystal oscillator (yep, there are those too). Same as the one above but the LC + R is replaced with a crystal.
I don't know what it"s like in the Americas, but in Western Europe, Poland and Czechoslovakia, the LM723 integrated ciecuit was commonly used in linear power supplies.
PIC controllers arent trash, MPLAB is. it takes up an massive amount of space and is complicated to use. Find a way around using MPLAB and all the other software bits and they will be as good as gold.
and I thought I'm smart when I soldered like 0.5$ microphone to an old jack's wire xD It would be nice to see a comparison between the microphone u made and the microphone u shown in the beginning without any electronics
i wish i was smart
Very good video, I'll be watching more. As I am an audio enthusiast, let's assume in a class D audio amplifier project that will have a frequency of 20Hz to 20KHz, we will divide it into 3 ways "BASS - MID - TREBLE". So, correctly ideal, an "op-amp"? For BASS, it sounds best at low frequencies. Another one just for the AVERAGES, which would sound better in the middle frequencies. And another for the TREBLE, which will sound better in the high frequencies. Sometimes it may happen that the same op-amp sounds good at all frequencies or how it is used for each group of frequencies?
I have an Open Source project based on the absolutely wonderful Jensen 990. I've had to make a few changes to accommodate a simple diff amp using a couple of low-noise transistors running at (get this) 100 uA! Or you can remove those and plant a MAT02 in there for absolutely staggering noise performance. It also has a class AB output stage for excellent AC performance and very low output impedance. I did have to make a couple of small changes down to things that were specific to the matched pair Jensen specified (it's no longer made) but it's far more complex than the simple one here and should offer much higher performance. I've not had time to improve the layout but if anyone wants to see the schematic and PCB they are on my Matt Perk's forum. It's higher voltage than most common op amps and will drive a much larger capacitive load due to the AB output. (You can always uprate the output transistors if you wish and this is mostly a SMD design stray capacitance is less of an issue. Something SinceLab missed was the "guard" around the high impedance node which is the output of the differential amp. In the case of the Jensen, that node incorporates multiple components so it's quite fiddly to lay out. Let's be clear, I absolutely admire the way that SineLab has explained this - we can go into a lot more detail about poles and zeros (the things that really spoil your day). This young man is exemplary in simplifying complex issues and his demonstrations are spot on. I wish I was that good when I was his age.
It's very easy to get a sine wave from a digital signal. Just run the digital signal through an ethernet cable. ;)
How did you determine the 120 degrees phase shifts?