A Beginner's Guide to Microcontrollers

Sdílet
Vložit
  • čas přidán 8. 06. 2024
  • Microcontrollers are amazing and confusing at a same time. Especially when you are going to learn and you are newbie. This video will clarify many thing about microcontrollers to you and will help you to take right steps. In addition you will get answers for these questions about microcontrollers.
    What is a microcontroller?
    What is the difference between a microcontroller and a microprocessor?
    Why do I need to learn microcontrollers, or why are microcontrollers so important?
    How Should I start learning Microcontrollers?
    Where should I start learning Microcontrollers from?
    What is the difference between different MCUs?
    Which MCU family is the best option to start with?
    How do I set up a microcontroller?
    What is a programmer device, and which one should I buy?
    How should I connect a programmer to a microcontroller?
    What is difference between AVR and ARM microcontrollers?

Komentáře • 122

  • @raol635
    @raol635 Před 8 měsíci +6

    Thank u. Back in 2000 when i was studying Automatism..I remember I bought one pic programmer.. the price was like 300 canadian $.. and I checked the price now... changed drastically.. I am watching your channel to recap what I have forgot in all this years. Thank u for this channel.

  • @stevetodd7383
    @stevetodd7383 Před 5 měsíci +8

    I’d have said your definition of a Microcontroller was wrong. Many SoC devices contain all you list for a Microcontroller. The major difference is that the CPU in a Microcontroller is designed to behave in a precisely predictable way. Modern application processors are far from predictable as they execute code out of order, talk to cache memory that may miss, and beyond that to SDRAM that isn’t predictable as to what state it is in (the data requested may be on the current open page, or anywhere through to being mid refresh). Microcontrollers can be relied on to complete a given piece of code in a predictable time, thus allowing you to do things like bit banging. An ESP32 for example can generate a perfectly good VGA video image in code, an ATMEGA can bit bang WS2812 LED protocols etc.

  • @dimitrioskalfakis
    @dimitrioskalfakis Před 8 měsíci +2

    nice appetizing start.

  • @pheymee88
    @pheymee88 Před 8 měsíci +4

    Another application which is personally my favorite would be oscillators! :) Basically capacitive delays reacting to each other, which is btw the purpose of the capacitor in NE555 circuit you mention at the end of the video - the more capacitance you put in there, the more delay and the longer oscillations would occur (alongside with the resistance, following the RC formula). Multivibrators are pretty easy to understand, you just have to charge one capacitor on the trigger level of the transistor gate which would charge the second capacitor on its collector which would trigger and decharge the first capacitor and so on and on, which would give us continuous switching... But the phase-shifting oscillators are even on the next level! The point is to use 3 capacitors to make 180° phase-shift and put it to the negative feedback of an amplifier which would give us continuous resonant frequency as sinusoidal wave on the output. Love that phenomenon! Not even talking about the RLC oscillators! :D

  • @DannyTheMaster
    @DannyTheMaster Před 4 dny

    Thank you, you light my way. I'm not a complete newbie, but I'm basic user, you was very very clear and complete, you helped me to have a good basic of how mcu work. thx

    • @elewizard
      @elewizard  Před 4 dny

      Wow, thank you for the compliment ❤️
      You melted my heart

  • @jboy6944
    @jboy6944 Před 8 měsíci +1

    Excited for this wave of videos! Keep 'em coming, Wizard!

  • @maxheadroom8677
    @maxheadroom8677 Před 8 měsíci +7

    ESP32 are excellent choice for IOT (internet of things) projects. Extremely easy to program using Arduino (& supported library). It includes wireless. I have used it for many home automation projects & it is supported by Home Assistant, a home automation control center. You can also wirelessly update ESP 32.

    • @elewizard
      @elewizard  Před 8 měsíci +2

      Thanks for sharing!

    • @eldontyrellcorp
      @eldontyrellcorp Před 8 měsíci +1

      I'm also using it. And if I want an ultra cheap solution with wifi, to control a relay, sense temperature, or control a led strip, the esp01s is the perfect solution (with Tasmota & Node-Red).

    • @zed-zar
      @zed-zar Před 2 měsíci

      can you do it with micro pro one

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

      @@zed-zar sorry, do what?

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

    Beautifully Explained ! Thank you !

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

    Great video. Thanks for sharing.

  • @msg1956
    @msg1956 Před 8 měsíci +2

    Excellent..! I daily look for your web series..! You are simply great..!

  • @jamesgilmore2389
    @jamesgilmore2389 Před 4 měsíci

    Excellent video. Thank you.

    • @elewizard
      @elewizard  Před 4 měsíci

      You are welcome! I'm so happy you liked the video

  • @mikejones-vd3fg
    @mikejones-vd3fg Před 8 měsíci +3

    Cool stuff, just got into microcontrollers the last few months buying all types from different makers and i think my main issue was all the hardware layer abstraction, hiding away the workings of the cpu which i think is a mistake we should learn how they actually manipulates things with their registers and not hide it away. Beginner tutorials should have you blinking an LED with registers and even implementing your own delay function using the built in timer modules or interreupts to emphasize the workings of the cpu. For the first time as programmers we're given the keys to the cpu instead of taking a backseat, i think we should know how to drive it. I think where electornics skills come in handy at that point, being able to understand the hardware of it. Computers arent 1's and 0's they're changing voltages. See another unhelpful hardware layer abstraction 1's and 0's lol As i dig deeper i find the little circuites that make up the inviditual modules of the cpu to be quite fascinating, like how 1 gpio pin can have 3 states, which a real hardware circuit figures out by configuring itself based on a bit set in memory. Amazing.

  • @Eduardo_Espinoza
    @Eduardo_Espinoza Před 8 měsíci +1

    This could not have came in a better time, or have you cracked the algorithm? :)
    loljk Since after many years, I am now getting more serious about electronics, specifically microchips. :)
    Thank you for this intro Masterclass! :)
    And I will see you next timeeee, for this series! :)

    • @elewizard
      @elewizard  Před 8 měsíci +1

      No I have nothing to do with the algorithm 😉
      Glad you like the video 🍻

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

    best video on microcontrollers for beginners , very informative thank you for making such awesome videos

  • @alimalgami1125
    @alimalgami1125 Před 4 měsíci

    Thanks a lot. You are a great man

    • @elewizard
      @elewizard  Před 4 měsíci

      You are most welcome ❤️
      Keep watching

  • @user-qs3fx6od2w
    @user-qs3fx6od2w Před 8 měsíci

    You are an amazing person
    Thank you for your effort

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

    great, i wait for continue

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

      Next video is comming in few days

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

    Very nice explanation ❤

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

    Yeah… I’ve been trough learning gamedev and web apps and each didn’t satisfied my „Geeks G point”. Hope this will do and you will help me cross. You’ve earned a sub and all the bells! Thanks 👍

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

      Wow, thank you for subscribing my channel ❤️
      I will do my best for you, cheers 🥂

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

    Cool info, well done, thanks for sharing :)

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

    What a great idea 🙂

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

    You are wonderful teacher

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

    Great video

  • @vetriligamvetrilingamnadar7171

    Thank you 🎉🎉🎉🎉

  • @JohnUsp
    @JohnUsp Před 8 měsíci +1

    Wow, this is, by far, the best video about Microcontrollers. If you do an extensive and complete playlist about microcontrollers you will become a reference on CZcams. So, I think you'll cover STM, ATMEL, ESP, right? Congratulations.

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

      Glad it was helpful! Yes I will cover STM32, Atmel AVR and some others 🥂

  • @user-mr3mf8lo7y
    @user-mr3mf8lo7y Před 8 měsíci +1

    I have been using ESP family MCUs especially, ESP8266 and ESP32 quite happily. 4Mb default flash size of those MCU's made them favorable.

  • @sudheerkumar5966
    @sudheerkumar5966 Před 7 měsíci

    Very good

  • @Rick_Cavallaro
    @Rick_Cavallaro Před 8 měsíci +3

    Very nicely done. The only thing I might suggest is that Arduinos might be the easiest introduction to microcontrollers.

    • @elewizard
      @elewizard  Před 8 měsíci +1

      Thank you for watching. Arduino is not a microcontroller, it is a platform.
      I thank arduino is worst choice to start with 👍

    • @Rick_Cavallaro
      @Rick_Cavallaro Před 8 měsíci +1

      @@elewizard I'm aware that an Arduino itself is not a microcontroller. But I'm very surprised you think it's the worst choice to start with. It is just *barely* a platform based on (typically) the AVR microcontrollers, uses the same dev environment, language, etc. But I suppose that's why they make menus. I've taught classes with Arduinos, and I can't really imagine doing the same introductory classes with the bare microcontroller.

    • @nalinux
      @nalinux Před 8 měsíci +1

      @@elewizard I don't see what's wrong with Arduino.
      Since there's a lot of documentation, it's easy to use for beginner, so for me it can be a good choice.

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

      I will give you more details in one of my upcoming videos 👌

  • @tomm856
    @tomm856 Před 8 měsíci +2

    I used Microchip pic for years using assembly language but now I use Arduinno and C. With originally the pic having just 44 instructions (16F84), it was easy to program in assembly but you had to know all the rgisters inside the pic.

    • @elewizard
      @elewizard  Před 8 měsíci +2

      Yes, that was difficult to remember registers and instructions.
      Nowadays it is much easier

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

      Glad I am not the only one that thought so! PIC are wonderful, but somewhat complex. I worked with the 12F family for a project and the learning curve was steep. @@elewizard

  • @imanrasti7619
    @imanrasti7619 Před 6 dny

    thanks

  • @theludicrousstuart6858

    Interesting

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

    I have an HT48R32-B-0 microcontroller in my hi fi audio amp and need a programmer, do you know what am i looking for and can you help with a device that will program that. i have the original chip so i just need to copy the info onto a blank one. Thanks

  • @esra_erimez
    @esra_erimez Před 8 měsíci +1

    How does RISC-V fit into the microcontroller ecosystem, if at all?

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

    Back in the day a byte meant 8 bits. Now that we have 16, 32, and 64 bit MCU's, 6:07, am I saving MCU cycles and/or memory by declaring a variable as a byte as apposed declaring it as an integer?

    • @elewizard
      @elewizard  Před 8 měsíci +1

      It depends on the compiler you are using, in most cases yes you are saving memory

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

    Great video!! Are you going to talk about Raspberry Pi Pico also?

  • @umesh.kumar.naik278
    @umesh.kumar.naik278 Před 7 měsíci

    ❤ nice video sir...
    Please detailed video on Attiny85 (specially RGB led colours control in single potentiometer... If possible)...
    Thank you... and❤From odisha, India

    • @elewizard
      @elewizard  Před 7 měsíci

      Will try, thanks for watching ❤️❤️❤️

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

    Great video! Is the mcu detachable after it has been programmed using the universal flasher?

  • @user-xv5iw5zh4m
    @user-xv5iw5zh4m Před 5 měsíci

    The best beginners mcu is not an mcu, but an arduino. Plug and play. Tons of available sketches, so one can get familiar with concepts of doing stuff with an mcu. After that you can drift to avr, since arduino is based on an avr mcu and after that go to any platform you like, or all of them

    • @elewizard
      @elewizard  Před 5 měsíci

      I don't think so, immigration from arduino to a real microcontroller is difficult and many beginners are trapped in the arduino platform

    • @user-xv5iw5zh4m
      @user-xv5iw5zh4m Před 5 měsíci

      @@elewizard learning to swim having yor hands and legs tied and an anchor chained to your neck is not the best idea for the majority of people. Some might make it, but 99.99% wont. And that's exactly how "real" MCU learning is compared to arduino. All the infrastructure for MCUs is made by retards, that don't know how humans think, what are ergonomics, and how to teach people. I'm no pro in electronics, but using an arduino I can make things done. I many times tried to start with avr, stm, pic and other shit. And despite me already understanding what I need (without arduino I wouldn't even know what I needed) I cant even start doing stuff, since this doesn't work, or that dumbfuckerry is incompatible, or the cat crossed the street in the wrong place. Sure I can larn that eventually by going to a university and wasting 5 years of my life and few hundred $k, but I aint got time nor money to waste for such stupidity just to get a damn led blinking. Dont get me wrong, arduino is als shit, but at least, its very user friendly, especially thanks to the community. You want to learn how to blink a led - watch a vid and look at the code. How to use a keypad - watch a vid and code. Mux? Adc? Rfid? The same. Didn't understand frome the first one - watch another one from millions out there. And there you go, you already understand what you need to do and what the mcu needs to do, and you can grow on that, instead of figuring out how the fuck you configure that shitmcu you have there connected to your pc, not to mention how to flash it, or how to switch a pin high or low. Arduino is THE BEST learning platform period. Nothing will come close due to the enormous arduino community. And in the end it's better to get stuck with arduino, then not get started at all with mcus all together.

    • @elewizard
      @elewizard  Před 5 měsíci

      Arduino is good for prototyping 👍

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

    thank u so much , witch is better, to learn MCUs or to learn Arduino instead?

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

      I think it is better to start with AVR

  • @khomo12
    @khomo12 Před 7 měsíci

    👍👍👍

  • @DefaultFlame
    @DefaultFlame Před 14 dny

    I bought two bags of random ICs, I got two Texas Instruments TMS1200NC 4-bit microcontrollers (Called microcomputers in the TMS1000 series datasheet. The datasheet is copyrighted 1975, lol.) and I have no idea what they have been used for or what the internal ROMs have been programmed with. Anyone got any idea how I could get a ROM dump out of them or how/if I could bypass the internal ROM and use an external EEPROM for program storage?

  • @kristoferbk7486
    @kristoferbk7486 Před 4 měsíci

    The sensitivity to noise is true? DIP is better then SMTs? If so, thank you for the info.
    But then again, using a breadboard will increase such sensitivity alot. (Just to inform those who are not aware)

    • @elewizard
      @elewizard  Před 4 měsíci +1

      Yes that is true. But you can compare them on PCB 👍 Then the DIP will win the game 😁

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

    My biggest question at this point is, how do I choose which microcontroller to use with an LCD. And example of one that I've looked at is a 128x64 White on Blue Graphic LCD from Crystalfontz (CFAG12864B-TMI-V). Which microcontroller would work best with this?

    • @elewizard
      @elewizard  Před měsícem +1

      Selecting right microcontroller for driving your LCD I'd not a big deal, because, almost every microcontroller can drive a 64x128 GLCD. you have to consider other parameters like, cost, size and parameters like these 👍

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

      @@elewizard Thanks for the quick reply and information! I'm fascinated with LCD's and the microcontrollers that control them. I've got an extra STC15W408S that I do want to experiment with and would like to attach it to some kind of multi-row LCD. I'm planning a small audio amplifier and would like to add inputs for a CD, DVD, Phono, Aux, and an FM/AM radio. I'd like to use a 6 position switch that will ultimately control what is displayed on the LCD. If the switch is set to CD, I'd like for the LCD to display "CD". If switched to FM, I'd like have the display to show the MHz and if AM, KHz. Can you suggest more in-depth videos that would help direct me on how to accomplish this?

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

    Can anyone help me what I would need to reprogram a N76E003AT20 microcontroller? I have the new code but not the tools to upload it.

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

      Sorry, I have no idea about that 🙃

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

      @@elewizard it's an 8051 series processor if that helps

  • @ThomasJagielo-ek8nq
    @ThomasJagielo-ek8nq Před 8 měsíci

    Can the computer operating system use Windows, Mac, and/or Linux, to run the software?

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

      Yes, usually software is executed on windows

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

    💖💖💖💖

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

      ❤️❤️❤️❤️❤️

  • @qwertykeyboard5901
    @qwertykeyboard5901 Před 5 měsíci

    The best ones are the reprogrammable ones you find in junk electronics.

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

    Bl808 from buffalo labs is 64 bit.

  • @goranvuletic8873
    @goranvuletic8873 Před 4 měsíci

    Great video. However, it may come to you as a surprise that "component" is pronounced (accentuated) differently. On the second syllable, not the first. I used to pronounce it like you, until I learned better.

    • @elewizard
      @elewizard  Před 4 měsíci

      Thank you so much for correcting me 😊
      I am trying to improve my English

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

    micro-controllers, i often consider them 'cheating', i like to make stuff myself using analogue electronics. but, i make model rockets and like to put avionics in them, then i use micro-controllers, i couldn't, in a million years make an analogue IMU, then record the signal or send it using radio waves. what was i saying? oh yes, sometimes i think the world is too ready to reduce tech to black boxes. when i was a kid i could see, with a scope, and easily understand analogue tv, and how it worked. now when i take a tv to bits it is just ICs. no wonder young people aren't so ready to grab a probe and soldering iron and burrow their way into a modern device, as it so incomprehensible. sorry, ive had a drink, im waffling........
    ah yes! i remember what i was saying. take, for instance making a synth- pretty easy to buy a cem3340 and make a VCO. but then how to drive it? most people would buy an arduino and use PCM to drive it in sub-par manner. i say spend 20 quid on bits and make a baby 8. again, i have forgotten what point i was making. Tuesday is beer day. sorry.
    Fundamentals! using micro-controllers is all well and god, but i think sometimes people fail to learn the fundamentals before they play with a MC. the numbers of posts ive seen online of people trying to do something with an arduino, yet the concept of pull up resistors is unknown to them.

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

      I agree with you about arduino, it make people feel professional while they don't know basic concepts like ohm's law
      Cheers 🥂

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

    Real coneheads use the linux terminal as their microcontroller IDE.

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

    subscribed

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

      Welcome to our community ❤️😊

  • @Liam-ok7mu
    @Liam-ok7mu Před 7 měsíci +1

    Promo_SM