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

  • @bzqp2
    @bzqp2 Жыл бұрын

    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

    @techwith_tj

    7 ай бұрын

    True❤

  • @nightrook5732
    @nightrook57326 жыл бұрын

    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.

  • @jamesmcfarland8975
    @jamesmcfarland89756 жыл бұрын

    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

  • @TheSolderingGuy007
    @TheSolderingGuy0076 жыл бұрын

    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.

  • @ECOENERGI1
    @ECOENERGI16 жыл бұрын

    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

  • @Braeden123698745
    @Braeden1236987456 жыл бұрын

    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!

  • @nielsjohnson-laird6589
    @nielsjohnson-laird65896 жыл бұрын

    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.

  • @LazerLord10
    @LazerLord106 жыл бұрын

    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.

  • @turtleb01
    @turtleb015 жыл бұрын

    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

  • @captdev
    @captdev6 жыл бұрын

    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!

  • @matracch
    @matracch6 жыл бұрын

    as I'm doing internship in STM I really appreciated this video :)

  • @MrEdwardhartmann
    @MrEdwardhartmann6 жыл бұрын

    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.

  • @NNNILabs
    @NNNILabs6 жыл бұрын

    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

    @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!

  • @noealves8400
    @noealves84006 жыл бұрын

    thank you for the testing. always good to have another board to look after.

  • @shutdahellup69420
    @shutdahellup694205 жыл бұрын

    lol i love your videos, they are so calming and satisfying to watch. And i always learn something new :)

  • @srtech2205
    @srtech22053 жыл бұрын

    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!!!

  • @coreyh55
    @coreyh556 жыл бұрын

    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

  • @robr4662
    @robr46626 жыл бұрын

    Another great video! Definitely will be checking these out.

  • @pjak2000
    @pjak20006 жыл бұрын

    Thanks for bringing this to our attention. I've bought 4 of these to see what they can do :) cheers!

  • @leonardocorti1919
    @leonardocorti19196 жыл бұрын

    Finally you upgraded your highlighter, good job man

  • @gshunlee5073
    @gshunlee50736 жыл бұрын

    Do you know how good your straight lines and hand writing is MAN I AM JEALOUS!!

  • @dakcn
    @dakcn6 жыл бұрын

    Fantastic video. I learned more in 10 minutes then hours of fumbling around on the internet. Thank you for sharing.

  • @mihaiadam4024
    @mihaiadam40245 жыл бұрын

    like always great explaining, great videos, GREAT SCOTT!

  • @Taran72
    @Taran725 жыл бұрын

    Thanks for the product review. It's always good to know there are alternatives that can meet more demanding PWM applications.

  • @amitpatelpatel144
    @amitpatelpatel1446 жыл бұрын

    Thanks GreatScott for uploading this kind of video.

  • @fahrurofiq6457
    @fahrurofiq645711 ай бұрын

    very nice & clear explanation, Brother Scott ...

  • @Neffers_UK
    @Neffers_UK6 жыл бұрын

    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.

  • @stewartrv
    @stewartrv6 жыл бұрын

    Great job! I was wondering when you would try this board!

  • @JayEffW
    @JayEffW6 жыл бұрын

    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!

  • @TheMrFixMe
    @TheMrFixMe5 жыл бұрын

    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

    @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

  • @dernicolas6281
    @dernicolas62816 жыл бұрын

    Great video, everything so well explained and thanks for all the links.

  • @keithofarns8738
    @keithofarns87386 жыл бұрын

    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

  • @_Higgs
    @_Higgs6 жыл бұрын

    Stm32f4 discovery boards are powerful little beasts. Used one with an Arduino in an autonomous vehicle class while at university.

  • @AntonioBdeJesus
    @AntonioBdeJesus5 жыл бұрын

    Thanks guy! Great video, plenty of golden information!

  • @joejohns3543
    @joejohns35436 жыл бұрын

    Nice video! I'll be trying one of these soon.

  • @quranforlife4665
    @quranforlife46654 жыл бұрын

    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.

  • @pgdelhiganesh
    @pgdelhiganesh6 жыл бұрын

    More informative about STM32. Thank you.

  • @pablo_costas
    @pablo_costas6 жыл бұрын

    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 !

  • @anibalvilelarj
    @anibalvilelarj5 жыл бұрын

    It is a great vídeo. Thank you. Recently I bought 3 stm32 from aliexpress. I am waiting for them.

  • @jkadofo
    @jkadofo2 жыл бұрын

    Really good video and explanations, thank you!

  • @jarontimmerman3
    @jarontimmerman36 жыл бұрын

    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

  • @MaxintRD
    @MaxintRD6 жыл бұрын

    Thank you for another inspirational video! For those interested: in video #11 Andreas Spiess compared speed/power of ATmega vs. STM32 vs. ESP.

  • @Gabi-ct3sz
    @Gabi-ct3sz6 жыл бұрын

    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

    @vizigr0u

    6 жыл бұрын

    light years measure a distance

  • @Gabi-ct3sz

    @Gabi-ct3sz

    6 жыл бұрын

    i know.... a distance from the videos :))

  • @harshsrivastav5199
    @harshsrivastav51996 жыл бұрын

    Your Videos are Really High Quality and Rich Content with Lot of educational Stuff...Thank You #GreatScott!!

  • @greatscottlab

    @greatscottlab

    6 жыл бұрын

    You're welcome :-)

  • @DerLetsPlayer333
    @DerLetsPlayer3336 жыл бұрын

    It would be awsome if you made a video about FPGA's

  • @shivashankar28

    @shivashankar28

    5 жыл бұрын

    ya FPGAs for the WIN !!!!

  • @Nortel4eva

    @Nortel4eva

    4 жыл бұрын

    Little did he know.... the comment came true.

  • @Victoratguitar
    @Victoratguitar6 жыл бұрын

    Thanks for another amazing video, always following your channel

  • @greatscottlab

    @greatscottlab

    6 жыл бұрын

    Awesome :-)

  • @jlaroche0
    @jlaroche05 жыл бұрын

    Thanks so much for this video! You're the best.

  • @ams0063
    @ams00636 жыл бұрын

    Hey I reached a bit late but again excellent video learned new things and as usual keep it up

  • @phpn99
    @phpn996 жыл бұрын

    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.

  • @ScottLahteine
    @ScottLahteine6 жыл бұрын

    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

    @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

    @Arinachipsquare

    5 ай бұрын

    STM32 minimum system is also very useful 😊

  • @Prestigeairsoft
    @Prestigeairsoft6 жыл бұрын

    We used the stm32 in a control systems lab at my university. Except we coded it in C. Now that was a challenge

  • @electrospark1765
    @electrospark17656 жыл бұрын

    Great video and love you Scott

  • @pixelflow
    @pixelflow6 жыл бұрын

    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.

  • @TheFlyingScotsmanTV
    @TheFlyingScotsmanTV6 жыл бұрын

    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!

  • @12co3dy21
    @12co3dy216 жыл бұрын

    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

    @greatscottlab

    6 жыл бұрын

    +Cody Deforest Haha I like it

  • @ildem5327
    @ildem53275 жыл бұрын

    Hi Scott, thanks for the great videos that you upload :), always interesting.

  • @fieldsofomagh
    @fieldsofomagh6 жыл бұрын

    Looking forward to some great projects in the future. There's gold in them thair hills!!

  • @vthrash7832
    @vthrash78326 жыл бұрын

    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

  • @Bianchi77
    @Bianchi773 жыл бұрын

    Thanks for the info Scott :)

  • @sayanpaul1057
    @sayanpaul10576 жыл бұрын

    Love watching your videos great...

  • @ConsultingjoeOnline
    @ConsultingjoeOnline6 жыл бұрын

    I clicked ur bell! Your great Scott.

  • @jameswood721
    @jameswood7214 жыл бұрын

    Great Video Scott thanks!

  • @rodrigo_dm
    @rodrigo_dm6 жыл бұрын

    Now we need a ESP32 guide!!! nice video Greatscott btw youre the best

  • @greatscottlab

    @greatscottlab

    6 жыл бұрын

    I did a small ESP32 guide. Here it is: kzread.info/dash/bejne/jHWlsK2aiJaygZM.html

  • @rodrigo_dm

    @rodrigo_dm

    6 жыл бұрын

    Gotta check that right now. Keep up the awesome work!

  • @John_Ridley
    @John_Ridley6 жыл бұрын

    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

    @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

  • @codebeat4192
    @codebeat41924 жыл бұрын

    Thanks to this video I realize why my first attempt with the STM32 failed.

  • @ironnoriboi
    @ironnoriboi3 жыл бұрын

    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.

  • @zuyanchang
    @zuyanchang6 жыл бұрын

    This video helpful for me so mach. I'll begin to learn STM32 Chip.

  • @Hasitier
    @Hasitier6 жыл бұрын

    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.

  • @EcuaCrudo
    @EcuaCrudo6 жыл бұрын

    OMG you drive me crazy with the high lighter pen.

  • @saurabhsharma-ts6ky
    @saurabhsharma-ts6ky4 жыл бұрын

    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.

  • @ECOENERGI1
    @ECOENERGI16 жыл бұрын

    Very informative. Thanks for sharing

  • @RyanJones-lv9dj
    @RyanJones-lv9dj6 жыл бұрын

    What’s the difference in power consumption?

  • @Hackvlog
    @Hackvlog6 жыл бұрын

    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.

  • @saadkarim6994
    @saadkarim69946 жыл бұрын

    Scoot you are the best.keep going

  • @mikakimi2558
    @mikakimi25586 жыл бұрын

    great video....more video projects using this board. !

  • @1996BRECHT
    @1996BRECHT6 жыл бұрын

    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

    @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.

  • @puits-de-science
    @puits-de-science4 жыл бұрын

    Great video !

  • @ashangstrom8362
    @ashangstrom83626 жыл бұрын

    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.

  • @waqarshakoor9265
    @waqarshakoor92656 жыл бұрын

    You are a good teacher,. Thanks

  • @nathanas64
    @nathanas645 жыл бұрын

    Outstanding! Thank you!

  • @PhilipStubbs
    @PhilipStubbs6 жыл бұрын

    I have a desk littered with Arduinos and Pis. Now I want some of these too.

  • @jbraMoVal
    @jbraMoVal6 жыл бұрын

    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

    @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

  • @waqarmehdi4394
    @waqarmehdi43945 жыл бұрын

    GeatScott is all time GREAT !!

  • @StanleySeow
    @StanleySeow6 жыл бұрын

    Great video as always, you explain the PWM part of the STM32 really clear especially on the timers and frequency.

  • @nitexozo
    @nitexozo4 жыл бұрын

    Scott, u are great !

  • @yalcintufan3693
    @yalcintufan36935 жыл бұрын

    Thank you. that was very helpfully to me. Really U great.

  • @hfe1833
    @hfe18333 жыл бұрын

    Thanks for featuring this, can you feature how to uses the Can Bus to communicate to another Arduino

  • @Tim_Small
    @Tim_Small6 жыл бұрын

    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...

  • @alterratz665
    @alterratz6656 жыл бұрын

    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

    @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

  • @ranjithg7598
    @ranjithg75986 жыл бұрын

    Thanks for your advice

  • @TheBdd4
    @TheBdd45 жыл бұрын

    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?

  • @dameck9570
    @dameck95706 жыл бұрын

    Very interssting and good Video! ;-)

  • @Speglritz
    @Speglritz6 жыл бұрын

    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

    @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?

  • @eatdrinkwineguy
    @eatdrinkwineguy6 жыл бұрын

    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.

  • @mortensentim511
    @mortensentim5116 жыл бұрын

    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.

  • @venkateshe7506
    @venkateshe75066 жыл бұрын

    Great Video.Thank You

  • @rmigofun
    @rmigofun6 жыл бұрын

    Always Nice!

  • @kennmossman8701
    @kennmossman87014 жыл бұрын

    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!

  • @ussamaqureshi5666
    @ussamaqureshi56665 жыл бұрын

    Really great work....

Келесі