STM32 with Arduino IDE | Schematic & custom PCB | NRF24 radio | Bootloader

Поделиться
HTML-код
  • Опубликовано: 22 июл 2024
  • High quality PCB prototypes: www.pcbway.com
    3D & CNC service: www.pcbway.com/rapid-prototyp...
    🔥I'm starting some projects with the STM32 and I've made my own PCB for tests in order to see if the basic configuration will work. I show you how to use this microcontroller with the Arduino IDE, how to burn a bootloader, the schematic and my PCB and use it with the NRF24 radio modules.
    🔀LINKS
    -------------------------------------
    Tutorial STM32 + Arduino IDE: electronoobs.com/eng_arduino_t...
    Tutorial STM + NRF24: electronoobs.com/eng_arduino_t...
    Tutorial STM32 PCB: electronoobs.com/eng_arduino_t...
    PCB schematic: electronoobs.com/images/Ardui...
    PCB GERBERs: electronoobs.com/images/Ardui...
    🤝SUPPORT
    -------------------------------------
    Join my Arduino Course (Spanish): bit.ly/2JY8icE
    ELECTRONOOBS.io: electronoobs.io
    Help my projects on Patreon : / electronoobs
    my Q&A page: electronoobs.io/forum/index.php
    Facebook page: / electronoobs
    Canal en Español: / electronoobs en español
    00:00 Intro
    02:18 Steps of the video
    03:00 Specifications STM32
    04:16 Program the STM32
    07:35 STM32 + NRF24
    09:10 Bootloader burn
    11:01 STM32 Schematic and PCB
    13:34 Outro & Thank you
    Like share and subscribe to motivate me. Thank you
    #STM32
    #Arduino
    #NRF24
  • ХоббиХобби

Комментарии • 144

  • @ELECTRONOOBS
    @ELECTRONOOBS  3 года назад +2

    Arduino Course (Spanish): bit.ly/3ldW6kO
    Follow me on FACEBOOK for more: facebook.com/Electronoobs
    Help me on Patreon: www.patreon.com/ELECTRONOOBS

    • @Shubham-po2tp
      @Shubham-po2tp 3 года назад +1

      Please tell me which is best
      Black or blue

    • @diy.Builder
      @diy.Builder 3 года назад +1

      Can you make this type of project without SMD components for future projects so that we can make an universal transmitter

  • @klif_n
    @klif_n 3 года назад +16

    This was very helpful. I have a need for this MCU and wasn’t sure how to get started.

  • @abdll2804
    @abdll2804 Год назад +3

    The best explanation I have seen about stm32. All thanks to you and your efforts. I hope the video will be longer and not end so quickly. All the best to you, my brother.

  • @kitesforfuture577
    @kitesforfuture577 3 года назад +1

    Awesome!!! I used your schematic to design an own stm32 dev board. Everything I needed works flawlessly (USB not tested yet). Saved me during this time, where stm32 blue pills are unavailable. Replaced the jumpers with SMD switches.

  • @piiumlkj6497
    @piiumlkj6497 3 года назад

    I had access to that board a while ago but didn't know how to use it as all I knew was about arduino, but now this video makes everything so much easier. Thanks !

  • @monsieur_piyushsingh
    @monsieur_piyushsingh 3 года назад +2

    I actually was thinking of using blue pill for my project, this would be a great guide in the future.

  • @gauravbhattarai75
    @gauravbhattarai75 3 года назад

    Gracias. This is the reason why you are one of my best youtubers. By the way, learning little Spanish. Cheers!!

  • @backdemoletor4654
    @backdemoletor4654 3 года назад

    i was waiting for this video.... soooo good.. keep it up

  • @ranganatennakoon
    @ranganatennakoon 3 года назад

    I waited for this project, thank you !!! do not stop only stm32F1103, we wont F3,F4,F7 mcus and "stm 32 arduino 101" tutorials. I love this board . nice tutorial thanks, your the best and i like your style....

  • @wegi9621
    @wegi9621 2 года назад

    very nice beyond arduino part! thumbs up

  • @Jose-tw9bl
    @Jose-tw9bl 3 года назад +1

    Thank you for the video! i find it really formative and intresting! (salut! desde barcelona també jeje)

  • @tatavox1408
    @tatavox1408 3 года назад +2

    Greet Job ! We are looking forward to the new version of RC Remote Control, but also other projects with STM32 !Success

  • @ahmadmaaz2566
    @ahmadmaaz2566 3 года назад

    Best video as always... Waiting for fully equipped Stm32 radio Transceiver

  • @vanshgarg5408
    @vanshgarg5408 3 года назад

    I like these types of projects

  • @dronebot2079
    @dronebot2079 3 года назад

    Waiting for this from so long....

  • @rubenlizardo1430
    @rubenlizardo1430 3 года назад

    Grácias por tu esmero a la hora de hacer un video, espero que te sea rentable ya que para nosotros es una gran ayuda. Por eso miro tus videos hasta el final, incluso dejo los anuncios. Gracias.

  • @DrJALAGHARI
    @DrJALAGHARI 3 года назад

    Thank you so much for sharing this valuable information through this amazing video.

  • @duanerackham9567
    @duanerackham9567 3 года назад +2

    I cannot wait until we see the RC transmitter for this!

  • @jparky1972
    @jparky1972 3 года назад

    That is great.
    It always feels like the STM32 is a little forgotten. Especially where the ESP boards are concerned.

    • @Mr.Leeroy
      @Mr.Leeroy 3 года назад

      STM32Duino project on github is stronger than ever. That framwork is actually better than Ardiuno itself and supports nearly damn every SMT32 chip..

  • @PhG1961
    @PhG1961 3 года назад

    Realy interesting video !

  • @CraigHollabaugh
    @CraigHollabaugh 3 года назад +2

    Nice work. I have several STM32F103 designs, all using Arduino libraries. Look into adding a ST-Link header for flashing, its more reliable than the bootloader. ST-Link clones are inexpensive and you can debug your code with SWD pins. Thanks for the video, your board look great!

  • @danielblancorodriguez1623
    @danielblancorodriguez1623 3 года назад

    Buen video, siempre he preferido utilizar la STM32, actualmente utilizo la STM32F411CE, totalmente recomendada, es mucho mas potente. Saludos

  • @Arinachipsquare
    @Arinachipsquare 6 месяцев назад

    Like this video ❤,cool explanation 😊

  • @Ade_Official-d4e
    @Ade_Official-d4e 3 года назад

    Keep it up My bro

  • @skelethornbro
    @skelethornbro 3 года назад

    Ive been using your arduino remote control from the start untill now. Now Im ready for the upgrade. Thanks to you, couple of bluepill on the way across the sea now! LOL

  • @ConsultingjoeOnline
    @ConsultingjoeOnline 3 года назад

    Great video 📹 thanks!

  • @thetastefultoastie6077
    @thetastefultoastie6077 3 года назад

    The STM32F103 already has built-in a USB peripheral which you can use to reprogram the chip using Device Firmware Update (DFU).

  • @ahmatrizki5154
    @ahmatrizki5154 3 года назад

    Thanks, for sharing, helpfull

  • @real_Zuramaru
    @real_Zuramaru 3 года назад

    great video!

  • @lamekamunyela6481
    @lamekamunyela6481 9 месяцев назад +1

    Nice video. But I have a few suggestion. I would not personally use an FTDI chip on the personal PCB with that stm32 chip as it has build in USB capability. You can just include a NRST button and Boot button on you PCB and connect your USB type C to normal USB pins of the chip and program it via USB. The stm32 chip has preloaded Bootloader so u can program it over USB. U can then use USB CDC for data logging. USB CDC works very similar to UART, but does not require actuate baud-rate to transmit or receive data correctly.
    I personally made personal PCB based on STM32F446RE and stm32F030CC. I program the F446RE directly via USB, even if I still have SDIO and Clock pin on separate connector just incase in need to debug some code. stm32F030CC will need some FTDI chip of course as it does not USB capabilities (I use the cheap CH340C for that job)

  • @Bianchi77
    @Bianchi77 3 года назад

    Nice info, thanks :)

  • @KC-yk5xe
    @KC-yk5xe 3 года назад

    I find it funny why stm32f103 bluepill is cheaper, now I mostly use bluepill on my projects but there is still a time one board is easier to use than the other thus the two have its place on my arsenal along with esp32. Nice vid btw, Keep it up!

    • @Mr.Leeroy
      @Mr.Leeroy 3 года назад

      f103 is $7. $8 with usb-c
      cheaper than what?

  • @jsilvalimaoliveira
    @jsilvalimaoliveira 3 года назад

    I need more sir 😢 I'm looking forward to the next ones.

  • @EVguru
    @EVguru 3 года назад

    There's a major 'gottcha' with the Blue Pill board when using the PWM generators. The hardware PWM shutdown pin gets crosstalk from one of the PWM outputs. With a 'real' Blue pill, there are some workarounds I believe, but with the clones I bought, it just didn't work. Had no problems with a different cheap STM32 board.

  • @CosmicAerospace
    @CosmicAerospace Год назад

    Hey man! Great video, I am implementing your schematic on a flight computer. However, what is the DTR pin on the CH340 FTDI chip used for? It is only called once giving me a DRC error. Thanks!

  • @dineshganesh6723
    @dineshganesh6723 3 года назад

    Super bro

  • @ranaharsh365
    @ranaharsh365 3 года назад +2

    Can you make another video for programming of STM32 using KEIL software? It's specifically designed for it...

  • @customsolutionsinc
    @customsolutionsinc Год назад

    is there a way and would you consider including a BOM in your grbls so that the same parts can be ordered easier? otherwise great video as usual.

  • @wouladjecabrelwen1006
    @wouladjecabrelwen1006 3 года назад

    Hi, interesting video as usual
    I would like to interface stm32 with Ethernet to post data via HTTPS, do you think it can be positions?

  • @webslinger2011
    @webslinger2011 3 года назад

    Great!

  • @krziwanm
    @krziwanm 2 года назад

    Hola! Primero que nada me encanta tu canal! Ahora estoy haciendo el control remoto con la blue pill. Gracias!
    Estoy tratando de configurar la salida SPI2 para el modulo de radio y no he podido hacerlo funcionar. No se si lo haz echo alguna vez?
    Gracias de nuevo y thumbs up!

  • @eee_bangla
    @eee_bangla 3 года назад

    best one

  • @mamleshbohari2200
    @mamleshbohari2200 3 года назад

    Can u make more such projects on STM 32 ?... That would really great.

  • @hamdibenabdessalem5416
    @hamdibenabdessalem5416 3 года назад

    Thanks bro please continue your developpment project with stm32 into Raspberry Pi i gonna wait you form more projects

  • @dineshganesh6723
    @dineshganesh6723 3 года назад +1

    Make videos with stm32 continues it helps

  • @gudimetlakowshik3617
    @gudimetlakowshik3617 2 года назад

    Hi, I am making a programmer board for STM8 and STM32 MCU's. I wanna know what are the programming pins to be used on these MCU's (like SWDIO etc.,) to program bare ICs. Does STM32 IC's come with bootloader on them so that they natively accept code on UART lines?

  • @rakesh__rocky9
    @rakesh__rocky9 3 года назад

    Nice.. 👍

  • @SudhirKumar-bq4xz
    @SudhirKumar-bq4xz 3 года назад

    Finally.... :-)

  • @shambhusingh5094
    @shambhusingh5094 2 года назад

    I have STM32303K8T6, There is no any jumper option then how to program it using Arduino IDE?

  • @techieelectro
    @techieelectro 3 года назад +1

    What's up my friend 😊👍

  • @KSITREVS
    @KSITREVS 3 года назад

    With your custom board, why not use the usb pins with the maple firmware? Thank you :)

  • @harikamalakarreddydarapu7410
    @harikamalakarreddydarapu7410 3 года назад +1

    Awesome

  • @jstro-hobbytech
    @jstro-hobbytech 3 года назад

    Cool video. I've never used the stm32. Say I wanted to make a simple handheld game, would it be better to use this or an esp32. I realize it would be a simple game that has to take program memory into account.

  • @korishan
    @korishan 3 года назад

    10:50 I think you should have also included the possibility of getting blue pill clones. They usually have the wrong resistor values on the board, so the USB portion doesn't work correctly. Also, with the clones, this method won't always work. I had gotten 5, and all 5 were duds. A friend was able to get them working and found out they were a non-USB supported IC (an older f1 chip) and had half the flash as supposed to.

  • @saurabhphulpagar7950
    @saurabhphulpagar7950 3 года назад

    Can I drive MOSFETs of Arduino esc with transistors instead of mosfet driver ic

  • @seyyedamirhossein7778
    @seyyedamirhossein7778 3 года назад

    Thats so usefull. Is programming stm32 , reliable and comfortable for economic and industrial usage?

  • @CuriousScientist
    @CuriousScientist 3 года назад

    Why would you need the CH340G chip? The STM32 has native USB support. Even the blue pill boards do not have any additional chips.

  • @TonoNamnum
    @TonoNamnum 2 года назад

    Will this work with the STM32L series? The L series is for low power. Thanks for the amazing video!

  • @ANGRYDEMON_DEMON
    @ANGRYDEMON_DEMON Год назад

    Can we make a 3dr telemetry for drone with NRF24L01?

  • @varnabhapatra6008
    @varnabhapatra6008 3 года назад

    Sir can you make a 3 axis smartphone stabilizer compact and accurate with audrino nano as I needed for my drone so it must be lightweight and make it with servos I hope you will make it

  • @parindave1814
    @parindave1814 2 года назад

    It's very nice video for begginers to start with stm32...
    I too have started with it but received an error "got nack from device on demand"
    Can u please suggest wht would be an issue....
    Thanks in advance...

  • @arthur1984
    @arthur1984 3 года назад

    That board have micro USB port and can I use that for programming ?

  • @marcusvinicius-ib1uk
    @marcusvinicius-ib1uk 2 года назад

    ola muito bom seus projetos eu fiz o drone arduino o controle e o transmissor e funcionou tudo certinho porem essa programaçao nao esta carregando consigo carregar o blink normal mas a programaçao da erro stray '\303' in program

  • @MR_GOLD_LINVENTEUR_237
    @MR_GOLD_LINVENTEUR_237 3 года назад

    Wahou thanks for this video l want to make m'y radio control

  • @ankitnegi2524
    @ankitnegi2524 3 года назад

    Niceee video

  • @usmanumer9871
    @usmanumer9871 3 года назад

    hi . i want to know how to set the PWM frequency. i want 20kHz pwm signal. can you make a video . Thanks

  • @yxhankun
    @yxhankun 3 года назад

    Can u insert the sd card reader in the new pcb?

  • @capistor1
    @capistor1 3 года назад

    can you make a video about generating pwm with stm32 using arduino ide? i'm facing alot of difficulties with that.

  • @Pulixe
    @Pulixe 3 года назад

    Hey nice video! Can you guide us on how to buy electronic components in big units (compras al por mayor) i want to be my own fabric😆

  • @kymcainday6677
    @kymcainday6677 3 года назад

    Great videos.. Can you also make a video on how openTX RC Radio Transmitter communicates with transmitter module like TBS crossfire? I have some STM32F4xx boards on my bench and I wonder if I can also make an OpenTX transmitter that can communicate with TBS Crossfire. I want to know what protocol TBS Crossfire communicates, like SPI, IC2 etc. THanks in advance.

  • @falcon02012
    @falcon02012 2 года назад

    What program do you use for the schematics?

  • @robertroigsantamaria
    @robertroigsantamaria 3 года назад

    what is the second jumper for?

  • @ayanvaidya2727
    @ayanvaidya2727 3 года назад

    In my board program doesn't get erased after resetting on boot mode if i change jumper it starts again

  • @rakesh__rocky9
    @rakesh__rocky9 3 года назад +1

    Make a video ... Using STM cub ide to upload the program..

  • @TrentTationnaiseXization
    @TrentTationnaiseXization 3 года назад

    Ope express lrs on your new controller?

  • @mohammadalawneh8100
    @mohammadalawneh8100 3 года назад

    I need your advice
    I want a reference to learning Arduino

  • @diy.Builder
    @diy.Builder 2 года назад

    Can we make this for Arduino Nano IC

  • @banban8481
    @banban8481 3 года назад +1

    Can you create a video of stm32 and Cubemx?

  • @yajeshchandra9792
    @yajeshchandra9792 3 года назад +1

    make next transmitter with tft display??? maybe touch display???

  • @avinashraj4102
    @avinashraj4102 3 года назад

    can we use all arduino libraries in blue pill?

  • @briyanpaul4617
    @briyanpaul4617 3 года назад

    nice

  • @tunckuyel
    @tunckuyel 3 года назад

    please make a video for using 3.3 to 5 volts devices together bidrectonal

  • @quangthango0o
    @quangthango0o 10 месяцев назад

    Hi, anyone could help to reverse back before install the bootloader ???

  • @pierre7127
    @pierre7127 3 года назад

    Nice video 👍
    Is there a possibility to buy your dev board ?
    Kind regards

  • @alvinboby9962
    @alvinboby9962 3 года назад +1

    Can you make a rc plane making video using this?

  • @ithaajja5724
    @ithaajja5724 2 года назад

    Hi,,,,please continue make BadAss Tank, with your 3d print remote

  • @varunkoganti9067
    @varunkoganti9067 3 года назад

    Changing the boot pin changes boot location it does not put It into programming mode.

  • @dushyantdahiya4524
    @dushyantdahiya4524 3 года назад

    I am using stm32f103c8t and i am facing a problem that PA3 -PA7 pins are not working. if any one have this kind of board please check it that your board pins are working or not if working please help me out for the same

  • @pdeepakjayan5515
    @pdeepakjayan5515 9 месяцев назад

    Sir, I am trying to receive gps data each second using interrupt function.What I understood is that,I had enabled the global interrupt in stm32 configuration for uart3, and whenever the interrupt triggers,the programs goes to the callback function which is hal_uart_rxcpltcallback.The program reaches the function..I do some processing again and then enable the interrupt again..The next sexond when the data arrives at 100ms after a pps signal(reference signal marked for 1 second),again interrupt is triggered , program goes to callback function, does the particular function, comes out of callback function.This happens in every 100th -130th millisecond of each second.I understood that whenever the codes enters the callback, ,the interrupt is diabled and we need to enable the interrupt again to receive the next data..Altogether 300bytes of data arrives from 100 to 130milliseconds..After 130 milisecond,if suppose some random data arrives, the interrupt may still trigger, since each time i enable the interrupt while coming out of callback function..how to stop receing the interrupt after 300millisecond? Can i use abort function?? Also can you please explain What is the differnce between isr function and callback function??Looking forward for your reply

  • @md.mushfiqurrahman3090
    @md.mushfiqurrahman3090 Год назад

    Please make an Expanssion board for STM 32 blue pill

  • @filepage1155
    @filepage1155 Год назад

    WHAT IS THE VALUE OF R9 AND R11 RESISTOR

  • @akibrahman1497
    @akibrahman1497 3 года назад

    Sir
    Bluetooth AC Triac control
    the video which have you uploaded 3 years ago
    I need help there please help me there
    I have commented there please help me sir please

  • @Mr.Leeroy
    @Mr.Leeroy 3 года назад +1

    6:38 nothing is erased.
    you still have jumper pulling bootsel to bootloader mode, so your program never starts.
    P.S. same mistake as ancient GreatScott's video, someone was lazy...

  • @brijeshkhokhar
    @brijeshkhokhar 3 года назад

    but currently this controller is not available, what about that ?

  • @OjasvApurv
    @OjasvApurv 3 года назад

    Did your sponsor just changed from JLCPCB to PCBway? ;)

  • @krukhlis
    @krukhlis 3 года назад +4

    *Warning to the bluepills users*:
    1): The +5V pins on this board are directly connected to the +5V pin of the USB connector. There is no protection in place. *Do not power this board through USB and an external power supply at the same time.*
    2): This board may have a wrong value of resistor on the USB D+ pin. Instead of a 1.5kΩ it has either a 10kΩ or 4.7kΩ resistor. Replace resistor if this is the case with your board
    3) Please pay attention, stm32 is 3.3V logic levels based( comparing to majority of Atmel-based Arduino boards which are 5V logic level based). The logic voltage of STM32 is 3.3V, so the logic voltage for GPIO input pins is also 3.3V. There are several pins that are 5V tolerant, *BUT NOT ALL!!! * .
    4) You can power it from 3.3V pin directly or from 3.6V+ to 5.5V through the onboard regulator. Means you can use 1S Li-Ion Battery. But please pay attention, on-board regulator outputs 300mA maximum. You can't power demanding peripherals from the blue pill!!!
    5) The maximum current the STM32 pins can provide is lower than Atmel's chips maximum current output. Do not overload your STM32 output pins!!! Use it for logical levels only, power your peripherals from the independent power source!!!

  • @vcodevideo
    @vcodevideo 3 года назад +1

    Great video, thanks for your effort. I saw STM32 videos from another RUclips channels and they don't use the jumpers on their projects to keep the code. What's the difference between your way and the others??. Check for example Phil's lab channel. Thanks in advance!!

  • @engrjolo1631
    @engrjolo1631 3 года назад

    Where to find a genuine stm32?. There is a lot of counterfeit stm32 from china

  • @aldidwi22
    @aldidwi22 3 года назад

    Link for stm32 bootloader files please

  • @damilareajayi7181
    @damilareajayi7181 Год назад

    i don't know why it keep saying failed to init device