Bare-Metal MCU #3 - Barebones Microcontroller

Sdílet
Vložit
  • čas přidán 29. 06. 2024
  • This is the third video in a journey from Arduino to STM8. The goal is to begin with Arduino, which is a popular platform to serve as a starting point. I'll then break it down into a fundamental level, and then apply those fundamentals to other microcontrollers, such as the STM8.
    This video focuses on how to run code on a microcontroller directly from a breadboard without the Arduino PCB.
    ATMEGA328P Datasheet: ww1.microchip.com/downloads/en...
    ATMEGA328 Datasheet:
    ww1.microchip.com/downloads/en...

Komentáře • 51

  • @gusmcmanus6159
    @gusmcmanus6159 Před rokem +19

    Omg. Dude. WTF??? This is absolutely the cleanest, most concise, most useful video series I have ever watched. I’m so glad I found this series. I’ma newbie to bare metal and you’re changing the way I look at the world in such an easily digestible way. THANK YOU!

    • @artemt1987ify
      @artemt1987ify Před měsícem

      Absolutely agree with you. Its the best explanation about micro controllers I've seen on CZcams

  • @grantscott1686
    @grantscott1686 Před 3 lety +19

    I’m trying to teach myself basically all things electronics for work and for personal interest and these videos are really nice and helpful. Thank you for making these!

  • @leandrowferreira
    @leandrowferreira Před 4 lety +5

    Excellent series. Arduino deeper. Like it. Just one point: that 16MHz crystal you shown (6:30) controls the secondary chip (frequently an ATMEGA16U2). The clock to the ATMEGA328 is given by a little oscillator closest to the main chip. I'm considering an original-like board, with a DIP28 chip.

  • @TimDrogin
    @TimDrogin Před 2 měsíci

    Thank you dude. I am on my second year of the uni, always loved low level stuff and c/c++, but was struggling to find where I want to apply myself. I recently found a thing called embedded development lol, and understood that it is my thing. Got an esp32, played a bit, but I really wanted to understand stuff on a deeper level, so I got my Arduino as it is relatively simpler compared to esp. I just want to say that you really demystified a lot of stuff for me, and the courses from the uni that I couldn’t process before clicked in! Keep it up, wish you all the best!

  • @RalphKoettlitz
    @RalphKoettlitz Před 4 lety +7

    Just for the sake not becoming frustrated by erratic dying uC. Add always a 100nf ceramic and a 10uf capacitor to the power rail, to prevent effects like a latchup

  • @craigleppan7164
    @craigleppan7164 Před 2 lety

    Wish I had got into this earlier. Thanks, great job and thanks for sharing your wonderful knowledge. Always wondered how these all work and its now becoming clearer

  • @albertroswell
    @albertroswell Před rokem

    super clean, and I LOVE the fact that you ask yourself the same questions I would do out of curiosity, like doing stuff that you it wont work but you anyways do it just to show, thanks for those details!

  • @stevenliu1070
    @stevenliu1070 Před 4 lety +3

    These videos are superb.

  • @zetaconvex1987
    @zetaconvex1987 Před 3 lety +2

    Very educational series of videos. Thanks for sharing.

  • @tamnad6806
    @tamnad6806 Před rokem +1

    This series is very helpful 👍👍. Thank you so so much. I really didn't know how I was going to start moving past the Arduino uno. Thanks again 🙏🙏

  • @climbeverest
    @climbeverest Před 3 lety +2

    Sir!! You are incredible, thanks so much for the detailed demonstration

  • @agnelomascarenhas8990
    @agnelomascarenhas8990 Před rokem +1

    Your presentations are the best way of teaching. I have watched your video on STM32 too, to gain a top level view before diving into details. Thank you for the high quality presentations.

  • @vivekvenkatsubramaniam437

    This is fantastic stuff. I hope you go into stuff like pwm, timer & ext interrupts, and adc as well. There are few resources online that can break down those topics for newbies like me

  • @underlecht
    @underlecht Před 2 lety

    In one tutorial I saw suggesting always connect ground first. Unless you know connecting power wire first will not damage the mcu. I love that you explained the oscillator part.

  • @faxanidu3070
    @faxanidu3070 Před 4 lety +2

    I want to see the next one. barebones stuff always throws me off. Subbed.

    • @faxanidu3070
      @faxanidu3070 Před 4 lety

      Mitchel Davis they are very useful. I knew some of this already but you explain it well enough for my brain to click and go “ooooh THAT’S HOW”

  • @1fertube
    @1fertube Před 2 měsíci

    Great video, Mitch

  • @dudel7557
    @dudel7557 Před 4 lety +3

    Awesome video series :)
    Keep it up 👍

  • @lee9816
    @lee9816 Před 3 lety

    Thanks for sharing your knowledge! got much clarity in concepts that i was lagging...
    This series is much enough to understand and get enough knowledge on any kind of MCU's......
    ❤from india!!!

  • @bramhansh9176
    @bramhansh9176 Před rokem

    thanks mitch for this great video

  • @riyanalvi1541
    @riyanalvi1541 Před 6 dny

    This was really helpful. Thanks a lot!

  • @_methm_
    @_methm_ Před 4 lety +1

    Love This video!

  • @riskypirate
    @riskypirate Před 4 lety +2

    Thank you for the video

  • @martinosmorlandez3549
    @martinosmorlandez3549 Před 3 lety

    Great video

  • @helmobaard7052
    @helmobaard7052 Před 3 lety

    Thanks, well explained!

  • @mohamedanas4323
    @mohamedanas4323 Před 3 lety

    excellent man!!

  • @user-jq7tc7qi5z
    @user-jq7tc7qi5z Před rokem

    6:43 marked crystal is not for Atmega328P-PU but for Atmega16U2(USB converter). Oscyllator for clocking Atmega328P is small and is to right from chip( exact middle of the dev board )

  • @SKotekar
    @SKotekar Před 2 lety

    This video is amazing. Thank you. Can similar thing be done for other micro controllers like STM, SAM or PIC? Video on those will be great as well.

  • @climbeverest
    @climbeverest Před 3 lety

    Sir this video was very helpful

  • @firealarmapprentice4517

    You might want to mention that it is a good practice to ground yourself before handling any electronics especially the chip pins. In dry climate areas like the western provinces and states, static is 1000x what it is in humid states.

  • @Autotrope
    @Autotrope Před 3 lety +3

    Soldering the smd component to the top of that pin header was brilliant and seems so obvious a hack that I'm wondering why people bother with those dinky breakout boards just for one component

    • @zyghom
      @zyghom Před 2 lety

      exactly what I was thinking about while seeing it ;-)

  • @JohannSuarez
    @JohannSuarez Před 3 měsíci

    Legend

  • @abutaymiyyahlectures
    @abutaymiyyahlectures Před 3 lety

    awesome, thank you :D

  • @mostafagaberahmed6657
    @mostafagaberahmed6657 Před 3 lety

    zero dislike . becose you are doing good job. thank you

  • @g.torriani-jones5069
    @g.torriani-jones5069 Před 3 lety

    Great video! I'm assuming that the crystal you used didn't already have the necessary capacitors within? I've seen a lot of crystals/resonators that already have it within the assembly is why I ask.

  • @vihangpathak9759
    @vihangpathak9759 Před 2 lety

    Please make more videos on embedded systems!

  • @joymakerRC
    @joymakerRC Před 8 měsíci

    i love you, just a little bit.

  • @metamud8686
    @metamud8686 Před rokem

    If you fuse the 328p to use the internal clock, you can do away with the xtal + loading caps. So barebones for THIS example: sure, but in general, no you can go down 3 more components.
    Lol btw .. what's the stray capacitance on those extra headers vs. the 22pf SMD loading caps?

  • @JBERGALIEN
    @JBERGALIEN Před 2 lety

    Hello, Mitch I'm just starting coding with Arduino UNO, but I like the way to do with bare metal coding, any suggestions on what king of books I can purchase to replace the input,read, bit from any port. I did search on the on the net but it's limited to the video you did on the registers. Thank's again keep the good work.

  • @GuyFromJupiter
    @GuyFromJupiter Před 9 měsíci

    I feel like I'm watching an Arch Linux tutorial. "Let's debloat this Arduino!"

    • @MitchDavis2
      @MitchDavis2  Před 9 měsíci

      Next time, we’ll code directly in hex so we don’t even have to compile!

  • @inderjitsaini9303
    @inderjitsaini9303 Před rokem

    Can you please explain what is system clock?

  • @abutaymiyyahlectures
    @abutaymiyyahlectures Před 3 lety

    Does he not have ads in this videos?

  • @devadarshannn
    @devadarshannn Před 3 lety

    How to do you find that pin PB5 To connect an led , Does LED BUILTIN means PB5

  • @iiigooo
    @iiigooo Před 3 lety +1

    7:07 where is the video without 16Mhz crystal?

    • @MitchDavis2
      @MitchDavis2  Před 3 lety +2

      Video #5. To use it without a crystal, you need to flash the configuration bits to tell it to use the internal oscillator. So you’ll need to watch #4 and #5 to learn that

    • @Autotrope
      @Autotrope Před 3 lety

      If you buy an atmega328p on its own I think it defaults to the internal oscillator. But yeah you do still need to know how to program it and what fuses are anyway. #4 and #5 are good videos

  • @GuruTimCreates
    @GuruTimCreates Před rokem

    Thanks for the video but I feel the title is misleading.
    To me bare metal is about the programming. Not taking a chip programmed via Arduino and removing it from the board.