![Sine Lab](/img/default-banner.jpg)
- 46
- 966 534
Sine Lab
United States
Registrace 20. 05. 2022
Learn about electronics projects and make circuit designs.
The Ultimate Guide to STM32 - Beyond Arduino #6
Learn how to write code for an STM32 microcontroller. Make the jump from 8-bit to 32-bit!
-- Links --
My Website: sinelab.net
Schematic: sinelab.net/pdf/stm32-test-board-schematic.pdf
Code: sinelab.net/code/stm32-test-board-code.zip
Datasheet: sinelab.net/pdf/stm32l011f4_datasheet.pdf
Reference Manual: sinelab.net/pdf/stm32l0x1_reference_manual.pdf
Programming Manual: sinelab.net/pdf/stm32-cortexm0-programming-manual.pdf
Buy me a coffee: www.buymeacoffee.com/thesinelab
Bitcoin Address: bc1qwlfr2ml9km4r5vhpfh7f3m60k80whhcq3ysths
Ethereum Address: 0x7e8B8Ff8D6bD8DfB48b4A139694BB343f040Bb3f
--
-- Links --
My Website: sinelab.net
Schematic: sinelab.net/pdf/stm32-test-board-schematic.pdf
Code: sinelab.net/code/stm32-test-board-code.zip
Datasheet: sinelab.net/pdf/stm32l011f4_datasheet.pdf
Reference Manual: sinelab.net/pdf/stm32l0x1_reference_manual.pdf
Programming Manual: sinelab.net/pdf/stm32-cortexm0-programming-manual.pdf
Buy me a coffee: www.buymeacoffee.com/thesinelab
Bitcoin Address: bc1qwlfr2ml9km4r5vhpfh7f3m60k80whhcq3ysths
Ethereum Address: 0x7e8B8Ff8D6bD8DfB48b4A139694BB343f040Bb3f
--
zhlédnutí: 2 631
Video
Discrete Class-D Audio Amplifier - Part 2
zhlédnutí 3,4KPřed 2 měsíci
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: bc1qwlfr2ml9km4r5vhpfh7f3m...
5 Ways To Generate A Sine Wave (Analog)
zhlédnutí 81KPřed 3 měsíci
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
zhlédnutí 40KPřed 4 měsíci
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
zhlédnutí 5KPřed 6 měsíci
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
zhlédnutí 38KPřed 6 měsíci
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)
zhlédnutí 7KPřed 7 měsíci
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!
zhlédnutí 52KPřed 8 měsíci
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?
zhlédnutí 9KPřed 9 měsíci
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
zhlédnutí 18KPřed 10 měsíci
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
zhlédnutí 15KPřed 10 měsíci
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
zhlédnutí 1,4KPřed 11 měsíci
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
zhlédnutí 14KPřed rokem
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
zhlédnutí 2,1KPřed rokem
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
zhlédnutí 11KPřed rokem
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)
zhlédnutí 32KPřed rokem
Power Your Projects With Batteries! (LiPo/Li-ion)
Remove the ATmega from your Arduino! - Standalone AVRs and ICSP Programming - Beyond Arduino #3
zhlédnutí 15KPřed rokem
Remove the ATmega from your Arduino! - Standalone AVRs and ICSP Programming - Beyond Arduino #3
V-USB on an ATmega328! - V-USB and HID Explained
zhlédnutí 44KPřed rokem
V-USB on an ATmega328! - V-USB and HID Explained
Speaker Teardown - How do Class-A Amplifiers Work?
zhlédnutí 1KPřed rokem
Speaker Teardown - How do Class-A Amplifiers Work?
Add USB To Your Electronics Projects! - The USB Protocol Explained
zhlédnutí 446KPřed rokem
Add USB To Your Electronics Projects! - The USB Protocol Explained
Hardware CPU Timers - PWM and Interrupts - Beyond Arduino #2
zhlédnutí 3,6KPřed rokem
Hardware CPU Timers - PWM and Interrupts - Beyond Arduino #2
How Much Power Is Your Crypto Rig Using? - True and Apparent Power
zhlédnutí 375Před rokem
How Much Power Is Your Crypto Rig Using? - True and Apparent Power
Using Negative Voltages! - DIY Function Generator - Part 2
zhlédnutí 2,9KPřed rokem
Using Negative Voltages! - DIY Function Generator - Part 2
This radio almost works - Fix or Scrap: Dynamo Radio
zhlédnutí 1,1KPřed rokem
This radio almost works - Fix or Scrap: Dynamo Radio
NOBODY can solve this - Generating random numbers on an ATmega328p
zhlédnutí 9KPřed rokem
NOBODY can solve this - Generating random numbers on an ATmega328p
The Tool That You NEED - DIY Function Generator - Part 1
zhlédnutí 8KPřed rokem
The Tool That You NEED - DIY Function Generator - Part 1
Motorized Spider - DIY Halloween Decoration
zhlédnutí 589Před rokem
Motorized Spider - DIY Halloween Decoration
Get rid of your power resistors! - DIY Adjustable Load
zhlédnutí 7KPřed rokem
Get rid of your power resistors! - DIY Adjustable Load
How does I/O on microcontrollers work? - Beyond Arduino #1
zhlédnutí 4,5KPřed rokem
How does I/O on microcontrollers work? - Beyond Arduino #1
Hi my friend, love your channel! I'm a noob, i used to work in an EE lab, but not as a tech lol. So now I'm trying to educate myself. With your supply splitter, I cant get it to work in falstad. It might be an issue with falstad, but I have a feeling it's an issue with me. So I wanted to ask, what are the outputs? I tried 12v dc for vcc, but for the life of me can't figure out how to arrange vee and ground to get the negative output, and adjusting the pot only gets me 11.94V-60mV. Any one have any suggestions?
This is truly a clear-cut video on this subject, and I love it. However, in my situation, I seem to have run into a bit of a snag with the equation. I'm using a high-power BJT that allows a maximum current of 30 amps. In my circuit, I've measured that it absorbs about 91 watts of power (I've rounded up to 100), and the datasheet shows a maximum operating temperature of 150C. Rjc is 0.5, and I follow your rule-of-thumb value of 1.6 for Rcs. When I plug these numbers into the equation, and attempt to solve for Rsa, the value is negative. Does this just mean that there is no heat sink, on the market, that could ever be used to cool this transistor at 100 watts? Or, perhaps, does this equation only pertain to a certain range of power components? The datasheet, for the transistor, claims that it has a total power dissipation of 250 watts. This is in the "maximum ratings" section. Because I'm only considering a usage of 100 watts, shouldn't I be able to keep it cool with a heat sink? I agree, with many others, that you, easily, have the best video on this topic. Keep up the great work!
R5 is 0.1 ohms or 100M ohms ? the smallest i found at my retailer is 0.56 ohms, can I put this instead ? (I'm complete beginner btw)
Also RP1 i am not sure what to select, can someone sharea link of the appropriate component ? Im so lost..... :(
@@deneuxben R5 is 100 miliohms, which is also 0.1 ohms. RP1 is a variable resistor or a potentiometer.
I love seeing videos like this with half a million views!
PIC is absolutely horrible for hobbyists. I only got good with it because I learned to use PICs in college and had a good TA who showed me the ropes. Even then, I switched to AVR for hobbyist projects because the support is so much better.
Can these chips be programmed with a raspberry pi or Arduino?
Potentially if you are willing to put in that kind of effort.
The step by step explanation of the Dickson pump is brilliant, it shows very clearly how the capacitors sort of "bucket brigade" their charge along the circuit
awesome video! Seeing you use a WM makes me miss it so much. I used to play with dwm, i3wm a lot. Now I just use gnome but maybe someday I'll comeback to what I prefer.
Copy preamp boards from famous high quality condenser mics. They also sell them prebuilt on your favorite e-commerce sites.
Bro, dw01 chip activates over discharge protection at 2.4v which overtimes permanently damage the battery capacity, if the load is low dw01 can destroy a liion battery in ony cycle. 2.4v is even more detrimental to.lipolys. A better chip I think is fs312f. Make a video about it, and reply me.
Hi, great video!! Aquestion out of curiosity... in the case of your discrete project, couldn't you correct the offset by adding a DC servo loop? Thank you!
Could you please tell me what component model specs you used? Like the type of capacitors,diode. And what is the max current that can generate?
Very nice, I am eagerly waiting for the MOSFET video.
Can you explain to me what are the advantages of adjusting your linker files compared to IDE and automatic adjustment?! You can still use everything when using IDE.
You'd do something like this if you really needed a custom solution. 99% of the time, the IDE will do what you need.
Hope to see great contents from you
Im upgrading to a heat sink with a new SSR i had to replace in an infrared conveyor belt dryer. The new dryers come with heat sinks, mine failed after 19 years so i dont think i need the heat sink but after your video i realize a 50A 3-35vdc input and 24-280vac output probably needs it. Thank you
Gosh, pretty close to "bare metal" programming... That's going to turn off some Arduino users, but, hey....
it has its pros and cons, i primarily use esp32 it's super powerful and as easy to learn as arduino
Coincidently, I just picked up a Nucleo to play with an STM32 for the first time. So this is very helpful. But I'm wondering, are there no pre-generated header and linker files for these chips? I'm used to writing code for ATMega chips in Atmel Studio, and there it provides all the various utility files. Is this because you chose to not use the STM IDE? Was that just for educational purposes, or is there some reason you don't like it? (If this was answered in the video, I missed it...)
The IDE has premade files. This video was a demonstration of how the whole process works at a low level.
You're hired!
After watching Ben Eaters 6502 series and building his breadboard kit this is a definitely a great introduction into a step into 32bit. A lot more to take in but easy enough to build on existing microcontroller knowedge to take the next step. Sounds like you played on hard mode and there's some tools to avoid some of the low level stuff you've done. But it's great to get an overview of the process and the ins and outs to really get understanding of how it fundamentally works. Love your videos
Thanks for watching!
But also this video we need . Good job .
Where is class D part 3 ? ❤
It will come eventually.
@@SineLab okay.
How did you find the navigation of that 1000 page manual to be? Is it as straightforward as your demonstration or does it require a lot of prerequisite knowledge to follow along? Thanks for taking the time and doing what I trust to be a complete bootstrap procedure for us.
If you are familiar with micrcontrollers, then it's not too bad. You can follow the table of contents and read through the information on the peripheral. I'd say that the video makes the process look much easier than it actually is. I'd recommend starting with something like an AVR before doing a project like this.
Haha this video is super hardcore 🫣 You have great knowledge about the fundamental working of a STM32 MCU. I like STM32 but I would never ever do my own linker files. I just use the STM32 IDE for c programming and the initial code is generated by the Cube MX. The NUCLEO boards are comparable to an arduino board. And they have a ST-Link programmer included!
The IDE is much more practical when making something quickly :)
@@SineLab I also use CubeIDE full package (including CubeMX, STM32 programmer etc). Thank you for approval. I'll definitely try this breakneck approach (for me) also XD 😂. Thank you for this quick start guide.
Well I shan't be buying an STM32 anytime soon LOL !.....cheers.
Do you know about the STM32 IDE and the Cube MX? Cube MX basically generates all the initial Code for you. When you are a beginner, consider using Cube MX as a graphical klick and generate Code tool.
Well, official development boards start at around $14, and the infamous "black pill" less than $5, and there is a lot of support, not as "wild and wooly" as some Arduino stuff. .
@@lohikarhu734 :)
What language used to write the linker file?
It's the linker script language.
Professors should use your this walk-through to teach. Well said. I'm new to all of this, but I've been "grazing" info / tinkering for a year or so in my freetime, and the makefile walk @18:30 is the first one I didn't want to speed through or kill myself watching - Ty for that ^^
And thank you for watching!
i really didn't like your fraud
I want a $0.10 8-bit MCU that I can program using its own assembly language and/or C without an extra piece of hardware (programmer) and without any IDE whatsoever. Heck if it were even $2 I would take it. Just let me send some ASCII text code from whatever text editor I like to a cheap but capable MCU.
PIC: programmer (hardware piece) is expensive and obsolescence comes quick. IDE is trash .. heavy and difficult .. older more nimble version was better, but no longer supported. The chips themselves are fantastic, indestructible, capable works of art. Datasheets are done well. AVR: easy to use, internet drowns in its accolades, fanbois, and docs. Any 80 iq newbie from any random 2-bit country can put together a usable widget using an arduino. The chips themselves appear to be fine to great. But the usual packaging leads noobs to look for software solutions where they should be learning hardware components and capabilities. Most of the projects I have seen using either could be replaced with <$.0.50 worth of 555 or op amp or both including supporting components. Maybe that is bc a lot of YT projects are of the proof-of-concept variety, idk. But point stands. Nice vid, though, I appreciate you making and sharing it, and I enjoyed it. Thanks.
The Pickit3 and the MPLABX are buggy, but at the end of the day they float the boat. The PIC-based end products always worked really great, I've been developing such products since 2016 with great success in low cost, low power consumption, versatility and reliability. I've seen no need to change uC families so far!
At 5:56 should the formula be Vo / Vin = Z2 / (Z1 + Z2) ?
What is TP11?
It's the test point for the triangle wave before the transistor amplifier.
Nice tutorial. For another elementary intro to oscillators I suggest looking up the video "Lab 04 Oscillator design" by Mazhari.
So much info in relatively short video, I like that! Quality work, thanks.
Uhh yeah, any "negative" resistance is a voltage source..
Cool but naaah, for all that effort I'd rather just get UTG962E, its incredible how good those for the price.
I used charge pump for my class A power amp i had built years ago... To boost the voltage for pre amp part..
a discrete class D amp ... that IS interesting
Why is the CZcams algorithm showing me this video after a long time, it should've shown me when I needed it !! Intuitive and Infotainment. Thanks a lot, bruv!
Thank you for this. I'd love to see some comparison regarding RF immunity. I've seen problems with the LM358 where it appeared to rectify an RF field which then causes problems in an audio circuit. I'm sure a resigned circuit with better shielding would work, but the quick fix was to switch to a TLO72 or TLO82.
Superb, however, need to discuss input and output impedances of common base, common emitter, and common collector configurations.
Is there anyone here that could clone my PIC16C58B 04/P from my washing machine's motor controller?
Very well explained
Microchip also makes a budget version of the PICkit4 called the "MPLab Snap."
Nder if a form of a heat sink could be used for siding on a house to reduce heat.
I'm looking for a wireless USB extender, that is, one part acts like the male "A" end, the other acts like the female "A" end, and they connect by radio link. Neither the host nor the appliance know it's there. It would appear to be a cable, except the female/appliance end would supply the 5V power. Can you please point me to such a device?
Just what i need, good topic and explanation mate. Good job mate! Subscribed, if I have spare time I will watch another topics.
Nah, if i use something i just need to know what happen. So before just using stepper driver ic i just want to try manual mode. But, i am too lazy to make my own h-bridge so i use ir2110, then i was too lazy to calculate deadtime so it was ir2153😆
Should feeding the output of the first Inverter to both a buffer and another inverter to get rid of the time difference between the first stage and the second stage out of the equation?
I haven't fully tested it, but that seems like a good solution to the difference between the two outputs.