Easy & Powerful Arduino Alternative? STM32 Beginner's Guide
Ғылым және технология
Upload Gerber files for review & order $2 PCBs: jlcpcb.com/quote
Support me for more videos: / greatscott
Previous video: • How does Magnetic Levi...
Facebook: / greatscottlab
Twitter: / greatscottlab
Arduino videos mentioned in the video: • Arduino Basics 101: Ha... • Arduino Basics 102: Co... • Arduino Basics 103: Li... • Electronic Basics #30:...
You can get the STM32 Development Board here: (affiliate links):
Ebay: rover.ebay.com/rover/1/711-532...
Aliexpress: s.click.aliexpress.com/e/_dXJ...
Amazon.de: amzn.to/2G0DWzq
USB to Seriell Converter:
Ebay: rover.ebay.com/rover/1/711-532...
Aliexpress: s.click.aliexpress.com/e/_dV4...
Amazon.de: amzn.to/2Dte0in
You can find more information about the board and how to use it here:
www.st.com/en/microcontrollers...
wiki.stm32duino.com/index.php?...
wiki.stm32duino.com/index.php?...
grauonline.de/wordpress/?page_...
www.stm32duino.com/
docs.leaflabs.com/static.leafl...
github.com/rogerclarkmelbourn...
Thanks to JLCPCB for sponsoring this video
Visit jlcpcb.com to get professional PCBs for low prices
In this video we will have a look at the Blue Pill development board that is based around an STM32 32-bit ARM uC. Along the way I will show you how to easily program it with the Arduino IDE and what advantages/disadvantages it offers in comparison to the traditional Arduino.
Music:
2011 Lookalike by Bartlebeats
Killing Time, Kevin MacLeod
(incompetech.com)
Пікірлер: 781
One very important thing that wasn't mentioned: You need to install drivers for your programmator/USB>TTL converter. By default there is no USB driver which would translate the serial signal and you will be getting port errors while trying to upload your code. If you don't know this you might waste hours trying to debug the wrong things and might come to a false conclusion that your STM32 is broken.
@techwith_tj
7 ай бұрын
True❤
I have been following this channel since you had about just 8 videos. No other youtuber that I know of makes videos as good as you do. Your videos are in a class of its own. I look forward to seeing more of your work.
This chip (STM32) is also used in the iconic Naze32 flight controllers for drones. It's known as an F1 board, we use the new versions of the STM, like the f405
Very happy to see the STM32 getting more attention. An additional thing to note is that most of these boards actually have 128KB memory instead of the documented 64KB. Thats a lot of space ! but your luck may vary. BTW, using an ST-Link to program the board is a lot easier than fiddling with FTDI boards and jumpers.
Great Scott!! Great video!Of all the stm32f103 videos I have viewed, you gave the most info and also using leaflabs makes it easier to continue learning about the board. Thanks for sharing
How in the heck do you ALWAYS give me the exact information I needed for my new projects in every new video you put out? Interrupts are exactly what I'm looking for!
I had been considering the Blue Pill Arduino for a while now, but you convinced me to order some from Amazon. Thanks for you time and effort in creating this video guide.
Just ordered four of these. No clue when I'll use them, but I can see how these would be great for embedded systems in the future.
I just love JLCPCB as a sponsor for your channel. It fits so well to this channel, you get that money for these videos and you don't overuse/overadvertise their services
I had no idea that the STM32 in this form existed, even though much of my work in embedded systems in the past has been centered around the cortex. I went and ordered a few of these to have some fun with - thanks for the suggestion @GreatScott!
as I'm doing internship in STM I really appreciated this video :)
Great Video. One of the Blue Pill's best benefits is that it has a WS2812 library that is timer/interrupt based. The Arduino utilizes program instruction timing to create the waveform needed, but that requires them to disable interrupts. The Blue Pill has no problem servicing external interrupts while driving the led strips.
I simply don't know how you do it, but you make videos about a subject a few days after I come to know about it! I received my STM32 board a few days back.
@justinc2633
4 ай бұрын
i have no clue how he does it but he seems to make videos on a subject only 5 years before i learn about it!
thank you for the testing. always good to have another board to look after.
lol i love your videos, they are so calming and satisfying to watch. And i always learn something new :)
Excellent Video my friend!!! Just got my hands on a couple STM32 Boards to add to my Arsenal and I was a little worried that writing sketches would be significantly different from Arduino! This video cleared that up nicely!!!
Love your videos bro! Many of your videos have helped me come up with new ideas on how to make my personal projects better :) keep up the great work :D
Another great video! Definitely will be checking these out.
Thanks for bringing this to our attention. I've bought 4 of these to see what they can do :) cheers!
Finally you upgraded your highlighter, good job man
Do you know how good your straight lines and hand writing is MAN I AM JEALOUS!!
Fantastic video. I learned more in 10 minutes then hours of fumbling around on the internet. Thank you for sharing.
like always great explaining, great videos, GREAT SCOTT!
Thanks for the product review. It's always good to know there are alternatives that can meet more demanding PWM applications.
Thanks GreatScott for uploading this kind of video.
very nice & clear explanation, Brother Scott ...
Good shout man. I'm not sure for now that anything I plan will require the better resolutions etc, but it's good to know that if I require a higher fidelity, there's a decent similarly priced option out there - without me having to go searching among all the other solutions out there. Cool vid, thanks.
Great job! I was wondering when you would try this board!
Man. When I made a project with the nucleo dev board, I had to set up my own tool chain and I wrote the entire code for communicating with the peripherals myself. Good to know this exists!
Thank you GreatScott, it was a great instructive video, I wanted to use STM32 in my projects but I haven't found a great beginner's guide like yours. Now I know exactly what I'm going to do to develop STM32 projects. Thank you.
@Gettobyte
3 жыл бұрын
This is a youtube channel on Firmware development for 8-32 bit MCU and IoT. Explanation of sensors , modules, pheriferals from datasheet Do have a look into it : kzread.info/dron/aRUL90bhP-TdCLUlla3gMg.html
Great video, everything so well explained and thanks for all the links.
Thank you for this video, I was interested in this microcontroller a while ago when I started to out grow the nano but was hesitant because of the scarce documentation and support
Stm32f4 discovery boards are powerful little beasts. Used one with an Arduino in an autonomous vehicle class while at university.
Thanks guy! Great video, plenty of golden information!
Nice video! I'll be trying one of these soon.
If you want to get a little bit complicated. One can also use ST link programmer along with STM CubeMX and Keil IDE. In that way you can get full outcomes from that ARM STM.
More informative about STM32. Thank you.
I purchased 2 of these a year ago, cool concept, but never used them with Arduino. In think that they are more useful using STM32CubeMx + eclipse + STlink. Proper IDE, proper HAL. I know that your channel is not oriented towards what im thinking, but I see it as the natural progression. You got yourself into electronics by arduino and later on you go deeper by learning what a microcontroller actually is. Discovery Boards are also a great way to get you into STM32 microcontrollers !!! cheers !
It is a great vídeo. Thank you. Recently I bought 3 stm32 from aliexpress. I am waiting for them.
Really good video and explanations, thank you!
I personally use the NodeMCU ESP-12E and i love it! it functions pretty much like a uno, and has wifi built-in. plus they cost $2.40 on aliexpress
Thank you for another inspirational video! For those interested: in video #11 Andreas Spiess compared speed/power of ATmega vs. STM32 vs. ESP.
OMG a new video after 1000 light years . Dude i m so excited when You post a new video . You make a very grate job . Keep up the work 😃
@vizigr0u
6 жыл бұрын
light years measure a distance
@Gabi-ct3sz
6 жыл бұрын
i know.... a distance from the videos :))
Your Videos are Really High Quality and Rich Content with Lot of educational Stuff...Thank You #GreatScott!!
@greatscottlab
6 жыл бұрын
You're welcome :-)
It would be awsome if you made a video about FPGA's
@shivashankar28
5 жыл бұрын
ya FPGAs for the WIN !!!!
@Nortel4eva
4 жыл бұрын
Little did he know.... the comment came true.
Thanks for another amazing video, always following your channel
@greatscottlab
6 жыл бұрын
Awesome :-)
Thanks so much for this video! You're the best.
Hey I reached a bit late but again excellent video learned new things and as usual keep it up
You gotta love the signatures from top KZreadrs: "VSauce, Michael here..."; EngineeringExplained: "Hellooo everyone, aaand welcome!". I always make sure I stay till the end of GreatScott's videos, just to hear "Stay creative, and I'll see you next time !" - funky intonation and all.
Thanks for the helpful overview! We're learning all kinds of fun things about the STM32F1xxx processors as we're working on porting Marlin Firmware to various 32-bit MCUs including this one. The lack of 3rd-party libraries definitely makes it more challenging. Nevertheless, we're making progress and have it mostly running at this point. Considering the large size of Marlin compared to most Arduino applications, I'm impressed that it has been relatively quick and straightforward to refactor most of it. After we get past the first hurdle of getting everything running as well as AVR, then we will be able to start taking advantage of the extra timers and other capabilities offered by these more powerful platforms.
@lulebe7210
Жыл бұрын
If you're one of those responsible for making Marlin 2.0 available for the ender3v2, thanks so much! It's a great firmware for those who want to customize lots of things but not attach a raspi to the printer like with Klipper etc. The stm32 boards are amazingly cheap as well and are really fun to use for all kinds of projects.
@Arinachipsquare
5 ай бұрын
STM32 minimum system is also very useful 😊
We used the stm32 in a control systems lab at my university. Except we coded it in C. Now that was a challenge
Great video and love you Scott
The magic of BOOT0 pin moved to '1' is that there is a serial bootloader installed on the chip by default at that location. For those with usb ST-LINK programmers, you can mostly ignore that OR use st-link to replace the bootloader with whatever you wish.
exellent video. as a producer of videos too - I could really see the amount of work you've put into that - be interesting to know how long the shooting/editing took - my guess is 5-10 hours. probably more towards 10 (note: not effort of finding code, experimenting, getting it all working - that obviously was much longer!). keep em coming!
Just so you know, I have a playlist of videos I have been compiling for some time based around electronics and you represent 95% of my list
@greatscottlab
6 жыл бұрын
+Cody Deforest Haha I like it
Hi Scott, thanks for the great videos that you upload :), always interesting.
Looking forward to some great projects in the future. There's gold in them thair hills!!
Really useful! i was looking for a faster board to try a "current chopper" like the one you made in the brushless edc video, but measuring the current with a shunt resistor
Thanks for the info Scott :)
Love watching your videos great...
I clicked ur bell! Your great Scott.
Great Video Scott thanks!
Now we need a ESP32 guide!!! nice video Greatscott btw youre the best
@greatscottlab
6 жыл бұрын
I did a small ESP32 guide. Here it is: kzread.info/dash/bejne/jHWlsK2aiJaygZM.html
@rodrigo_dm
6 жыл бұрын
Gotta check that right now. Keep up the awesome work!
Thank you, I bought one of these on an eBay buying spree a year or two ago and never got around to messing with it. Sounds like I should consider using it instead of the Nano as my default device in projects. Have to see how it does at low power though.
@joeybushagour2612
6 жыл бұрын
John Ridley it actually performs better than Arduinos in low power situations thanks to the cortex m3 core. In fact it can make it to a couple microamps in full-on sleep mode
Thanks to this video I realize why my first attempt with the STM32 failed.
Set your timer's ARR to 7199 instead of 7200 for an interrupt per second. Its a small difference but can make a difference in the long run.
This video helpful for me so mach. I'll begin to learn STM32 Chip.
Great video. I did not know about this stm32 and that it can be programmed with the for me very familiar Arduino IDE. Ordered a few of them.
OMG you drive me crazy with the high lighter pen.
Man you have in depth knowledge and great patience to make that video's 👍 I am 0 Please let me where I can start learning.
Very informative. Thanks for sharing
What’s the difference in power consumption?
I like those STM32 boards. They are very cheap, powerful and overall they are like Arduino Nano on steroids. In my opinion there are some things that still make me get and use Nanos instead of those STM32 boards in most cases. For example Nano's external USB-to-UART -converter is a pro and a con. Can't make HID devices with it, but it allows having serial port present on computer side, even during the reset (of the microcontroller). Also the possible compatibility issues with libraries can be annoying. Anyway, great comparison and video.
Scoot you are the best.keep going
great video....more video projects using this board. !
Very interesting! I was unaware of the arduino IDE compatibility! Since STmicro took over Atollic, TrueStudio PRO is now free to use with STM32 MCU's! This IDE has very powerfull debugging capibilities and also very easy to install in Ubuntu! Might be interesting to take a look at that!
@pepe6666
5 жыл бұрын
yeah mate i got it installed. im still figuring it out. it looks like it has my wee blue pill board available. but im kinda running in bareback and seeing what kind of crazy shit i can get away with. still somewhat lost.
Great video !
Nice comparison of the general feature. What's missing IMO is a comparison of power consumption, for example if one wanted to run those boards on batteries. Granted, as the STM32 will get a job done faster due to the higher clock speed it's not an easy comparison, but a base line of maybe one of your sketches would be nice.
You are a good teacher,. Thanks
Outstanding! Thank you!
I have a desk littered with Arduinos and Pis. Now I want some of these too.
I'm about to finish my first Arduino class and even though I find this interesting, the terms used in here are new to me. I really learning from people's comments!!!
@jbraMoVal
6 жыл бұрын
Would this micro controller be suitable for beginners? I am looking for inexpensive Arduino arlternatives for different projects I'm planning on doing based on GreatScott projects
GeatScott is all time GREAT !!
Great video as always, you explain the PWM part of the STM32 really clear especially on the timers and frequency.
Scott, u are great !
Thank you. that was very helpfully to me. Really U great.
Thanks for featuring this, can you feature how to uses the Can Bus to communicate to another Arduino
You can also program these MCUs with the Rust programming language as well as C. It's great to be able to use a high level language without sacrificing performance or code size... You can even mix both languages in the same project...
I switched from Arduino to STM32 back 4 Years ago and never looked back. Especially the Eclipse/GDB/Stlink-Combination is unbeatable and by not using the Arduino Library you also get a massive performance boost.
@pepe6666
5 жыл бұрын
have you been able to use any DSP libraries? i'm attracted to the CMSIS DSP libraries but the whole CMSIS or HAL thing confuses the crap out of me
Thanks for your advice
Thank you! Great video. I am a analog /digital engineer but have not used any of tyhe ne Arduin type stuff. This video excited me so much I am going to buy the parts you used in your demonstration right now, 2-12-19. What monitor did you use to see the potentiometer values?
Very interssting and good Video! ;-)
The STM32 is my favourite MCU to date (I however program it without the Arduino IDE). I've totally fallen in love with the ARM architecture!
@tahasinmohammadtahasin9300
Жыл бұрын
Bro I'm confused right now I wanna buy this bourd but the not enough library thing is bothering me right now and im not a very good coder so can you tell me how can I get this to work? In any kind of project?
Another informative video! Thank you! I have just started getting interested in using micro controllers like Arduino recently but have not yet taken the plunge. Do you think going straight to this is a better option given price and availability? Or do you think Arduino is better to learn and practice on then when I am interested in more powerful projects I move to this? Or do you think it may be best for a beginner to start with Arduino Uno? I have read that the Nano and smaller boards can just be a bit fiddlier to work with.
I like the Node MCU which is based on an ESP8266 which is a similar price and you can program in the Arduino IDE over the USB port. I also like the Nucleo boards for anything that has to come from a reputable source, you get something seriously powerful and it's just £10-12 from Farnell. That doesn't support Arduino and you have to use mBed instead, but it's very similar with most libraries I use being supported.
Great Video.Thank You
Always Nice!
Perfect timing I'm looking at STM uC for two projects. Danke schon! Aber the 'blue pill' some-one might get the wrong idea if I said I was getting some blue pills!
Really great work....