#345

Поділитися
Вставка
  • Опубліковано 18 лип 2020
  • Many commenters tell me that the STM32 MCUs are great. The last time they were used on this channel was in video #11 on Jul 27, 2015. High time for a closer look.
    I am a proud Patreon of GreatScott!, Electroboom, Electronoobs, EEVblog, and others.
    Links:
    Bluepill: s.click.aliexpress.com/e/_dWH... or or bit.ly/2WugLYj or amzn.to/30cVrHC
    Maple Mini: s.click.aliexpress.com/e/_dXg...
    ESP32 Mini: s.click.aliexpress.com/e/_dYE... or amzn.to/3jePfrh
    STLink V2: s.click.aliexpress.com/e/_d67... or amzn.to/2ZCe6xN
    Blackpill: s.click.aliexpress.com/e/_dZm... or bit.ly/3ji15kt
    Preferences link for STM32 installation: dan.drown.org/stm32duino/packa...
    STM flasher: www.st.com/content/st_com/en/...
    Bootloaders: github.com/rogerclarkmelbourn...
    install_drivers.bat: github.com/rogerclarkmelbourn...
    STM32 discord channel: / discord
    New STM32 version: • How to Install the STM...
    Lot's of good stuff: theta.eu.org/2018/12/20/stm32...
    STM32 forum: www.stm32duino.com/viewforum....
    STM32 Discord channel: / discord
    List of STM32 libraries: www.arduinolibraries.info/arc...
    Libraries wiki: github.com/stm32duino/wiki/wi...
    STM32 boards: stm32-base.org/boards/
    The links above usually are affiliate links which support the channel (no additional cost for you).
    Supporting Material and Blog Page: www.sensorsiot.org
    Github: www.github.com/sensorsiot
    My Patreon Page: / andreasspiess
    Discord: / discord
    If you want to support the channel, please use the links below to start your shopping. No additional charges for you, but I get a commission (of your purchases the next 24 hours) to buy new stuff for the channel
    My Amazon.com shop: www.amazon.com/shop/andreassp...
    For Banggood bit.ly/2jAQEf4
    For AliExpress: bit.ly/2B0yTLL
    For Amazon.de: amzn.to/2r0ZCYI
    For Amazon UK: amzn.to/2mxBaJf
    For ebay.com: ebay.to/2DuYXBp
    profile.php?...
    / spiessa
    www.instructables.com/member/...
    Please do not try to Email me or invite me on LinkedIn. These communication channels are reserved for my primary job
    As an Amazon Associate, I earn from qualifying purchases
    #no-midroll-ads
  • Наука та технологія

КОМЕНТАРІ • 972

  • @hygri
    @hygri 3 роки тому +93

    The guy with the Swiss Accent - Smashing the Arduino learning curve into a pancake since Video #1.

    • @AndreasSpiess
      @AndreasSpiess  3 роки тому +9

      Thank you!

    • @Bravo_L
      @Bravo_L Рік тому +1

      The guy with the Swiss accent knows alot of cool things for sure 👍

  • @beauregardslim1914
    @beauregardslim1914 3 роки тому +3

    You always seem to know exactly what I'm wondering about. Thanks so much for the comprehensive comparison.

  • @jessiegashler427
    @jessiegashler427 3 роки тому +1

    A genuinely clear and concise comparison of the two. I'll be subscribing to your channel based solely on this video. Fantastic work.

  • @RTmadnesstoo
    @RTmadnesstoo 3 роки тому +5

    I always wait a while to watch your videos so the comment section can fill up. Sometimes the comments are almost as good as the video. Almost. Thanks for your efforts.

    • @AndreasSpiess
      @AndreasSpiess  3 роки тому +1

      You are right. I am proud of my commenters. They know much more than me alone.

    • @RTmadnesstoo
      @RTmadnesstoo 3 роки тому

      @@AndreasSpiess Well, nobody has taught me more than you. Thanks, again.

  • @iforce2d
    @iforce2d 3 роки тому +55

    Depending on what you're making, the larger memory of the ESP32 can be a HUUUGE win, probably should have been given a mention in your summary

    • @AndreasSpiess
      @AndreasSpiess  3 роки тому +16

      Thanks for the addition. Coming from the ESPs I did not think too much about memory. Maybe I will miss it when I do more with STM32...
      BTW: Did not see a Video since a Long time on your channel. Always love them!

    • @Stopinvadingmyhardware
      @Stopinvadingmyhardware 8 місяців тому

      @@AndreasSpiessstop the pill shit. These people don’t even care what they did to our lives

    • @bananaman2495
      @bananaman2495 8 місяців тому +2

      @@Stopinvadingmyhardware what?

    • @Stopinvadingmyhardware
      @Stopinvadingmyhardware 8 місяців тому

      @@bananaman2495 Nobody asked you a damn thing

    • @mattmurphy7030
      @mattmurphy7030 6 місяців тому

      @@Stopinvadingmyhardwaresomeone needs their pills…

  • @NotMarkKnopfler
    @NotMarkKnopfler 3 роки тому +6

    Great video. What I would really like to see is an STM32 video showing how the low power modes work. Particularly wake-on-interrupt. I would really like to see that. Thanks again, Andreas.

    • @AndreasSpiess
      @AndreasSpiess  3 роки тому +5

      Power consuption is stuff for a whole video...

    • @ch94086
      @ch94086 3 роки тому +4

      ST has some nice dev boards with the STM32L low power series. These dev boards (discovery) have a separate processor to measure chip power down to nanoamps, and there are tutorials demonstrating all the power modes. After wake, it can read the sleep power and show on the epaper display.

    • @RRits57
      @RRits57 3 роки тому +1

      Would love to see this comparison as well

  • @Brandon-rc9vp
    @Brandon-rc9vp 2 роки тому +2

    Thank you for freely sharing such great content. It is intellectually interesting, quirkily entertaining, and best of all technically informative for us trying to get back to our roots in electronics and learn how to operate todays newfangled gadgets :) If I had to guess I would say you are one of those rare individuals that know what an exciter is and at the same time can hold your own at any maker fair today. Good on you sir!

    • @AndreasSpiess
      @AndreasSpiess  2 роки тому

      Thank you for your kind words! And enjoy your hobby (again). Quite a few of my viewers report the same. We live in a beautiful (electronics) time.

  • @alfredopreciadomolina1576
    @alfredopreciadomolina1576 3 роки тому

    wow, just what I was looking for, you can't ask for a better explanation, as always, master.

  • @derecwilsom4546
    @derecwilsom4546 3 роки тому +5

    that little hand makes me so happy, i giggle every time I see it!

  • @anvz6
    @anvz6 3 роки тому +59

    Atvantages of stm32: it can act as USB keyboard, serial, even as USB storage... All at the same time if needed.

    • @AndreasSpiess
      @AndreasSpiess  3 роки тому +11

      True. I did not mention this fact explicitly. I only used this feature for upload.

    • @ami6packs
      @ami6packs 3 роки тому +1

      @@cambouiscom it supports hid.

    • @ami6packs
      @ami6packs 3 роки тому +9

      And DMA too. It makes coding a lot easier in case of data sampling e.g. ADC Samp.

    • @arduinoguru7233
      @arduinoguru7233 3 роки тому

      @@cambouiscom HID works on it .

    • @crosswick
      @crosswick 3 роки тому

      Also, the F105 and F107 have USB-OTG functionality (as do some more expensive ones)

  • @TheAoab50
    @TheAoab50 2 роки тому

    Many thanks again for the great efforts to give us comparison results ready and free.

  • @theboots39
    @theboots39 3 роки тому

    Thank you for this video. I was trying to answer this exact question for the last week. I've been using esp32, but I rarely have any need for internet connectivity. At the moment, I don't think it's worth changing over, but definitely a consideration for future projects. Perfect timing!

    • @AndreasSpiess
      @AndreasSpiess  3 роки тому +1

      Without Wi-Fi the STM32 boards are a good selection, I think

  • @crckdns
    @crckdns 3 роки тому +14

    I personally am using the blackpill for smaller projects. Great video as always! Please more STM32 content 😻👍 (we use them also in our flight controllers ^^)

    • @AndreasSpiess
      @AndreasSpiess  3 роки тому +5

      I think I will have a look at the interest and decide about the future plans.

    • @giorgioboiero
      @giorgioboiero 3 роки тому +3

      Some information about the Black Pill STM32F4x1 from the chinese designer
      github.com/WeActTC/MiniF4-STM32F4x1
      It's now supported by STM32Duino but it's not yet integrated the USB Bootloader of WeAct

    • @happysingh-gk2dj
      @happysingh-gk2dj Рік тому

      Hiii brother can u send your email.i want to learn black pill

  • @drbra1n
    @drbra1n 3 роки тому +7

    STM32F4xx has FPU, USB OTG working in both, device and host mode (some MCUs have 2 ports), support for external FLASH/SRAM/LCD screen, internal RTC clock, support for SD cards. The debugging capabilities are also awesome - breakpoints, single stepping, memory & register view, SWO tracing. AFAIK, ESP32 can be debugged too :)

    • @AndreasSpiess
      @AndreasSpiess  3 роки тому +2

      You are right. I made a video about debugging the ESP32. And I should get some F4 boards...

  • @newburypi
    @newburypi 3 роки тому

    Yet again, both useful and interesting. Thank you.

  • @PhG1961
    @PhG1961 3 роки тому

    Thnxs for this very well explained overview. A nice wrap up !

    • @AndreasSpiess
      @AndreasSpiess  3 роки тому

      Glad you enjoyed it!

    • @PhG1961
      @PhG1961 3 роки тому

      @@AndreasSpiess I always do ;-)

  • @TimSavage-drummer
    @TimSavage-drummer 3 роки тому +11

    The one big advantage I found for the STM32 is the ease at which I can set up a hardware debugger with the STM32Cube IDE. The STM32 Discovery boards are great for prototyping and cheap, I only use ESP boards now for wifi connectivity. Have a black pill driving my DIY modular synth as a MIDI to CV converter, the hardware debugger came in really handy for developing that.

    • @AndreasSpiess
      @AndreasSpiess  3 роки тому +2

      You are right: A debugger is a good thing. I probably will try to use it, but with platformIO.

  • @rcfreakamit
    @rcfreakamit 3 роки тому +4

    Great video!
    For me though, the main motivation for going with stm32 over arduino or esp32 is the much more capable (and more difficult to learn) STM CubeMX config suite with the STM32 eclipse IDE, with St-link debugger, rather than the difference in sheer hardware capabilities.

    • @AndreasSpiess
      @AndreasSpiess  3 роки тому +1

      Good point!

    • @evabaroni6693
      @evabaroni6693 3 роки тому

      System workbench for STM32 (SW4STM32) by AC6 tools with cubeMX is my go to for these CPUs. Sorry but can't call Arduino an IDE after using SW4STM32.

    • @RustedCroaker
      @RustedCroaker 3 роки тому

      @@evabaroni6693 Did you tried Keil by any chance?

  • @shabbarvejlani
    @shabbarvejlani 3 роки тому +2

    Thank you Sir for your analysis ! Appreciate!

  • @hebersolisbravo4502
    @hebersolisbravo4502 3 роки тому

    Excelente análisis, me ayudo mucho en la selección para el proyecto. Muy bueno

  • @mr.meticulous1241
    @mr.meticulous1241 3 роки тому +3

    Exactly the video I was waiting for! Thanks Andreas :)

  • @mrrboo
    @mrrboo 3 роки тому +4

    Thx for the interesting video. I think it's also a matter of "makers" VS "pro", in a pro embedded development environment STM32 is the king (with ST official boards, mbed dev environment for example more than Arduino) and ESP + Arduino rules the makers market.
    In my company we use a lot of STM32 dev boards, you can find official STM32 "Arduino nano format" boards with Cortex-M4F for 10€ like the NUCLEO-L432KC

    • @AndreasSpiess
      @AndreasSpiess  3 роки тому

      You are right about the different environments. For professional usage, you usually go with the supplier tools. On this channel, most users use Arduino IDE because they do not use STM chips as a first choice.

  • @phymacillustrator
    @phymacillustrator 5 місяців тому

    Thank you so much, It helped me to understand options to program STM32. Thanks again.

  • @mxmxjrjr
    @mxmxjrjr 3 роки тому +1

    The most kind heart to make this video

    • @AndreasSpiess
      @AndreasSpiess  3 роки тому

      Unfortunately I do not understand :-(

    • @mxmxjrjr
      @mxmxjrjr 3 роки тому +1

      @@AndreasSpiess someone like you who have resources showing knowledge like this on internet makes a lot of different for people who want to learn and only have youtube. If some day i want to build something and need to compare what you did, i do not need to try and error by buying each of those. Now i know what to choose for my project all thanks to your video. Great job you have done.

  • @bobblaine1437
    @bobblaine1437 3 роки тому +4

    Thank you for the very useful video. I've been curious where the STM32 fit in the micro controller pecking order, and when to use it.

    • @AndreasSpiess
      @AndreasSpiess  3 роки тому +1

      There are many more STM chips. I assume I will cover a few more to get an overview.

  • @wingedrhino_
    @wingedrhino_ 3 роки тому +32

    This is the first thing I'm seeing after waking up late on a Sunday, having spent the whole night dreaming about pitch detection algorithms. Wish I was a little more normal 😂

    • @AndreasSpiess
      @AndreasSpiess  3 роки тому +10

      Nice you remember what you dreamed of. I never remember :-(

    • @BenMitro
      @BenMitro 3 роки тому +3

      I think the correct word is fretting rather than dreaming.

    • @hamjudo
      @hamjudo 3 роки тому +1

      An FFT is a common way to get a list of approximate frequencies out of a microphone or other noisy analog source.
      I've never needed very precise frequencies, so I haven't any experience with those algorithms.

    • @stephenborntrager6542
      @stephenborntrager6542 3 роки тому

      FFT is probably better, but one simple method that I know if is to set a window of a several thousand samples (maybe 4x the max frequency you care about), measure the time between peaks, and then average the periods. 1 / period (seconds) = frequency (Hz). From there, tables can be used to lookup "notes" ie A4 = 440Hz.
      I don't know how well it works, since it was a very crude method and I never actually used it. Probably won't work with lots of harmonic content. Might need to weigh the sample periods by the amplitude or something... or add some sort of hysteresis to keep the output stable...
      Great. Now I'M stuck thinking about them!

    • @williamdunn5081
      @williamdunn5081 3 роки тому

      Normal is totally overrated.

  • @VideoDetection
    @VideoDetection 3 роки тому

    Another interesting and informative video, Andreas, thank you!
    Watching this video and the Arduino IDE being used made me realise my move to test micropython on the ESP32 was worthwhile.
    Maybe you can have another look at the ESP family being programmed using micropython and the Thonny IDE.
    Micropython have a generic board version for ESPs and Thonny makes it all a easy and effective tool. Love to see a future video from you on using this IDE and language!

    • @AndreasSpiess
      @AndreasSpiess  3 роки тому

      I wait for the S2 to do the next MicroPython Video.

  • @yunshi7786
    @yunshi7786 2 роки тому

    Thank you very much for such a detailed and clear comparison. Since they are all pretty cheap, I’ll buy all of them to have a try and compare the outputs in my projects.

  • @EdFrench_uk
    @EdFrench_uk 3 роки тому +14

    I like both, I haven't looked much at power consumption on the stm32- that might be something where it wins a bit? I don't think anyone has done a video on stm32 sleep modes and power consumption with Arduino?

    • @AndreasSpiess
      @AndreasSpiess  3 роки тому +12

      Power consumption is also on my list...

    • @edwitte4752
      @edwitte4752 3 роки тому +4

      I believe Stm32 supports DMA for peripherals (ADC/ I2C etc). This can free up the processor for other tasks... Maybe add this one to the 'to do' list?

    • @damny0utoobe
      @damny0utoobe 3 роки тому +5

      @@AndreasSpiess STM32 also has the L0 lineup which is the ultra low power line. This one can run on a small battery for years. It's much more energy efficient than ESP32

  • @EdFrench_uk
    @EdFrench_uk 3 роки тому +23

    Most of the "Blue Pills" have an incorrect resistor, which means the USB interface wont be recognised on a lot of machines (I think it depends on your PC's USB driver chip). I think there is also some software problem as I haven't been able to get it to work consistently even when I fix the bad resistor.

    • @giorgioboiero
      @giorgioboiero 3 роки тому +8

      The problem with the USB is sometime related to the use of clones of the STM32 chip , not only the wrong USB resistor
      www.cnx-software.com/2020/03/22/how-to-detect-stm32-fakes/
      List of STM32 compatible chips
      www.richis-lab.de/STM32.htm
      A good work around is to upload the firmware using the ST-LINK and then upload an USB HID bootloader
      github.com/Serasidis/STM32_HID_Bootloader

    • @AndreasSpiess
      @AndreasSpiess  3 роки тому +1

      Thank you for the hint. I saw a remark about that resistor, but have no blue pill.

    • @cbm80amiga
      @cbm80amiga 3 роки тому +4

      @@AndreasSpiess In most cases "wrong" resistor doesn't cause any issues. At least I tested it on 9 computers I have at home - USB works as expected.

    • @marcovalenti2621
      @marcovalenti2621 3 роки тому

      @@giorgioboiero where may i find a "healthy" Blue Pill ( For Healthy i mean that it doesn't have problem with HID)? (sorry for my bad english)

    • @TomaszStachewicz
      @TomaszStachewicz 3 роки тому +3

      @@marcovalenti2621 most new sold blue pills now have corrected usb pullup resistor. check out the photo of the boards underside, it's resistor r10. it should read 152 (1.5k ohm) and definitely not 103 (10k ohm)

  • @deangreenhough3479
    @deangreenhough3479 3 роки тому

    Good work Andreas 😁🏴󠁧󠁢󠁥󠁮󠁧󠁿

  • @mieszkogulinski168
    @mieszkogulinski168 3 роки тому

    Thank you for explaining - not "which is better", but when to use one, and when to use another :)

    • @AndreasSpiess
      @AndreasSpiess  3 роки тому

      Titles on UA-cam have their own rules ;-)

  • @victorlacerda9659
    @victorlacerda9659 3 роки тому +6

    The blackpill stm32f411 or stm32f410 both was floating point hardware and a faster clock speed than the bluepill.
    This make thinking if stm32f4 could be a better choice for floating point calculation.

    • @AndreasSpiess
      @AndreasSpiess  3 роки тому +3

      True! The Blackpills are in the mail...

    • @m0rph171
      @m0rph171 3 роки тому

      @@AndreasSpiess Would be really interesting to see the calculation result for the f4 blackpill!

  • @RickB3n
    @RickB3n 3 роки тому +26

    I have a suggestion: Try also the ST Nucleo boards, i think it's a good alternative to "blue pill" or other.

    • @AndreasSpiess
      @AndreasSpiess  3 роки тому +6

      I thought they were bigger and more expensive?

    • @RickB3n
      @RickB3n 3 роки тому +3

      @@AndreasSpiess I understand, but an original Arduino UNO is more expensive. The ST Nucleo costs between 10 and 40$ For a hobbist it's possible. ST if you read this give me more boards 😂

    • @anvz6
      @anvz6 3 роки тому +2

      @@RickB3n You can buy an UNO or a mini for 3€

    • @RickB3n
      @RickB3n 3 роки тому

      @@anvz6 It's true, but a chinese copy. They often also use a low quality clone for the atmega 328p.

    • @SamupamIn
      @SamupamIn 3 роки тому

      @@AndreasSpiess you can buy stmf407vgt etc boards with more I/0 then mega or due at 10 USD from AliExpress.

  • @BluCasper
    @BluCasper 3 роки тому

    Thank you for such an amazing content. It was really helpful. Stay safe and have a great day. Best wishes for you.

    • @AndreasSpiess
      @AndreasSpiess  3 роки тому +1

      You are welcome! I am vaccinated twice already:-)

    • @BluCasper
      @BluCasper 3 роки тому

      @@AndreasSpiess that's great. waiting for your upcoming videos. if possible please make a video how a newbie can program esp with micropython and use AI somehow to make something intelligent.

    • @AndreasSpiess
      @AndreasSpiess  3 роки тому +1

      This channel is more for the advanced (or at least ambitious) Maker. So you probably will not find stuff for beginners...

    • @BluCasper
      @BluCasper 3 роки тому

      ​@@AndreasSpiess there are tons of channels for beginners. I like your contents sepcially the comparing. But i think you should make another video comparing different ESPs and different STM MCUs. How good are other ARM products from atmel, TI and other brands. It'd be really helpful. Thanks in advance

  • @korishan
    @korishan 3 роки тому

    Very nice comparison Andreas. I had wondered what the biggest difference (other than BT/WiFi/cost) between the two would be. Thanks for the info! 😎

  • @sharana.p5921
    @sharana.p5921 3 роки тому +3

    My favourite is STM32. Please make video to program esp8266 using embedded c or bare metal programming. Thank you.

    • @AndreasSpiess
      @AndreasSpiess  3 роки тому

      I will stick to the Arduino IDE :-( But I did a video about assembler programming of the ESP32

    • @sharana.p5921
      @sharana.p5921 3 роки тому

      @@AndreasSpiess Oh ok thank you Mr. Andreas and another one is there, what about making a RF circuit like 435 MHz 4 channel or 8 channel circuit from scratch? Would you make it si, please.

  • @moudi0082
    @moudi0082 3 роки тому +6

    stm32 f4 and f7 series have built in FPU for floating point operations

  • @GlennHamblin
    @GlennHamblin 3 роки тому

    Thanks for the testing and advise. Very helpful.👍

  • @christianlennertz5780
    @christianlennertz5780 3 роки тому

    Like always great video. I also like the „Black Pill“. The Stm32F411 is very good in my opinion. What I really like of it, is the integrated USB ports.

    • @AndreasSpiess
      @AndreasSpiess  3 роки тому +1

      As I said, they are in the mail and for sure I will play with them...

  • @curlybrace6694
    @curlybrace6694 3 роки тому +10

    bluepill has software floating point implementation. esp32 has hardware. stm32f4 also has hardware floating point. xtensa is a very slow core, compared to cortex. even having much faster clock, it wins only a little bit in speed.

    • @AndreasSpiess
      @AndreasSpiess  3 роки тому +3

      You are right with the speed difference: It was very small for port I/O and integer. Maybe I will do some tests with the F4 when I get it.

    • @thegittubaba
      @thegittubaba 3 роки тому +1

      @@AndreasSpiess can you run ESP32 at slower clock? It'd be interesting to see the comparison when both are running at same clock frequency.

    • @ragesmirk
      @ragesmirk 3 роки тому

      @@AndreasSpiess Use these boards: www.aliexpress.com/item/4000103610226.html I have them they are very high quality

    • @Cracked1ce
      @Cracked1ce 3 роки тому +2

      @@AndreasSpiess The F4 black pill is a beast. i am doing floating point calculations for engine management and the speed difference is astronomical. it takes nearly 700 clock cycles for the F1 for a floating point multiply or divide whereas it is instantaneous on the F4.

    • @happysingh-gk2dj
      @happysingh-gk2dj Рік тому

      @@Cracked1ce hii brother can you send your contact or email I facing problem in blue pills ..thankyou

  • @cwbh10
    @cwbh10 3 роки тому +4

    Lol I just replaced my "Blue Pill" with an ESP32 on a project I'm working on, since the community support for the ESP32 is just better

    • @AndreasSpiess
      @AndreasSpiess  3 роки тому +1

      I think you are right with the community.

    • @cwbh10
      @cwbh10 3 роки тому

      @@AndreasSpiess In my specific case I was trying to use the NRF24 modules, and it worked flawlessly with the RF24 library on the ESP32 and not the STM32. I figured I could get it working, but for the project the time is important and if it just works, I'm going to go with that device (mostly)

    • @danielegger6460
      @danielegger6460 3 роки тому +2

      Outside of Arduino the support and community for Cortex-M MCUs is way beyond the support for ESP32 and AVR MCUs combined. I'm actually slightly disappointed that Andreas Spiess fell back to using the lame Arduino instead of going for platformIO which would have allowed for a much better comparison.

    • @Vicolaships
      @Vicolaships 3 роки тому

      Give libopencm3 a chance, it's a great hardware library with a nice community and documentation (libopencm3.org/docs/latest/stm32f1/html/modules.html ). STM32 for Arduino is a little bit dead and the code quality is poor.
      libopencm3 for Blue-Pill examples here: (C or C++, project configured with CMake): gitlab.com/VictorLamoine/libopencm3_bluepill_examples.
      You can pick any IDE you like that supports CMake, I like KDevelop.
      "Beginning STM32: Developing with FreeRTOS, libopencm3 and GCC" (Warren Gay) book is a great way to get started with practical examples and explanations.
      If you want to do some real-time (detailed in Warren Gay book) check-out: gitlab.com/VictorLamoine/libopencm3_freertos_bluepill_examples
      Feel free to reach me for help!

    • @AndreasSpiess
      @AndreasSpiess  3 роки тому

      @Daniel: Can you contact me to discuss the integration into platformIO?

  • @avejst
    @avejst 3 роки тому

    Great update video as always 👍
    Thanks for sharing 👍😀

  • @a1nelson
    @a1nelson 3 роки тому

    Thanks for all the good work you do channel. I’ve learned a lot from it and look forward to new videos. This one, unfortunately, was the rare exception when I cannot really agree with your conclusions. The main issue is that the STM32 model chosen, while being very cheap and popular, isn’t really in the same class as the ESP32. In STM32F4 or STM32L4 would have been more appropriate, since they have similar clock speeds and feature an FPU (among other things). The other thing is that, in the absence of at least two excellent voltage references, pretty much all ADCs need to be calibrated. Their output magnitude and slope are relative, not absolute - despite what the datasheets imply. As an aside, neither board has very much in the way of decoupling, so noise is going to be a significant factor too. STM recommends a ferrite bead or independent decoupling for the VDDA input, but the blue pill and other low-cost boards do not have those parts. Based on the form factor, I doubt the ESP32 boards have them either. If the data points for the comparison were not collected under the same conditions (at about the same time), that adds a lot of uncertainty. Just things to consider. Thanks again for all your hard work.

    • @AndreasSpiess
      @AndreasSpiess  3 роки тому +1

      You are right with the FPU. I will look at it in a future video. And about noise reduction on boards: The ADC of the Maple Mini was better than the ESP32 in the configuration bought by my viewers. And this is what counts on this channel. I am sure all boards could be improved if buyers would see the differences pay a little more. But platforms like AliExpress support a race to the bottom price. So, if you want a decent board, you have to make your own. Which is also not too complicated anymore.

    • @a1nelson
      @a1nelson 3 роки тому

      Andreas Spiess Thanks for your quick and thoughtful reply. What you said makes very good sense. It caused me to check my assumptions. The first is that, as one moves beyond just flashing an LED, the cost of the MCU board becomes a smaller and smaller part of the total system cost. Using a board with better ADCs or more IO pins may be easily justified by eliminating the need for IO expanders, external ADCs, more complicated software, etc. But, importantly, not every project requires that. You mentioned checking battery voltage, which is a good example of a situation when high accuracy isn’t critical. My second assumption was related to your final comment. Although I have a handful of STM dev boards, Teensys, etc., for non-trivial projects, I often just roll a new board. And, although it’s pretty easy to do so, it’s definitely not for everyone. So, after a bit of reflection, I do appreciate your position much better. Thanks again. Be well.

    • @Ottmar555
      @Ottmar555 3 роки тому

      @@a1nelson Do you have the reference about using ferrite in the VDDA input? I'm having a little more noise than I'd like for my application in my ADC, and a moving average is not a good option, since I need fast code. Do you have any suggestions?

  • @tigercat3864
    @tigercat3864 3 роки тому +5

    I abandoned the Blue Pill because there's no reliable supply of legit or even consistent boards. Too many of them are fakes or bad clones that don't work reliably. It's ESP8266/ESP32 & Teensy FTW.

    • @AndreasSpiess
      @AndreasSpiess  3 роки тому

      Thank you for sharing your experience!

  • @WacKEDmaN
    @WacKEDmaN 3 роки тому +6

    apples vs oranges... ESP32 has wifi and bluetooth... STM32 does not...it all depends on the use and features needed..

    • @AndreasSpiess
      @AndreasSpiess  3 роки тому +6

      I thought I covered these things in the video...

    • @WacKEDmaN
      @WacKEDmaN 3 роки тому +1

      @@AndreasSpiess sorry mate..i deleted that bit after i seen you covered it! :P

    • @zoli11
      @zoli11 3 роки тому

      Not quite. I have been doing stuff with ESP32, but this comparison showed me that even if I don't need wifi, in most cases I don't miss out if I just keep using those, and save myself the trouble of getting familiar with a different setup.

  • @ivolol
    @ivolol 3 роки тому

    It's great of you to mention the makers of the software/firmware/libraries that enable all the tinkering!

    • @AndreasSpiess
      @AndreasSpiess  3 роки тому

      We all stand on their shoulders and we should know that!

  • @felixruiztorrez5192
    @felixruiztorrez5192 3 роки тому

    Really good videos! Thank you!

  • @silverjohnson3163
    @silverjohnson3163 3 роки тому

    wifi is important to my projects, it's one of the very cool things about the 8266 and esp32 boards. Thanks for the review

  • @lohikarhu734
    @lohikarhu734 3 роки тому +2

    I missed a comparison of power consumption when running benchmarks...
    Also, just a note that the differences in non-floating-point are quite a bit smaller than the clock speed difference.
    Thanks very much for this work, i especially like the walk-through on software setup. Alles gute, MfG'n

    • @AndreasSpiess
      @AndreasSpiess  3 роки тому +1

      I was also astonished about the small difference... This was an introduction and, depending on the response, I plan to do something with power consumption in the future.

    • @lohikarhu734
      @lohikarhu734 3 роки тому

      @@AndreasSpiess very good comparison, and i know that you are guided by comments, so it's clearly a fine response to those... as you probably note, i'm a bit of a 'picky' one on some things ;-) i kind of wonder at these microsecond(s) interrupt times, it would, perhaps, be interesting to see what code the compiler generates for IRQ handling, how much is stacked on entry. With 80 MHz clock rates, a fast IRQ should be sub-microsecond.... maybe a bit too deep for the average user?

    • @AndreasSpiess
      @AndreasSpiess  3 роки тому

      I posted the measurements done for digitalwrite in another comment. It takes nearly half of the time...

  • @DanDrown
    @DanDrown 3 роки тому +2

    Thank you for creating this nice tutorial on the STM32 boards
    For the ADC, the Vref channel is not used automatically. You can read from it using readVref on the ADC object, but it looks like the code is incomplete.

  • @stewartrv
    @stewartrv 3 роки тому +2

    I like the Bluepill and the newer Blackpill's even more, especially if you get one with the extra memory. For about $5 it's very fast and will also run MicroPython. It's a pity you didn't have the new Blackpill baords yet. I hope you'll do a quick update with them when you get your hands on them. Oh and don't forget to have some USB-C cables on hand the blackpills use that now instead. 73

    • @AndreasSpiess
      @AndreasSpiess  3 роки тому +1

      I have more and more USB-C cables. That should not be teh limitting factor ;-)

    • @stewartrv
      @stewartrv 3 роки тому

      @@AndreasSpiess I have Android only and so didn't have any USB-C and forgot to order at the same time :) I have a few now though! Of course you can program without a USB-C anyway.

  • @erygion
    @erygion 3 роки тому

    Great video! I've been wanting to get to running STM32F103 without a FTDI breakout board! I'll use it a lot more now thanks 😁

    • @AndreasSpiess
      @AndreasSpiess  3 роки тому +1

      Glad it was helpful!

    • @erygion
      @erygion 3 роки тому

      @@AndreasSpiess Yes sir, thank you. 🙂

  • @santorcuato
    @santorcuato 3 роки тому +2

    Thanks Andreas. I do mainly IoT so WiFi is a must, even bluetooth to read some sensors, so...
    The ESP32 is not perfect but as a maker I focused on it and it works for me.
    Nevertheless it's always interesting to know some other alternatives to right choose in the future.
    Good job!

    • @AndreasSpiess
      @AndreasSpiess  3 роки тому +1

      That was the purpose of the video. To know the choices.

    • @AttilaAsztalos
      @AttilaAsztalos 3 роки тому

      If one needs WiFi there's simply no alternative to the ESP32 series. On the other hand, not a single project I did ever needed WiFi and at that point that RTOS and WiFi stack preempting everything you do is just a liability.

  • @leonardoh6140
    @leonardoh6140 2 роки тому

    @ 7:14 a wise man said: When you "pluck" the usb "pluck"... Just kiddind, nice video as always!

  • @R3VISION3
    @R3VISION3 3 роки тому

    I personally had to install the USB bootloader using the ST-Link only since the FTDI boards I ordered are still in the mail. I was about to recommend the video guide made by Caleb Marting back in February until I noticed it in the description, since that's the one that helped me figure out the bootloader flashing without having to use FTDI boards like most other videos seem to show.

    • @AndreasSpiess
      @AndreasSpiess  3 роки тому +1

      Calebs video is very good. I found quite a few references on how to use ST-Link to flash the bootloader. But only blogs, not videos.

  • @srtech2205
    @srtech2205 3 роки тому +1

    Awesome video Bud!!! I've been moving away from Arduino bc they r weak and slow! They r awesome for beginners, and some of the modified boards such as my Beloved DFRobot RoMeo V2.2 R3 and Mega+WiFi RobotDyn (Mega2569/ESP8266 Hybrid) are better than stock Arduinos, but I got my hands on some ESP and STM32 Hardware to add 2 my Arsenal and this video makes it easy to pick a board for a project! Especially a more advanced project! Great work as always Bud!!!!

  • @GreatProjects
    @GreatProjects 3 роки тому

    Great Job! Thanks for sharing.

  • @ales_xy
    @ales_xy 3 роки тому

    This is great video with a lot of interresting informations. There is another aspect of choosing the MCU - the development environment. I really hate Arduino, so I'm using Atmel Studio, MPLAB or different IDE's provided by chip's manufacturers, usually based on Eclipse IDE. The Atmel Studio, which is based on Microsoft Visual Studio, suits me best and I think it's also superior to MPLAB, which is based on NetBeans. That's why I prefer the SAM and AVR.

    • @AndreasSpiess
      @AndreasSpiess  3 роки тому

      This channel would be dead in weeks if I would change the IDE. Also because you find at least as many people proving you that you are completely wrong and their IDE is much better :-( I suggest using platformIO for the more advanced guys.

  • @asm_nop
    @asm_nop 3 роки тому

    In my college courses, we used a board running an STM32F405. That board runs a Cortex-M4F at up to 168MHz with an integrated FPU. It's more expensive, but it was extremely capable, had multiple separate ADCs/DACs, etc.

    • @AndreasSpiess
      @AndreasSpiess  3 роки тому

      As I mentioned, I should get some F4 blackpills.

  • @blekenbleu
    @blekenbleu 3 роки тому +2

    Thanks; looking forward to a similar comparison for Nordic dongles

  • @mariasaranoursadoun4194
    @mariasaranoursadoun4194 3 роки тому

    Thank you so much for the informative video ! I'm new to your channel but I absolutely love it. You covered all my interrogations expect for one: while each of them has its pros and cons what can explain the obvious price tag difference between them ?

    • @AndreasSpiess
      @AndreasSpiess  3 роки тому

      I cannot change the price. I just counts in your decision making

  • @electronic7979
    @electronic7979 3 роки тому +1

    Very helpful video 👍

  • @tasty_sand
    @tasty_sand 3 роки тому

    I didn't know you can code a moving average without recording data samples. I was mindblown!

    • @AndreasSpiess
      @AndreasSpiess  3 роки тому +2

      The moving average should be ok. A true average needs storing the data.

  • @MithatKonar
    @MithatKonar 3 роки тому +1

    A word of caution around "Black Pills": There are (at least) two different strains of products using the "Black Pill" moniker out there. Before the current crop of STM32F4-based Black Pills were a thing, RobotDyn started making several modules based on the STM32F1 Blue Pill and referred to them as Black Pills. These are very good STM32F1 modules -- in black rather than blue. They are not what the cool kids mean when they talk about Black Pills.

    • @AndreasSpiess
      @AndreasSpiess  3 роки тому

      I odered boards with an F4 chip and hope I will get the right chips..

  • @kwazar6725
    @kwazar6725 3 роки тому +1

    Thanks Andreas. Nice work. Good conclusions. Stm has a higher res adc from specs. Interesting to see floating point comparison though. What about power draw?

    • @AndreasSpiess
      @AndreasSpiess  3 роки тому +3

      Power consumption is stuff for another video...

  • @sail4life
    @sail4life 3 роки тому

    Thanks for another awesome video. I was wondering about the comparison. I have used ESP8266, stm32f.. and arduinos for my projects, will definitely start looking for an excuse to use an ESP32 soon ;-) Maybe with an external ADC...

    • @AndreasSpiess
      @AndreasSpiess  3 роки тому

      You will love the WiFi capability and lots of pins...

  • @GeorgeWMays
    @GeorgeWMays 3 роки тому

    Very interesting and informative. Thank you for your project and video. It is truly appreciated.

  • @Bianchi77
    @Bianchi77 Рік тому

    Nice video, keep it up,thanks :)

  • @UReasonIt
    @UReasonIt 3 роки тому +1

    The newer Risc-V offerings may be a good thing the look at as well. The GD32VF103 is a little monster of a processor. Built-in floating-point support and a high fast clock rate. It has been fairly easy to use via PlatformIO and the SDK they have. There may be an Arduino like framework for it now, but I have not checked. LillyGo and Sipeed both make a board with the GD32 chip on it.

    • @AndreasSpiess
      @AndreasSpiess  3 роки тому +3

      There are many cool processors around and these Risc-V ones are for sure interesting. My problem is that I have to produce videos for a big community. So I always have to decide.if the topic would be interesting...

  • @samuelvieira4504
    @samuelvieira4504 3 роки тому

    Ty for the video. You should also consider measuring energy consumption. In this case, I believe stm32 would be the best choice as well.

  • @TristanGomez
    @TristanGomez 3 роки тому +1

    I've been playing around with the NRF52832 and the low power BLE capabilities mean I can have it running on coin cells without much problems! It's the younger brother (sister?) of the NRF52840 found in the new Arduino Nano 33 BLE and also programmable with the Arduino IDE. I'd love to see more of the this Nordic Semiconductor chip in your videos :)

  • @fullsolutionslab
    @fullsolutionslab 3 роки тому

    Dear Andreas. As you told us in another video from you, you are a true swiss biker :) and I dont mean a bicycle-biker but a motorcycle biker! because I'm a Swiss biker too, it would be cool if you can make a motorcycle project. For example to collect multiple data by riding like speed, real-time, position (GPS), temperature, humidity, pressure, angle of the motorcycle, acceleration, break way (how long it takes), distance from the wheels to the chassis (to record if the street is rough), power consumtion an so on. then collect all the data in an excel sheet and do some machine learning to evaluate your driving style and to see if your driving style is good or not. then of course with real time online update with a GSM module and connect all sensors to each other by wifi or something similar like BT. The whole system could be controlled via a voice regonition interface or a gesture sensor and all data could be displayed on a TFT display or maybe a Nextion. And to round up everything an ESP32-Cam could record everything on your way.
    What do you think? I'm creating something similar at the moment, but it would be realy cool to see how you would do a project like this ;)
    I hope you stay healthy and keep corona free :o) kind regards, delf from Bern

    • @AndreasSpiess
      @AndreasSpiess  3 роки тому

      As you might know, I am an old man and therefore I own a Harley: So most of the things you want to measure are not of interest to me anymore ;-) The only thing I measure is fun per time...
      So you need a younger, more ambitious guy for such a project.
      BTW: I have a Hero on my bike to keep the impressions of our journeys.

    • @iforce2d
      @iforce2d 3 роки тому +1

      Many of those things could be recorded pretty well by just slapping an Ardupilot board on :)

    • @fullsolutionslab
      @fullsolutionslab 3 роки тому

      ​@@AndreasSpiess Come on Andreas, you are not an old man yet. Take a look on all miracles you are doing, inventing and sharing with us. I think because of your grey hears you look older than you are ;o) I'm just joking :) I can fully understand, that you arent interessted in a motorcycle data capture project. Thats ok.
      The reason, why I have proposed this project is, because I miss sometimes some realistic applications in your nearly perfect video's. Everytime you explain very complicated stuff so good, that even the biggest noob can understand what you are teaching. The part, that you are allready doing for long time has nothing on it that I could do critics on it. But unfortunely I often have not enough ideas how to use your content in real life. Maybe if you like you could make a project with a real life application/use. You have done a lot of LoRa instructions and presentations. Some of your LoRa instructions i have successfully achieved. Now I have a LoRa Gateway and some working LoRa modules. But what can I do now with them? For what should or could I use it? Very nice to have, but till now useless for me :) But I had a lot of fun to replicate your instructions.It was very cool ;) Yeah, maybe you have more ideas than me for the future.
      I hope you stay healthy and I wish you only the best :) Kind regards

    • @AndreasSpiess
      @AndreasSpiess  3 роки тому

      I agree that I often leave the imagination to my viewers. But this is how I am built. My firm belief is, that the wish is the first thing in a project, especially in hobby. I have quite a few videos where I show how I use it (for example the hacked garage door opener below the saddle on my Harley). But often I only want to spark the imagination of my viewers.
      LoRaWAN is a special case because it is a technology with a lot of enthusiasm but not a lot of applications for the average Maker. I liked it because I am a HAM operator and love RF stuff. I also thought I can help a lot of people with my knowledge in these areas.

  • @dabupk3807
    @dabupk3807 3 роки тому

    Awesome video 👌

  • @Ramucho25
    @Ramucho25 3 роки тому +1

    Very interesting video. Many thanks. Have you ever considered testing Teensy boards to make a comparison ? They also used Arduino IDE to be programmed and are good boards too.
    Regards.

    • @frankrivers4653
      @frankrivers4653 3 роки тому

      I'm a huge fan of Teensy boards too. Their latest one, the Teensy 4.0 (and 4.1) they claim use the fastest microcontroller currently available, 600MHz! Hold onto your hat.

  • @RobertLugg
    @RobertLugg 2 роки тому

    Great comparison. Because there are so many stm32 variants it would be interesting to compare others. For instance for the same price as esp32, are there stm32 boards with WIFI and Bluetooth and a floating point number?

    • @AndreasSpiess
      @AndreasSpiess  2 роки тому +1

      No STM32 with WiFi is currently supported by the Arduino IDE :-(

  • @anjayv8347
    @anjayv8347 3 роки тому +1

    Andreas have you checked out the cubemx and cube ide available for the stm32s ?, they are quite easy to use however, do not have inbuilt library support as the arduino ide.

    • @AndreasSpiess
      @AndreasSpiess  3 роки тому

      For the moment I focus on the Arduino IDE because it supports many different chips without relearning. And it is used by most of my subscribers.

    • @ixpixp
      @ixpixp 3 роки тому +1

      I just started a project with cube mx ide because I need a 4 MHz clock for a sensor chip. With the stm32 you can configure all the clocks inside the stm32, pretty amazing. In code you can switch the oscillating pin on/off. Though I understand you can't cover all of that on your channel

  • @DavidCaplinGIS
    @DavidCaplinGIS 3 роки тому +1

    Is there a plethora of weird and wacky STM boards? Like a soil moisture probe that is also a LoRa node?

    • @AndreasSpiess
      @AndreasSpiess  3 роки тому

      I think the STM32 is more used in the professional environment.

  • @1828fernando
    @1828fernando 3 роки тому +1

    Great video!!! Can you compare both microcontrollers with native language??

  • @muflah
    @muflah 3 роки тому +1

    It was hard for me to convince my co-workers to look at esp32. Earlier they were using stm32 with esp8266 in master/slave configuration. Now the go-to choice is esp32 for most projects.

    • @AndreasSpiess
      @AndreasSpiess  3 роки тому +1

      If you need connectivity, the ESP32 is for sure the better choice.

  • @georgegu3374
    @georgegu3374 Рік тому

    availability of libraries, documentations, and example projects are crucial.
    price is probably the least of concern, unless you plan for mass production.

    • @AndreasSpiess
      @AndreasSpiess  Рік тому

      The Maker community is quite price sensitive, I think. Maybe because of the cheap Chinese prices in the past

  • @AlexShoyhit
    @AlexShoyhit 3 роки тому

    very helpful info
    thank you very much

  • @sullivanzheng9586
    @sullivanzheng9586 2 роки тому

    ESP32 actually has quite fast ADCs with at least 650Ksps speed if using DMA. The problem is lack of documentation to enable this feature. I spent a few weeks hacking and testing this feature. Now I am working on an ESP32 SDR, and I think it is the best MCU for hobbyist to build an SDR, because:
    1) ADC with 650 ksps effective sample rate. Sufficient bandwidth to demodulate FM and LORA baseband.
    2) dual core + very powerful FPU. No more fixed-point/integer DSP algorithm workarounds.
    3) Lots of SRAM compared with similar priced development boards.
    4) ESP32 DSP library, integrated into ESP32 Arduino Core v2.0+. Optimized at assembly level and can do FFT 2x faster than arduinoFFT. It has complex number support, IIR, FIR, Matrix manipulations etc. Really amazing.
    ESP32 really has lots of processing power, and probably the best processing power for the money.

    • @AndreasSpiess
      @AndreasSpiess  2 роки тому

      Welcome to the club! We are already a few who try to use the ESP32 for SDR projects. Maybe you watch my video about a marvellous audio library. It can save a lot of time. NA5Y is one of team. Maybe you watch his channel, too. And I created a Discord channel (sdr-stuff) for us (invitation link: discord.gg/JfgDSa8 ). You have to add https to the address because UA-cam does not like links.

  • @rcpoisond
    @rcpoisond 3 роки тому

    Regarding ESP32 ADC, have you tried measuring using battery? A quick test shows that I get very stable values when running my ESP32 from a battery and measuring the battery via a voltage divider compared running/measuring from a DPH5005. Maybe the noise is because the ADCs have a much lower sampling time and thus pick up the power supply noise?

    • @AndreasSpiess
      @AndreasSpiess  3 роки тому

      Battery is always good to reduce noise. I used USB for all my tests. Also reducing the sample rate helps a lot.
      Did you check the linearity?

    • @rcpoisond
      @rcpoisond 3 роки тому

      @@AndreasSpiess 'Plotted' a graph a while backand it matches what other people found. it's mostly linear between 0.3 and 3V. Of course since I did it manually it's low resolution. Currently hacking my DPH so I can automate stuff like this ^^

  • @behnamrasti7486
    @behnamrasti7486 Рік тому

    thanks it was helpful for me

  • @lylerodericks
    @lylerodericks 3 роки тому

    Very clear! Thanks a ton

  • @wm6h
    @wm6h 3 роки тому

    Espressif provides a DSP library for the ESP32 and I was surprised at the speed of their floating point math. If only the ADC worked better. I use the DACs to make sound. You can control the volume better in software than with the Arduino pwm method. Not sure if the STMs have a DAC.
    I can’t see starting any new project without wireless built-in. Even if I don’t use it initially.
    Thanks for the videos Andreas.

    • @AndreasSpiess
      @AndreasSpiess  3 роки тому

      Also here most of my projects use Wi-Fi...

  • @kanapkazpasztetem
    @kanapkazpasztetem 3 роки тому

    Did you have a look at the Nucleo boards? I've bought one few years ago but didn't really get into STM, it is hard to beat a generic uno/leonardo for quick testing (like when you just want to test some new sensors) and now if I'm going to create some device the wireless connectivity always on the table in some sort so the ESP already having wifi/BT seems like a better choice. The STMs for sure seem to be great if they fit your application but my applications don't fit STMs 😅

    • @AndreasSpiess
      @AndreasSpiess  3 роки тому

      I once used a nucleo board for testing TOF sensors. It was much bigger and, if I remember, also much more expensive.

  • @jpjude68
    @jpjude68 3 роки тому

    if i remember correctly, (from forun/errata sheets), the stm32's may have trouble with the ADC due to the integrated PLL which is used to generate the cpu's 72MHz from a simple 8MHz source.
    Also, it depends how the micocontroller is set at startup : the default configuration is 8MHz cpu clock without PLL.

  • @nakatubo
    @nakatubo 3 роки тому

    Do you know any solution on the esp32cam board, which is in a loop, restarting by itself, even with empty programming? It records normally and then stays in the loop. Of the 4 boards purchased, one of them gave this type of problem. thanks for the videos

  • @ManfredBrauchle
    @ManfredBrauchle 3 роки тому +1

    how much time is wasted on interrupts because of the _digitalWrite_ function? I remember that it was not very efficient ...

    • @AndreasSpiess
      @AndreasSpiess  3 роки тому +1

      I just checked it. It takes about 700ns on the STM32. On the ESP32 it is only 120ns.

  • @olafschermann1592
    @olafschermann1592 3 роки тому

    Great comparison. In my opinion I take a stm32 blue pill because it is cheaper than an original Arduino or atmel avr mega. It is priced as the ATtiny. If you compare it to ESP32 I would compare blackpill F4 which has much more performance than F1 bluepill. If I need WiFi it is an easy decision. Thank you for pointing out how cheap ESP32 mini has become. If price matters, did you know that there is an STM8 which costs almost nothing (below 1$) ?

    • @AndreasSpiess
      @AndreasSpiess  3 роки тому

      You are right with the F4. I will look at it in one of my next videos.

  • @Promilus1984
    @Promilus1984 3 роки тому +2

    Comparison of ESP32 with really old Cortex-M3 based STM32F1 proved bluepill is pretty decent hw. Blackpill is even faster. Usually there's nearly 50% performance gain just by using higher clock rate and STM32F4 does have integrated FPU as well so doesn't suffer such penalty as STM32F1. Both flash and ram are significantly bigger as well than old F1 and architecture is based on Cortex-M4 so with additional dsp instructions. That makes it pretty big improvement. I hope you will be so kind to repeat tests once you get hold on STM32F411 based black pill :)

    • @AndreasSpiess
      @AndreasSpiess  3 роки тому +1

      You are right. But I think, speed and flash size are not real limitations for most makers. This is why I did not focus on those features. The FPU is a game changer if you need it. This is why I mentioned it. I have no plans for the moment, but this easily can change ;-)

  • @mysomervda
    @mysomervda 3 роки тому

    An oldy but a goody. I was just looking at this in the context of RPI Pico Vs Esp32 Vs STM32 (Blackpill) . Have you done any tests to update the numbers for a Blackpill with a Cortex M4F. I would be interested in if the interrupt and Floating point improved a lot over the M3 based Bluepill

  • @saeedkizzy
    @saeedkizzy 3 роки тому

    I am a big fan of STM32 family I use IAR tool for compiler, embOS, or freeRTOS for RTOS library and also standard library provided by ST semiconductor. also, stm32F7 has higher freq and also floating-point support and pin-compatibility in same packages also is a useful feature.

    • @AndreasSpiess
      @AndreasSpiess  3 роки тому

      Thank you for sharing your experience. Next time I try to use at least an F4 chip...

  • @FilipLamparski
    @FilipLamparski 3 роки тому

    Many STM32 MCUs support Arm's mbed environment which is somewhat similar to Arduino but can be used across many different Arm microcontrollers, and has a number of cross platform libraries that work across a wide range of boards. Heck, some of the newer Arm based arduinos are implemented on top of mbed. It's also very easy to use since you don't have to install anything if you don't want to - you can code in the browser, download a BIN file, and then drag it into a USB mass storage device presented by the debugger circuitry on your board. I think most "official" boards support this workflow, like the Nucleos.

    • @AndreasSpiess
      @AndreasSpiess  3 роки тому

      Sounds simple. On this channel I will stick with the Arduino IDE because it is the "smallest common denominator"...

  • @joakinsa
    @joakinsa 3 роки тому +4

    Great video as usual! You should definitely check out the Teensy 4.1, I think it is the fastest on the Arduino market right now (600MHz) and it also have an Ethernet phy on board. Unfortunately it doesn't have an RJ45 connector populated...

    • @St0RM33
      @St0RM33 3 роки тому +1

      That MCU is a beast and offers much more I/O it's just they are not fanned out

    • @AndreasSpiess
      @AndreasSpiess  3 роки тому +1

      The Teensy seems to be a different class and probably only for specialties where you do not want to use a Linux system... I am not sure I will cover it on this channel.

    • @joakinsa
      @joakinsa 3 роки тому

      @@AndreasSpiess I wouldn't compare it to a Linux computer but I get what you're refering to. It's not ESP-cheap and it doesn't have the felxibility of a WiFi connection. I just thought that would be great comparing both boards. By the way the Teensy 4.0 or 4.1 are on the same level as some NUCLEO boards that you mentioned on the video. Thank you for your awesome work!

  • @brycedavey1252
    @brycedavey1252 3 роки тому +1

    This shows how good the esp32 is, given it also has WiFi and Bluetooth!! It also has a core just for the Rf

    • @AndreasSpiess
      @AndreasSpiess  3 роки тому

      The ESP32 is also newer. But it is definitely a good choice for many applications.

    • @brycedavey1252
      @brycedavey1252 3 роки тому

      @@AndreasSpiess One thing I would point out is that the STM32 product line has some very nice development boards. Plus the programmable brushless motor controllers are fantastic for DIY projects :)
      I do normally recommend the esp32 for beginners though if I'm honest

  • @StuartCGadgetRev
    @StuartCGadgetRev 3 роки тому

    Hi, Andreas, you didn’t consider ram or flash space in your comparison? The STM32 may well need external parts for more complex projects. If you’re making a logger for example.

    • @AndreasSpiess
      @AndreasSpiess  3 роки тому

      In a 15 minutes video I have to leave out most of the things :-( But I am sure experienced viewers will find what they need.