Sine Lab
Sine Lab
  • Видео 46
  • Просмотров 965 548
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
--
Просмотров: 2 610

Видео

Discrete Class-D Audio Amplifier - Part 2
Просмотров 3,4 тыс.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: bc1qwlfr2ml9km4r5vhpfh7f3m...
5 Ways To Generate A Sine Wave (Analog)
Просмотров 81 тыс.3 месяца назад
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
Просмотров 40 тыс.4 месяца назад
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
Просмотров 5 тыс.6 месяцев назад
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
Просмотров 38 тыс.6 месяцев назад
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)
Просмотров 7 тыс.7 месяцев назад
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!
Просмотров 52 тыс.8 месяцев назад
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?
Просмотров 9 тыс.9 месяцев назад
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
Просмотров 18 тыс.10 месяцев назад
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
Просмотров 15 тыс.10 месяцев назад
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,4 тыс.11 месяцев назад
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
Просмотров 14 тыс.Год назад
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
Просмотров 2 тыс.Год назад
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
Просмотров 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)
Просмотров 32 тыс.Год назад
Power Your Projects With Batteries! (LiPo/Li-ion)
DIY AM Transmitter
Просмотров 24 тыс.Год назад
DIY AM Transmitter
Remove the ATmega from your Arduino! - Standalone AVRs and ICSP Programming - Beyond Arduino #3
Просмотров 15 тыс.Год назад
Remove the ATmega from your Arduino! - Standalone AVRs and ICSP Programming - Beyond Arduino #3
V-USB on an ATmega328! - V-USB and HID Explained
Просмотров 44 тыс.Год назад
V-USB on an ATmega328! - V-USB and HID Explained
Speaker Teardown - How do Class-A Amplifiers Work?
Просмотров 1 тыс.Год назад
Speaker Teardown - How do Class-A Amplifiers Work?
Add USB To Your Electronics Projects! - The USB Protocol Explained
Просмотров 445 тыс.Год назад
Add USB To Your Electronics Projects! - The USB Protocol Explained
Hardware CPU Timers - PWM and Interrupts - Beyond Arduino #2
Просмотров 3,6 тыс.Год назад
Hardware CPU Timers - PWM and Interrupts - Beyond Arduino #2
How Much Power Is Your Crypto Rig Using? - True and Apparent Power
Просмотров 375Год назад
How Much Power Is Your Crypto Rig Using? - True and Apparent Power
Using Negative Voltages! - DIY Function Generator - Part 2
Просмотров 2,9 тыс.Год назад
Using Negative Voltages! - DIY Function Generator - Part 2
This radio almost works - Fix or Scrap: Dynamo Radio
Просмотров 1,1 тыс.Год назад
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
Просмотров 8 тыс.Год назад
The Tool That You NEED - DIY Function Generator - Part 1
Motorized Spider - DIY Halloween Decoration
Просмотров 589Год назад
Motorized Spider - DIY Halloween Decoration
Get rid of your power resistors! - DIY Adjustable Load
Просмотров 7 тыс.Год назад
Get rid of your power resistors! - DIY Adjustable Load
How does I/O on microcontrollers work? - Beyond Arduino #1
Просмотров 4,5 тыс.Год назад
How does I/O on microcontrollers work? - Beyond Arduino #1

Комментарии

  • @deneuxben
    @deneuxben 4 дня назад

    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)

    • @deneuxben
      @deneuxben 4 дня назад

      Also RP1 i am not sure what to select, can someone sharea link of the appropriate component ? Im so lost..... :(

    • @SineLab
      @SineLab 3 дня назад

      @@deneuxben R5 is 100 miliohms, which is also 0.1 ohms. RP1 is a variable resistor or a potentiometer.

  • @Cs13762
    @Cs13762 4 дня назад

    I love seeing videos like this with half a million views!

  • @rebelroar78
    @rebelroar78 6 дней назад

    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.

  • @Algator314
    @Algator314 7 дней назад

    Can these chips be programmed with a raspberry pi or Arduino?

    • @SineLab
      @SineLab 3 дня назад

      Potentially if you are willing to put in that kind of effort.

  • @ivanpiro999
    @ivanpiro999 8 дней назад

    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

  • @BDCDT-LeucAnh
    @BDCDT-LeucAnh 8 дней назад

    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.

  • @christothegreat1
    @christothegreat1 9 дней назад

    Copy preamp boards from famous high quality condenser mics. They also sell them prebuilt on your favorite e-commerce sites.

  • @natureenthusiast660
    @natureenthusiast660 10 дней назад

    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.

  • @eduardmihailoiu7609
    @eduardmihailoiu7609 11 дней назад

    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!

  • @Electronic_vibes2745
    @Electronic_vibes2745 11 дней назад

    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?

  • @0.Abdulrahmannn
    @0.Abdulrahmannn 13 дней назад

    Very nice, I am eagerly waiting for the MOSFET video.

  • @goranjosic
    @goranjosic 14 дней назад

    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.

    • @SineLab
      @SineLab 3 дня назад

      You'd do something like this if you really needed a custom solution. 99% of the time, the IDE will do what you need.

  • @senishkhadka4685
    @senishkhadka4685 15 дней назад

    Hope to see great contents from you

  • @wbaldwin666
    @wbaldwin666 15 дней назад

    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

  • @lohikarhu734
    @lohikarhu734 15 дней назад

    Gosh, pretty close to "bare metal" programming... That's going to turn off some Arduino users, but, hey....

    • @justinc2633
      @justinc2633 15 дней назад

      it has its pros and cons, i primarily use esp32 it's super powerful and as easy to learn as arduino

  • @JulieanGalak
    @JulieanGalak 16 дней назад

    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...)

    • @SineLab
      @SineLab 15 дней назад

      The IDE has premade files. This video was a demonstration of how the whole process works at a low level.

  • @xzddakfdmiug5832
    @xzddakfdmiug5832 16 дней назад

    You're hired!

  • @robhogarth29
    @robhogarth29 16 дней назад

    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

    • @SineLab
      @SineLab 15 дней назад

      Thanks for watching!

  • @smartups1
    @smartups1 16 дней назад

    But also this video we need . Good job .

  • @smartups1
    @smartups1 16 дней назад

    Where is class D part 3 ? ❤

    • @SineLab
      @SineLab 15 дней назад

      It will come eventually.

    • @smartups1
      @smartups1 15 дней назад

      @@SineLab okay.

  • @mattias99475
    @mattias99475 17 дней назад

    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.

    • @SineLab
      @SineLab 16 дней назад

      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.

  • @domdom1941
    @domdom1941 17 дней назад

    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!

    • @SineLab
      @SineLab 16 дней назад

      The IDE is much more practical when making something quickly :)

    • @AbhijitGangoly
      @AbhijitGangoly 14 дней назад

      ​@@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.

  • @andymouse
    @andymouse 17 дней назад

    Well I shan't be buying an STM32 anytime soon LOL !.....cheers.

    • @domdom1941
      @domdom1941 17 дней назад

      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.

    • @lohikarhu734
      @lohikarhu734 15 дней назад

      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. .

    • @andymouse
      @andymouse 15 дней назад

      @@lohikarhu734 :)

  • @AbuOm1
    @AbuOm1 17 дней назад

    What language used to write the linker file?

    • @SineLab
      @SineLab 16 дней назад

      It's the linker script language.

  • @FujiLivz
    @FujiLivz 17 дней назад

    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 ^^

    • @SineLab
      @SineLab 16 дней назад

      And thank you for watching!

  • @h7opolo
    @h7opolo 18 дней назад

    i really didn't like your fraud

  • @tedbastwock3810
    @tedbastwock3810 19 дней назад

    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.

  • @tedbastwock3810
    @tedbastwock3810 19 дней назад

    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.

  • @mmaldonadojr
    @mmaldonadojr 20 дней назад

    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!

  • @LivingInTheGarage
    @LivingInTheGarage 21 день назад

    At 5:56 should the formula be Vo / Vin = Z2 / (Z1 + Z2) ?

  • @kelvinkhe7684
    @kelvinkhe7684 21 день назад

    What is TP11?

    • @SineLab
      @SineLab 16 дней назад

      It's the test point for the triangle wave before the transistor amplifier.

  • @copernicofelinis
    @copernicofelinis 21 день назад

    Nice tutorial. For another elementary intro to oscillators I suggest looking up the video "Lab 04 Oscillator design" by Mazhari.

  • @tradegrabber4854
    @tradegrabber4854 21 день назад

    So much info in relatively short video, I like that! Quality work, thanks.

  • @clems6989
    @clems6989 22 дня назад

    Uhh yeah, any "negative" resistance is a voltage source..

  • @VEC7ORlt
    @VEC7ORlt 22 дня назад

    Cool but naaah, for all that effort I'd rather just get UTG962E, its incredible how good those for the price.

  • @thecheapaudioengineer
    @thecheapaudioengineer 24 дня назад

    I used charge pump for my class A power amp i had built years ago... To boost the voltage for pre amp part..

  • @visiondoctor2020
    @visiondoctor2020 24 дня назад

    a discrete class D amp ... that IS interesting

  • @SaiSudhirSurampudi
    @SaiSudhirSurampudi 26 дней назад

    Why is the RUclips 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!

  • @alexjenner1108
    @alexjenner1108 26 дней назад

    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.

  • @clifforddicarlo9178
    @clifforddicarlo9178 27 дней назад

    Superb, however, need to discuss input and output impedances of common base, common emitter, and common collector configurations.

  • @LazloNQ
    @LazloNQ 29 дней назад

    Is there anyone here that could clone my PIC16C58B 04/P from my washing machine's motor controller?

  • @EasyOne
    @EasyOne Месяц назад

    Very well explained

  • @chriswilkinson4044
    @chriswilkinson4044 Месяц назад

    Microchip also makes a budget version of the PICkit4 called the "MPLab Snap."

  • @kermitefrog64
    @kermitefrog64 Месяц назад

    Nder if a form of a heat sink could be used for siding on a house to reduce heat.

  • @dr_bobs_music
    @dr_bobs_music Месяц назад

    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?

  • @wiradharma7030
    @wiradharma7030 Месяц назад

    Just what i need, good topic and explanation mate. Good job mate! Subscribed, if I have spare time I will watch another topics.

  • @wiradharma7030
    @wiradharma7030 Месяц назад

    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😆

  • @reverend11-dmeow89
    @reverend11-dmeow89 Месяц назад

    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?

    • @SineLab
      @SineLab Месяц назад

      I haven't fully tested it, but that seems like a good solution to the difference between the two outputs.

  • @nerdgirl8029
    @nerdgirl8029 Месяц назад

    Best video thus far on this topic!

    • @SineLab
      @SineLab Месяц назад

      I'm glad that you were able to find it helpful! :)

  • @shaheenwasif2585
    @shaheenwasif2585 Месяц назад

    Excellent....as a circuit designer and a PdD student I request you to please make videos on MOSFETs and related circuits like bootstraping ,etc