#1 Say NO to ARDUINO! New ARM STM32 Microcontroller Programming and Circuit Building Series
Вставка
- Опубліковано 27 вер 2024
- Get ready for a new series on the ARM Microcontroller. This time, I will be using my new ARM Microcontroller book (amzn.to/32ocUlM) as I create new videos while creating various projects.
Purchase my new book: Arm Microcontroller Programming and Circuit Building Volume 1
www.amazon.com...
I recommend using the STM32CubeIDE:
www.st.com/en/...
Recommended servos:
Futuba hobby servo: amzn.to/2xolCzS
High torque metal gear hobby servo: amzn.to/2ktkHbc
HiTec hobby servo: amzn.to/2ksycrv
High precision, high torque metal gear hobby servo: amzn.to/2fRE0Wv
3D Mouse to rotate/zoom/move the object (Must have for CAD!!!): amzn.to/2ruFnSn
The drafting pencil I use on these videos: amzn.to/2qioYg2
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 multimeter that I use and the one I recommend: amzn.to/2qicUez
4561737465722045676720496e736964652e20436f6c6c656374207468656d20616c6c2e20476976656177617920736f6f6e21
You are great Patrick, I started learning ARM with your arm tutorials series 6~7 years ago, now i'm working in an mcu developing company, thanks alot ♥
Wow, that is great to hear. Congrats on making you dream come true!
i started my embedded journey with your Avr videos now i am working in Automotive domain with tricore CPU's, thanks alot , its good to see youtube recommended me this video.
I am happy to know that it was recommended as well. Very cool.
Could you tell more about your career/education path? I want to start teaching kids and want to begin with Arduino, so I want to briefly describe them the whole picture including the career aspect
Hi are u electronics engineer
I started my firmware career following your videos, very clearly and easily explained. I've just ordered the book and looking forward to the series. Best of luck with it.
Thank you so much for getting the book. I hope it will serve you well.
Patrick, you are insane. Started my embedded journey from your videos. Love it, more power to you!
Thank you so much!!!
this man is a legend. he started making tutorials on avr when there was no tutorial on it.
Thanks. Yes, it was a while ago! This will eventually show my age.
I'm so excited! I haven't found anyone else who dives into the datasheets like you do.
Nice. Get ready for some more.
For me learning and doing microcontrollers is fun because I learn about how hardware and software interact with each other and how we can control hardware with software.
Very nice and clear explanantion, I am a military officer with the captain rank but i like learn more and deep about mcus, especially arm mcus, thank you.
God level explanation. Subscribed within first few seconds.
Thank you so much!! I have a lot of stuff planned for the microcontroller series!
Agreed. I love using NXP Arm Cortex-M7 MCUs for my projects. Very efficient and flexible platform.
Best microntroller videos on youtube. Thank you for explaining everything from scratch. Dont know how you wanna improve these perfect arm series haha
Creating a near impossible application will hopefully show a lot more useful information..I plan to really flesh out state machine code and using interrupts extensively..
I just started doing electronic as hobby recently. Just found out your channel. Your explanation is so good and easy to understand. I wish i know a place to hang with people with same hobby
Hang with me. I am starting a new series.
hi Patrick;
i remember learning the real "metal" of what "software" really is...we used a PDP-11/05 manual and did cycle by cycle, bit by bit, analysis of memory cycles, instruction fetches, instruction decoding (you know, the bits that control ALU Functions, indexed addressing...), and i suddenly 'got it'! Software is just reconfiguring hardware, cycle by cycle, "steering" addresses and data.., it was a real "moment", since i had been developing digital logic for about 7 years, at that poimt, and suddenly "connected" the software/hardware worlds!
best o' luck with books and tutorials!
Nice story. Thanks!
Wow, it's hard to find the STM32F030 right now. Zero stock and factory lead times of 53 weeks! I will be following your new series!
You can use any of the STM32 line. The chip I use is one of the simple ones, so pick any and it will be fine as long as the number of pins will work with your prototyping setup.
I liked that in my search for ARM MCUs your videos appeared and I was preparing for when I received my development board that I had bought and now I decided to get your book in epub format. Congratulations on your work and thank you very much for sharing your knowledge. :-)
My pleasure.
@PatrickHoodDaniel : Just bought your book, it will be a very interesting journey. 😊
I always Like your videos first and then watch them.
Ha! That's awesome. I hope to always be worthy of your likes.
wow - its so nice seeing you again, you've been missed!
Thank you so much!
I don't know how i look at you your really make my walk easy any i don't even know how i get see you as my i brother, i really appreciate you dear brother and i hope i will learn from you more through my career.🙂😊
Nice, I bought your book off Amazon. I been reading it after work.
Wow!! Thank you so much!
You're an excellent teacher. I learned to build my first CNC from your videos. I'm working on my second cnc machine with Pokeys57cnc following your videos once again.
Enjoy the process!
Subbed. I stumbled upon this video, somewhat like I did with Arduino some 6-8 years ago. Looking forward to viewing your Playlist.
I look forward to the next video, thanks for sharing.
You are a gem! You just answered my question
First time seeing you and subscribed already!
I have a product in mind that others have already built
but I have far more greater marketing strategy and I just know
how to sell it. Also there are few common factors that others out there missed.
And I was just about to start doing it using Arduino, but turns out
Arduino will be just useful as prototype phase (in my case) So i clearly need your channel!
Glad I found you! All the way up from Ethiopia, Africa.
With STM32, you can get Arduino-like development boards. Some (like ST's Nucleo-64 boards) have Arduino-compatible headers. And the Arduino framework has good support for STM32. Hobbyists can use them for better performance and better functionality. You can experiment and prototype with the development boards (including Arduino, which has drivers for lots of peripherals), and then design and build a custom board once you've settled enough of the details.
Thnaks for the information.
Just bought the book too. Would you recommend the stm32 nucleo board of discovery board? Thank you very much
I started on your AVR tutorials in AVR Studio and now I work on Linux embedded systems. Thanks for your channel and glad you are getting back into it.
You are so very welcome!! This is a passion of mine and I will keep going until I die! you make great videos as well. I just subscribed.
waiting for your video !!
Just ordered book,looking forward to the journey
Thank you!!
Thank you! I'm looking to start with both the arduino and something more used for production.
This is brilliant work! Glad to see people taking it beyond the dev boards and truly building what they need - Now to find someone that can do a series like this but for microprocessors/SoC's
Stm32 is the choice for many people lately.
Patrick I wish the best to the new series...i m sure it gonna be exciting as the old ones.
Thanks!
Thank you sooo much!
I said NO to AVR 8 years ago. Then I tried to realize a frequency meter with 1Hz resolution up to 10MHz. These AVR chip hasn't 32bit hardware timer - so it was very problematic to realize such an equipment)). I tried to use assembler, but I had not had any success. In addition, prices on STM32 chips were very attractive. There was 32bit CPU, 16kBytes of RAM, 32-bit timer, DMA !. But it was really difficult to understand how to program stm32 - a documentation has more than 1000 pages. There are several clock buses. I can compare STM32 with 80486 motherboard (without video card surely). But there you can be running digital signal processing in real time (in speech band up to 4kHz) and realize digital filters.
Just bought the book, I'm excited to start this course, this is exactly what I've been searching for!
Hope you enjoy it!
I'm so excited Patrick, I can't wait 🤩🤩
Thank you so much, really interesting
Subscribed! Youve got me excited! ARM is the future!
Excellent! Hope you enjoy!
Man i love you!. the Atmel series, is the best i ever did!
Thanks. I hope you check out this series as well.
very amazing video thank you so much
I predict this will be well-received! You do a very fine job of explaining complex ideas in as simple a way as possible.
Thanks. I will strive to do the same.
Big thanks Patrick. Learned a lot from your channel
Bought the book and hopefully the hardware soon. I look forward to learning along with this series, thanks for giving us your knowledge!
Thanks! Interrupts will be the next video.
Whoa! I remember some of your tutorials - they were great!!
Thanks!!
Can't wait to get started! I found a box of 20 of the M501 V04s at an electronics recycler and have no idea what to do with them!
Completely assured on ARM mcu now! Lovely series
Excellent!!
just the video series i need. I'm looking forward to it
Enjoy!!
U da Man!! I was just thinking you should update your courses!!! Keep on working on the other volumes.
Will do! Thanks!
Waiting eaglerly for the course! best of wishes..
Thanks!
thank you for the vid! Awesome!
You're welcome!
You'r really doing a great job
Thank you!!
I love ARM microcontrollers but I'm no fan of ARM IDEs. The Arduino IDE has shown me that I don't need Keil, IAR, or any of the Eclipse derivatives. To me they are all unnecessarily big and full of extraneous complexity. Thankfully the Arduino IDE can accommodate just about anything...from M0 to Teensy 4.
We all would want that but in reality Arduino is not really used in the real world but only used in learning basic programming
@@tdab1234 Why? I've used both Keil and IAR professionally...because the engineering manager specified them. But there isn't a line of code I wrote that couldn't have been written and compiled in Arduino. (Goes without saying I would NEVER use an instruction like DigitalWrite(). That really and truly is for noobs. But Arduino in no way forces its usage.)
@@d.jensen5153 can you please tell me why digitalWrite is for noobs?
@@G-Code_official I was wrong. No doubt there are applications where squandering a few hundred microseconds on the transition of an output pin is not a problem. But I have no use for that nonsense. I'll track my own use of resources and their dependencies, thank you.
@@d.jensen5153 Hey not sure if you will see this but when you use microcontrollers in industry, do you design a circuit board around a mcu? Or do you use a board with a mcu on it like a NUCLEO board?
hope there chinese version, we are easy learn. thanks!
Yes, I have been waiting for this series 😊
Excellent.
I can't agree with the price point, at least in my region, a single STM32 chip could cost around $5 - $10 while an ESP32 costs just $2, ESP01/8266 cost almost $1, and an Atmel chip costs $2.
I think what makes STM32 great is it's reliability, flexibility, and quality makes it really the default option for industrial application.
Though ESP32s are close to compare to STM32, i think STM32s had certain qualities that ESP32 don't have, such as flexibility and features (interrupts).
At low quantites, yes the chip is more expensive, but my series focuses on getting to a production level and at high quantities, the chip is very cheap.
@@PatrickHoodDaniel Ahh I never knew that they're cheaper in bulk! I thought they were just fancy chips 😁.
Now you got me wanting to learn more on STM32! thank you so much!
@@sukmaadhiw9033 Not a problem. Thank you for watching!
Cool video. I learned programming and this seems like a really cool next step. always loves embedded systems.
Thanks. Enjoy the journey!!
Thanks for such fantastic video. I need a mcu with wifi. To develop wearable device which is connected to an app on mobile. Which one should I choose?
The general statement "Say NO to ARDUINO" [1] is enough for me (STM32 professional user and STM32 fangirl) that disqualifies you of any seriousness. This conflicts directly with "Use the right tool for the right job", which anyone with professional experience in electronics engineering would tell you. It is good showing a broader audience the great possibilities of these chips. But you can do this without the pungent smell of a snake-oil salesman.
[1] while in reality, the Arduino Platform/STM32 based Arduino Boards is without any doubt usable for quick and dirty programming of STM32 based prototypes. But that is not my argument here. The MCU market is extremely diverse and the toolchain, platform, library and design possibilities are too. Only an idiot will think that a single ONE is THE solution to everything. But even worse are the scammers profiting of these gullible people ... Shame on them!
I think I'm lucky!!
I was thinking its time to switch to RISCV or ARM ... Can't wait... BTW I started AVR from your video its a great memories to remember...
Awesome. the AVR series is a great primer on this series.
I started using the AVR as early as Atmel started transitioning from the MCS-51 family, which I was using before that point. I was on assembly so it was a bit harder for me to switch over. No worries, I've been using STM32 for over a decade, using C of course. The major drawback with the AVR isn't just in the price and resources, it's also STUPID SLOW! 20 years ago a 16MHz system clock was sweet, but it was an 8-bit architecture. Now the STM32 comes with 4x the core bandwidth, easily reaching 72MHz system frequency, with the F4 and H7 series I've been using, they are running at 180MHz and 480MHz respectively. I guess that's why people started trying to run the Arduino framework on the STM32 or various Pi baords. Redesigning PCB is fine, you can shed enough parts to make an Ardnuino more compact. Yet still, I never got used to using that system. Never tested it with any benchmark tools either, but I generally don't trust it with efficiency.
Well said.
Are u electronics engineer?? Alex
@@saranyas6280 Yup, plus mechanics.
@@saranyas6280 No.Learned everything from various sources and University, but I am not specifically an electronics engineer.
Hi Patrick, your deep dive approach to explaining uC theory in a practical context has been an absolute gamechanger! As a mechanical engineer with a minimal digital electronics background, I want to thank you for sharing your knowledge on this forum and making this subject accessible to all of us! One question: Do you have any suggestions on how to learn ( or do you have plans to do some walkthroughs :) ) about how device drivers are written? I am personally interested to learn more about how to interface with the MPU6050 but find it to be a relatively complex component to wrap my head around. Thanks and looking forward to checking out the book!
Thanks for the kind words. The MPU6050 should not pose a problem for you since it uses the i2c (I squared C) protocol. I explained that in my previous ARM series, and I detailed how I2C works. You should take a look at those videos. I will go back through I2C in this new series, but it may be a little while before I get to it. Here is the first I2 video from that series #57: ua-cam.com/video/XS2-90IJ7kc/v-deo.html. The others are numbered 58, 59, and 60
@@PatrickHoodDaniel great, I'll start with those in that case. thanks!
Can't wait to learn from the best.
Awesome. I am grateful. Thanks
Hello, just bought the book. Will there be a kit of parts available? And if so will I be able obtain it here in the UK?
Newbiehack com. My next video explains this in more detail. Thanks!!
I am your new follower now. I am curious on what are your thoughts on using Rust for STM32?
@@daixtr thanks for the follow. I haven't put any thought towards using Rust with STM32. I am not familiar enough with Rust, but I hear that is it a great language. I like C/C++ because of the low level nature of the language. Do you believe Rust will provide a similar feature?
Keep it up sir…
What about the ARM9, any good for a GPS device?
What are the per-requisite for this series ? I have a background in Computer Science, but no knowledge in Electrical Engineering.
In the book, I go over a lot of the basics that serve as the defacto prerequisite for the broader embedded journey. My AVR series is also a good alternative, but not based in ARM programming.
new series!
I cannot find that arm chip on a blank PCB like you show in this do you have any idea where I could find this I like programming this way
I sell it here: newbiehack.com/Categories/ARM
These kits and products that I sell help me provide these UA-cam videos.
Can a cnc machine be both chain driven and lead screw driven? I really need this info.
Yes, but there are lot os considerations for both, too much to say in a comment. I've made a bunch of videos on the topic, but if you have specific questions, let me know.
I agree that an embedded software engineer should say no to Arduino. But what should we do for esp32? Sometimes we have to use arduino.
Hi Patrick , the Book is not available , please let me know when will it be available(paper back)
When I click on the link in the description, it says it is in stock and shipping. What country are you in? Maybe it is not available in your country.
@@PatrickHoodDaniel Hi Patrick i am in Singapore.
What should I learn before buying your book? I can program, but I have never worked with microcontrollers, is a field I love and want to learn. I have little knowledge in digital electronics. My pro is that I'm a programmer and love microcontrollers.
That is an excellent question. If you already have some programming under your belt, you can jump right in. The book assumes you are not knowledgeable about electronics or microcontrollers at all. In fact, the two technical editors worked through the book, both having no experience with programming or electronics and they were able to complete all of the projects the book. This is a perfect entry into microcontrollers and electronics.
@@PatrickHoodDaniel Nice!, exactly what I'm lookging for, I was looking into coursera, but nothing better than a book. Thanks!.
How to program and make controllers according to use for production pr development according to need
What's with the occultist skull thing?
That's been the logo for newbiehack for 13 years.
"Say no to Arduino" Most intelligent thing I've heard all day
I hope this idea spreads.
Hi dear thanks for every lessons ı tired to learn hall library and stm32cube ide from st channel but speaker was spekaing German accent it was very bad ı didnt understand then ı began mikroc arm what do u think about mikroc ?
Arduino is good for beginners. But if we want to advance we need to learn to program muC using it's data sheet. It is overwhelming but need to do for only 1 type of muC. After that our lives as a debugger and programmer become little easy.
How many lectures comes in this series
It is ongoing as long as I live, or if UA-cam takes a weird pivot. Haha
Excellent 👌👍
Nice video, thanks :)
When are you going to edit the 2nd arm book ?
Please provide links to bare microcontrollers to buy online
I'm pretty new at all of this I've only been doing it for about a month or two but why do you say that it's hard to go to production? It's very simple to program a micro control chip external to the Arduino such as an at tiny microcontroller or any of the larger microcontrollers if that is required why is it that you say this I'm not saying you're wrong I obviously don't know a lot about this I'm asking you so I understand
It can be difficult to go to production if you start with a platform that is complex where you will need to pare down to the circuit you only need rather than starting from the bare chip and gradually building up.
i hoped there's a section about USB, but there isn't :(
I will get into that. This is an ongoing series.
I hope you address extending battery life including going into and out of deep sleep modes. This has caused me problem using the Arduino , Pi Pico and Seeduino boards.
I will keep this in mind when I get to using batteries. Thanks.
And Arduino does everything you mentioned and yes the stm32 can be progrramed using the arduino ide
Thanks for the clarification.
The barrier to a lot of people, including myself, is an inability to solder surface mount, interesting all the same
Would you like a video in how to solder surface mount?
@@PatrickHoodDaniel I would love it!
@@dougsteel7414 Cool, I will show the process of how I solder the ARM chips to the boards as I do it manually here in my shop, and it is pretty easy after you find out the correct procedure.
@@PatrickHoodDaniel that would be fantastic, thank you so much!
It’s not that hard and there are good tutorial videos on UA-cam, eg. Dave Jones. You can even solder QFN and BGA packages with hot air or hot plate. Use solder paste and a custom, inexpensive stencil, eg. OSH Stencils.
Purchased your book and liked it. When does volume 2 come out ?
Waiting for Volume 2 of this book . When is it coming out Sir ?.
Dear Patrick, do you plan to publish Volume 2 of your book? This book is amazing source for learning stm32 from scratch! I'm waiting for second part 🙏
Hi Diana, Yes, I am currently writing the book. It takes a little while as I need to also have technical editors included. I will inform you of the book publishing date when I get near to the end of the writing.
@@PatrickHoodDaniel Thank you! ✨
@@diana_dev I watched your shorts showing some of the project in the book. Awesome!!
@@PatrickHoodDaniel Thank you so much. It’s all thanks to you, your book and your cool channel 😊 I very much appreciate your work.
To keep up with my progress and to not give up - I try to do shorts of my results. And it helps to refresh in memory of what I've already learned if I pause studying 😁
@@diana_dev That is a wonderfull method. I will be watching!
How to find your book from shop?
Forgot to mention that STM also offers Nucleo development boards for a lot of their chips so you don't have to make your own breakout board but can just buy a Nucleo (with built-in STM programmer) and start from there which speeds up the development process. These are not entirely the same as the application specific development boards, they are more in line with an Arduino board.
Thanks for the info.
Normal people with no electrical engineering should not produce any product.
@@gursharansingh7398 Yeah and no one should try to spam other people but hey, its not like that is happening anytime soon either
can i use your book to learn to program nucleo boards
Yes. You can use my book and videos for any boards that use the STM32 microcontroller.
@@PatrickHoodDaniel thanks for telling and a happy new year
Hello Patrick, your videos are grate and more useful for ppl who want's true knowledge of micro-controller programming from L0 level. grate job 👍. i have one query, Can we use one programming device to program any CORTEX MCU's from different manufacturer's;As programming protocol are the same.
for a instance , Pickit 4 supports CORTEX SWD protocol , So can i use same for STM32 programming ? & vice versa ?
What is a good program to modify / compile arm Embedded. .Pkg files
I am not familiar with .pkg files. Apparently. that file type is a package file. Can you give me more information on what this .pkg file is? Is it an EmbeddedOS?
@@PatrickHoodDaniel Sorry, I didn't have much info on the hardware, at the time I posted this and, basically no knowledge on embedded programming / programming in general. It is a STM32 (stm32f412) embedded chip. I see now that STM32 has it's own software to compile the files.
The only thing I could figure out is that the .pkg file I dumped, is an OTA firmware update. So, I probably could of just sorted it out myself haha. I'm very much a newb and it shows. I subbed and thanks anyways for the reply!!
@@woolfy02 Not a problem at all.
The atmega328 is an amazing and capable processor but the the whole arduino thing takes people in the wrong direction leads a lot of them to frustration and failure.
Totally agree!
Arduino is very popular than the rest of the microcontrollers its like it conquers all of them.
Arduino isn't a microcontroller. It is a platform that contains a microcontroller like the Atmel.
Do you recommend to learn assembly as well, as programming language?
I really wait your further tutorials, and my philosophy is the same to learn as you told in your two introduction videos.
For me a bit new the STM32, as earlier, I learned on TI Stellaris.
No, unless you wish to torture yourself. C++ compiles quite well into efficient machine code so there really isn't any reason to use assembly unless there is an optimization that is absolutely required by the application/use of the microcontroller. Before assembly is used, it is always a good idea to find a more efficient C++ or C version first as the number of instructions required for the task may not be appreciably improved.
Great projet ! I bought your book. Do you mind asking why not using vscode for the editors which tend to be the most common used IDE nowdays and the bluepill which is a well known board used as well with arduino ?
After what happened to CoIDE back a few years ago with the lack of support, I want to use a development platform that will be supported indefinitely. As this IDE STM32CubeIDE is supported by the chipmaker. The use of VSCode does intrigue me, so I will look into it.
@@PatrickHoodDaniel Ok thanks I understand. What about the bluepill that many people use with arduino programme?
Maybe later on. Anyway It'll be really interesting with the F0.
Excellent. I'm looking forward to this series. Subscribed.
Question: I have been using VS Code with Arduino. I have also started using the PlatformIO with VS Code. Is your book and series independent of the development platform or is this series very tightly tied to Eclipse?
I got your book. Let the games begin. 👍
Hey Peter. No, this series is not dependent on a particular development platform. I am using the ST modified Eclipse environment (STM32CubeIDE) which integrates CubeMX. Fortunately, the CubeMX can be set up to create autogenerated code for any environment. the CubeMX can also create schematic, footprint, and 3D part models for any electronics CAD software, like KiCAD, Altium, Eagle, etc.
@@PatrickHoodDaniel Excellent. I'll research how others are using the PlatformIO with STM32 processors. I'll then select an appropriate STM32 and set myself up with the appropriate development hardware. I'll reach out to you to purchase your breakout boards for whatever STM32 I buy.
Thanks for the great effort in putting these videos together. They're priceless.
@@peterdavila3045 Thank you so much. I hope you enjoy the process as much as I do.
@@PatrickHoodDaniel
Hi Patrick,
I just ordered you "ARM Microcontroller Advanced Kit" from your website. But, I don't know if I'll be able to use PlatformIO with VS Code to work with it. Do you know which one board gets selected in PlatformIO to interface to your setup? If you know, it will save me some time having to dig for it.
In addition, I'll be looking to buy a Nucleo board or similar to expedite some of my prototyping and for use with PlatformIO. But then, I plan to be transferring the appropriate final design to your setup for final testing prior to PC Board. I'll use the ST development tools if I have to, in case PlatformIO does not recognize the minimal STM32 chip setup in your kit. I guess I would then transfer the C++ code from PlatformIO to the Eclipse setup for final testing with your hardware setup.
Thanks for all your effort to provide quality instructional material. Much appreciated.
❤❤❤ on 2024
Thanks!