114. STM32CubeIDE TCS34725 RGB Color Sensor with STM32 F103C8T6

Поделиться
HTML-код
  • Опубликовано: 19 окт 2024

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

  • @NizarMohideen
    @NizarMohideen  5 месяцев назад +2

    If you do not get the color value, please change the code
    if ((readValue != 0x44) && (readValue != 0x10))
    To new code
    if ((readValue != 0x44) && (readValue != 0x10) && (readValue != 0x4d))
    The reason is TCS34725 ID can be 0x44, 0x10 or 0x4d
    The module I used in this video demonstration had the ID of either 0x44 or 0x10
    So I did not include 0x4d in the code.
    Your module may have 0x4d Thanks

  • @krenttoyer1991
    @krenttoyer1991 5 месяцев назад

    finally, tysm 🎉😭, btw can we combine that I2C with LCD I2C?

    • @NizarMohideen
      @NizarMohideen  5 месяцев назад +1

      Yes you can!
      I2C LCD video is here ruclips.net/video/l-JVnlJIPao/видео.html
      just give same 5V,G,B6 and B7 pins to display.
      It will work

  • @soranfatah1033
    @soranfatah1033 5 месяцев назад

    Well done 👍🏻👍🏻👍🏻

  • @LETSGO-q4f
    @LETSGO-q4f 5 месяцев назад

    dear admin, can you make video related with nrf103 with stm32 to control motor

  • @bandulamanchanayaka4971
    @bandulamanchanayaka4971 5 месяцев назад

    Thanks, What are the changes do i need to make for STM32 L432KC board, please

    • @NizarMohideen
      @NizarMohideen  5 месяцев назад

      Although I have not tested it with STM32L432KC, it should work with I2C1 without any code changes. Thanks

    • @bandulamanchanayaka4971
      @bandulamanchanayaka4971 5 месяцев назад

      hi, i tried with l432kc bord, but r,g,B data in live expression is 0,any suggestions please

    • @NizarMohideen
      @NizarMohideen  5 месяцев назад

      You can run simple I2C scan program in the same wiring setup to see the connections are ok.
      You can use ruclips.net/video/7_jm38X7HUw/видео.html
      Or simply declare a variable
      /* USER CODE BEGIN PV */
      uint8_t isFound;
      /* USER CODE END PV */
      And
      /* USER CODE BEGIN WHILE */
      while (1)
      {
      for(uint16_t i2c=1; i2c

    • @bandulamanchanayaka4971
      @bandulamanchanayaka4971 5 месяцев назад

      Thanks very much for your reply. it was my mistake, i didn't add the while statement.
      if i need to get data from this sensor using Timer interrupt,can I follow yor Timer vedio or any other resource ,please let me know

    • @NizarMohideen
      @NizarMohideen  5 месяцев назад

      Yes. You can. Timer interrupt will work with this sensor. Thanks