How to Write Basic Library for NRF24L01 PART 1 || Common configuration || STM32 SPI

Поділитися
Вставка
  • Опубліковано 20 жов 2024

КОМЕНТАРІ • 41

  • @noahpage4839
    @noahpage4839 Рік тому +2

    Thank you so much. I was in the middle of writing my own library for the NRF24L01+ to be used on an SAMV71Q21 when I stumbled upon this. Super useful, served as a great sanity check to make sure what I was doing made sense.

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

    Excelent Video! One word of warning regarding the HAL_SPI functions. I have made a project with a STM32L432KC device, in HAL Library, and after a deeper analysis I found out that the SPI functions are simply... not optimized AT ALL. I was supposed to transfer larged amounts of data in a shorter time. If you ever experience bottlenecks on a SPI bus, this may be due to the long code that the functions execute. In case this happens, do a simple experiment: Make a continuous SPI transmission and put an Oscilloscope (Or logic analyzer) on the bus. If you notice abnormal spaces between the data bursts, there is the issue. It may happen on lower end SMT32's, so I thought it may be a useful info.

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

    I want to thank you for explaining how to write a library instead of getting it to work with existing libraries. Reading the data specs by myself is confusing but your instructions are helping.

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

    Thank you so much. This tutorial is very very useful. Hope you make video about zigbee and lora module

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

    Marvellous. First of its kind. Thank you so much.

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

    I am still not sure, is the voice made with some software, or is he speaking so well and regular like that? :D

  • @韦皓然
    @韦皓然 8 місяців тому

    Thanks a lot,where can I see shockbrust mode of NRF2401?

  • @toorikul
    @toorikul 4 дні тому

    thank you sir

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

    can you please make video with enhance shock burst in NRF24l01 and along with auto acknowledgement with stm32 ?

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

    so that the nrf24l01 transmit code works well, do you have to assemble the code and the nrf24l01 receive circuit first?

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

    Good video, very informative and useful. Thank you brother

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

    Super!

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

    Very useful as usual

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

    Hi, good information, is this library supports Black pill? STM32F411CE or STM32F401CC? Please suggest some suitable library

    • @ControllersTech
      @ControllersTech  2 роки тому +8

      By asking this question you are defying the entire purpose of this video.
      The video is supposed to show "how to write a library"

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

      @@ControllersTech Ignore him, we love your videos, thank you!

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

      You skipped the begining, didn't you?

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

    Can this procedure used to write for nucleoG4 board

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

      It can be used in any controller which have the SPI peripheral.

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

      @@ControllersTech but you used hal to transmit and receive the data and the peripherals and registers are different

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

      All ST boards can use HAL in the similar way.
      Things changes if you are trying to program using registers.

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

      @@ControllersTech thank you very much

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

      Can any one help me i am writing my own hal library for spi

  • @ahmadkarimi-xq9gq
    @ahmadkarimi-xq9gq Рік тому

    thanks. I just did this project. my TX is working but I can't receive that. can anyone help me?

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

      I cant receive either. Did you figure it out?

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

      ​@@askinc102useless video as I said

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

    can anybody explain why fifth bit is 1 in buf regester 11:40

    • @韦皓然
      @韦皓然 8 місяців тому

      from the datasheet,we can see that all the command has 1 in fifth bit except the first command.

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

    This code is it support f0 or f1 series?

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

      Yes it's in C language.

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

    Does this work for arduino too?

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

      You shouldn't really use it, Arduino implements SPI in a specific way different to IDE used in the video.

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

      No, it does not . First of all the init function does not write the proper values in order to make it work

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

    How do to remap spi pins?

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

      hold control key, click on the pin you want to remap, and it will show another option. just drag it over there.

  • @villafanahernandezvictorfr7770
    @villafanahernandezvictorfr7770 4 місяці тому

    No lo manejas en español? xd
    ah vea

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

    Finally something other that Mysterious_Library.h tutorial.