Тёмный
No video :(

#13 ARM Microcontroller Tutorial - USART Transmit with only ONE line of code 

BuildYourCNC
Подписаться 101 тыс.
Просмотров 2,9 тыс.
50% 1

Purchase my new book: Arm Microcontroller Programming and Circuit Building Volume 1
amzn.to/3LFRaU5
This video will show you can transmit using USART with only one line of written code. The rest of the code is autogenerated. You will use the HAL USART transmit function.
FTDI USB to Serial interface
amzn.to/3NS64XU
My Patreon:
/ newbiehack
The full playlist for the new ARM tutorial series
• New ARM Tutorial Series
Introduction to USART:
• #4 ARM Microcontroller...
In this video, I show how to receive a character.
All of the links below help support me at no extra cost to you.
ARM Kits: newbiehack.com...
Links to the software:
STM32CubeIDE: www.st.com/en/...
STM Studio: www.st.com/en/...
STM32CubeMonitor: www.st.com/en/...
Parts you will need in your prototyping environment:
Kits to get you up to speed quickly:
newbiehack.com...
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...
amzn.to/3IIZlgj
Prototyping Breadboards:
newbiehack.com...
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...
amzn.to/3Az1zf7
Trimmer potentiometers:
newbiehack.com...
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...
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

Опубликовано:

 

28 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 28   
@PatrickHoodDaniel
@PatrickHoodDaniel 2 года назад
I am back from a mini sabatical! We also lost one of our cats and we have been very sad. The cat (Neo) was in some of these videos. I hope you like the video which uses autogenerated code and a HAL function. Enjoy!! Please consider purchasing the book if you haven't already. It is full of great project and will get you going very quickly.
@Jose-tw9bl
@Jose-tw9bl 2 года назад
The quality and level of your videos is so good. I think it is the only channel at a "prosumer" level, i really enjoy the practical parts. How to import use and understanf existjing libraried
@Jose-tw9bl
@Jose-tw9bl 2 года назад
Btw for me it would be eveen cooler if you switched to TI' microcontrollers
@PatrickHoodDaniel
@PatrickHoodDaniel 2 года назад
Thank you!
@PatrickHoodDaniel
@PatrickHoodDaniel 2 года назад
@@Jose-tw9bl I will check them out, but I really like working with the STM32 as they are very popular.
@Nabilphysics
@Nabilphysics 2 года назад
its been a while(3 weeks roughly) since you have not uploaded a video. Finally, you have uploaded. Thanks
@imk8729
@imk8729 2 года назад
Good job, thanks 👍
@Hotges
@Hotges 2 года назад
Nice and understandable turorial! In the past i was looking for STM32 HAL UART tutorials and found mentions about buggy HAL USART library. Do you know how robust polling transmission is? Is reliable USART communiction with HAL possible? IT/DMA? Thanks!
@PatrickHoodDaniel
@PatrickHoodDaniel 2 года назад
Thanks for the kind words. I haven't done any extensive testing, but the small trial in the video seemed flawless. You can always go into the hall function and check the code to determine if there is anything that doesn't look right. Where have these bugs been mentioned to be present?
@RommudohDev
@RommudohDev Год назад
2:40 shouldn't you always connect GND, too? Maybe not in this case, since both devices are powered through the same USB host?
@PatrickHoodDaniel
@PatrickHoodDaniel Год назад
The USB is connected to GND, so no need in this case.
@kaojx4745
@kaojx4745 2 года назад
Sorry to hear that. I also lost one of my cat two weeks ago. Is your book available in China? I'd like to purchase every single one to support such high quality contribution.
@kaojx4745
@kaojx4745 2 года назад
Well I think many people are willing to learn PCB design which is a missing puzzle of this great course…
@PatrickHoodDaniel
@PatrickHoodDaniel 2 года назад
@@kaojx4745 You should be able to find the book by searching Patrick Hood-Daniel on Amazon. I really appreciate the support. I will be getting into showing PCB design in a later video. I mention this in the first video of the series. Thanks again!!
@DavidSmith-bb9kl
@DavidSmith-bb9kl 2 года назад
The pencils you use look very advanced, what brands are they?
@PatrickHoodDaniel
@PatrickHoodDaniel 2 года назад
Alvin
@damsaddles9911
@damsaddles9911 2 года назад
Hi Patrick, I’m still enjoying your videos, and have worked my way through most of your book. Is there a substitute you recommend for the dynamixel ax-12a or 18a servos ? They are not available on Amazon and I have tried a few other suppliers but can’t get them
@PatrickHoodDaniel
@PatrickHoodDaniel 2 года назад
Have you tried the Dynamixel (Robotis) site? www.robotis.us/ax-series/ Let me know if you have any issues.
@damsaddles9911
@damsaddles9911 2 года назад
Thanks, yes they have them. Didn’t realise they are so pricey, about AU$80 each for the 12a. But thanks for prompt reply. I’ve been checking that Amazon link every now and then, for last 6 months and it always says “ not available” so had no idea of price. Then checked a few other suppliers that I’ve bought from and they didn’t have them.
@PatrickHoodDaniel
@PatrickHoodDaniel 2 года назад
@@damsaddles9911 This may be the result of the world we live in now. These are very good digital servos and are best used in specific applications where these costs are not as significant. If you can find another digital servo that is lower cost and uses the USART communications protocol, then you may still be able to use these upcoming videos to make those work as well since the concepts will be the same, just the datasheet may differ a bit. If you do find another digital servo that uses USAART or another communications protocol, let me know and I will have a look at the datasheet and maybe add them into this series.
@damsaddles9911
@damsaddles9911 2 года назад
So not all digital servos can communicate via USART ?
@damsaddles9911
@damsaddles9911 2 года назад
Oh, and the other factor is that Robotis E-shop only posts to North and South America. So I'll get them sent to a friend in Atlanta and he then posts them on to me. How about these ones:- RoboStar SBRS-5314HTG 280° Digital Metal Gear High Voltage Robot Servo. I'm trying to work out if they use USART protocol? By the time they reach me, they are only the price of the postage (from USA to Aus) cheaper but can get them in 7 days. Hope I don't sound like I'm "whining" but if other international followers of these tutorials face the same hassles then finding an alternative servo may also save them. Once again Thankyou. DAM
@classyjohn1923
@classyjohn1923 2 года назад
When you go from writing bare-metal code in 8-bit avr mcu's to writing code for 32-bit stm mcu's, you quickly realize how easy you had it. So many registers and insane amount of configurations (bitfields). I'm sure the additional features are nice but its pretty damn overwhelming. Even the clock configuration can be a bit overwhelming. As a self-taught electronics hobbyist, I have no idea if I need these advanced features or not. If I just want to configure USART as your typical UART with 115200 baud rate in 8-N-1 format, how do I know if these additional features impact my goals? What is your take on this? Sorry to hear about your cat.
@PatrickHoodDaniel
@PatrickHoodDaniel 2 года назад
If you look at it from the point of view of just larger tables, it becomes easier. For me, it's like looking at a switch panel. Sure, the 8-bit switch panel is smaller, but everything is labeled. When you look at a 32-bit switch panel, it is just a matter of looking for the correct switch to enable or disable. I also look at this from a cost perspective. If the chip I want to use is 8-bit and is more expensive than a 32-bit, I will most likely go for the cheaper but more powerful chip just in case the project turns into a product. It would be tougher to make the change in the middle of the project when you need to decide on budget.
@elishaul4125
@elishaul4125 2 года назад
Hello, has this series ended?
@PatrickHoodDaniel
@PatrickHoodDaniel Год назад
No, this is an ongoing series.
@elishaul4125
@elishaul4125 2 года назад
In order to seriously study microcontrollers it is necessary and desirable to get your hands dirty and program through Registers And not programming throw HAL
@PatrickHoodDaniel
@PatrickHoodDaniel 2 года назад
You are right. I do that in all of my other videos. Check them out.
Далее