SPI in STM32 interfacing ADXL 345 || LCD || CubeMX || HAL || SW4STM

Поделиться
HTML-код
  • Опубликовано: 15 окт 2024
  • Purchase the Products shown in this video from :: controllerstec...
    ________________________________________________________________________________________
    Intercae ADXL in I2C mode:- • ADXL345 with STM32 || ...
    Check out more VIDEOS on SPI with STM32 • STM32 SPI
    To download the code and for detailed description, goto:- controllerstec...
    ________________________________________________________________________________________
    ****** SUPPORT US BY DONATING*****
    paypal.me/cont...
    ******Join the Membership******
    / @controllerstech
    Join the Discord Server / discord
    Join the Telegram Group t.me/controlle...
    Follow me on Instagram / controllerstech
    For more info, visit www.controller...

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

  • @H.Ebrahimi
    @H.Ebrahimi Месяц назад

    Very simple and useful, thank u very mutch

  • @marcoesposito2915
    @marcoesposito2915 4 года назад +1

    Thank you for the video, it was very helpful and it flowed very nicely :)

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

    Hello i try duplicate this project on STM32H7 using SPI , but was only able to show X, Y, Z all 0 values, could you please help?

  • @bennguyen1313
    @bennguyen1313 4 года назад

    So if the slave device is Mode 2 (CPOL=1, CPHA=0), which latches MISO on the Leading/Falling edge, however Stm32CubeIde only uses the terms '1 or 2 edge'?
    Also, if you set the IDE to transfer 12 bits, then when you call
    HAL_SPI_Receive(*hspi, cbuff, 1, timeout),
    then the 'length parameter is the number of 12-bit *elements*.. i.e. setting to 1 yields 12 SCLKs?
    Finally, is it possible to use the DMA such that it's continuously getting data from the Adxl and saving it to a location, where the CPU can always retrieve the latest? I found a question on the Microtechnics forum by fastbitlab ('SPI does not seem to work with DMA') but haven't seen any examples of this working.

  • @fatihe.1338
    @fatihe.1338 3 года назад

    Can you explain how you can send dummy data and get garbage data via "Hal Function " ?

  • @samiratalebi7803
    @samiratalebi7803 5 лет назад

    thx for this Video. I have a quetion: how can i send data of SHT31 Sensor in Transceiver CC1101 and then to another CC1101 ?

    • @ControllersTech
      @ControllersTech  5 лет назад

      I recommend that you read the datasheet. It has the SPI mode, so you can use SPI for the communication. But all the register related information, you will get from the datasheet itself

  • @gunasekaranmuthusamy8677
    @gunasekaranmuthusamy8677 4 года назад

    Which IDE you are using for this programming.

    • @ControllersTech
      @ControllersTech  4 года назад +1

      This one was SW4STM. Although i don't use it anymore. Use cubeide

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

    Hey, can I implement it on STM32F103C8 bluepill board?

  • @ankitchanda8878
    @ankitchanda8878 4 года назад

    I am trying to follow your code but my output is always 0. I am confused with one thing? what to do with the nss pin of the stm32 master?

    • @ControllersTech
      @ControllersTech  4 года назад +1

      leave the nss alone. I personally don't use it since I am always using the master mode. Make sure you have selected a pin for CS (Chip Select)

  • @barisunsal-vf7gn
    @barisunsal-vf7gn 6 месяцев назад

    why did we enable multi byte in write operation?

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

      Please mention the time where you have the doubt.

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

      ​@ControllersTech 6.08 looks like write function is kind of general(for both single and multi byte write)

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

    Sir, I downloaded the code from the description and I tried to run the code using stm32f411re board. And I am getting an error on the RCC_oscillator_PLLR. can you say how to overcome from that error..

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

      Do not run the project. Create a new project for your board, then just follow the video.

  • @eng.shh80
    @eng.shh80 4 года назад

    Nice job , how can I get LCD i2c header and source files for stm32 ?

    • @ControllersTech
      @ControllersTech  4 года назад

      Download the code from the link in the description

    • @eng.shh80
      @eng.shh80 4 года назад

      @@ControllersTech Done , Thank you :)

  • @Theo005-k5e
    @Theo005-k5e Год назад +1

    common man how could you put music for kids as a background sound?

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

      LOL The Farmer and the Dell?

  • @peterlucamalinverni3349
    @peterlucamalinverni3349 5 лет назад +1

    Beautiful music

  • @pusatberk4193
    @pusatberk4193 6 лет назад

    great, tahank you so much

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

    You're my idol