Getting started with the STM32 microcontroller - STM32F103C8T6 via Arduino

Поділитися
Вставка
  • Опубліковано 17 лип 2017
  • In this video I explain as simple as possible how you can start programming the STM32F103C8T6 microcontroller (Blue Pill). It’s cheap and very fast….. But be aware of the 32-bit pitfalls.
    There is also a community forum for Arduino on STM32: www.stm32duino.com
    My video about direct port manipulation in Arduino
    • Why I’m switching over...
    I bought the STM32F103C8T6 here:
    www.dx.com/p/stm32f103c8t6-arm...
    And also the FTDI programmer:
    www.dx.com/p/crius-ftdi-basic-...
    The Arduino_STM32 project of Roger Clark on GitHub
    github.com/rogerclarkmelbourn...
  • Наука та технологія

КОМЕНТАРІ • 329

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

    I'm a beginner in Arduino. I am amazed at the possibilities and usefulness for automation. Your videos are educational and of great value. Thank you so much Mr. Joop Brokking for sharing such important information.

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

    It's been 3 years now and I still watch your videos

  • @manuel56354
    @manuel56354 5 років тому

    Your video is absolutely awesome. No unnecesary info, no delays to get to the information, clear speaking. Just awesome. I cringe every time I get to a youtube video that makes me waste life. Good job.

  • @ozgemmo3445
    @ozgemmo3445 6 років тому

    Absolutely brilliant - I have learnt so much by your patient and exceptionally clear explanations! Ditto for your following video as well (which I watched before this one)!!! I have looked at stm32 boards previously and as a newby to this microprocessor felt a bit overwhelmed by it - you have succeeded in clearing away a lot of the fog. Cheers and keep up the really great videos.

  • @valerioturrini9414
    @valerioturrini9414 7 років тому +3

    Your videos are always really interesting, thanks for sharing!

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

    My goodness, what a fantastic explanation, I appreciate all your efforts.
    Thank you.

  • @PilatusPorterPC6
    @PilatusPorterPC6 6 років тому

    Thank you, You are a gifted teacher. On mine, I had to unplug power and then put the jumper in program position and after that, it worked just as you showed.

  • @DerickPelser
    @DerickPelser 7 років тому

    Always happy to watch one of your videos. Very information!

  • @m1geo
    @m1geo 6 років тому +1

    Thanks, got me started. I have years of PIC and Arduino experience and a large code base, but needed something cheap and a bit faster than 16 MHz!

  • @ChunkySteveo
    @ChunkySteveo 7 років тому +2

    Awesome timing - not watched yet, but just got one of these boards and need to know the basics and why i've bought one?!! cheers!
    Steve

  • @noamw3841
    @noamw3841 6 років тому

    Great video, you explained everything so well. Learnt quite a few things about the stm32 boards.

  • @drpainnuk3d
    @drpainnuk3d 4 роки тому

    Your videos are amazingly! Thanks for all the great content, learnt loads from watching you!

  • @Harrzack
    @Harrzack 5 років тому

    Well done. Also great info on the float & precision issues. Will def be checking out this board. 🍺

  • @heyarno
    @heyarno 6 років тому

    Thanks a lot, I was considering this chip for a while, but wasn't sure if the hurdles with the native development environment might be too big. This easy alternative gives me more confidence.

  • @keen2461
    @keen2461 7 років тому +1

    Awesome video you made mate. Totally subscribed. Thanks for your time.

  • @alex.germany
    @alex.germany 7 років тому

    Joop, you are such a great guy. I love your videos and they helped me sometimes to understand things without hours of research on the Internet. It's one of my favorite channel. Thank you :-)

  • @kholdstare993
    @kholdstare993 7 років тому

    Awesome video, very educational as always. Good job!

  • @CosmJJ
    @CosmJJ 5 років тому +1

    What an amazing educational channel! Thank you so much!

  • @davidgmos
    @davidgmos 6 років тому

    Great video, thanks for taking a bit of your time to share this.

  • @russelldicken9930
    @russelldicken9930 6 років тому +1

    Great explanation. Well done. A very useful point of reference.

  • @walterhynson2898
    @walterhynson2898 6 років тому

    Thank you just right to get me started,now please do a video like this for the ST IDE

  • @glynnmason8205
    @glynnmason8205 5 років тому

    iver watch this video before and now ive watch it properly and done it as you have ive relized there is libraries for other projects so it's been help full thanks

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

    Thank you for this video! I definitely learned a thing or two.

  • @ronaldhofman1726
    @ronaldhofman1726 5 років тому +2

    Nice video, well explained, the static on the upper edge of the osciloscope can be resolved by the use of a decoupling capacitor?, in the 80's i learned electronics and used the 6502, Z80 , 8051, was a good time , learned a lot from building thnigs.

  • @maximilianobarac8066
    @maximilianobarac8066 5 років тому

    Excellent video, your explanations are amazing! thanks a lot for share your incredible knowledge!

  • @GeekMustHave
    @GeekMustHave 6 років тому

    Love your videos, your pace of delivery is excellent and the care you took to layout the breadboard to actually track where the wires were going between the FTDI and STM32 was spot on. Someday I hope to be able to do videos of this quality. It sounds like you script voice-overs, if so, how long does it take for you? Keep Broadcasting!!!

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

    Thanks for sharing your knowledge.
    I have been following your videos and have been building the autonomous quad. I have now run into trouble with the GPS testing.
    and now the Q-A page is "page not found 404". Will it be back?

  • @vijaysulakhe5605
    @vijaysulakhe5605 7 днів тому

    Excellent explanation and video, many THANKS. Hope you make more video about STM32 projects with Arduino IDE.

  • @Tea-Spin
    @Tea-Spin 6 років тому +1

    thanks for the video, such an excellent presentation

  • @tmtguitar
    @tmtguitar 5 років тому

    Thanks for the videos!
    Does the Flip32 need some changes on the code? Or can I directly upload the sketch to it?

  • @stevetobias4890
    @stevetobias4890 4 роки тому

    Great video. I have some STM32 boards and a USB programmer I couldn't get working so I was thinking of selling them. I might try again now.

  • @yacinehefied7390
    @yacinehefied7390 4 роки тому

    thx for this video but please can you tell me what's the difference between FTDI programmer and st-link programmer??

  • @arashabdi4052
    @arashabdi4052 5 років тому

    hello, thank you so much for all of your tutorials, but i faced to the problem, i hope that i can get some guidance. i followed all steps as you have done, but i do not know why the micro controller can not read receiver signals, all channel are always zero??what do you think Sir.?

  • @allinthefamiliy3122
    @allinthefamiliy3122 5 років тому

    Bedankt joop,met veel plezier bekeken

  • @boudebzabadra9749
    @boudebzabadra9749 5 років тому

    Thanks Sir for this video, my question is if i want to control my drone by raspberry pi over wifi how can I connect STM32 with
    Pi to get the commands?

  • @ghifordmizzard1897
    @ghifordmizzard1897 4 роки тому +1

    I have the Blue Pill card.
    The boot 0 if I put it to one the led will always flash.
    Does not enter programming mode.
    Is there a way to set Jumper BOOT 0?
    To make it possible to load skethc

  • @MB-st7be
    @MB-st7be 5 років тому +1

    Very nice. Great success!

  • @aakash512
    @aakash512 4 роки тому +1

    How do I write code for direct port manipulation of stm32
    Any tutorials?

  • @gatisozols
    @gatisozols 7 років тому

    Thank You Joop for showing that this board can be programmed with UART only that made my day! I use these boards for about a year now they are great! But I use ST-LINK v2 USB dongle to program them, because it allows to debug the code by stepping through it. Unfortunatelly my ST-LINK died last week so I had no means to program my MCUs! Now I will use my USB to UART converter to do the same thing!

  • @mennomjorna
    @mennomjorna 4 роки тому

    Thanks for the excellent video! So the STM32 is quite a bit faster than the Uno (if programmed well). But how much would you notice this difference in reality while flying the quadcopter?

  • @kenwallace6493
    @kenwallace6493 5 років тому

    Hi Joop. Several years ago you said you were going with Atmel Studio instead of Arduino IDE. What is your opinion now, SAMD21 versus STM32? Thanks.

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

    Grate video, Joop Thank you,
    I am having problem understanding where to copy the Github file, would you explain that part in writing please

  • @altamashabdulrahim8862
    @altamashabdulrahim8862 7 років тому

    Nice work, expecting more tutorials on stm32. Cheers!

  • @nicholaschite5418
    @nicholaschite5418 5 років тому

    Is there anyway to make the YMFC-32 drone compatible with arduino ctc 101 as a flight controller without the MPU (using the 101's internal IMU) and without the STM32?

  • @yunusemreates6976
    @yunusemreates6976 7 років тому

    really educational. Thanks. Good job

  • @joelrichard-foy4938
    @joelrichard-foy4938 6 років тому

    Thank for this excellent video. I only regret that subtitles or script are not available, it would be a plus for non-English speakers, although your diction and sound are excellent.

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

    Update to floating point:
    Since some time (and AFAIK v9.x) avr-gcc comes with 64-bit float support. Might be tricky to set the correct compiler flags in the Arduino environment, but it is available now.

  • @GhassanYousif
    @GhassanYousif 6 років тому

    thanks for the excellent video tutorial most easy and direct

  • @bullygram
    @bullygram 4 роки тому

    Can we use the same setup for stm8, in terms of hardware setup.

  • @stevenalex9439
    @stevenalex9439 6 років тому

    Thank you for the video!

  • @goirikdhar4265
    @goirikdhar4265 6 років тому

    Thank you!
    it worked perfectly.

  • @federicogabrielluna5995
    @federicogabrielluna5995 6 років тому +1

    Thanks very much! graet video! Regards from Argentina..!

  • @davidb8398
    @davidb8398 6 років тому +1

    Can work any touch screen on this module?

  • @ariegt
    @ariegt 5 років тому

    weer zo'n top video Joop. Could this board be programmed as a Host usb device ?

  • @ThiwankaWimalasuriya
    @ThiwankaWimalasuriya 6 років тому

    Thank you for this great video

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

    can you help me how to connect Arduino with hoover board wiring diagram and code for Arduino for speed control

  • @omerfaruksolmaz5363
    @omerfaruksolmaz5363 6 місяців тому +1

    I have a question. How did upload this code with "Arduino as ISP" programmer? 4:58

  • @gyoosuhnjee8698
    @gyoosuhnjee8698 5 років тому

    Thanks a lot, good lecture!

  • @EvertvanIngen
    @EvertvanIngen 6 років тому

    My god, the solder job on this thing :O

  • @pixelflow
    @pixelflow 6 років тому

    As someone who just took the blue pill dive, this saved a TON of confusion and information overload. Also you can choose st-link in the IDE if yours came with one of those clone usb boards. Connect SWDIO/GND/SWCLK/3.3V to the 4 pin header, and prestouplodo (the boot pin does not seem to affect its ability to upload)

  • @satyanandkommuri6058
    @satyanandkommuri6058 5 років тому

    Hello sir can I use PL2303 to stm 32 as a serial connector , I want to connect 3.3v pin of PL2303 to 3.3v pin of stm32 does it works?

  • @johns66723
    @johns66723 6 років тому

    Please, could you link to data-sheet? In every video where you show a data-sheet it is different to the corresponding data-sheet I can find online. For instance my stm32F103 data-sheet dose not have section 9.2.4 shown at 8:32 . I am very confused by this, please could you help. Thank you.

  • @desidavinci7898
    @desidavinci7898 7 років тому +1

    great video. thanks a lot

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

    Hello,how can i run the ov7670 with a stm32f103c8t6 via arduino?

  • @PatrickHoodDaniel
    @PatrickHoodDaniel 6 років тому

    Very clear and well organized explanation of the STM32 Arduino development environment. That specific line of stm32 chips has an onboard USB feature I believe. Too bad the FTDI is needed. It would be nice for the bootloader to take advantage of the USB on-chip peripheral. The stm32 chips are excellent and very inexpensive. Keep up the great work. We should collaborate as I teach bare chip STM32.

    • @Joop_Brokking
      @Joop_Brokking  6 років тому +1

      The SUB connector can be used to upload programs. But not all boards of this type are made correct and you might have to solder a resistor. Some computers recognize it, some don't. And then there is the hassle of installing drivers, etc. This method is the simplest way to use this kind of boards.
      And your channel is great: ua-cam.com/users/anajonesr

  • @joelrichard-foy4938
    @joelrichard-foy4938 6 років тому

    Thank for this excellent video,

  • @shivamchaurasiya1716
    @shivamchaurasiya1716 6 місяців тому +1

    Can I use Arduino Uno and nano boards

  • @altamiradorable
    @altamiradorable 7 років тому

    Many thanks Joop !

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

    les gars , est ce c'est normal d'avoir un SMT32 qui se surchauffe , avec un carte d'un moteur shield alimentée de 24 V en sortie , qui pilote un moteur brushless triphasé ?

  • @radarmusen
    @radarmusen 6 років тому

    Thanks this was excellent.

  • @sumit_kashyap..
    @sumit_kashyap.. 6 років тому +4

    When you will teach us about GPS RTH and GPS hold ..... I think in this year. ?

  • @nicolasbug
    @nicolasbug 6 років тому +1

    Really interesting !!

  • @macieksoft
    @macieksoft 5 років тому

    I heard that somebody have made a 64bit float library for ATmegas. Not sure if it's true but i heard about it somewhere.

  • @monmister
    @monmister 6 років тому

    can i use another USB to TTL device instead of the FDTI?

  • @marcodev3375
    @marcodev3375 5 років тому

    How about power consumption? Is it 4 times too?

  • @naseer48
    @naseer48 5 років тому

    Very informative

  • @pkvs79979
    @pkvs79979 6 років тому

    thanks for your video, it's very helpful :DDD

  • @tmack4207
    @tmack4207 5 років тому +3

    Thank you for your tutorial.I found it easier to use a ST-LINK v2 programmer.Change the upload method to STLINK in Arduino ide

  • @hackerspacep.e7969
    @hackerspacep.e7969 6 років тому

    Great tutorial

  • @MuhammadArshad-sz1ym
    @MuhammadArshad-sz1ym 3 роки тому

    Hi , I have Arduino Nano Stm32. Which has already program in it. I want to copy program from Arduino board.

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

    In the past, STM32_Arduino core or "Rogers core" was the only Arduino core (wrapper) for the STM32F103 chip.
    The STM32duino was written by ST themselves and is now considered the "official" Arduino core. This core supports many more boards Nucleo, disconvery, and chips, F0, F1,F2,F3,F4,F7. The official core uses HAL where as "Rogers" core (STM32_Arduino core) uses the Standard Peripheral library. I think in this video you are using the Rogers core which many people still use. The STM32duino core can be installed into the arduino ide . The ST official core became available in May 2017.

  • @ujjvalkavathia4474
    @ujjvalkavathia4474 7 років тому

    Hey sir you surprised me , I've been working for over couple of months now on this exact board and trying to build ymfc al quadcopter using stm32f103c8t6 as its brain. Can you help me out?

  • @benjien2007
    @benjien2007 5 років тому

    any help to upload your code to a flip32 f1 board

  • @sivam450
    @sivam450 6 років тому

    Very usefull work!

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

    thank you. 😁subscribed

  • @user-ng8ig5ul6p
    @user-ng8ig5ul6p 6 років тому

    Great video! But when I did all the things as you do, except that I didn't use the FTDI, but another general USB board, the LED didn't flash. Is there anything wrong?

    • @Joop_Brokking
      @Joop_Brokking  6 років тому

      Most likely the general USB board does not work. Use a FTDI programmer instead.

  • @strikerjasma68
    @strikerjasma68 7 місяців тому +1

    Hey! Love the series! Have you thought about creating a quadcopter with rpi pico? It would allow python programmers, that are not so savvy with C++ to give it a try as well.

  • @DavidFeliz
    @DavidFeliz 7 років тому

    Nice video!
    Instant subscribed 😉

  • @nathanas64
    @nathanas64 5 років тому

    Excellent!!!!

  • @matthieupicardat-dubois2752
    @matthieupicardat-dubois2752 6 років тому

    Hi :) just one question why did you write GPIOB_BASE->BSRR = 0b1 BSRR = 0b1

    • @Joop_Brokking
      @Joop_Brokking  6 років тому

      I'm explaining the register access in this part: ua-cam.com/video/JFSFbSg0l2M/v-deo.htmlm17s
      Hope this helps.

  • @Handballprofi117
    @Handballprofi117 5 років тому +2

    From where do you know the command GPIOB_BASE is there a wiki for the library or can you see this anywhere in the datasheet of the stm32?

    • @edwintjoa6099
      @edwintjoa6099 5 років тому +1

      Was also thinking how did author know about this definition of GPIOB_BASE?

    • @typedef_
      @typedef_ 4 роки тому

      @@edwintjoa6099 Datasheets. Ever heard of them ? They are this white paper things with writing on them, that explain how a chip works better than ANY tutorial. Make sure you read carefully.

  • @TheScambreaker
    @TheScambreaker 5 років тому

    Library's introduced installation does not working on Arduino IDE 1.8.8

  • @Wuety06
    @Wuety06 6 років тому

    Any experience with ms precision on delays or mills? Im using arduino ide and the usb atmel chip to drive a CD spot welder..what ever the Leonardo uses...name escapes me . Project got intrupted by moving flats/apt but I seem to recall 6 or 7ms was about as short as I could make a pulse(im using port register method) I have one of these cheap stmboards and was thinking about switching to it. I etched the pcb with pads to solder pro micro /about that sized board rather than putting the mcu chip on main pcb... v2 will tackle that. One last question, is there a working watchdog with stm32 arduino?

    • @noluck666
      @noluck666 6 років тому

      Not sure if i understood you correctly, but you should try switching from arduino ide to atmel studio and write raw code. It will give you maximal precision and smallest code size. There was few tutorials how to do it on this channel

    • @superdau
      @superdau 5 років тому

      250ns pulses are doable with an AVR, but you'll never get that if you use any Arduino related functions. Arduino just adds too much bulk to make life "easier". Just go non-Arduino C/C++ or even assembler for critical sections. This can be integrated into Arduino code, but why would even bother with Arduino when you need defined speed without glitches?

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

    plz help here i m getting the message after uploading end
    interface serial_w32:115200 8E1

  • @santoshbabu517
    @santoshbabu517 5 років тому

    hi very nice video. can you please help me with AREF pin in STM32. is there is any AREF pin like in Arduino present in STM32

    • @Joop_Brokking
      @Joop_Brokking  5 років тому

      Check the datasheet for specific information like that.

  • @misterwilliam8877
    @misterwilliam8877 6 років тому

    Thanx for the clean explanation. I ve made the code for home automation with esp8266 which is for arduino uno or mega. should I required to completely change the codes?

    • @northshorepx
      @northshorepx 6 років тому +1

      for esp you need to use different ports control on esp9266 arduino.stackexchange.com/questions/44531/arduino-esp8266-direct-fast-control-of-the-digital-pins

    • @misterwilliam8877
      @misterwilliam8877 6 років тому

      you mean just assigning TX, RX pin to esp8266 is good enough without changing codes? and also I have no idea of storing output states of controller in external eeprom. Can you help with that?

  • @SagaSeaCraft
    @SagaSeaCraft 6 років тому

    Hey Joop,
    I'm in the market for a digital oscilloscope. If you were to purchase an oscilloscope again, would you pick a similar unit to the Owon that you have now, or would you try to purchase a faster (~200 MHz, 4 channel, 2 GS/s, etc.) unit to play with faster microcontrollers and buss rates? Assuming you saved-up $2500 and it was burning a hole in your wallet. Or would you invest in some other pieces of equipment?
    Thanks!

    • @Joop_Brokking
      @Joop_Brokking  6 років тому

      For my own work I don't need 200MHz or 4 channels. In my latest video you can see that I recently bought the 100MHz, Hantek DSO5102P for testing. And I must say that this is a very nice oscilloscope. Especially for the price.
      You can find the video here: ua-cam.com/video/Nju9rvZOjVQ/v-deo.html

  • @frxprince
    @frxprince 7 років тому

    thank you for sharing :-)

  • @venug2617
    @venug2617 5 років тому

    Superb......