#4 ARM Microcontroller Tutorial - USART Communication Part 1

Поделиться
HTML-код
  • Опубликовано: 5 авг 2024
  • Purchase my new book: Arm Microcontroller Programming and Circuit Building Volume 1
    amzn.to/3LFRaU5
    Let's start communicating!! This video is an introduction to USART (also called UART).
    Links to the software:
    STM32CubeIDE: www.st.com/en/development-too...
    STM Studio: www.st.com/en/development-too...
    STM32CubeMonitor: www.st.com/en/development-too...
    Parts you will need in your prototyping environment:
    Kits to get you up to speed quickly:
    newbiehack.com/Categories/ARM
    If you already have the microcontroller, here are some breakout boards to use:
    64 pin - amzn.to/3rUXeiq
    48 pin and others - amzn.to/3IVkC6D
    STM-Link V2 Programmer:
    newbiehack.com/categories/new...
    amzn.to/3IIZlgj
    Prototyping Breadboards:
    newbiehack.com/categories/new...
    amzn.to/3o2Nh1g
    Resistor Assortment Kit:
    amzn.to/3H4R3ii
    Solid core hook-up wire 22 AWG:
    amzn.to/3IDGinA
    amzn.to/3g5TKUJ
    LEDs and Displays:
    newbiehack.com/Categories/LCD...
    amzn.to/3Az1zf7
    Trimmer potentiometers:
    newbiehack.com/Categories/Pot...
    amzn.to/3H6q067
    The Dynamixel servo I will be using in the USART videos:
    amzn.to/35s3qHl
    Microfarad Capacitor Assortment:
    amzn.to/32BIX1G
    Capacitors on Newbiehack.com:
    newbiehack.com/Categories/cap...
    Electrolytic Capacitor Assortment:
    amzn.to/33TtLxt
    The cheap oscilloscope that I use (because it's cheap and will work all of the projects in these tutorials): amzn.to/2rSHnBa
    A better oscilloscope and the one I would recommend: amzn.to/2qizK5M
    The brand of the multimeter that I use and the one I recommend: amzn.to/2qicUez
    576861742069732074686520636F6C6F72206F66206D7920636174277320657965733F
  • НаукаНаука

Комментарии • 51

  • @ulysses_grant
    @ulysses_grant 8 месяцев назад +2

    I have been working on developing embedded systems for 8 years, and I've greatly benefited from your video. Thank you so much, you have the gift of explaining things well!

    • @PatrickHoodDaniel
      @PatrickHoodDaniel  8 месяцев назад +2

      That is awesome!! Thank you so much for the kind words.

  • @PatrickHoodDaniel
    @PatrickHoodDaniel  2 года назад +4

    This week has been busy with crating machines, but next week and the following weeks, I intend to publish two to three videos per week on this microcontroller subject. CNC videos will also be published scattered here and there, mainly on equipment that poses a challenge to my customers. I hope you enjoy t his video and I am so excited to make more of these videos in this series. For those of you that are purchasing the books and kits, thank you so much. This really helps me keep going and provides some offset financially to make these videos happen.

  • @PatrickHoodDaniel
    @PatrickHoodDaniel  2 года назад +1

    This video introduces you to USART and compares a few other communication methods. I am learning Davinci Resolve, so it is a bit slow, but the features of this software are pretty cool. Hopefully, I have been able to do tracking in some creative ways to convey the content in a new and fresh way for you. Let me know if you like it. It is a bit harder and more time-consuming, but it is fun to see the results.
    54686F7365206F6620796F752077686F206172652066696E64696E67207468652065617374657220656767732C206C6574206D65206B6E6F7720627920636F6D6D656E74696E67202245452220696E2074686520636F6D6D656E74732E

  • @misita5723
    @misita5723 Год назад +1

    Thanks pal! This information is worth millions!

  • @marksadler5065
    @marksadler5065 2 года назад +1

    Awsome job Patrick. I went through ypur AVR series here recently and learned a lot so i am excited about this new ARM series. Also bought your book, programmer and
    breakout board today.

  • @Hojadurdy
    @Hojadurdy 2 года назад +2

    No more motion blurs. That thing was giving me a headache each time I watched your videos. Noice.

  • @pankaj-fo3no
    @pankaj-fo3no 10 месяцев назад +1

    Really appreciate for very good video

  • @jesset-p9225
    @jesset-p9225 2 года назад +1

    Looks like you're getting the hang of your new camera.
    Nice video, looking forward to the series.

    • @PatrickHoodDaniel
      @PatrickHoodDaniel  2 года назад

      Ha, yeah. I'm still learning. I want to create a faster set up to go from camera to editing and back to the camera. I'm still working on getting better with focus. You can see in my close shots the camera doesn't really know what to focus on. I will need to think about how the camera focuses to "focus"" on the work.

  • @olajideoyekunle9044
    @olajideoyekunle9044 2 года назад +1

    Great video as usual...thank you so much. You're a great teacher.

    • @PatrickHoodDaniel
      @PatrickHoodDaniel  2 года назад

      Thanks!

    • @olajideoyekunle9044
      @olajideoyekunle9044 2 года назад +1

      @@PatrickHoodDaniel suffice to say that my real foray into embedded programming was actually through your Atmega video series. Keep making immeasurable impacts in people's lives across the globe who may never be able to repay you. We deeply appreciate.

    • @PatrickHoodDaniel
      @PatrickHoodDaniel  2 года назад +1

      @@olajideoyekunle9044 That is really kind of you to say. Thank you so much!!

  • @aquadap219
    @aquadap219 9 месяцев назад

    I am studying computer engineering in germany and love your videos!

  • @Fnta_discovery
    @Fnta_discovery 2 года назад

    Really you explained very well

  • @fishntools
    @fishntools 2 года назад +3

    Love your vids theyve been a great help! Could you entertain the idea of doing something with signal and power isolation? Perhaps on a CAN Bus for automotive / heavy industrial application?

  • @aasirrasheed6619
    @aasirrasheed6619 2 года назад +3

    @BuildYourCNC Currently I am working for a big semiconductor company and it was only possible with your Atmega series .. Keep up the good work and please provide patron link so than we can contribute our bit.

    • @PatrickHoodDaniel
      @PatrickHoodDaniel  2 года назад

      Thanks, that is awesome!! I am setting up a Patreon so I will add this to the descriptions soon.

  • @mic03311
    @mic03311 2 года назад +2

    Thanks for this other great video. I really enjoy the effort you are placing in teaching things step by step. Great work !
    I had one question concerning the 74LVC2G241 - This is a dual non-inverting buffer/line driver with 3-state outputs. Can you explain what is the function of this IC, is it to avoid conflict transmission between Rx and TX?

    • @PatrickHoodDaniel
      @PatrickHoodDaniel  2 года назад +2

      Yes, it is a chip that allows the microcontroller to select which line to transmit or receive. There are three lines from the microcontroller to this chip, the TX, RX, and the signal to select which one to be used.

  • @officialgrasptechnology1804
    @officialgrasptechnology1804 2 года назад +1

    Please redo your avr tutorials as well thank you. Moving on to arm!!

  • @mahanehsani1246
    @mahanehsani1246 2 года назад +1

  • @Dexter-cy9ud
    @Dexter-cy9ud Год назад +1

    Hi, is the code written in the book bare metal code or does it use some framework such as the HAL of cubeMX?

    • @PatrickHoodDaniel
      @PatrickHoodDaniel  Год назад

      Mainly register level. The new series I'm doing on my RUclips channel is mixed. I do everything at the register level, then using autogenerated code and HAL.

  • @bennguyen1313
    @bennguyen1313 Год назад

    I was hoping to find an off-the-shelf solution that does SYNCHRONOUS 9-bit UART at 1Mbps, both as a master and slave. For example, as a Master it would output a 1Mhz CLK, and TX, where the data shifted on the TX pin (changes on the falling edge of CLK) and consists of:
    1-start (low), 9-Data (lsb-first), 1-odd, 1-stop (12 bits total)?
    And as a slave, it would latch what's on the RX-Line on the rising edge of 1Mhz CLK (generated externally)?
    The closest I found is, Digilent's Analog Discovery 2, but it only lists u*A*rt.
    Microchip has a (discontinued?) PicKit Serial Analyzer (DV164122) capable of doing USART.. however, the GUI (2.2) shows only "USART Sync Master". More concerning is that the firmware (305), and Dll (2.4) is from 2009, so even if I buy the hardware, not sure if it will work with Win10. The API examples are for VB2005.

  • @arcrobotics9982
    @arcrobotics9982 2 года назад +1

    could u also explain the ring buffer and how to utilize it in arm microcontroller

    • @PatrickHoodDaniel
      @PatrickHoodDaniel  2 года назад

      Sure, I will take a look at this and bring it up in a future video.

  • @glewiss6696
    @glewiss6696 2 года назад +1

    Just a quick question off topic here. Do you use apsc or full frame camera to make those great macro videos? Just curious. Thanks for the great videos . Count me in to follow with your book :)

    • @PatrickHoodDaniel
      @PatrickHoodDaniel  2 года назад +1

      No problem. I use a Sony A6300, not full frame, unfortunately. I could only wish!! Haha.

    • @glewiss6696
      @glewiss6696 2 года назад +1

      @@PatrickHoodDaniel Good enough! In fact I'm surprise how good it is. Do you mind telling what lens you used? Sigma 16mm or 30mm? I've got the A6000 ...

    • @PatrickHoodDaniel
      @PatrickHoodDaniel  2 года назад

      @@glewiss6696 SEL50F18. Here is a link to the lens in amazon: amzn.to/3pbcLu2. (Disclaimer, it's an affiliate link)

  • @intjengineering
    @intjengineering 2 года назад +1

    Not related to the video per se, but what mechanical pencil are you using? Haha.
    It looks amazing.

    • @PatrickHoodDaniel
      @PatrickHoodDaniel  2 года назад +1

      Everybody asks that question! Haha: newbiehack.com/categories/newbiehack-development_tools-mechanical-drafting-pencil

  • @Fnta_discovery
    @Fnta_discovery 2 года назад +1

    Hello. often program the microcontrollers. I see bit shift right or left using symbol ">>". why we use it. I am waiting for your response thank you.

    • @PatrickHoodDaniel
      @PatrickHoodDaniel  Год назад

      It only controls the direction to shift the value.

    • @Fnta_discovery
      @Fnta_discovery Год назад

      @@PatrickHoodDaniel why controls the direction

  • @mic03311
    @mic03311 2 года назад +1

    Your book is very useful. Is there a way to purchase a pdf colour version - I find this format more useful when working on projects or traveling. Many thanks !

    • @PatrickHoodDaniel
      @PatrickHoodDaniel  2 года назад +2

      I can make one available. I didn't think there would be any interest as the price would be a bit higher.

    • @mic03311
      @mic03311 2 года назад +1

      @@PatrickHoodDaniel yes please, from your website I will be happy to support your efforts ;-) it is much practical for my workflow. Thanks

  • @M0XYM
    @M0XYM 2 года назад +1

    I just wondered about peoples experiences with breadboards - I've bought a bad bunch - flakey connections and really frustrating. My fault I know for buying cheap but are the expensive breadboards any more reliable?

    • @PatrickHoodDaniel
      @PatrickHoodDaniel  2 года назад

      Yes, more expensive breadboards are generally more reliable, but pay special attention to reviews and where the breadboard was made. The cost of the breadboard could just be the seller pricing it higher.

    • @M0XYM
      @M0XYM 2 года назад +1

      @@PatrickHoodDaniel The breadboards with good reviews seem to be made in the US (eg Busboard) and are just too expensive to buy in Europe. I think I'm going to give up with breadboards and solder - soldering isn't too bad really.

    • @PatrickHoodDaniel
      @PatrickHoodDaniel  2 года назад

      @@M0XYM Once you buy a good set of breadboards, you will have them for life, just like a good tool. You can also try making your own breadboards using female headers.

  • @damorafik
    @damorafik 2 года назад +1

    Beside the valuable informations that you provide I like your pen 🖊 I would be happy if you can tell from where I can buy one

    • @PatrickHoodDaniel
      @PatrickHoodDaniel  2 года назад +1

      Thanks. You can get the pencil here: newbiehack.com/categories/newbiehack-development_tools-mechanical-drafting-pencil

    • @damorafik
      @damorafik 2 года назад

      @@PatrickHoodDaniel thank you very much 😊